示例#1
0
文件: plus.php 项目: siteorigin/focus
function focus_plus_before_menu()
{
    if (siteorigin_setting('menu_search')) {
        get_search_form();
        focus_display_icon('search');
    }
}
示例#2
0
?>

		<?php 
if (siteorigin_setting('icons_post_navigation')) {
    ?>
			<?php 
    focus_navigation_arrows();
    ?>
		<?php 
}
?>

		<div class="container">
			<div class="post-heading">
				<?php 
focus_display_icon('icons_post_previous');
?>
				<h1><?php 
the_title();
?>
</h1>
				<?php 
if (has_excerpt()) {
    ?>
<p><?php 
    the_excerpt();
    ?>
</p><?php 
}
?>
			</div>
示例#3
0
 /**
  * Display a custom icons from the settings
  */
 function focus_navigation_arrows()
 {
     $previous_icon = focus_display_icon('previous');
     $next_icon = focus_display_icon('next');
     previous_post_link('<div class="nav-previous-post">%link</div>', $previous_icon);
     next_post_link('<div class="nav-next-post">%link</div>', $next_icon);
 }