示例#1
0
function vapor_facebook_og()
{
    if (article_id()) {
        echo '<meta property="og:site_name" content="' . site_name() . '" />
	<meta property="og:type" content="article" />
	<meta property="og:title" content="' . article_title() . '" />
	<meta property="og:description" content="' . article_description() . '" />
	<meta property="og:url" content="' . e(current_url()) . '" />
	<meta property="article:tag" content="' . category_title() . '" />';
    } else {
        echo '<meta property="og:site_name" content="' . site_name() . '" />
	<meta property="og:type" content="website" />
	<meta property="og:title" content="' . site_name() . '" />
	<meta property="og:description" content="' . site_description() . '" />
	<meta property="og:url" content="' . full_url() . '" />';
    }
}
示例#2
0
          <h1>Categories:</h1>
          <ul style="list-style-type: none;">
				<?php 
while (categories()) {
    ?>
					<li>
					<a href="<?php 
    echo category_url();
    ?>
" title="<?php 
    echo category_description();
    ?>
">
						<?php 
    echo category_title();
    ?>
 <span><?php 
    echo category_count();
    ?>
</span>
					</a>
				</li>
			<?php 
}
?>
		</ul>

        </div>
      </div>
示例#3
0
					  <ul class="nav navbar-nav navbar-right">
						<li><a href="/blog">ALL POSTS</a></li>
						<li class="dropdown">
				        		<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"> CATEGORIES <span class="caret"></span></a>
				        		<ul class="dropdown-menu" role="menu">
								<?php 
while (categories()) {
    ?>
									<li><a href="<?php 
    echo category_url();
    ?>
" title="<?php 
    echo category_description();
    ?>
"><?php 
    echo strtoupper(category_title());
    ?>
 <span class="badge"><?php 
    echo category_count();
    ?>
</span></a></li>
								<?php 
}
?>
							</ul>
						</li>
					  </ul>
					</div>
				  </div>
				</nav>
			</header>