当前位置: 首页>>代码示例>>PHP>>正文


PHP bdayh_get_option函数代码示例

本文整理汇总了PHP中bdayh_get_option函数的典型用法代码示例。如果您正苦于以下问题:PHP bdayh_get_option函数的具体用法?PHP bdayh_get_option怎么用?PHP bdayh_get_option使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了bdayh_get_option函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: bdayh_get_option

                            	jQuery("#feature_category").hide();
								jQuery(".lates").hide();
								jQuery(".get_my_tags").fadeIn();
							}
                            else
                            {
                            	jQuery("#feature_category").fadeIn();
								jQuery(".lates").hide();
								jQuery(".get_my_tags").hide();
                            }
	                    });
                    });
        		</script>');
$feature_display_category = bdayh_get_option('feature_display') != 'category' ? 'hidden' : '';
$bd_options["slider_settings"]['feature_display'][] = array("name" => __('Feature Category', 'bd'), "label" => __('Feature Category', 'bd'), "id" => "feature_category", "type" => "select", "class" => $feature_display_category, "list" => "cats");
$feature_display_category = bdayh_get_option('feature_display') != 'tag' ? 'hidden' : '';
$bd_options["slider_settings"]['feature_display'][] = array("name" => __('Feature Tag', 'bd'), "label" => __('Feature Tag', 'bd'), "id" => "feature_tag", "class" => $feature_display_category . " get_my_tags", "type" => "tags");
/* Seo settings
--------------------------------------------------------------*/
$bd_options["seo"][] = array("name" => __('SEO', 'bd'), "label" => __('Enable SEO', 'bd'), "tip" => __('Enable SEO', 'bd'), "id" => "seo_settings", "type" => "checkbox");
$bd_options["seo"][] = array("name" => __('SEO', 'bd'), "label" => __('Keywords', 'bd'), "tip" => __('Add Your Keywords', 'bd'), "id" => "seo_keywords", "type" => "textarea", "class" => "textarea_full");
/* Skins Colors settings
--------------------------------------------------------------*/
$bd_options["custom_css"][] = array("name" => __('Custom CSS', 'bd'), "label" => __('Custom CSS', 'bd'), "tip" => __('Add Your Custom CSS', 'bd'), "id" => "custom_css", "type" => "textarea", "class" => "textarea_full");
$bd_options["custom_css"][] = array("name" => __('Custom CSS For Device With 768px Width Like Ipad', 'bd'), "label" => __('Custom CSS', 'bd'), "tip" => __('Custom CSS For Device With 768px Width Like Ipad', 'bd'), "id" => "custom_768", "type" => "textarea", "class" => "textarea_full");
$bd_options["custom_css"][] = array("name" => __('Custom CSS For Device With 480px Width Like Landscape Phones', 'bd'), "label" => __('Custom CSS', 'bd'), "tip" => __('Custom CSS For Device With 480px Width Like Landscape Phones', 'bd'), "id" => "custom_480", "type" => "textarea", "class" => "textarea_full");
$bd_options["custom_css"][] = array("name" => __('Custom CSS For Device With 320px Width Like IPhones', 'bd'), "label" => __('Custom CSS', 'bd'), "tip" => __('Custom CSS For Device With 320px Width Like IPhones', 'bd'), "id" => "custom_320", "type" => "textarea", "class" => "textarea_full");
$bd_options["character_sets"]["typography_character_sets"][] = array("name" => "Latin Extended", "label" => "Latin Extended", "id" => "wp_typography_latin_extended", "exp" => "Check to enable the Latin Extended, uncheck to disable", "type" => "checkbox");
// Latin Extended
$bd_options["character_sets"]["typography_character_sets"][] = array("name" => "Cyrillic", "label" => "Cyrillic", "id" => "wp_typography_cyrillic", "exp" => "Check to enable the Cyrillic, uncheck to disable", "type" => "checkbox");
//Cyrillic
开发者ID:hunghoang179,项目名称:sitenews,代码行数:31,代码来源:setting.php

示例2: jQuery

        </ul>
        </div><!--//End -->
</div>
<script type="text/javascript" charset="utf-8">
jQuery(window).load(function(){

		jQuery('.flexslider-pp').flexslider({
			animation: "fade",
			slideshow: true,
			touch: true,
			slideshowSpeed: <?php 
echo stripslashes(bdayh_get_option('feature_slider_speed'));
?>
,
			animationSpeed: <?php 
echo stripslashes(bdayh_get_option('feature_slider_animation'));
?>
,
			video: true,

			after: function(slider) {
			  jQuery('.flexslider-caption').animate({bottom:0,}, 400)},
			before: function(slider) {
			  jQuery('.flexslider-caption').animate({ bottom:-105,}, 400)},
			start: function(slider){
			  jQuery('body').removeClass('loading');
			  jQuery('.flexslider-caption').animate({ bottom:0,}, 400)
			}
		});
});
</script>
开发者ID:hunghoang179,项目名称:sitenews,代码行数:31,代码来源:slider-flex.php

示例3: radio_bgtype_input

function radio_bgtype_input($input, $head = true)
{
    $bd_option = unserialize(get_option('bdayh_setting'));
    if ($head == true) {
        ?>
    <?php 
    }
    ?>

    <div class="bd_option_item <?php 
    $class_name = isset($input['class']) ? $input['class'] : "";
    echo $class_name;
    ?>
">
        <span class="label"><?php 
    echo $input['label'];
    ?>
</span>

        <div class="check_radio_content">

            <?php 
    foreach ($input['options'] as $key => $option) {
        ?>
                <label class="check_radio"><input name="bd_setting[<?php 
        echo $input['id'];
        ?>
]" id="<?php 
        echo $input['id'];
        ?>
" type="radio" value="<?php 
        echo $key;
        ?>
" <?php 
        if (bdayh_get_option($input['id']) == $key) {
            echo ' checked="checked"';
        }
        ?>
> <?php 
        echo $option;
        ?>
</label>
            <?php 
    }
    ?>

        </div>
    </div><!--//End item-->

    <?php 
    if ($head == true) {
    }
}
开发者ID:hunghoang179,项目名称:sitenews,代码行数:53,代码来源:layout_functions.php

示例4: get_header

<?php

/*
Template Name: Blog List
*/
get_header();
?>

<div class="sidebar_content">

    <?php 
if (bdayh_get_option('feature_slider') == 1) {
    ?>

		<?php 
    if (bdayh_get_option('slider_type') == 'cycleslider') {
        ?>
	 		<?php 
        require BD_TM . '/slider.php';
        ?>
	    <?php 
    } else {
        ?>
	 		<?php 
        require BD_TM . '/slider-flex.php';
        ?>
	    <?php 
    }
    ?>

  <?php 
开发者ID:hunghoang179,项目名称:sitenews,代码行数:31,代码来源:blog-list.php

示例5: get_sidebar

        }
    }
}
?>

<?php 
if (bdayh_get_option('feature_tabs') == 1) {
    ?>
    <?php 
    require BD_TM . '/box-tabs.php';
}
?>
</div><!-- content/-->

<div class="sidebar_wrapper">
<?php 
get_sidebar();
?>
</div>

<div class="clear"></div>
<?php 
if (bdayh_get_option('feature_smallcat') == 1) {
    ?>
    <?php 
    require BD_TM . '/small-cat.php';
}
?>

<?php 
get_footer();
开发者ID:hunghoang179,项目名称:sitenews,代码行数:31,代码来源:index.php

示例6: the_permalink

	      	<script type="text/javascript" src="http://assets.pinterest.com/js/pinit.js">
	      	</script>
	      	<a href="http://pinterest.com/pin/create/button/?url=<?php 
    the_permalink();
    ?>
&amp;media=<?php 
    echo bd_pin_image('', 660, 330);
    ?>
" class="pin-it-button" count-layout="horizontal"><img border="0" src="http://assets.pinterest.com/images/PinExt.png" title="Pin It" /></a>
		  </div><!--//pinterest-->
    	<?php 
}
?>

		<?php 
if (bdayh_get_option('article_home_su') == 1) {
    ?>
		  <div class="pp-stumble">
			<su:badge layout="2"></su:badge>
			<script type="text/javascript">
				(function() {
					var li = document.createElement('script'); li.type = 'text/javascript'; li.async = true;
					li.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + '//platform.stumbleupon.com/1/widgets.js';
					var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(li, s);
				})();
			</script>
		  </div><!--//stumble-->
	  	<?php 
}
?>
开发者ID:hunghoang179,项目名称:sitenews,代码行数:30,代码来源:post-social-shers.php

示例7: bd_excerpt_home_length

function bd_excerpt_home_length($length)
{
    if (bdayh_get_option('home_exc_length')) {
        return bdayh_get_option('home_exc_length');
    } else {
        return 13;
    }
}
开发者ID:hunghoang179,项目名称:sitenews,代码行数:8,代码来源:functions.php

示例8: footer_widget_social

  <div class="wrapper">
    <div class="content"> <?php 
echo footer_widget_social();
?>
 <span class="copyrights alignleft">
      <?php 
if (bdayh_get_option('copyrights')) {
    ?>
        <?php 
    echo stripslashes(bdayh_get_option('copyrights'));
    ?>
      <?php 
} else {
    ?>
        &#169; Copyright 2013, All Rights Reserved. | Powered by <a href="http://www.wordpress.com">WordPress</a> | Designed by <a href="http://themeforest.net/user/bdayh">bdayh</a>
      <?php 
}
?>
      </span> </div>
  </div>
</div><!-- footer bottom/-->

<div class="gotop"> <a title="Go Top"> </a> </div>
<?php 
echo stripslashes(bdayh_get_option('google_analytics'));
include BD_FU . '/custom-js.php';
echo stripslashes(bdayh_get_option('footer_code'));
wp_footer();
?>
</body>
</html>
开发者ID:hunghoang179,项目名称:sitenews,代码行数:31,代码来源:footer.php

示例9: get_the_category

 global $post;
 $cats = get_the_category($post->ID);
 if ($cats) {
     $cat_ids = array();
     foreach ($cats as $individual_cat) {
         $cat_ids[] = $individual_cat->cat_ID;
     }
     $args = array('category__in' => $cat_ids, 'post__not_in' => array($post->ID), 'showposts' => bdayh_get_option('article_related_numb'), 'ignore_sticky_posts' => 1);
     query_posts($args);
     ?>
     <?php 
     while (have_posts()) {
         the_post();
         ?>
         <?php 
         if (bdayh_get_option('related_style') == 'images') {
             ?>
             <li class="related_item">
                 <?php 
             if (bd_post_image() == false) {
             } else {
                 ?>
                     <?php 
                 $thumb = bd_post_image('large');
                 $ntImage = aq_resize($thumb, 67, 67, true);
                 ?>
                     <?php 
                 if (strpos(bd_post_image(), 'youtube')) {
                     ?>
                         <div class="post_thumbnail">
                             <a href="<?php 
开发者ID:hunghoang179,项目名称:sitenews,代码行数:31,代码来源:related.php

示例10: category_description

if (bdayh_get_option('category_desc')) {
    $category_description = category_description();
    if (!empty($category_description)) {
        echo '<div class="archive-desc">' . $category_description . '</div><div class="clear"></div>';
    }
}
?>
    </div>
  </div>

		<?php 
get_template_part('loop', 'archive');
?>

		<?php 
if (bdayh_get_option('archives_pagination') == 1) {
    ?>
			<?php 
    if ($wp_query->max_num_pages > 1) {
        bd_pagenavi();
    }
    ?>
		<?php 
}
?>

  <div class="clear"></div>
</div>
<!--//content-->

<div class="sidebar_wrapper">
开发者ID:hunghoang179,项目名称:sitenews,代码行数:31,代码来源:archive.php

示例11: jQuery

  <?php 
}
?>

</div>
<script type="text/javascript">

jQuery(document).ready(function (jQuery){
jQuery('.top_slider .items, #slider').cycle({
	fx: 'fade',
	speed: <?php 
echo stripslashes(bdayh_get_option('feature_slider_animation'));
?>
,
	timeout: <?php 
echo stripslashes(bdayh_get_option('feature_slider_speed'));
?>
,
	prev :'#slider_prev',
	next :'#slider_next',
	pause: true,
	cleartype: true,
	cleartypeNoBg: true,
	pager: 'ul.small_thumbs',
	after: feature_after,
	before: onbefore,
	pagerAnchorBuilder: function(idx, slide) {
	return 'ul.small_thumbs li:eq(' + (idx) + ')';
	}});
		jQuery('ul.small_thumbs li').hover(function() {
		jQuery('.top_slider .items').cycle('pause');
开发者ID:hunghoang179,项目名称:sitenews,代码行数:31,代码来源:slider.php

示例12: form

    function form($instance)
    {
        $defaults = array('title' => __('Follow Me', 'bd'));
        $instance = wp_parse_args((array) $instance, $defaults);
        ?>
        <p>
            <label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Title : ', 'bd');
        ?>
</label>
            <input id="<?php 
        echo $this->get_field_id('title');
        ?>
" name="<?php 
        echo $this->get_field_name('title');
        ?>
" value="<?php 
        echo $instance['title'];
        ?>
" class="widefat" type="text" />
        </p>
        <p>
            <label for="<?php 
        echo $this->get_field_id('rssurl');
        ?>
"><?php 
        _e('Feed URL : ', 'bd');
        ?>
</label>
            <input id="<?php 
        echo $this->get_field_id('rssurl');
        ?>
" name="<?php 
        echo $this->get_field_name('rssurl');
        ?>
" value="<?php 
        echo $instance['rssurl'];
        ?>
" class="widefat" type="text" />
        </p>

        <?php 
        $consumer_key = bdayh_get_option('twitter_consumer_key');
        $consumer_secret = bdayh_get_option('twitter_consumer_secret');
        $twitter_id = bdayh_get_option('twitter_username');
        if (empty($twitter_id) && empty($consumer_key) && empty($consumer_secret)) {
            echo '<p style="display:block; padding: 5px; font-weight:bold; clear:both; color: #990000;">Error : Setup Twitter API settings Go to Theme panel > Twitter API</p>';
        }
        ?>
        <p>
            <label for="<?php 
        echo $this->get_field_id('twitter');
        ?>
"><?php 
        _e('Twitter : ', 'bd');
        ?>
</label>
            <input id="<?php 
        echo $this->get_field_id('twitter');
        ?>
" name="<?php 
        echo $this->get_field_name('twitter');
        ?>
"  value="true" <?php 
        if ($instance['twitter']) {
            echo 'checked="checked"';
        }
        ?>
 type="checkbox"  />
        </p>
        <p>
            <label for="<?php 
        echo $this->get_field_id('facebookn');
        ?>
"><?php 
        _e('Facebook Page ID/Name : ', 'bd');
        ?>
</label>
            <input id="<?php 
        echo $this->get_field_id('facebookn');
        ?>
" name="<?php 
        echo $this->get_field_name('facebookn');
        ?>
" value="<?php 
        echo $instance['facebookn'];
        ?>
" class="widefat" type="text" />
        </p>
        <p>
            <label for="<?php 
        echo $this->get_field_id('gplusn');
        ?>
"><?php 
        _e('Google+ Page ID/Name : ', 'bd');
        ?>
</label>
//.........这里部分代码省略.........
开发者ID:hunghoang179,项目名称:sitenews,代码行数:101,代码来源:social-counter.php

示例13: stripslashes

<?php 
}
if (bdayh_get_option('margin_top_header_ads')) {
    ?>
header .headerads
{
	margin-top: <?php 
    echo stripslashes(bdayh_get_option('margin_top_header_ads'));
    ?>
px !important;
}
<?php 
}
global $custom_typography;
foreach ($custom_typography as $selector => $input) {
    $option = bdayh_get_option($input);
    if ($option['font'] || $option['color'] || $option['size'] || $option['weight'] || $option['style']) {
        echo "\n" . $selector . "{\n";
        if ($option['font']) {
            echo "\tfont-family: '" . bd_get_font($option['font']) . "';\n";
        }
        if ($option['color']) {
            echo "\tcolor :" . $option['color'] . ";\n";
        }
        if ($option['size']) {
            echo "\tfont-size : " . $option['size'] . "px;\n";
        }
        if ($option['weight']) {
            echo "\tfont-weight: " . $option['weight'] . ";\n";
        }
        if ($option['style']) {
开发者ID:hunghoang179,项目名称:sitenews,代码行数:31,代码来源:custom-css.php

示例14: stripslashes

<div class="newsticker">
  <span class="title"><?php 
echo stripslashes(bdayh_get_option('newsticker_title'));
?>
</span>
  <ul class="newsticker_scroller">
    <?php 
$f_display = bdayh_get_option('newsticker_display');
$f_cat = bdayh_get_option('newsticker_category');
$f_tag = bdayh_get_option('newsticker_tag');
?>

    <?php 
if ($f_display == 'lates') {
    ?>
    	<?php 
    query_posts(array('showposts' => 7));
    ?>
    <?php 
} elseif ($f_display == 'category') {
    ?>
    	<?php 
    query_posts(array('showposts' => 7, 'cat' => $f_cat));
    ?>
    <?php 
} elseif ($f_display == 'tag') {
    ?>
    	<?php 
    query_posts(array('showposts' => 7, 'tag' => $f_tag));
    ?>
    <?php 
开发者ID:hunghoang179,项目名称:sitenews,代码行数:31,代码来源:breakingnews.php

示例15: wp_reset_query

		<?php 
}
?>
	    <?php 
wp_reset_query();
?>
      </div>
      <!--//end entry-->

      <?php 
wp_link_pages(array('next_or_number' => 'next', 'previouspagelink' => ' &laquo; ', 'nextpagelink' => ' &raquo;'));
?>


      <?php 
if (bdayh_get_option('pages_socail_buttons') == 1) {
    ?>
      <?php 
    require BD_TM . '/social_shers.php';
    ?>
      <!--//postmeta_share-->
      <?php 
}
?>
    </div>
  </div>
  <!--//end post-->

  <?php 
comments_template();
?>
开发者ID:hunghoang179,项目名称:sitenews,代码行数:31,代码来源:page.php


注:本文中的bdayh_get_option函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。