<?php if ($this->checkPosition('image')) : ?>
<?php
echo "<table class=\"remove-margin-t\" cellpadding=\"0\" cellspacing=\"0\" width=\"97%\" align=\"center\" border=\"0\" style=\"max-width:625px; border:1px solid;\" background=\"..\images";
?>
<?php
echo $this->renderPosition('image')
<?php
echo ".png\">";
?>
<?php endif; ?>
画像を適切に呼び出す方法を見つけようとしています。echo for image が呼び出され、「ピンク」、「ブルー」、「グリーン」などの特定の名前が付けられます。ただし、位置の部分に依存します...
これは、html では次のように表示されるはずです。
<table cellpadding="0" cellspacing="0" width="97%" align="center" border="0" style="max-width:625px; border:1px solid #CCC" background="http://localhost/images/[insert color name here].png" >
元のphpはこちら
<?php if ($this->checkPosition('color')) : ?>
<?php echo $this->renderPosition('color'); ?>
<?php endif; ?>
どんな助けでも大歓迎です。「\」または「"」の問題に違いないと確信しています。
一番、
スティーブン
ジャレッドへ:
こんな感じですか?
<?php if ($this->checkPosition('image')) : ?>
<?php
echo "<table class=\"remove-margin-t\" cellpadding=\"0\" cellspacing=\"0\" width=\"97%\" align=\"center\" border=\"0\" style=\"max-width:625px; border:1px solid;\" background=\"../images/";
echo $this->renderPosition('image')
echo ".png\">";
?>
<?php endif; ?>