All pastes #261478 Raw Edit

Miscellany

public php v1 · immutable
#261478 ·published 2006-11-29 14:05 UTC
rendered paste body
<!-- SCREENSHOT --><xar:set name="themesshot_output">xarModAPIFunc('uploads','user','showoutput',array('value' => $item['body'], 'multiple' => true))</xar:set>          <div  style="float:left; margin-right: 20px; clear:left;">              <xar:if condition="isset($themesshot_output) AND count($themesshot_output) ge 1">                  <xar:foreach in="$themesshot_output" key="$imageId">                      <xar:image-resize src="$imageId" width="150px" constrain="1" label="$title" />                  </xar:foreach>              <xar:else />                  <div class="xar-nowrap xar-align-center" style="width:200px; height: 150px; border: solid 1px #e0e0e0; background: #f0f0f0;">                  <p class="xar-padding-thick"><xar:mlstring>Screenshot </xar:mlstring></p>                  <p class="xar-padding-thick"><xar:mlstring>coming </xar:mlstring></p>                  <p class="xar-padding-thick"><xar:mlstring>soon!</xar:mlstring></p>                  </div>              </xar:if>          </div><xar:set name="dummy">var_dump($themesshot_output)</xar:set>#$dummy#<br /><!-- END SCREENSHOT -->my "Random Article Block" code...themes\mytheme\modules\articles\blocks<xar:foreach in="$items" value="$item">   <xar:if condition="!empty($item['body'])">      <xar:set name="img_output">xarModAPIFunc('uploads','user','showoutput',array('value' => $item['body'], 'multiple' => true))</xar:set>      <xar:foreach in="$img_output" key="$fileId" value="$fileInfo">         <xar:if condition="xarModIsAvailable('images')">            <xar:set name="file">$fileInfo</xar:set>         <xar:else />            <a href="#$item['summary']#" title="#$item['title']#" style="text-decoration: underline;"><img src="#xarModURL('uploads', 'user', 'download', array('fileId' => $fileInfo['fileId']))#"  width="100%" alt="#$item['notes']#" id="thephoto" /></a>         </xar:if>      </xar:foreach>   </xar:if></xar:foreach>