Exemplo n.º 1
0
function bfa_parse_date_modified_callback($matches)
{
    ob_start();
    the_modified_time($matches[2]);
    $date_modified = ob_get_contents();
    ob_end_clean();
    return $date_modified;
}
Exemplo n.º 2
0
    function widget($args, $instance)
    {
        global $post, $wpdb;
        if (!is_front_page()) {
            $cat_ID = get_query_var('cat');
            $top_dow_apps = new WP_Query(array('post_type' => 'apps', 'posts_per_page' => 5, 'order' => 'DSC', 'cat' => $cat_ID));
            ?>
  			
  			<div class="sidebar-widget">

  				<h3 class="widget-head">Top Downloads</h3>

  			 <ul class = "sb-tabs-wrap" >
	  			<?php 
            while ($top_dow_apps->have_posts()) {
                $top_dow_apps->the_post();
                ?>
	  			 
	  			 
	  			   <li>
	  			   		 
	  			   		<div class="sb-post-thumbnail">
	  			   		  <a href="<?php 
                the_permalink();
                ?>
"  title="<?php 
                the_title();
                ?>
">
	  			   		  	<?php 
                the_post_thumbnail(array(80, 80), array('alt' => get_the_title()));
                ?>
	  			   		  </a> 
						</div>
						<div class="sb-post-list-title">
							<h4><a href="<?php 
                the_permalink();
                ?>
"  title="<?php 
                the_title();
                ?>
"><?php 
                the_title();
                ?>
</a></h4>
						
							<div class="sb-post-meta">
								<p><?php 
                the_modified_time('F jS, Y');
                ?>
</p>
							</div>
							<div class="sb-post-meta">
								<a href="<?php 
                the_permalink();
                ?>
"  title="<?php 
                the_title();
                ?>
">Learn More</a>
							</div>
						</div>
						 
	  			   </li>
  				 
 				<?php 
            }
            wp_reset_query();
            ?>
 			  </ul>
  			</div>
  			 
 <div class=" clearfix" > </div>

<?php 
        }
        ?>


 <?php 
        if (is_front_page()) {
            ?>

 	<div class="sidebar-widget">

  				<h3 class="widget-head">Top Downloads</h3>

 			 <ul class = "sb-tabs-wrap" >
 		<?php 
            $top_dow_apps = new WP_Query(array('post_type' => 'apps', 'posts_per_page' => 5, 'order' => 'DSC', 'cat' => 18, 21));
            ?>
 

 			<?php 
            while ($top_dow_apps->have_posts()) {
                $top_dow_apps->the_post();
                ?>
 		 
  					<li>
	  			   		 
	  			   		<div class="sb-post-thumbnail">
	  			   		  <a href="<?php 
                the_permalink();
                ?>
"  title="<?php 
                the_title();
                ?>
">
	  			   		  	<?php 
                the_post_thumbnail(array(80, 80), array('alt' => get_the_title()));
                ?>
	  			   		  </a> 
						</div>
						<div class="sb-post-list-title">
							<h4><a href="<?php 
                the_permalink();
                ?>
"  title="<?php 
                the_title();
                ?>
"><?php 
                the_title();
                ?>
</a></h4>
						
							<div class="sb-post-meta">
								<p><?php 
                the_modified_time('F jS, Y');
                ?>
</p>
							</div>
							<div class="sb-post-meta">
								<a href="<?php 
                the_permalink();
                ?>
"  title="<?php 
                the_title();
                ?>
">Learn More</a>
							</div>
						</div>
						 
	  			   </li>
	  				 
	 				<?php 
            }
            wp_reset_query();
            ?>
	 			  </ul>
	 			 
  			</div>
  			 
 <div class=" clearfix" > </div>
 
  		 <?php 
        }
        ?>

 


  <?php 
    }
								<?php 
    }
    ?>
						</div><!-- .event-main-content -->
							
				<?php 
}
?>
				
				</div><!-- .event-table -->
				<div class="event-timestamp">
					<p>Updated: <?php 
the_modified_time('n/j/Y');
?>
 at <?php 
the_modified_time('g:i a');
?>
 EST</p>
				</div>
			</div>			
			<div class="clearfix">&nbsp;</div>
			<?php 
if (get_the_content()) {
    ?>
				<div class="event-content"><?php 
    the_content();
    ?>
</div>			
			<?php 
}
?>
    }
    if (get_post_meta($post->ID, 'pyre_project_desc_title', true) == 'no') {
        $project_desc_title_style = 'display:none;';
    }
    ?>
            <div class="project-content">
                <span class="entry-title" ><?php 
    the_title();
    ?>
</span>
                <span class="vcard" style="display: none;"><span class="fn"><?php 
    the_author_posts_link();
    ?>
</span></span>
                <span class="updated" style="display: none;"><?php 
    the_modified_time('c');
    ?>
</span>      
                <div class="project-description post-content" style="<?php 
    echo $project_desc_style;
    ?>
">
                    <?php 
    if (!post_password_required($post->ID)) {
        ?>
        
                        <div class="title"><h2><?php 
        echo __('Job Description', 'evolve');
        ?>
</h2><div class="title-sep-container"><div class="title-sep"></div></div></div>
                    <?php 
Exemplo n.º 5
0
function xt_post_date()
{
    $format = get_option('date_format');
    ?>
    <time datetime="<?php 
    the_time('c');
    ?>
" itemprop="datePublished"><?php 
    the_time($format);
    ?>
</time>
    <meta itemprop="dateModified" content="<?php 
    the_modified_time('c');
    ?>
">
	<?php 
}
Exemplo n.º 6
0
?>
" <?php 
post_class('cf');
?>
 role="article" itemscope itemtype="http://schema.org/AudioObject">

                <header class="article-header">

                  <h1 class="entry-title single-title" itemprop="name"><?php 
the_title();
?>
</h1>

                  <p class="byline entry-meta vcard">
                                                                        <i class="fa fa-thumb-tack"></i> <?php 
the_modified_time(__('j F Y', 'bonestheme'));
?>
									</p>

                </header> <?php 
// end article header
?>

                <section class="entry-content cf" itemprop="description">
                  <?php 
// the content (pretty self explanatory huh)
the_content();
/*
 * Link Pages is used in case you have posts that are set to break into
 * multiple pages. You can remove this if you don't plan on doing that.
 *
Exemplo n.º 7
0
              <article id="post-<?php 
        the_ID();
        ?>
" <?php 
        post_class('cf');
        ?>
 role="article" itemscope itemtype="http://schema.org/BlogPosting">

                <header class="article-header">
                  <!-- <h1 class="page-title"><?php 
        the_title();
        ?>
</h1> -->
                  <p class="byline vcard">Last updated: <?php 
        the_modified_time(get_option('date_format'));
        ?>
</p>
                </header>


                <section class="entry-content cf coming-soon" itemprop="articleBody">
                  <div class="page-content coming-soon m-all t-all d-all">
               <!-- <div class="section share-page">
                      <h2><span>Share this page</span></h2>
                      <?php 
        //if(function_exists('add_social_button_in_content')) echo add_social_button_in_content();
        ?>
                    </div>-->
<!--                <div class="clock-wrapper">
                      <div class="flip-counter clock"></div>
Exemplo n.º 8
0
    the_field('tech-list');
    ?>
" title="">【返回专题索引页】</a>
			<span id="view-next"><a href="<?php 
    the_field('tech-next');
    ?>
" title="">下一节 &raquo;</a></span>
			</div>
			<div id="book2-content-right"><?php 
    the_field('tech-content');
    ?>
</div>
			</div>

			<div id="book-meta"><?php 
    the_modified_time('Y年n月j日');
    ?>
 - By <?php 
    the_author();
    ?>
</div>
    
			</article><!-- #post -->
			<?php 
}
// end of the loop.
?>
		 </div>

		<div id="clear"></div>
		</div><!-- #content -->
            @if(is_array(get_field('show_date_updated','option')) && in_array(get_post_type(get_the_id()), get_field('show_date_updated','option')))
            <li>
                <strong><?php 
_e("Last updated", 'municipio');
?>
:</strong>
                <time datetime="<?php 
echo the_modified_time('Y-m-d H:i');
?>
">
                    <?php 
the_modified_time('j F Y');
?>
 kl. <?php 
the_modified_time('H:i');
?>
                </time>
            </li>
            @endif
        @endif

    @else

        @if (is_array(get_field('show_date_published','option')) && in_array(get_post_type(get_the_id()), get_field('show_date_published','option')))
            <li>
                <strong><?php 
_e("Published", 'municipio');
?>
:</strong>
                <time datetime="<?php 
Exemplo n.º 10
0
				<figure>
			  		<?php 
    the_post_thumbnail('article-thumb', array('class' => 'center-block img-responsive', 'alt' => trim(strip_tags(get_post_meta(get_post_thumbnail_id($post->ID), '_wp_attachment_image_alt', true)))));
    ?>
				</figure>
			</div>
		<?php 
}
?>
		<div  itemprop="text"><?php 
the_excerpt();
?>
</div>
		<p class="label label-info"><?php 
_e('Last edit:', 'ItalyStrap');
?>
 <time datetime="<?php 
the_modified_time('Y-m-d');
?>
" itemprop="dateModified"><?php 
the_modified_time('d F Y');
?>
</time></p>
		<span class="clearfix"></span>
	</section>
		<?php 
echo italystrap_ttr_wc();
?>
		<span class="clearfix"></span>
</article>
<hr>
Exemplo n.º 11
0
<!-- news -->
<?php 
$args = array('post_type' => 'post', 'posts_per_page' => 10, 'tax_query' => array(array('taxonomy' => 'category', 'field' => 'slug', 'terms' => array('新闻文章'))));
$loop = new WP_Query($args);
if ($loop->have_posts()) {
    while ($loop->have_posts()) {
        $loop->the_post();
        ?>
<div><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_title();
        ?>
</a> <?php 
        the_modified_time('Y-m-d');
        ?>
</div>
<div><?php 
        the_excerpt();
        ?>
</div>
			<?php 
        //wc_get_template_part( 'content', 'product' );
    }
} else {
    echo __('No news found');
}
?>
<!-- close news-->
<!-- products-->
Exemplo n.º 12
0
        ?>
				</div>
				<div class="gallery fulltext">
					<?php 
        //Aktuelle Tweets von StudentenPACK
        ?>
					<a class="twitter-timeline" width="480" data-dnt="true" href="https://twitter.com/StudentenPACK" data-widget-id="328640548414038017">Tweets by @StudentenPACK</a>
						<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
					<?php 
        //Aktuelle Tweets aus der Liste "Campus Lübeck"
        ?>
					<a class="twitter-timeline" width="480" data-dnt="true" href="https://twitter.com/StudentenPACK/campus-l%C3%BCbeck" data-widget-id="328641330924371970">Tweets from @StudentenPACK/campus-l%C3%BCbeck</a>
						<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
				</div>
				<p class="page_modified">Seite bearbeitet: <?php 
        the_modified_time('j. M Y H:i');
        ?>
</p>
	
			<?php 
    }
} else {
    ?>

			<!-- olol, alles weg, gnihihi! -->

		<?php 
}
?>
	</div>
</div>
Exemplo n.º 13
0
/**
 * Post summary, active at single & page
 */
function wpi_widget_post_summary()
{
    global $post, $commentdata;
    $section = is_at();
    $name = 'about-articles';
    $title = $section == 'single' ? 'About this articles' : 'About';
    wpi_widget_start($title, $name);
    $title = apply_filters('the_title', $post->post_title);
    $link = _t('a', WPI_BLOG_NAME, array('href' => apply_filters(wpiFilter::FILTER_LINKS, WPI_URL_SLASHIT), 'title' => WPI_BLOG_NAME, 'rel' => 'home'));
    $hdate = apply_filters('postdate', $post->post_date);
    $date = _t('span', get_the_time(__('l M jS, Y', WPI_META)), array('class' => 'published-date', 'title' => $hdate));
    $output = sprintf(__('<big>Y</big>ou&rsquo;re currently reading &ldquo;
	<strong class="fw-">%1s</strong>&rdquo;. 
	This entry appeared in %2s on %3s.', WPI_META), $title, $link, $date);
    t('p', $output, array('class' => 'meta-title'));
    ?>
		<p class="meta-published-date">
		It was last updated at <span class="date"><?php 
    the_modified_time('H:i a');
    ?>
</span> on <span class="date"><?php 
    the_modified_time('M jS o');
    ?>
</span> approximately <sup>&cong;</sup> <span class="last-updated hdate"><?php 
    echo wpi_get_relative_date($post->post_modified);
    ?>
</span>.</p>
<?php 
    do_action('widget_single_summary_after');
    wpi_widget_end();
}
Exemplo n.º 14
0
<?php 
if (have_posts()) {
    the_post();
    ?>
<div class="post" id="post-<?php 
    the_ID();
    ?>
">
	<h2 class="title"><?php 
    the_title();
    ?>
</h2>
	<div class="meta">
		<div class="info"><?php 
    _e('Update: ', 'blocks2');
    the_modified_time(__('M jS, Y', 'blocks2'));
    ?>
</div>
		<div class="comments">
			<?php 
    if ($user_ID) {
        ?>
				<a href="<?php 
        echo get_settings('siteurl');
        ?>
/wp-admin/link-add.php"><?php 
        _e('Add link', 'blocks');
        ?>
</a> | 
				<a href="<?php 
Exemplo n.º 15
0
" title="<?php 
    the_title();
    ?>
" alt="<?php 
    the_title();
    ?>
" width="1125px" height="200px" /></div>

			<!--插件标签-->
			<div id="addon-meta">
				<span id="cloudid-box"><span id="yylmacro-meta-cloudid" class="yylmacro-meta">下载次数:</span><span id="cloudid"><?php 
    the_views($display = true, $prefix = '', $postfix = '', $always = false);
    ?>
</span></span>
				<span class="yylmacro-meta">更新日期</span> <?php 
    the_modified_time('Ymd');
    ?>
				<span class="yylmacro-meta">插件作者</span> <?php 
    the_field('addon_author');
    ?>
				<span class="yylmacro-meta">插件版本</span> <?php 
    the_field('addon_version');
    ?>
				<span class="yylmacro-meta">官方主页</span> <a href="<?php 
    the_field('addon_authorlink');
    ?>
"  target="_blank">点击访问</a>
				<div id="addon-down"><a href="<?php 
    the_field('addon_down');
    ?>
" title="" target="_blank"></a></div>
Exemplo n.º 16
0
 function dw_the_modified_time($d, $query = false)
 {
     global $wp_query;
     if (!$query) {
         $query = $wp_query->query;
     }
     $query['posts_per_page'] = 1;
     $query['order'] = 'DESC';
     $query['orderby'] = 'modified';
     $posts = new WP_Query($query);
     if ($posts->have_posts()) {
         while ($posts->have_posts()) {
             $posts->the_post();
             the_modified_time($d);
         }
     }
 }
Exemplo n.º 17
0
            switch ($column_name) {
                case 'id':
                    ?>
		<th scope="row" style="text-align: center"><?php 
                    echo $id;
                    ?>
</th>
		<?php 
                    break;
                case 'modified':
                    ?>
		<td><?php 
                    if ('0000-00-00 00:00:00' == $post->post_modified) {
                        _e('Never');
                    } else {
                        the_modified_time(__('Y-m-d \\<\\b\\r \\/\\> g:i:s a'));
                    }
                    ?>
</td>
		<?php 
                    break;
                case 'date':
                    ?>
		<td><?php 
                    if ('0000-00-00 00:00:00' == $post->post_date) {
                        _e('Unpublished');
                    } else {
                        the_time(__('Y-m-d \\<\\b\\r \\/\\> g:i:s a'));
                    }
                    ?>
</td>
$categories_list = get_the_category_list(__(', ', 'eighties'));
if ($categories_list && eighties_categorized_blog()) {
    ?>
			<span class="entry-meta entry-meta-categories"><?php 
    echo $categories_list;
    ?>
</span>
		<?php 
}
?>
		<?php 
the_title('<h1 class="entry-title">', '</h1>');
?>
		<p class="entry-meta entry-meta-time">
			<i class="fa fa-clock-o"></i><time class="updated" datetime="<?php 
echo the_modified_time('Y-m-d H:i:s');
?>
"><?php 
echo eighties_get_time_difference(get_the_date('Y-m-d H:i:s'));
?>
</time>
			by
			<span class="vcard author">
				<span class="post-author author"><?php 
echo the_author_posts_link();
?>
</span>
			</span>
		</p>
	</header><!-- .entry-header -->
    }
    ?>
											<?php 
    if (isset($theme_options['post_modified_date'])) {
        ?>
<div class="post-date"><i class="time icon"></i>atualizado em <a href="<?php 
        print get_day_link(get_the_modified_time('Y'), get_the_modified_time('m'), get_the_modified_time('d'));
        ?>
" title="<?php 
        the_modified_time('j \\d\\e F \\d\\e Y');
        ?>
"><time datetime="<?php 
        the_modified_time('Y-m-d\\TH:i:s+00:00');
        ?>
"><?php 
        the_modified_time('j \\d\\e F \\d\\e Y');
        ?>
</time></a></div><?php 
    }
    ?>
											<?php 
    if (isset($theme_options['post_tag']) && has_tag()) {
        ?>
<div class="post-tag"><i class="tags icon"></i><?php 
        the_tags(' ', ', ');
        ?>
</div><?php 
    }
    ?>
											<?php 
    if (isset($theme_options['post_category'])) {
Exemplo n.º 20
0
    <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

    <div class="post" id="post-<?php 
        the_ID();
        ?>
">
      <h1 class='compact-top'><?php 
        the_title();
        ?>
</h1>
<!--  <p class="postdate"><?php 
        the_modified_time('l, j F Y');
        ?>
</p>-->

      <div class="entry">
        <?php 
        the_content('<p class="serif">Read the rest of this page &raquo;</p>');
        ?>

        <?php 
        wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
        ?>
      </div>

    </div>
    <?php 
Exemplo n.º 21
0
					</figure>
				</header>

				<section class="post__content">
					<?php 
    echo the_content();
    ?>
				</section>

				<section class="post__meta">
					<!--<span class="post-meta__date"><strong>Publisert: </strong><?php 
    the_date('d.m.y');
    ?>
</span>-->
					<!--<span class="post-meta__date post-meta__date--modified"><strong>Sist oppdatert:</strong> <?php 
    the_modified_time('d.m.y');
    ?>
</span>-->
				</section>

				<aside class="post__social">
					<div class="mt-share-list-bar-sm">
						<a class="mt-facebook" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php 
    echo get_permalink();
    ?>
" title="Del på Facebook">
							<img src="http://mojotech-static.s3.amazonaws.com/facebook@2x.png">
						</a>

						<a class="mt-twitter" target="_blank" href="http://twitter.com/intent/tweet?text=<?php 
    echo the_title();
Exemplo n.º 22
0
            // get the lightbox class
            $lightbox_class = max_get_post_lightbox_class();
            if (get_option_max('image_always_lightbox') == 'true') {
                $video_class = "";
                if ($lightbox_class === 'video') {
                    $video_class = " video";
                }
                $lightbox_class = $video_class . ' detail-link';
            }
            ?>

				<li data-time="<?php 
            the_time('Ymdhi');
            ?>
" data-modified="<?php 
            the_modified_time('Ymdhi');
            ?>
" data-menuorder="<?php 
            echo $post->menu_order;
            ?>
" data-id="id-<?php 
            echo get_the_ID();
            ?>
" class="item <?php 
            echo $lightbox_class;
            ?>
 <?php 
            echo $_term_classes;
            if (get_option_max('image_show_caption') == "always") {
                echo " show-title";
            }
Exemplo n.º 23
0
    function widget($args, $instance)
    {
        global $post, $wpdb;
        $min_time = $instance['min_time_rec_apps'];
        $post_in_block = $instance['post_in_block_rec_apps'];
        $min_time = strtotime('-' . $min_time . ' day', current_time('timestamp'));
        if (is_category()) {
            $q_obj = get_queried_object();
            $query = "SELECT DISTINCT {$wpdb->posts}.*, (t1.meta_value+0.00) AS ratings_average, (t2.meta_value+0.00) AS ratings_users, (t3.meta_value+0.00)\n \t\t\tAS ratings_score FROM {$wpdb->posts} \n \t\t\tLEFT JOIN {$wpdb->postmeta} AS t1 ON t1.post_id = {$wpdb->posts}.ID \n \t\t\tLEFT JOIN {$wpdb->postmeta} AS t2 ON t1.post_id = t2.post_id \n \t\t\tLEFT JOIN {$wpdb->postmeta} AS t3 ON t3.post_id = {$wpdb->posts}.ID \n \t\t\tINNER JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id) \n \t\t\tINNER JOIN {$wpdb->term_taxonomy} ON ({$wpdb->term_relationships}.term_taxonomy_id = {$wpdb->term_taxonomy}.term_taxonomy_id) \n \t\t\tINNER JOIN {$wpdb->ratings} ON {$wpdb->ratings}.rating_postid={$wpdb->posts}.ID WHERE rating_timestamp >=" . $min_time . " AND t1.meta_key = 'ratings_average' AND t2.meta_key = 'ratings_users' AND t3.meta_key = 'ratings_score' AND {$wpdb->term_taxonomy}.term_id = " . $q_obj->term_id . " ORDER BY ratings_users DESC LIMIT " . $post_in_block;
        }
        if (is_front_page()) {
            $res = get_categories('parent=0');
            if ($res) {
                foreach ($res as $term_id) {
                    $list_ids[] = $term_id->term_taxonomy_id;
                }
            }
            $list_ids = implode(',', $list_ids);
            $query = "SELECT DISTINCT {$wpdb->posts}.*, (t1.meta_value+0.00) AS ratings_average, (t2.meta_value+0.00) AS ratings_users, (t3.meta_value+0.00)\n\t \t\t\tAS ratings_score FROM {$wpdb->posts} \n\t \t\t\tLEFT JOIN {$wpdb->postmeta} AS t1 ON t1.post_id = {$wpdb->posts}.ID \n\t \t\t\tLEFT JOIN {$wpdb->postmeta} AS t2 ON t1.post_id = t2.post_id \n\t \t\t\tLEFT JOIN {$wpdb->postmeta} AS t3 ON t3.post_id = {$wpdb->posts}.ID \n\t \t\t\tINNER JOIN {$wpdb->term_relationships} ON ({$wpdb->posts}.ID = {$wpdb->term_relationships}.object_id) \n\t \t\t\tINNER JOIN {$wpdb->term_taxonomy} ON ({$wpdb->term_relationships}.term_taxonomy_id = {$wpdb->term_taxonomy}.term_taxonomy_id) \n\t \t\t\tINNER JOIN {$wpdb->ratings} ON {$wpdb->ratings}.rating_postid={$wpdb->posts}.ID WHERE {$wpdb->term_taxonomy}.term_id IN (" . $list_ids . ") AND rating_timestamp >=" . $min_time . " AND t1.meta_key = 'ratings_average' AND t2.meta_key = 'ratings_users' AND t3.meta_key = 'ratings_score'   ORDER BY ratings_users DESC LIMIT " . $post_in_block;
        }
        $res = $wpdb->get_results($query);
        ?>
 	<div class="sidebar-widget">

  				<h3 class="widget-head">Recommended</h3>

 			 <ul class = "sb-tabs-wrap" >
 			
 			<?php 
        foreach ($res as $post) {
            setup_postdata($post);
            ?>
 		 
  					<li>
	  			   		 
	  			   		<div class="sb-post-thumbnail">
	  			   		  <a href="<?php 
            the_permalink();
            ?>
"  title="<?php 
            the_title();
            ?>
">
	  			   		  	<?php 
            the_post_thumbnail(array(80, 80), array('alt' => get_the_title()));
            ?>
	  			   		  </a> 
						</div>
						<div class="sb-post-list-title">
							<h4><a href="<?php 
            the_permalink();
            ?>
"  title="<?php 
            the_title();
            ?>
"><?php 
            the_title();
            ?>
</a></h4>
						
							<div class="sb-post-meta">
								<p><?php 
            the_modified_time('F jS, Y');
            ?>
</p>
							</div>
							<div class="sb-post-meta">
								<a href="<?php 
            the_permalink();
            ?>
"  title="<?php 
            the_title();
            ?>
">Learn More</a>
							</div>
						</div>
						 
	  			   </li>
	  				 
	 				<?php 
        }
        wp_reset_query();
        ?>
	 			  </ul>
	 			 
  			</div>
  			 
 <div class=" clearfix" > </div>
  

  <?php 
    }
Exemplo n.º 24
0
        ?>
							</div><?php 
    }
    ?>
	

						</div><!-- .entry-content -->
						
						<?php 
    if (get_the_modified_date() != get_the_date() || get_the_modified_time() != get_the_time()) {
        ?>
					    	<p class="pull-right modifiedDate">Dernière actualisation : <?php 
        the_modified_date();
        ?>
 à <?php 
        the_modified_time();
        ?>
</p>
						<?php 
    }
    ?>
					</article><!-- #post-## -->

				</div>
	
				<!-- Sidebar de droite sur les fiches Organismes -->
				<div class="col-md-4 col-xs-12 widget-area">
					
					<aside class="widget">
						<h2 class="widget-title"><i class="fa fa-caret-square-o-right"></i> Plus d'infos</h2>
					</aside>
Exemplo n.º 25
0
            _e('Posted on:', 'inspiry');
            ?>
</span>
                                                            <span class="meta-item-value"><?php 
            the_time("d F 'y");
            ?>
</span>
                                                        </div>

                                                        <div class="meta-item">
                                                            <span class="meta-item-label"><?php 
            _e('Last Modified:', 'inspiry');
            ?>
</span>
                                                            <span class="meta-item-value"><?php 
            the_modified_time("d F 'y");
            ?>
</span>
                                                        </div>

                                                        <div class="meta-item">
                                                            <span class="meta-item-label"><?php 
            _e('Status:', 'inspiry');
            ?>
</span>
                                                            <?php 
            $pub_status = get_post_status();
            ?>
                                                            <span class="meta-item-value <?php 
            echo strtolower($pub_status);
            ?>
Exemplo n.º 26
0
				<ul>
					<li>&copy; <?php 
echo date('Y');
?>
 <a href="http://www.ufl.edu/">University of Florida</a></li>
					<?php 
if (is_home()) {
    ?>
 <li>Site Updated <?php 
    ufl_site_last_updated();
    ?>
</li> <?php 
} else {
    ?>
 <li>Page Updated <?php 
    the_modified_time('F j, Y');
    ?>
</li><?php 
}
?>
				</ul>
				<ul>
					<li>This page uses <a href="http://www.google.com/analytics/">Google Analytics</a> <a href="http://www.google.com/intl/en_ALL/privacypolicy.html">(Google Privacy Policy)</a></li>
					<li><a href="http://assistive.usablenet.com/tt/<?php 
if (is_home()) {
    echo esc_url(home_url());
} else {
    echo esc_url(get_permalink($post->ID));
}
?>
" accesskey="t" title="Text-only version of this website">Text-only Version</a></li>
 function zm_previous_post()
 {
     global $post;
     // Retrieve next post link that is adjacent to current post.
     $prevPost = get_previous_post(false);
     // Check to make sure we have a previous post
     if (!empty($prevPost)) {
         if (function_exists('get_the_post_thumbnail')) {
             $prevthumbnail = get_the_post_thumbnail($prevPost->ID, 'thumbnail');
         }
         echo '<div class="image">';
         if (isset($prevthumbnail) && !empty($prevthumbnail)) {
             previous_post_link('%link', "{$prevthumbnail}", false);
         }
         echo '</div>';
         // Probally a better way to do this, but f-it, it works
         print '<div class="content">';
         print '<span class="title">';
         previous_post_link('%link', '%title');
         print '</span>';
         // Get our list of catgeories
         if (get_the_category($prevPost->ID)) {
             // Returns an array of objects
             $categories = get_the_category($prevPost->ID);
             $catTotal = count($categories);
             $i = 0;
             print 'Category ';
             for ($i; $i < $catTotal; $i++) {
                 print '<a href="' . get_category_link($categories[$i]->cat_ID) . '">' . $categories[$i]->cat_name . '</a> ';
             }
             print '<span class="posted-on">Posted on ';
             the_modified_time('m/d/ Y');
             print '</span>';
         } else {
             $category = 'no';
         }
         print '</div>';
     }
 }
Exemplo n.º 28
0
<?php
/*
Template Name: Legal
*/
get_header(); ?>

<div class="legal-content">
  <div class="heading">
    <h1><?php the_title() ?></h1>
  </div>

  <div class="content-body">
    <?php if (have_posts()) : ?>
      <?php while (have_posts()) : the_post(); ?>
        <?php the_content() ?>
      <?php endwhile; ?>
    <?php endif ?>
  </div>

  <div class="last-updated content-container">
    <span>Last updated: <?php the_modified_time('F j, Y'); ?></span>
  </div>

  <?php get_template_part('modules/need_to_reach_us') ?>
  <?php get_template_part('modules/feature_articles_d') ?>
</div>

<?php get_footer(); ?>
Exemplo n.º 29
0
        ?>
/wp-admin/link-manager.php"><?php 
        _e('Edit links', 'inove');
        ?>
</a></span>
				</div>
			<?php 
    }
    ?>
			<?php 
    the_title();
    ?>
		</h2>
		<div class="info">
			<span class="date"><?php 
    the_modified_time(__('F jS, Y', 'inove'));
    ?>
</span>
			<?php 
    edit_post_link(__('Edit', 'inove'), '<span class="editpost">', '</span>');
    ?>
			<?php 
    if ($comments || comments_open()) {
        ?>
				<span class="addcomment"><a href="#respond"><?php 
        _e('Leave a comment', 'inove');
        ?>
</a></span>
				<span class="comments"><a href="#comments"><?php 
        _e('Go to comments', 'inove');
        ?>
Exemplo n.º 30
0
    function widget($args, $instance)
    {
        global $post, $wpdb;
        $post_in_block = $instance['post_in_block_latest_apps'];
        if (is_single()) {
            $info_cat_post = info_category_post($post->ID);
            $lasted_posts = new WP_Query(array('post_type' => 'apps', 'posts_per_page' => $post_in_block, 'order' => 'DSC', 'cat' => $info_cat_post['term_id']));
            ?>

		<div class="sidebar-widget">

  				<h3 class="widget-head">latest <?php 
            echo $info_cat_post['parent_cat_name'];
            ?>
 </h3>

  			 <ul class = "sb-tabs-wrap" >
	  			<?php 
            while ($lasted_posts->have_posts()) {
                $lasted_posts->the_post();
                ?>
	  			  
	  			   <li>
	  			   		 
	  			   		<div class="sb-post-thumbnail">
	  			   		  <a href="<?php 
                the_permalink();
                ?>
"  title="<?php 
                the_title();
                ?>
">
	  			   		  	<?php 
                the_post_thumbnail(array(80, 80), array('alt' => get_the_title()));
                ?>
	  			   		  </a> 
						</div>
						<div class="sb-post-list-title">
							<h4><a href="<?php 
                the_permalink();
                ?>
"  title="<?php 
                the_title();
                ?>
"><?php 
                the_title();
                ?>
</a></h4>
						
							<div class="sb-post-meta">
								<p><?php 
                the_modified_time('F jS, Y');
                ?>
</p>
							</div>
							<div class="sb-post-meta">
								<a href="<?php 
                the_permalink();
                ?>
"  title="<?php 
                the_title();
                ?>
">Download APK</a>
							</div>
						</div>
						 
	  			   </li>
  				 
 				<?php 
            }
            wp_reset_query();
            ?>
 			  </ul>
  			</div>
  
	<?php 
        }
        ?>


  <?php 
    }