本文整理汇总了PHP中zl_option函数的典型用法代码示例。如果您正苦于以下问题:PHP zl_option函数的具体用法?PHP zl_option怎么用?PHP zl_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zl_option函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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>
示例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*>
//.........这里部分代码省略.........
示例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
示例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;
示例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>
示例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
示例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()
{
示例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();
示例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>
示例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;
}
示例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
}
示例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>