예제 #1
0
파일: single.php 프로젝트: plandd/pbagora
<div  id="post-content" class="row">
    <div class="small-12 large-9 left">

        <!-- publicidade -->
        <figure id="ads" class="divide-20 column big-ads text-center">
            <span class="divide-20"></span>
            <div class="small-12 left">
                <?php 
pba_show_ads('ads_interna_topo', 'ads_interna_topo_img', 'ads_interna_topo_html');
?>
            </div>
        </figure>

        <header class="divide-20 column">
            <h6 class="post-tag divide-10"><?php 
echo get_first_tag();
?>
</h6>
            <h3 class="divide-10"><?php 
the_title();
?>
</h3>

            <time class="left font-small" pubdate><?php 
the_time('j \\d\\e F, Y');
?>
 às <?php 
the_time('g:i a');
?>
</time>
            <nav id="share-post" class="right">
예제 #2
0
function pba_search_form()
{
    $query = $_GET['keyword'];
    $term = $query['term'];
    $the_query = new WP_Query(array('s' => $term, 'post_type' => 'post', 'posts_per_page' => 12, 'orderby' => 'date'));
    if ($the_query->have_posts()) {
        while ($the_query->have_posts()) {
            $the_query->the_post();
            global $post;
            $thumb = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'destaque.editoria');
            $th = !empty($thumb[0]) ? $thumb[0] : '';
            ?>
  <figure class="small-12 left">
    <figcaption class="small-12 left">
      <time class="font-small divide-5" pubdate><?php 
            the_time('j \\d\\e F, Y');
            ?>
 às <?php 
            the_time('g:i a');
            ?>
</time>
      <h6 class="post-tag divide-5"><?php 
            echo get_first_tag();
            ?>
</h6>
      <h5><a href="<?php 
            the_permalink();
            ?>
" title="<?php 
            the_title();
            ?>
"><?php 
            the_title();
            ?>
</a></h5>
    </figcaption>
  </figure>
  <?php 
        }
        wp_reset_postdata();
    }
    exit;
}
예제 #3
0
    // 3 ROMN
    if ($gedrec == '') {
        $gedtitl = 'ROMN';
    } else {
        $gedtitl = get_first_tag(3, 'ROMN', $gedrec);
        if (empty($gedtitl)) {
            $gedtitl = 'ROMN';
        }
    }
    add_simple_tag("3 {$gedtitl}");
}
// 2 _PRIM
if ($gedrec == '') {
    $gedprim = '_PRIM';
} else {
    $gedprim = get_first_tag(1, '_PRIM', $gedrec);
    if (empty($gedprim)) {
        $gedprim = '_PRIM';
    }
}
add_simple_tag("1 {$gedprim}");
//-- print out editing fields for any other data in the media record
$sourceSOUR = '';
if (!empty($gedrec)) {
    preg_match_all('/\\n(1 (?!FILE|FORM|TYPE|TITL|_PRIM|_THUM|CHAN|DATA).*(\\n[2-9] .*)*)/', $gedrec, $matches);
    foreach ($matches[1] as $subrec) {
        $pieces = explode("\n", $subrec);
        foreach ($pieces as $piece) {
            $ft = preg_match("/(\\d) (\\w+)(.*)/", $piece, $match);
            if ($ft == 0) {
                continue;