<?php } if ($theme->getVersion()) { ?> <tr><th>Version</th><td><?php echo $theme->getVersion(); ?> </td></tr> <?php } ?> </tbody> </table> <div class="description"> <?php $wpwiki = new WikiText(); echo $wpwiki->transform("\n" . $theme->getDescription() . "\n"); ?> </div> <div class="screenshot"> <a href="<?php echo $theme->getUrlPath(); ?> screenshot.png"> <img src="<?php echo $theme->getUrlPath(); ?> bigthumb.png" alt="<?php echo $theme->getName(); ?> Thumbnail" ?>
<?php slot('title'); ?> Comment<?php end_slot(); ?> <div class="read"> <div class="description"> <?php $wpwiki = new WikiText(); echo $wpwiki->transform("\n" . $comment->getComment() . "\n"); ?> </div> <div class="author">By <a href="/user/show/<?php echo $comment->getUserId(); ?> "><?php echo $comment->getUser()->getName(); ?> </a> on <?php echo $comment->getUpdatedAt(); ?> for <a href="<?php echo $comment->getObject()->getShowPath(); ?> "><?php echo $comment->getObject()->getName(); ?> </a>
<?php if (!$application->getApproved()) { ?> [<span class="red">Not Approved</span>]<?php } ?> <?php include_component('rating', 'rating', array('rating' => $application->getRating(), 'application_id' => $application->getId(), 'odd' => !($count % 2))); ?> <div class="description"> <?php $description = $application->getDescription(); if (strlen($description) > 200) { $description = substr($description, 0, 200) . '...'; } $wpwiki = new WikiText(); echo $wpwiki->transform("\n" . $description . "\n"); ?> </div> <?php if ($sf_user->getId() == $application->getUserId() || $sf_user->hasCredential('admin')) { ?> <?php echo link_to('Edit', '/application/update?id=' . $application->getId()); ?> | <?php echo link_to('Delete', '#', array('onClick' => 'confirmFirst(\'/application/delete/' . $application->getId() . '\')')); ?> <?php }
function hasImages(&$wikitext) { if ($this->introOnly) { $text = WikiText::getIntro($wikitext); $firstImage = Wikitext::getFirstImageURL($text); $hasImages = !empty($firstImage) ? "Yes" : "No"; } else { list($stepsText, ) = Wikitext::getStepsSection($wikitext, true); if ($stepsText) { // has steps section, so assume valid candidate for detailed title $num_steps = preg_match_all('/^#[^*]/im', $stepsText, $matches); } $num_photos = preg_match_all('/\\[\\[Image:/im', $wikitext, $matches); $hasImages = $num_photos > $num_steps / 2 ? "Yes" : "No"; } return $hasImages; }
} ?> | <?php echo link_to('Associate with Theme Group', '/applicationThemeGroup/update?application_id=' . $application->getId()); ?> | <?php echo link_to($approve_text, '/application/approve?id=' . $application->getId()); ?> | <?php echo link_to($showcase_text, '/application/showcase?id=' . $application->getId()); } include_component('rating', 'rating', array('rating' => $application->getRating(), 'application_id' => $application->getId(), 'odd' => false)); ?> <div class="description"> <?php $wpwiki = new WikiText(); echo $wpwiki->transform("\n" . $application->getDescription() . "\n"); ?> </div> <div class="screenshot"> <a href="<?php echo $application->getUrlPath(); ?> screenshot.png"> <img src="<?php echo $application->getUrlPath(); ?> bigthumb.png" alt="<?php echo $application->getName(); ?> Thumbnail" ?>
} ?> | <?php echo link_to('Associate with Theme Group', '/moduleThemeGroup/update?module_id=' . $madule->getId()); ?> | <?php echo link_to($approve_text, '/module/approve?id=' . $madule->getId()); ?> | <?php echo link_to($showcase_text, '/module/showcase?id=' . $madule->getId()); } include_component('rating', 'rating', array('rating' => $madule->getRating(), 'module_id' => $madule->getId(), 'odd' => false)); ?> <div class="description"> <?php $wpwiki = new WikiText(); echo $wpwiki->transform("\n" . $madule->getDescription() . "\n"); ?> </div> <div class="screenshot"> <a href="<?php echo $madule->getUrlPath(); ?> screenshot.png"> <img src="<?php echo $madule->getUrlPath(); ?> bigthumb.png" alt="<?php echo $madule->getName(); ?> Thumbnail" ?>