本文整理汇总了PHP中weblizar_get_options函数的典型用法代码示例。如果您正苦于以下问题:PHP weblizar_get_options函数的具体用法?PHP weblizar_get_options怎么用?PHP weblizar_get_options使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了weblizar_get_options函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: weblizar_scripts
function weblizar_scripts()
{
//** font-awesome-4.2.0 **//
wp_enqueue_style('font-awesome-css', WL_TEMPLATE_DIR_URI . '/css/font-awesome-4.2.0/css/font-awesome.css');
wp_enqueue_style('font-awesome-min-css', WL_TEMPLATE_DIR_URI . '/css/font-awesome-4.2.0/css/font-awesome.min.css');
wp_enqueue_style('bootstrap-min', WL_TEMPLATE_DIR_URI . '/css/bootstrap.min.css');
wp_enqueue_style('responsive', WL_TEMPLATE_DIR_URI . '/css/responsive.css');
wp_enqueue_style('flat-blue', WL_TEMPLATE_DIR_URI . '/css/skins/flat-blue.css');
wp_enqueue_style('theme-menu', WL_TEMPLATE_DIR_URI . '/css/theme-menu.css');
wp_enqueue_style('carousel', WL_TEMPLATE_DIR_URI . '/css/carousel.css');
// Js
wp_enqueue_script('menu', WL_TEMPLATE_DIR_URI . '/js/menu/menu.js', array('jquery'));
wp_enqueue_script('bootstrap-js', WL_TEMPLATE_DIR_URI . '/js/bootstrap.js');
$count_posts = wp_count_posts();
$published_posts = $count_posts->publish;
$wl_theme_options = weblizar_get_options();
$blog_count = $wl_theme_options['blog_count'];
wp_enqueue_script('more-posts', WL_TEMPLATE_DIR_URI . '/js/more-posts.js');
wp_localize_script('more-posts', 'load_more_posts_var', array('counts' => $published_posts, 'blog_count' => $blog_count));
}
示例2: weblizar_get_options
<?php
$wl_theme_options = weblizar_get_options();
?>
<div class="rev-slider-full">
<div class="rev-slider-banner-full rev-slider-full">
<ul>
<li data-transition="fade" data-slotamount="7" data-masterspeed="300" >
<img src="<?php
echo GL_TEMPLATE_DIR_URI;
?>
/images/slide1-bg.jpg" alt="rev-full1" data-fullwidthcentering="on">
<?php
if ($wl_theme_options['slide_image'] != '') {
?>
<div class="tp-caption lfb stb stl" data-x="0" data-y="120" data-speed="100" data-start="200" data-easing="easeOutExpo" data-end="6000" data-endspeed="500">
<img src="<?php
echo $wl_theme_options['slide_image'];
?>
" class="img-responsive img-slide" alt="First slide">
</div>
<?php
}
?>
<div class="tp-caption very_large_text2 sft str"
data-x="672"
data-y="100"
data-speed="300"
data-start="1800"
data-easing="easeOutCubic" data-end="5800" data-endspeed="500">
示例3: get_header
}
get_header();
get_template_part('weblizar', 'breadcrumbs');
$pagename = $post->post_name;
?>
<div class="container">
<div class="content_fullwidth lessmar">
<div class="content stnd">
<img class="center-img" src="http://demo.themefuse.com/evangelist/wp-content/uploads/2013/07/phone_ico.png" alt="">
<h3 class="center">Send a Message or Contact Us Directly</h3>
<div class="middle_txt">
<p class="center">Please use the <span class="sermon">Form below</span> to send us a message</p>
</div>
<div class="middle_txt">
<?php
$_c_options = weblizar_get_options();
$_address = null;
$contact_phone_no = isset($_c_options['contact_phone_no']) ? $_c_options['contact_phone_no'] : "";
if (isset($_c_options['address'])) {
$_address = str_replace(", ", ", <br>", $_c_options['address']);
}
?>
<p class="center">
<?php
echo $_address;
?>
</p>
<p class="center"><span class="icon"><i class="fa fa-phone fa-lg"></i></span> <?php
echo $contact_phone_no;
?>
</p>