<section> <h2>About being Qool</h2> <div class="6u-first"> <?php widget('top_box3', 'h2'); ?> </div> <div class="6u"> <?php widget('top_box4', 'h2'); ?> </div> </section> </div> <div class="8u"> <section class="right-content"> <h2><?php the('title'); ?> </h2> <?php the('content'); ?> </section> </div> </div> </div> </div>
<?php namespace PSpec; describe('Function \\pantr\\fileNameTransform', function () { it('should interpret the pattern *.php as a change of the file extension', function () { $path = \pantr\fileNameTransform('test/me.st', '*.php'); the($path)->shouldBe('test/me.php'); }); }); describe('Function findCommonPrefix', function () { the(\pantr\findCommonPrefix(array(null, 'src/autoload.php')))->shouldBe('src/autoload.php'); the(\pantr\findCommonPrefix(array('src/autoload.php', 'src/cliapp.php')))->shouldBe('src/'); the(\pantr\findCommonPrefix(array('src/', 'src/cliapp.php')))->shouldBe('src/'); $dir = realpath(__DIR__ . '/../../src/'); $files = \pantr\file\fileset('*.php')->in($dir)->getFilesArray(); $prefix = \pantr\findCommonPrefix($files); the($prefix)->shouldBe($dir . '/'); });
if ($Page == 1) { $Pagination['Output'] = "Page <b>{$Page}</b> of <b>{$Pages}</b>. — <a href='?page=2'>Next</a>"; } elseif ($Page == $Pages) { $PreviousPage = $Page - 1; $Pagination['Output'] = "<a href='?page={$PreviousPage}'>Previous</a> — Page <b>{$Page}</b> of <b>{$Pages}</b>."; } else { $NextPage = $Page + 1; $PreviousPage = $Page - 1; $Pagination['Output'] = "<a href='?page={$PreviousPage}'>Previous</a> — Page <b>{$Page}</b> of <b>{$Pages}</b>. — <a href='?page={$NextPage}'>Next</a>"; } $Pagination['Output'] = "<div style='clear:both;'>{$Pagination['Output']}</div>"; echo $Pagination['Output']; } } foreach ($Files as $File) { if (the($File) == 'Image') { if ($Generate == 'Thumbnails') { if (!file_exists("{$Path}/{$Thumbnail['Directory']}/{$Thumbnail['Size']}_{$File}")) { ResizeImage("{$Path}/{$Directory}/{$File}", "{$Path}/{$Thumbnail['Directory']}/{$Thumbnail['Size']}_{$File}", $Thumbnail['Size']); } } echo "<div class='GalleryContainer'>\r\t\t\t\t\t<a href='/{$Directory}/{$File}' rel='Gallery'>\r\t\t\t\t\t\t<img src='/{$Thumbnail['Directory']}/{$Thumbnail['Size']}_{$File}' class='GalleryImage' border='0' />\r\t\t\t\t\t</a>\r\t\t\t\t</div>"; } } if ($Pagination['is'] == 'On') { if ($Pages > 1) { echo $Pagination['Output']; } } if ($Colorbox == 'Yes!') { echo "<script>\$(\"a[rel='Gallery']\").colorbox();</script>";
function get_the_content($more_link_text = null, $stripteaser = false) { $output = the('content', 0); $output .= apply_filters('the_content_more_link', ' <a href="' . get_permalink() . "#more\" class=\"more-link\">{$more_link_text}</a>", $more_link_text); return $output; }