예제 #1
0
                            	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
예제 #2
0
        </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>
예제 #3
0
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) {
    }
}
예제 #4
0
<?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 
예제 #5
0
        }
    }
}
?>

<?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();
예제 #6
0
	      	<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 
}
?>
예제 #7
0
function bd_excerpt_home_length($length)
{
    if (bdayh_get_option('home_exc_length')) {
        return bdayh_get_option('home_exc_length');
    } else {
        return 13;
    }
}
예제 #8
0
  <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>
예제 #9
0
 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 
예제 #10
0
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">
예제 #11
0
  <?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');
예제 #12
0
    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>
            <input id="<?php 
        echo $this->get_field_id('gplusn');
        ?>
" name="<?php 
        echo $this->get_field_name('gplusn');
        ?>
" value="<?php 
        echo $instance['gplusn'];
        ?>
" class="widefat" type="text" />
        </p>
        <p>
            <label for="<?php 
        echo $this->get_field_id('youtubeun');
        ?>
"><?php 
        _e('Youtube User ID : ', 'bd');
        ?>
</label>
            <input id="<?php 
        echo $this->get_field_id('youtubeun');
        ?>
" name="<?php 
        echo $this->get_field_name('youtubeun');
        ?>
" value="<?php 
        echo $instance['youtubeun'];
        ?>
" class="widefat" type="text" />
        </p>
        <p>
            <label for="<?php 
        echo $this->get_field_id('vimocn');
        ?>
"><?php 
        _e('Vimeo Channel Name : ', 'bd');
        ?>
</label>
            <input id="<?php 
        echo $this->get_field_id('vimocn');
        ?>
" name="<?php 
        echo $this->get_field_name('vimocn');
        ?>
" value="<?php 
        echo $instance['vimocn'];
        ?>
" class="widefat" type="text" />
        </p>
        <p>
            <label for="<?php 
        echo $this->get_field_id('soundcloudun');
        ?>
"><?php 
        _e('Soundcloud User Name : ', 'bd');
        ?>
</label>
            <input id="<?php 
        echo $this->get_field_id('soundcloudun');
        ?>
" name="<?php 
        echo $this->get_field_name('soundcloudun');
        ?>
" value="<?php 
        echo $instance['soundcloudun'];
        ?>
" class="widefat" type="text" />
        </p>
        <p>
            <label for="<?php 
        echo $this->get_field_id('socialstyle');
        ?>
"><?php 
        _e('Design Style : ', 'bd');
        ?>
</label>
            <select id="<?php 
        echo $this->get_field_id('socialstyle');
        ?>
" name="<?php 
        echo $this->get_field_name('socialstyle');
        ?>
" class="widefat">
                <option <?php 
        if ('style1' == $instance['socialstyle']) {
            echo 'selected="selected"';
        }
        ?>
>style1</option>
                <option <?php 
        if ('style2' == $instance['socialstyle']) {
            echo 'selected="selected"';
        }
        ?>
>style2</option>
                <option <?php 
        if ('style3' == $instance['socialstyle']) {
            echo 'selected="selected"';
        }
        ?>
>style3</option>
                <option <?php 
        if ('style4' == $instance['socialstyle']) {
            echo 'selected="selected"';
        }
        ?>
>style4</option>
            </select>
        </p>
    <?php 
    }
예제 #13
0
<?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']) {
예제 #14
0
	      	<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('blog_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 
}
?>
예제 #15
0
<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 
예제 #16
0
		<?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();
?>
예제 #17
0
<?php

/**************************************************************
 *                                                            *
 *   Provides a notification to the user everytime            *
 *   your WordPress theme is updated                          *
 *                                                            *
 *   Author: Joao Araujo                                      *
 *   Profile: http://themeforest.net/user/unisphere           *
 *   Follow me: http://twitter.com/unispheredesign            *
 *                                                            *
 **************************************************************/
if (bdayh_get_option('notify_theme') && is_admin()) {
    // Adds an update notification to the WordPress Dashboard menu
    function update_notifier_menu()
    {
        if (function_exists('simplexml_load_string')) {
            // Stop if simplexml_load_string funtion isn't available
            $xml = get_latest_theme_version(MTHEME_NOTIFIER_CACHE_INTERVAL);
            // Get the latest remote XML file on our server
            $theme_data = wp_get_theme();
            // Read theme current version from the style.css
            if (version_compare($xml->latest, $theme_data['Version'], '>')) {
                // Compare current theme version with the remote XML version
                //add_theme_page( MTHEME_NOTIFIER_THEME_NAME . ' Theme Updates', MTHEME_NOTIFIER_THEME_NAME . ' <span class="update-plugins count-1"><span class="update-count">1 Update</span></span>', 'administrator', 'theme-update-notifier', 'update_notifier');
                add_submenu_page('bdayh', MTHEME_NOTIFIER_THEME_NAME . ' Theme Updates', MTHEME_NOTIFIER_THEME_NAME . ' <span class="update-plugins count-1"><span class="update-count">1 Update</span></span>', 'administrator', 'theme-update-notifier', 'update_notifier');
            }
        }
    }
    add_action('admin_menu', 'update_notifier_menu');
    // Adds an update notification to the WordPress 3.1+ Admin Bar
예제 #18
0
get_header();
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
<div <?php 
        post_class();
        ?>
 id="post-<?php 
        the_ID();
        ?>
">
  <div class="box_inner">
    <div class="news_box">
		<?php 
        if (bdayh_get_option('article_crumbs') == 1) {
            ?>
			<div class="pp-breadcrumbs">
			<?php 
            bd_breadcrumbs();
            ?>
			</div><!--//end breadcrumbs-->
		<?php 
        }
        ?>
      <h2 class="news_box_title4 page-titles-pp"><?php 
        the_title();
        ?>
</h2><!--//end entry title-->
      <div class="inner_post pp-code post-page-entry-pp">
	 	<?php 
예제 #19
0
    ?>
                <?php 
    require BD_TM . '/breakingnews.php';
    ?>
            <?php 
}
?>

            <?php 
if (bdayh_get_option('show_alert_bar') == 1) {
    ?>
                <div class="content">
                    <div class="alert_home">
                        <p>
                            <?php 
    echo stripslashes(bdayh_get_option('show_alert_content'));
    ?>
                        </p>
                        <span class="alert_home_close"><img alt="" src="<?php 
    echo get_template_directory_uri();
    ?>
/assets/images/close-exit.png" /></span>
                    </div>
                </div>
            <?php 
}
?>

            <div class="content_wrapper">
                <div class="wrapper">
                    <div class="inner_wrapper">
예제 #20
0
if (bdayh_get_option('linkedin_button_boxy') == 1) {
    ?>
  <div class="share_button_boxy">
    <script src="//platform.linkedin.com/in.js" type="text/javascript"></script>
    <script type="IN/Share" data-url="<?php 
    the_permalink();
    ?>
" data-counter="top"></script>
  </div>
  <!--//linkedin-->
  <?php 
}
?>
  
  <?php 
if (bdayh_get_option('stumbleupon_button_boxy') == 1) {
    ?>
  <div class="share_button_boxy">
    <!-- Place this tag where you want the su badge to render -->
    <su:badge layout="5" location="<?php 
    the_permalink();
    ?>
"></su:badge>
    
    <!-- Place this snippet wherever appropriate -->
    <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);
  })();
예제 #21
0
                      <?php 
    the_author();
    ?>
                      </span></h2>
                    <?php 
    bd_author_box(get_the_author_meta('ID'));
    ?>
                  </div>
                </div>
                <!--//end author box-->
            <?php 
}
?>

            <?php 
if (bdayh_get_option('article_related') == 1) {
    ?>
                <?php 
    require BD_TM . '/related.php';
    ?>
            <?php 
}
?>

            <?php 
if (comments_open() && !post_password_required()) {
    ?>
                <?php 
    comments_template('', true);
    ?>
            <?php 
예제 #22
0
                }
                ?>

		          </div>
	          <?php 
            }
            ?>

				<div class="pp-code post-page-entry-pp">
					<?php 
            the_content();
            ?>
					</div><!--//END Content-->

				    <?php 
            if (bdayh_get_option('blog_home_share_post_buttons') == 1) {
                ?>
	         			<div class="full-social">
							<?php 
                require BD_TM . '/social-shers.php';
                ?>
					</div>
					<?php 
            }
            ?>

		        </div>
		      </li>
		    <?php 
        } else {
            ?>
예제 #23
0
                case "scrolling_box":
                    require BD_TM . 'scrollingbox.php';
                    break;
                case "ads_box":
                    require BD_TM . 'box-ads-home.php';
                    break;
                case "recent_box":
                    require BD_TM . 'recentposts.php';
                    break;
            }
        }
    }
}
?>
  <?php 
if (bdayh_get_option('feature_tabs') == 1) {
    ?>
  <?php 
    require BD_TM . '/box-tabs.php';
    ?>
  <?php 
}
?>
</div>
<!--//content-->

<div class="sidebar_wrapper">
  <?php 
get_sidebar();
?>
</div>
예제 #24
0
            ?>
</a></span> <a href="<?php 
            echo get_category_link(bdayh_get_option('feature_small_cat8'));
            ?>
" class="sc-more">more</a> </h2>
	      <!-- sc-title/-->
	      <div class="sc-content">
	      	<a href="<?php 
            the_permalink();
            ?>
" title="<?php 
            printf(esc_attr__('s', 'bd'), the_title_attribute('echo=0'));
            ?>
" rel="bookmark">
	      		<?php 
            $timthumb = bdayh_get_option('timthumb');
            if ($timthumb == true) {
                ?>
				<img src="<?php 
                echo BD_URI;
                ?>
/timthumb.php?src=<?php 
                echo bd_post_image('large');
                ?>
&amp;h=90&amp;w=100&amp;zc=1" alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
예제 #25
0
    function form($instance)
    {
        $defaults = array('title' => __('Recent Tweets', 'bd'), 'count' => 5);
        $instance = wp_parse_args((array) $instance, $defaults);
        ?>
    	<?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>';
        }
        ?>
        <label for="<?php 
        echo $this->get_field_id('title');
        ?>
"><?php 
        _e('Title:', 'bd');
        ?>
</label>
        <input style="width: 216px;" id="<?php 
        echo $this->get_field_id('title');
        ?>
" name="<?php 
        echo $this->get_field_name('title');
        ?>
" value="<?php 
        echo $instance['title'];
        ?>
" />
    </p>
    <p>
        <label for="<?php 
        echo $this->get_field_id('count');
        ?>
"><?php 
        _e('Number of Tweets:', 'bd');
        ?>
</label>
        <input style="width: 216px;" id="<?php 
        echo $this->get_field_id('count');
        ?>
" name="<?php 
        echo $this->get_field_name('count');
        ?>
" value="<?php 
        echo $instance['count'];
        ?>
" />
    </p>
<?php 
    }