コード例 #1
0
/**
 * Checks if the elements supports genesis-structural-wraps
 * Uses genesis_structural_wrap to close the markup for wrap
 * Echos markup if genesis_structural_wrap is not supported
 * @since 1.0
 */
function cuttz_structural_wrap_close($context)
{
    $wrap_support = get_theme_support('genesis-structural-wraps');
    if (search_context($context, $wrap_support)) {
        genesis_structural_wrap($context, 'close');
    } else {
        echo '</div>';
    }
}
コード例 #2
0
ファイル: search.php プロジェクト: vybeauregard/eyi
     } else {
         echo '<p class="eyisearch">Your search for <em>' . stripslashes($q) . '</em> returned ' . $total . ' results:</p>';
     }
 } else {
     echo '<p class="eyisearch">GOOGLEWHACK!!!  Your search for <em>' . stripslashes($q) . '</em> returned ' . $total . ' result!</p>';
 }
 echo '<div class="entries"><ul class="eyisearch"><li>';
 while ($row = mysql_fetch_array($result)) {
     $pubdate = date('d.M.', strtotime($row['pubdate']));
     $pubdate .= date('Y', strtotime($row['pubdate'])) - 2000;
     $title = $row['short_title'];
     $rant = $row['rant'];
     $content = strip_tags($row['content']);
     echo '<div class="eyisearch_results"><span class="eyi_ranttitle"><a href="' . $_SERVER['PHP_SELF'] . '?' . $rant . '">' . $title . '</a></span>';
     echo '<span class="eyi_pubdate"><em>' . $pubdate . '</em></span></div><div class="eyi_quote">';
     echo search_context($content, $q) . '&hellip;</div>';
 }
 echo '</li></ul></div>';
 // Generate navigational page links if we have more than one page
 if ($num_pages > 1) {
     echo '<div class="pagination"><span class="eyisearch">';
     echo generate_page_links($q, $cur_page, $num_pages);
     echo '</span></div>';
 }
 // there are search results; end the page without the rantlist from eyi.php
 if ($num_pages != 0) {
     echo '<span id="eyilinkback"><a href="' . $_SERVER['PHP_SELF'] . '">Entertain Yourself Immediately</a></span>';
     echo '</div>';
     include 'http://www.vybeauregard.net/footer.html';
     echo '</body></html>';
     exit;