本文整理汇总了PHP中zl_option函数的典型用法代码示例。如果您正苦于以下问题:PHP zl_option函数的具体用法?PHP zl_option怎么用?PHP zl_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zl_option函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: zatolab_wp_title
/**
* Create a nicely formatted and more specific title element text for output
* in head of document, based on current view.
*
* @since Dichan 1.0
*
* @param string $title Default title text for current view.
* @param string $sep Optional separator.
* @return string The filtered title.
*/
function zatolab_wp_title($title, $sep)
{
global $paged, $page;
if (is_feed()) {
return $title;
}
// Add the site name.
$title .= get_bloginfo('name');
// Add the site description for the home/front page.
$site_description = get_bloginfo('description', 'display');
if ($site_description && (is_home() || is_front_page())) {
$title = "{$title} {$sep} {$site_description}";
}
// Add a page number if necessary.
if ($paged >= 2 || $page >= 2) {
$title = "{$title} {$sep} " . sprintf(zl_option('lang_pagednumb', __('Page %s', 'zatolab')), max($paged, $page));
}
return $title;
}
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:29,代码来源:sitetitle.php
示例2: bloginfo
echo $logo;
?>
" alt="<?php
bloginfo('title');
?>
"/></a>
<?php
}
?>
</div>
</div>
</div>
</footer>
<div class="clear"></div>
</div> <!-- END class="mp-pusher" id="mp-pusher" -->
<div class="clear"></div>
<div class="zl_backtotop" style="display: block;">
<span class="dashicons dashicons-arrow-up-alt2"></span>
</div>
<div class="clear"></div>
<div class="mobileonly">
<?php
get_template_part('inc/parts/msidebar');
?>
</div>
<?php
echo zl_option('tracker');
wp_footer();
?>
</body>
</html>
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:31,代码来源:footer.php
示例3: zl_option
<?php
}
?>
<?php
if ($skills) {
?>
<li><div class="dashicons dashicons-performance"></div> <?php
echo $skills;
?>
</li>
<?php
}
?>
</ul>
<div class="clear"></div>
<a href="<?php
echo $currenturl;
?>
" class="zl_post_readmore"><?php
echo zl_option('lang_portlink', __('Launch Project', 'zatolab'));
?>
</a>
</div>
</div>
<div class="clear"></div>
</div> <!-- End large-4 -->
<div class="clear"></div>
</div><!-- // End .Portfolio Wrapper -->
<div class="clear"></div>
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:31,代码来源:portfoliodetail.php
示例4: widget
/**
* Outputs the HTML for this widget.
*
* @param array An array of standard parameters for widgets in this theme
* @param array An array of settings for this widget instance
* @return void Echoes it's output
**/
function widget($args, $instance)
{
extract($args, EXTR_SKIP);
$title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
$fetch = empty($instance['fetch']) ? ' ' : apply_filters('widget_title', $instance['fetch']);
echo $before_widget;
echo $before_title;
echo $title;
// Can set this with a widget option, or omit altogether
echo $after_title;
//
// Widget display logic goes here
//
/*oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo*/
/* Here We Go, BUild the Gate to prevent headache to find out which the Output*/
/*oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo*/
?>
<div class="row albwidget">
<?php
global $wp_query;
$args = array('post_type' => 'zl_album', 'post_status' => 'publish', 'orderby' => 'DATE', 'order' => 'DESC', 'posts_per_page' => $fetch, 'ignore_sticky_posts' => 1);
$album = new WP_Query($args);
?>
<?php
if ($album->have_posts()) {
while ($album->have_posts()) {
$album->the_post();
//Let's Generate the Thumbnail.
$thumb = get_post_thumbnail_id();
$img_url = wp_get_attachment_url($thumb, 'full');
$image = zl_theme_thumb($img_url, 100, 100, 'c', true);
//Get Gallery Images
$gallery = get_post_gallery_images();
//Count Images
$items = count($gallery);
//Get the First Item if featured image isn't set.
$firstimg = reset($gallery);
$firstimg = str_replace('-150x150', '', $firstimg);
//Crop the first image.
$firstimg = zl_theme_thumb($firstimg, 100, 100, 'c', true);
?>
<!-- Album Loop -->
<div class="small-4 column tooltip" title="<?php
the_title();
?>
| <?php
echo $items . zl_option('lang_photos', __(' Photos', 'zatolab'));
?>
">
<div class="zl_alb_wid" title="<?php
the_title();
?>
| <?php
echo $items . zl_option('lang_photos', __(' Photos', 'zatolab'));
?>
">
<div data-albumlink='<?php
the_permalink();
?>
' data-albumid="album-<?php
the_ID();
?>
">
<a href="<?php
the_permalink();
?>
" class="abs"> </a>
<a href="<?php
the_permalink();
?>
" title="<?php
the_title();
?>
">
<?php
if ($image) {
echo '<img src="' . $image . '" alt="' . get_the_title() . '" />';
} else {
echo '<img src="' . $firstimg . '" alt="' . get_the_title() . '" />';
}
?>
</a>
</div>
</div>
</div><!-- // .zl_album_parent large-3 Album Loop -->
<?php
}
}
?>
</div>
<?php
/*oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo*/
/* </END of: Here We Go, BUild the Gate to prevent headache to find out which the Output*>
//.........这里部分代码省略.........
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:101,代码来源:recentalbums.php
示例5: zl_option
echo zl_option('favicon_144');
?>
">
<!-- For iPhone with high-resolution Retina display: -->
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php
echo zl_option('favicon_114');
?>
">
<!-- For first- and second-generation iPad: -->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php
echo zl_option('favicon_72');
?>
">
<!-- For non-Retina iPhone, iPod Touch, and Android 2.1+ devices: -->
<link rel="apple-touch-icon-precomposed" href="<?php
echo zl_option('favicon_57');
?>
">
<?php
/* <link rel="icon" href="<?php echo zl_option('favicon'); ?>" type="image/x-icon" /> */
?>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php
bloginfo('pingback_url');
?>
">
<title><?php
wp_title('|', true, 'right');
?>
</title>
<?php
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:31,代码来源:attachment.php
示例6: get_permalink
<?php
/*
if ('DESC' == $order) { ?>
<a href="<?php echo get_permalink( $post->ID ); ?>/?sortby=<?php echo get_query_var("sortby");?>&order=ASC" class="browse_order"><span class="dashicons dashicons-arrow-down-alt"></span></a>
<?php } elseif('ASC' == $order) { ?>
<a href="<?php echo get_permalink( $post->ID ); ?>/?sortby=<?php echo get_query_var("sortby");?>&order=DESC" class="browse_order"><span class="dashicons dashicons-arrow-up-alt"></span></a>
<?php } */
?>
</form>
</div>
<!-- Sorter -->
<div class="small-6 column text-right sorter postnav">
<?php
echo zl_option('lang_view', __('View: ', 'zatolab'));
?>
<a class="zl_grid_add <?php
echo $currentGrid;
?>
" data-type="zl_grid two"><span class="dashicons dashicons-screenoptions"></span></a>
<a class="zl_default_add <?php
echo $currentDef;
?>
" data-type="default"><span class="dashicons dashicons-editor-justify"></span></a>
</div>
<div class="clear"></div>
<!-- oooooooooooooooooooooooooooooooooo
Breadcrumbs
oooooooooooooooooooooooooooooooooooo-->
<div class="text-center">
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:31,代码来源:template-browse.php
示例7: printf
?>
</div>
</div><div class="clear"></div>
</div>
<div class="clear"></div>
<div class="clear albtop"></div>
<div class="row text-center">
<h1 class='zl_arcTitle'>
<?php
if (is_day()) {
printf(zl_option('lang_dailyarch', __('Daily Archives: %s', 'zatolab')), '<span>' . get_the_date() . '</span>');
} elseif (is_month()) {
printf(zl_option('lang_monthlyarch', __('Monthly Archives: %s', 'zatolab')), '<span>' . get_the_date(_x('F Y', 'monthly archives date format', 'zatolab')) . '</span>');
} elseif (is_year()) {
printf(zl_option('lang_yearlyarch', __('Yearly Archives: %s', 'zatolab')), '<span>' . get_the_date(_x('Y', 'yearly archives date format', 'zatolab')) . '</span>');
} else {
_e('Archives', 'zatolab');
}
?>
</h1>
</div>
<!-- oooooooooooooooooooooooooooooooooo
Post Entries
oooooooooooooooooooooooooooooooooooo-->
<section id="zl_content_entries">
<div class="row">
<div id="container" class="switchable-view <?php
echo $containerclass;
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:31,代码来源:archive.php
示例8: get_permalink
<?php
if ($prev) {
$url = get_permalink($prev->ID);
echo '<a href="' . $url . '" class="tooltip" title="' . get_the_title($prev->ID) . '" id="zl_older_post"><span class="dashicons dashicons-arrow-left"></span> ' . zl_option('lang_prev_post', __('Older Post', 'zatolab')) . '</a>';
}
?>
</div>
<!-- Next Post -->
<div class="small-6 column text-right postnav">
<?php
if ($next) {
$url = get_permalink($next->ID);
echo '<a href="' . $url . '" class="tooltip" title="' . get_the_title($next->ID) . '" id="zl_newer_post">' . zl_option('lang_next_post', __('Newer Post', 'zatolab')) . ' <span class="dashicons dashicons-arrow-right"></span></a>';
}
?>
</div>
<div class="clear"></div>
<!-- oooooooooooooooooooooooooooooooooo
Breadcrumbs
oooooooooooooooooooooooooooooooooooo-->
<div class="text-center">
<?php
zl_breadcrumbs();
?>
</div>
</div>
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:31,代码来源:single.php
示例9: zl_option
<!-- Mobile Navigation Bar -->
<div class="zl_m_navbar" id="zl_m_navbar">
<!-- Menu Trigger -->
<div class="zl_m_menu_btn">
<a href="#" class="zl_m_menu_trig"> </a>
</div>
<!-- Mobile Logo -->
<div class="zl_m_logo">
<?php
$logo = zl_option('logo', '');
if ($logo) {
?>
<a href="<?php
echo esc_url(home_url('/'));
?>
"><img class="zl_logo" src="<?php
echo $logo;
?>
" alt="<?php
bloginfo('title');
?>
"/></a>
<?php
} else {
?>
<h1 class="m_zl_logo">
<a href="<?php
echo esc_url(home_url('/'));
?>
"><?php
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:31,代码来源:mobileheader.php
示例10: zl_option
<?php
$customfont = zl_option('usecustomfont');
/*--------------------------------------
//add the font
--------------------------------------*/
$body_font_face = zl_option('body_font_face');
$body_font_weight = zl_option('body_font_weight');
$body_font_style = zl_option('body_font_style');
$h1_font_face = zl_option('h1_font_face');
$h1_font_weight = zl_option('h1_font_weight');
$h1_font_style = zl_option('h1_font_style');
VP_Site_GoogleWebFont::instance()->add($body_font_face, $body_font_weight, $body_font_style);
VP_Site_GoogleWebFont::instance()->add($h1_font_face, $h1_font_weight, $h1_font_style);
function zl_embed_fonts()
{
VP_Site_GoogleWebFont::instance()->register_and_enqueue();
}
if ($customfont == "1") {
add_action('wp_enqueue_scripts', 'zl_embed_fonts');
//Enqueue when use custom font is enabled
}
/**
* Register Open Sans Google font for Vienna.
*
* @since Vienna 1.0
*
* @return string
*/
function zatolab_font_url()
{
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:31,代码来源:googlefont.php
示例11: the_title
the_title();
?>
" title="<?php
the_title();
?>
"/>
<?php
} else {
echo '<img src="http://placehold.it/300x200/000000/000000" alt="no image"/>';
}
?>
<a href="<?php
the_permalink();
?>
"><?php
echo zl_option('lang_readmore', __('Read More', 'zatolab'));
?>
</a>
</div>
<h4 class="entry-title"><a href="<?php
the_permalink();
?>
" title="<?php
the_title();
?>
"><?php
the_title();
?>
</a></h4>
<span class="zl_rel_date"><span class="dashicons dashicons-calendar"></span> <?php
the_date();
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:31,代码来源:relatedposts.php
示例12: get_comments_number
<div class="row">
<div class="zl_profilebar extrabar">
<!-- pagination -->
<div class="large-12 column">
<h2 class="fword"><?php
get_comments_number();
?>
<?php
echo zl_option('lang_feedbacks', __('Feedbacks', 'zatolab'));
?>
</h2>
</div>
<div class="clear"></div>
<ul id="comment-list">
<?php
$args = array('post_ID' => get_the_ID(), 'post_id' => get_the_ID());
// The Query
$comments_query = new WP_Comment_Query();
$comments = $comments_query->query($args);
// Comment Loop
if ($comments) {
foreach ($comments as $comment) {
?>
<li>
<div class="large-1 column">
<?php
echo get_avatar($comment->comment_author_email, 50);
?>
</div>
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:29,代码来源:comments.php
示例13: add_comment_author_to_reply_link
function add_comment_author_to_reply_link($link, $args, $comment)
{
$comment = get_comment($comment);
// If no comment author is blank, use 'Anonymous'
if (empty($comment->comment_author)) {
if (!empty($comment->user_id)) {
$user = get_userdata($comment->user_id);
$author = $user->user_login;
} else {
$author = zl_option('lang_anonymous', __('Anonymous', 'zatolab'));
}
} else {
$author = $comment->comment_author;
}
// If the user provided more than a first name, use only first name
if (strpos($author, ' ')) {
$author = substr($author, 0, strpos($author, ' '));
}
// Replace Reply Link with "Reply to <Author First Name>"
$reply_link_text = $args['reply_text'];
$link = str_replace($reply_link_text, '<span class="entypo reply"></span> ' . zl_option('lang_reply', __('Reply to ', 'zatolab')) . $author, $link);
return $link;
}
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:23,代码来源:comments.php
示例14: get_the_author_meta
}
$twitter_profile = get_the_author_meta('twitter_profile');
if ($twitter_profile && $twitter_profile != '') {
echo '<li class="twitter"><a href="' . esc_url($twitter_profile) . '">Twitter</a></li>';
}
$facebook_profile = get_the_author_meta('facebook_profile');
if ($facebook_profile && $facebook_profile != '') {
echo '<li class="facebook"><a href="' . esc_url($facebook_profile) . '">Facebook</a></li>';
}
$linkedin_profile = get_the_author_meta('linkedin_profile');
if ($linkedin_profile && $linkedin_profile != '') {
echo '<li class="linkedin"><a href="' . esc_url($linkedin_profile) . '">LinkedIn</a></li>';
}
?>
</ul>
<div class="clear"></div>
<div class="zl_morepost">
<?php
echo zl_option('lang_otherpostby', __('Other posts by', 'zatolab'));
?>
<?php
the_author_posts_link();
?>
</div>
<div class="clear"></div>
</div>
</div>
</div>
</div>
<?php
}
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:31,代码来源:authorbio.php
示例15: zl_option
<?php
$welcome_headline = zl_option('welcome_headline');
$welcome_msg = zl_option('welcome_msg');
?>
<div class="zl_welcome text-center desktoponly">
<h1><?php
echo $welcome_headline;
?>
</h1>
<?php
if ($welcome_msg) {
?>
<h3><?php
echo $welcome_msg;
?>
</h3>
<?php
}
?>
</div>
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:21,代码来源:welcome.php
示例16: apf_post_form
function apf_post_form($allowNotLoggedInuser = 'yes')
{
if ($allowNotLoggedInuser == 'no' && !is_user_logged_in()) {
return;
}
?>
<div class="post frontsubmit">
<section class="submit_post">
<form id="apfform" action="" method="post" enctype="multipart/form-data">
<div class="zl_whatsnew"><?php
echo zl_option('lang_sharenew', __("Share what's new...", 'zatolab'));
?>
</div>
<!-- oooooooooooooooooooooooooooooooooo
POST FORM
oooooooooooooooooooooooooooooooooooo-->
<div class="zl_poster_outest">
<div class="large-8 column noleftpad">
<div class="zl_hidefirst">
<label for="the_title">
<input type="text" name="the_title" id="the_title" placeholder="<?php
echo zl_option('lang_postitle', __('Post Title', 'zatolab'));
?>
" autocomplete="off"/>
</label>
<label for="the_content">
<?php
/* <textarea class="zl_whatsnew" name="the_content" id="the_content"></textarea> */
// default settings
$content = '';
$settings = array('wpautop' => true, 'media_buttons' => true, 'textarea_name' => 'the_content', 'textarea_rows' => get_option('default_post_edit_rows', 10), 'tabindex' => '', 'editor_css' => '', 'editor_class' => 'frontend-article-editor', 'teeny' => false, 'dfw' => true, 'tinymce' => array('content_css' => get_template_directory_uri() . '/lib/css/editor-style.css'), 'quicktags' => true, 'drag_drop_upload' => true);
wp_editor($content, 'the_content', $settings);
?>
</label>
<div class="clear"></div>
<br class="zl_hidefirst"/>
<!-- Close Button -->
<a class="closebutton"><span class="dashicons dashicons-no"></span></a>
<div class="clear"></div>
</div>
<!-- END HIDEFIRST -->
<div class="clear"></div>
<!-- oooooooooooooooooooooooooooooooooo
POST FORMAT CHOICES
oooooooooooooooooooooooooooooooooooo-->
<div class="zl_post_format_opt">
<ul>
<li class="tooltip" title="Text">
<label for="default">
<input id="default" type="radio" name="postformatcheck" value="default" />
<span class="dashicons dashicons-admin-post"></span>
</label>
</li>
<li class="tooltip" title="Image">
<label for="Image">
<input id="Image" type="radio" name="postformatcheck" value="image" />
<span class="dashicons dashicons-camera"></span>
</label>
</li>
<li class="tooltip" title="Gallery">
<label for="Gallery">
<input id="Gallery" type="radio" name="postformatcheck" value="gallery" />
<span class="dashicons dashicons-images-alt2"></span>
</label>
</li>
<li class="tooltip" title="Status">
<label for="Status">
<input id="Status" type="radio" name="postformatcheck" value="status" />
<span class="dashicons dashicons-format-status"></span>
</label>
</li>
<li class="tooltip" title="Link">
<label for="Link">
<input id="Link" type="radio" name="postformatcheck" value="link" />
<span class="dashicons dashicons-admin-links"></span>
</label>
</li>
<li class="tooltip" title="Audio">
<label for="Audio">
<input id="Audio" type="radio" name="postformatcheck" value="audio" />
<span class="dashicons dashicons-format-audio"></span>
</label>
</li>
<li class="tooltip" title="Video">
<label for="Video">
<input id="Video" type="radio" name="postformatcheck" value="video" />
<span class="dashicons dashicons-video-alt2"></span>
</label>
</li>
<li class="tooltip" title="Quote">
<label for="Quote">
<input id="Quote" type="radio" name="postformatcheck" value="quote" />
<span class="dashicons dashicons-format-quote"></span>
</label>
</li>
<li class="tooltip" title="Aside">
<label for="Aside">
<input id="Aside" type="radio" name="postformatcheck" value="aside" />
<span class="dashicons dashicons-format-aside"></span>
</label>
//.........这里部分代码省略.........
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:101,代码来源:ajaxpost.php
示例17: widget
/**
* Outputs the HTML for this widget.
*
* @param array An array of standard parameters for widgets in this theme
* @param array An array of settings for this widget instance
* @return void Echoes it's output
**/
function widget($args, $instance)
{
extract($args, EXTR_SKIP);
$title = empty($instance['title']) ? ' ' : apply_filters('widget_title', $instance['title']);
$fetch = empty($instance['fetch']) ? ' ' : apply_filters('widget_title', $instance['fetch']);
echo $before_widget;
echo $before_title;
echo $title;
// Can set this with a widget option, or omit altogether
echo $after_title;
//
// Widget display logic goes here
//
/*oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo*/
/* Here We Go, BUild the Gate to prevent headache to find out which the Output*/
/*oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo*/
?>
<?php
$args = array('order' => 'DESC', 'status' => 'approve', 'post_type' => 'post');
// The Query
$comments_query = new WP_Comment_Query();
$comments = $comments_query->query($args);
// Comment Loop
if ($comments) {
echo '<ul class="zl_recentcomments">';
$i = 1;
foreach ($comments as $comment) {
?>
<li class="row">
<div class="row">
<div class="small-3 column">
<?php
$authormail = $comment->comment_author_email;
echo get_avatar($authormail, 48);
?>
</div>
<div class="small-9 column">
<div class="posttimestamp">
<?php
$d = "U";
$comment_date = get_comment_date($d, $comment->comment_ID);
//echo $comment_date;
echo human_time_diff($comment_date, current_time('timestamp')) . ' ago' . zl_option('lang_on', __('on', 'zatolab'));
?>
</div>
<a href="<?php
echo get_comment_link($comment->comment_ID);
?>
">
<?php
echo $comment->comment_author . ': ';
?>
<br>
<?php
echo get_the_title($comment->comment_post_ID);
?>
</a>
</div>
</div>
<div class="clear"></div>
</li> <div class="clear"></div>
<?php
if ($i++ == $fetch) {
break;
}
}
echo "</ul>";
} else {
echo 'No comments found.';
}
?>
<?php
/*oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo*/
/* </END of: Here We Go, BUild the Gate to prevent headache to find out which the Output*>
/*oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo*/
echo $after_widget;
}
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:85,代码来源:recentcomments.php
示例18: zl_option
$containerclass = 'default';
} else {
$containerclass = 'zl_grid two';
}
} else {
$containerclass = 'zl_grid two';
}
if ($containerclass == 'zl_grid two') {
$currentGrid = 'currents';
$currentDef = '';
} else {
$currentGrid = '';
$currentDef = 'currents';
}
/* Translatable Strings */
$lang_cat = zl_option('lang_cat', __('Category:', 'zatolab'));
?>
<!-- oooooooooooooooooooooooooooooooooo
Profile
oooooooooooooooooooooooooooooooooooo-->
<div class="row">
<div class="zl_profilebar singleprofbar">
<br><br><br>
<!-- oooooooooooooooooooooooooooooooooo
Breadcrumbs
oooooooooooooooooooooooooooooooooooo-->
<div class="text-center">
<?php
zl_breadcrumbs();
?>
</div>
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:31,代码来源:404.php
示例19: zl_option
<?php
$featured_cats = zl_option('featured_cats', '');
if ($featured_cats) {
$featured_cats = implode(',', $featured_cats);
}
?>
<div class="row">
<div class="large-12 column nogap">
<?php
/*echo '<pre>';
print_r($featured_cats);
echo '</pre>';*/
//echo array($featured_cats);
?>
<?php
/*$args = array(
'post_type' => 'post',
'cat' => $featured_cats,
'posts_per_page' => 5,
'orderby' => 'DATE',
);
$featured = new WP_Query($args);
if ($featured->have_posts()):
while ($featured->have_posts()):
$featured->the_post();
the_title(); echo '<br>';
endwhile;
endif;
wp_reset_query();wp_reset_postdata();*/
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:31,代码来源:featured.php
示例20: zl_option
$fixed = '';
}
?>
<div class="zl_header_3 zl_header_4">
<!-- oooooooooooooooooooooooooooooooooo
MAIN MENU
oooooooooooooooooooooooooooooooooooo-->
<div class="zlmainheader">
<!-- Logo -->
<div class="row">
<div class="medium-12 column text-center">
<?php
$logo = zl_option('logo');
if ($logo) {
?>
<a href="<?php
echo esc_url(home_url('/'));
?>
"><img class="zl_logo" src="<?php
echo $logo;
?>
" alt="<?php
bloginfo('title');
?>
"/></a>
<?php
开发者ID:webtechfreaky,项目名称:vienna-content-focused-personal-blog-theme,代码行数:31,代码来源:header4.php
注:本文中的zl_option函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论