當前位置: 首頁>>代碼示例>>PHP>>正文


PHP weblizar_get_options函數代碼示例

本文整理匯總了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));
}
開發者ID:sleeping-lion,項目名稱:dojisa,代碼行數:20,代碼來源:functions.php

示例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">
開發者ID:patrickcurl,項目名稱:monks,代碼行數:31,代碼來源:home-slider.php

示例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> &nbsp; <?php 
echo $contact_phone_no;
?>
</p>
開發者ID:harleybalo,項目名稱:nation,代碼行數:31,代碼來源:page_contact-page.php


注:本文中的weblizar_get_options函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。