من می خواستم این کد ها رو شرطی کنم و در ادامه لینک دانلود اونا حجم بذارم مثل:
دانلود - x مگابایت
<div class="english-info">
<div class="excerpt">
<?php $tozihatEN = get_post_meta($post->ID, "tozihatEN", true); if ($tozihatEN != "") { $tozihatEN = explode(",", $tozihatEN); foreach ($tozihatEN as $tozihatEN) { echo "<p> $tozihatEN</p>"; } } ?>
</div>
<div class="expandable">
<?php $tozihatEN2 = get_post_meta($post->ID, "tozihatEN2", true); if ($tozihatEN2 != "") { $tozihatEN2 = explode(",", $tozihatEN2); foreach ($tozihatEN2 as $tozihatEN2) { echo "<p> $tozihatEN2</p>"; } } ?>
</div>
<div class="expander">More info (open/close)</div>
</div>
<div class="system-requirements">
<h3>سيستم مورد نياز</h3>
<div class="text-ltr">
<?php $SISTEM1 = get_post_meta($post->ID, "SISTEM1", true); if ($SISTEM1 != "") { $SISTEM1 = explode(",", $SISTEM1); foreach ($SISTEM1 as $SISTEM1) { echo "<p> $SISTEM1</p>"; } } ?>
</div>
</div>
<div class="extra-info">
<h3>مشخصات</h3>
<p>
<strong>شرکت سازنده:</strong>
<?php $SAZANDE = get_post_meta($post->ID, "SAZANDE", true); if ($SAZANDE != "") { $SAZANDE = explode(",", $SAZANDE); foreach ($SAZANDE as $SAZANDE) { echo "<a target="_blank" href=" $SAZANDE"></a>"; } } ?>
<br>
<strong>حجم فايل:</strong>
<?php $HAGM = get_post_meta($post->ID, "HAGM", true); if ($HAGM != "") { $HAGM = explode(",", $HAGM); foreach ($HAGM as $HAGM) { echo " $HAGM<br>"; } } ?>
</p>
</div>
<div class="post-help">
<h3>راهنماي نصب</h3>
<?php $RAHNAMA2 = get_post_meta($post->ID, "RAHNAMA2", true); if ($RAHNAMA2 != "") { $RAHNAMA2 = explode(",", $RAHNAMA2); foreach ($RAHNAMA2 as $RAHNAMA2) { echo "<p> $RAHNAMA2</p>"; } } ?> </div>
<div class="download-links">
<h3>لينک هاي دانلود</h3>
<span class="instruction-expander">راهنماي دانلود</span>
<p>
<img class="image-text-top" src="http://p30download.com/template/icons/set3/arrow-down.gif"> <?php $DL = get_post_meta($post->ID, "DL", true); if ($DL != "") { $DL = explode(",", $DL); foreach ($DL as $DL) { echo "<a href='$itunes'></a>"; } } ?><strong>دانلود</strong></a>
</p>
</div>
<div class="download-instruction">
<h3>راهنماي دانلود</h3>
<ul>
<?php $tozihat = get_post_meta($post->ID, "tozihat", true); if ($tozihat != "") { $tozihat = explode(",", $tozihat); foreach ($tozihat as $tozihat) { echo "<li> $tozihat</li>"; } } ?></li>
</ul>
</div>
<div class="password">
<h3>رمز فايل</h3>
<em>www.LORD-PARSI.com</em>
</div>
با تشکر