function eff_register_style()
{
    wp_register_style('woocommerce', EFF_URI . '/woocommerce.css', 'all');
    wp_register_style('prettyphoto', EFF_CSS . '/prettyPhoto.css', 'all');
    wp_register_style('sccss', EFF_CSS . '/shortcodes.css', 'all');
    wp_register_style('responsive', EFF_CSS . '/responsive.css', 'all');
    wp_register_style('flexslider', EFF_CSS . '/flexslider.css', 'all');
    wp_register_style('dark', EFF_CSS . '/dark.css', 'all');
    wp_register_style('peru', EFF_CSS . '/skins/peru.css', 'all');
    wp_register_style('orang', EFF_CSS . '/skins/orang.css', 'all');
    wp_register_style('blue', EFF_CSS . '/skins/blue.css', 'all');
    wp_register_style('green', EFF_CSS . '/skins/green.css', 'all');
    wp_register_style('pink', EFF_CSS . '/skins/pink.css', 'all');
    wp_register_style('gray', EFF_CSS . '/skins/gray.css', 'all');
    if (eff_option('sliders') == 'filex') {
        wp_enqueue_style('flexslider');
    }
    if (class_exists('Woocommerce')) {
        wp_enqueue_style('woocommerce');
    }
}
Example #2
0
	<div class="page_title">
	    <h2><?php 
_e('About ', 'framework');
echo $curauth->display_name;
?>
</h2>
	    <span></span>
	</div>
	
        <div class="page_wrap"> 
            <div class="page_inner">
		    <ul class="author_p">
                        <li>
                            <div class="author-avatar">
			    <?php 
echo get_avatar(get_the_author_meta('user_email', $user->ID), apply_filters('MFW_author_bio_avatar_size', 100), $default = eff_option('custom_gravatar'));
?>
                            </div>
                            <h3><a href="<?php 
echo get_author_posts_url($user->ID);
?>
"><?php 
echo $user->display_name;
?>
 </a></h3>
                            
                            <div class="author-description">
                                <?php 
the_author_meta('description', $user->ID);
?>
                            </div>
Example #3
0
        ?>
            <?php 
        eff_notification();
        ?>
        <?php 
    }
    ?>
        
    <?php 
} else {
    ?>
    <!--Main-->
    <div class="main_content<?php 
    echo $sidebar;
    echo $ssidebar;
    ?>
">
        
        <?php 
    if (eff_option('notification') == true) {
        ?>
            <?php 
        eff_notification();
        ?>
        <?php 
    }
    ?>
        <!--wrap-->
        <div class="wrap">
    <?php 
}
Example #4
0
            
            <?php 
if (eff_option('b_social') == true) {
    ?>
                <?php 
    bottom_social();
    ?>
            <?php 
}
?>
            
        </div>
    </div>
    <!--Footer-->
    <?php 
if (eff_option('totop')) {
    ?>
    <div class="to_top" title="Scroll To Top">scroll to top</div>
    <?php 
}
?>
    <?php 
if (eff_option('layout') == 'fixed') {
    ?>
    </div>
    <?php 
}
wp_footer();
?>
</body>
</html>
Example #5
0
function effective_hp()
{
    if (eff_option('hp_display') == 'blog') {
        if (eff_option('slider_blog') == true) {
            eff_slider();
        }
        if (eff_option('c_blog') == true) {
            eff_scroller();
        }
        eff_blog();
    } else {
        global $smof_data;
        $homePage = $smof_data['homepage_build']['enabled'];
        if ($homePage) {
            foreach ($homePage as $key => $value) {
                switch ($key) {
                    case 'nb1':
                        ?>
                <?php 
                        eff_news_box(1);
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'nb2':
                        ?>
                <?php 
                        eff_news_box(2);
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'nb3':
                        ?>
                <?php 
                        eff_news_box(3);
                        ?>
                <?php 
                        break;
                        ?>
            
                <?php 
                    case 'nb4':
                        ?>
                <?php 
                        eff_news_box(4);
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'nb5':
                        ?>
                <?php 
                        eff_news_box(5);
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'nb6':
                        ?>
                <?php 
                        eff_news_box(6);
                        ?>
                <?php 
                        break;
                        ?>
            
                <?php 
                    case 'nb7':
                        ?>
                <?php 
                        eff_news_box(7);
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'nb8':
                        ?>
                <?php 
                        eff_news_box(8);
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'nb9':
                        ?>
                <?php 
                        eff_news_box(9);
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'nb10':
                        ?>
                <?php 
                        eff_news_box(10);
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'ads1':
                        ?>
                <?php 
                        hp_banner(1);
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'ads2':
                        ?>
                <?php 
                        hp_banner(2);
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'ads3':
                        ?>
                <?php 
                        hp_banner(3);
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'ads4':
                        ?>
                <?php 
                        hp_banner(4);
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'ads5':
                        ?>
                <?php 
                        hp_banner(5);
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'nip':
                        ?>
                <?php 
                        eff_nip();
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'nc':
                        ?>
                <?php 
                        eff_scroller();
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'slider':
                        ?>
                <?php 
                        eff_slider();
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'lv':
                        ?>
                <?php 
                        eff_latest_videos();
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                    case 'tabs':
                        ?>
                <?php 
                        eff_tabs();
                        ?>
                <?php 
                        break;
                        ?>
                
                <?php 
                        //repeat as many times necessary
                }
            }
        }
    }
}
Example #6
0
function eff_seo()
{
    if (eff_option('meta_desc') == true) {
        eff_meta_desc();
    }
    if (is_home() || is_front_page()) {
        ?>
	<meta name="keywords" content="<?php 
        echo eff_option('keywords');
        ?>
" />
	<meta name="description" content="<?php 
        bloginfo('description');
        ?>
" />
	<?php 
    } elseif (is_single() || is_page()) {
        csv_tags();
    }
}
    function widget($args, $instance)
    {
        extract($args);
        /* User-selected settings. */
        $title = apply_filters('widget_title', $instance['title']);
        $count = $instance['count'];
        /* Before widget (defined by themes). */
        echo $before_widget;
        /* Title of widget (before and after defined by themes). */
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>

		<ul class="post_list">
                   		<?php 
        global $wpdb;
        $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_author_email, comment_date_gmt, comment_approved, comment_type, comment_author_url, SUBSTRING(comment_content,1,70) AS com_excerpt FROM {$wpdb->comments} LEFT OUTER JOIN {$wpdb->posts} ON ({$wpdb->comments}.comment_post_ID = {$wpdb->posts}.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT {$count}";
        $comments = $wpdb->get_results($sql);
        foreach ($comments as $comment) {
            ?>
                        <li>
                        <a class="av_thumb" href="<?php 
            echo get_permalink($comment->ID);
            ?>
#comment-<?php 
            echo $comment->comment_ID;
            ?>
" title="<?php 
            echo strip_tags($comment->comment_author);
            ?>
 <?php 
            _e('on ', 'framework');
            echo $comment->post_title;
            ?>
"><?php 
            echo get_avatar($comment, '55', $default = eff_option('custom_gravatar'));
            ?>
</a>
                            
                        <p><a href="<?php 
            echo get_permalink($comment->ID);
            ?>
#comment-<?php 
            echo $comment->comment_ID;
            ?>
" title="<?php 
            echo strip_tags($comment->comment_author);
            ?>
 <?php 
            _e('on ', 'framework');
            echo $comment->post_title;
            ?>
"><?php 
            echo strip_tags($comment->comment_author);
            ?>
:
                        <?php 
            $excerpt = $comment->com_excerpt;
            echo wp_html_excerpt($excerpt, 75);
            ?>
 ... 

			</a></p>
                        </li>

                        <?php 
        }
        ?>
                        
                        <?php 
        wp_reset_query();
        ?>

                    </ul>
<?php 
        /* After widget (defined by themes). */
        echo $after_widget;
    }
    ?>
	<?php 
    comments_template();
    ?>
	<?php 
}
?>
	
        </div>
        <!--wrap-->
        
	<?php 
if ($ssideoption !== 'fullw') {
    ?>
	<?php 
    if (eff_option('sidebar') == '3cleft' || eff_option('sidebar') == '3cright') {
        ?>
	<aside class="sec_sidebar sidebar">
	    <?php 
        dynamic_sidebar('Secondary sidebar');
        ?>
	</aside>
	<?php 
    }
    ?>
        <aside class="sidebar">
            <?php 
    global $wp_query;
    $postid = $wp_query->post->ID;
    $cus = get_post_meta($postid, 'sbg_selected_sidebar_replacement', true);
    ?>
    function widget($args, $instance)
    {
        global $wpdb;
        extract($args);
        /* Our variables from the widget settings. */
        $title = apply_filters('widget_title', $instance['title']);
        $tab1 = $instance['tab1'];
        $tab2 = $instance['tab2'];
        $tab3 = $instance['tab3'];
        $tab4 = $instance['tab4'];
        /* Before widget (defined by themes). */
        /* Display the widget title if one was input (before and after defined by themes). */
        //Randomize tab order in a new array
        $tab = array();
        ?>
<div class="widget">
        <section class="section_widget">
		<div id="tabs_widget">
			
				<ul class="tabs_widget_head">
				    <li><a href="#tab_popular"><?php 
        _e('Popular', 'framework');
        ?>
</a></li>
				    <li><a href="#tab_recent"><?php 
        _e('Recent', 'framework');
        ?>
</a></li>
				    <li><a href="#tab_comments"><?php 
        _e('Comments', 'framework');
        ?>
</a></li>
				</ul>
				
				<div id="tab_popular" class="tabs_widget_content">
					<div>
					    <ul>
						<?php 
        query_posts(array("ignore_sticky_posts" => 1, 'showposts' => 4, "orderby" => "comment_count"));
        ?>
						<?php 
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                ?>
						<li>
						    <div>
							<div class="post_thumb2">
							<a href="<?php 
                the_permalink();
                ?>
">
							<?php 
                $thumb = eff_post_image();
                $ntImage = aq_resize($thumb, 80, 68, true);
                ?>
							    <?php 
                if (strpos(eff_post_image(), 'youtube')) {
                    ?>
								<img src="<?php 
                    echo eff_post_image();
                    ?>
" width="85" height="68" alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
								
							    <?php 
                } elseif (strpos(eff_post_image(), 'vimeo')) {
                    ?>
								<img src="<?php 
                    echo eff_post_image();
                    ?>
" width="85" height="68" alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
							    
							    <?php 
                } elseif (strpos(eff_post_image(), 'dailymotion')) {
                    ?>
								<img src="<?php 
                    echo eff_post_image();
                    ?>
" width="85" height="68" alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
							    
							    <?php 
                } else {
                    ?>
								<img src="<?php 
                    echo $ntImage;
                    ?>
"  alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
							    <?php 
                }
                ?>
							</a>
							</div>
						    </div>
						    <h2><a href="<?php 
                the_permalink();
                ?>
"><?php 
                short_title(50);
                ?>
</a></h2>
						    <span class="post_meta"><?php 
                the_time('F d, Y');
                ?>
<a href="<?php 
                the_permalink();
                ?>
" class="comments"><?php 
                comments_number('(0) Comments', '(1) Comment', '(%) Comments');
                ?>
</a></span></span>
						</li>
						<?php 
            }
            ?>
						<?php 
        } else {
            ?>
						<!-- Else in here -->
						<?php 
        }
        ?>
						<?php 
        wp_reset_query();
        ?>
					    </ul>
					</div>
				</div>
				
				<div id="tab_recent" class="tabs_widget_content">
					<div>
					    <ul>
						<?php 
        query_posts(array("ignore_sticky_posts" => 1, 'showposts' => 4));
        ?>
						<?php 
        if (have_posts()) {
            while (have_posts()) {
                the_post();
                ?>
						<li>
						    <div>
							<div class="post_thumb2">
							<a href="<?php 
                the_permalink();
                ?>
">
							<?php 
                $thumb = eff_post_image();
                $ntImage = aq_resize($thumb, 80, 72, true);
                ?>
							    <?php 
                if (strpos(eff_post_image(), 'youtube')) {
                    ?>
								<img src="<?php 
                    echo eff_post_image();
                    ?>
" width="80" height="68" alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
								
							    <?php 
                } elseif (strpos(eff_post_image(), 'vimeo')) {
                    ?>
								<img src="<?php 
                    echo eff_post_image();
                    ?>
" width="80" height="68" alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
							    
							    <?php 
                } elseif (strpos(eff_post_image(), 'dailymotion')) {
                    ?>
								<img src="<?php 
                    echo eff_post_image();
                    ?>
" width="80" height="68" alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
							    
							    <?php 
                } else {
                    ?>
								<img src="<?php 
                    echo $ntImage;
                    ?>
"  alt="<?php 
                    the_title();
                    ?>
" title="<?php 
                    the_title();
                    ?>
" />
							    <?php 
                }
                ?>
							</a>
							</div>
						    </div>
						    <h2><a href="<?php 
                the_permalink();
                ?>
"><?php 
                short_title(50);
                ?>
</a></h2>
						    <span class="post_meta"><?php 
                the_time('F d, Y');
                ?>
<a href="<?php 
                the_permalink();
                ?>
" class="comments"><?php 
                comments_number('(0) Comments', '(1) Comment', '(%) Comments');
                ?>
</a></span></span>
						</li>
						<?php 
            }
            ?>
						<?php 
        } else {
            ?>
						<!-- Else in here -->
						<?php 
        }
        ?>
						<?php 
        wp_reset_query();
        ?>
					    </ul>
					</div>
				</div>
				
				<div id="tab_comments" class="tabs_widget_content">
					<div>
					    <ul>
						<?php 
        global $wpdb;
        $sql = "SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_author_email, comment_date_gmt, comment_approved, comment_type, comment_author_url, SUBSTRING(comment_content,1,70) AS com_excerpt FROM {$wpdb->comments} LEFT OUTER JOIN {$wpdb->posts} ON ({$wpdb->comments}.comment_post_ID = {$wpdb->posts}.ID) WHERE comment_approved = '1' AND comment_type = '' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT 4";
        $comments = $wpdb->get_results($sql);
        foreach ($comments as $comment) {
            ?>
						<li>
						    <div>
							<a href="<?php 
            echo get_permalink($comment->ID);
            ?>
#comment-<?php 
            echo $comment->comment_ID;
            ?>
" title="<?php 
            echo strip_tags($comment->comment_author);
            ?>
 <?php 
            _e('on ', 'framework');
            echo $comment->post_title;
            ?>
">
							    <?php 
            echo get_avatar($comment, '72', $default = eff_option('custom_gravatar'));
            ?>
							</a>
						    </div>
						    <h2><a href="<?php 
            echo get_permalink($comment->ID);
            ?>
#comment-<?php 
            echo $comment->comment_ID;
            ?>
" title="<?php 
            echo strip_tags($comment->comment_author);
            ?>
 <?php 
            _e('on ', 'framework');
            echo $comment->post_title;
            ?>
"><?php 
            echo strip_tags($comment->comment_author);
            ?>
:
						    <?php 
            $excerpt = $comment->com_excerpt;
            echo wp_html_excerpt($excerpt, 75);
            ?>
 ... 
						    </a></h2>
						</li>
						<?php 
        }
        ?>
			
						<?php 
        wp_reset_query();
        ?>
					    </ul>
					</div>
				</div>
		
		</div>
	</section>
</div>
        
		<?php 
        /* After widget (defined by themes). */
    }
Example #10
0
if (is_front_page() && eff_option('blog_style') == 'masonry' && eff_option('hp_display') == 'blog') {
    ?>
        <!--here-->
        <?php 
} else {
    ?>
        </div>
        <!--wrap-->
        <?php 
    get_sidebar();
    ?>
        <?php 
}
?>
        
        <?php 
if (eff_option('bottom_area') == true) {
    ?>
        <div class="bottom_area">
        <?php 
    effective_bottom();
    ?>
        </div>
        <?php 
}
?>
    </div>
    <!--Main-->
    <div class="clear"></div>
<?php 
get_footer();
Example #11
0
		    <?php 
    wp_enqueue_script('filex');
    ?>
		    <script type="text/javascript" charset="utf-8">
			jQuery(window).load(function(){
			  jQuery('.flexslider').flexslider({
			    slideshow: true,
			    animation: "<?php 
    echo eff_option('cat_filex_effect');
    ?>
", 
			    touch: true,
			    video: true,
			    controlNav: false, 
			    slideshowSpeed: <?php 
    echo eff_option('cat_sli_speed');
    ?>
, 
			    after: function(slider) {
			      jQuery('.slider_caption').animate({
				bottom:0,
				
				}, 400)  
			    },
			    before: function(slider) {
			      jQuery('.slider_caption').animate({
				bottom:-200,
				}, 400)  
		    
			    },
			    start: function(slider){
function get_fbimage()
{
    $src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), '', '');
    if (has_post_thumbnail($post->ID)) {
        $fbimage = $src[0];
    } else {
        global $post, $posts;
        $fbimage = '';
        $output = preg_match_all('/<img.+src=[\'"]([^\'"]+)[\'"].*>/i', $post->post_content, $matches);
        $fbimage = $matches[1][0];
    }
    if (empty($fbimage)) {
        $fbimage = eff_option('logo_img');
    }
    return $fbimage;
}
Example #13
0
function eff_bottom_box($num)
{
    ?>
	<?php 
    $bbcat = eff_option('bb' . $num . '_category');
    $bbnum = eff_option('bb' . $num . '_number');
    $bb_title = get_cat_name($bbcat);
    $bb_link = get_category_link($bbcat);
    ?>
            
	    <div class="block bottom_box cat_<?php 
    echo $bbcat;
    ?>
">
		<div class="bblock_title">
		   <div class="title_bg"> <h2><a href="<?php 
    echo $bb_link;
    ?>
"><?php 
    echo $bb_title;
    ?>
</a></h2></div>
		    <span></span>
		</div>
		
		<section class="section_box_2">
				<?php 
    query_posts(array('showposts' => 1, 'cat' => $bbcat));
    ?>
				<?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>
				<div class="post_thumb2">
				    <a href="<?php 
            the_permalink();
            ?>
">
					<?php 
            $img = eff_post_image('medium');
            $Fimg = aq_resize($img, 232, 136, true);
            ?>
					<?php 
            if (strpos(eff_post_image(), 'youtube')) {
                ?>
					<img src="<?php 
                echo eff_post_image();
                ?>
" width="232" height="136" alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
					
					<?php 
            } elseif (strpos(eff_post_image(), 'vimeo')) {
                ?>
					    <img src="<?php 
                echo eff_post_image();
                ?>
" width="232" height="136" alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
					
					<?php 
            } elseif (strpos(eff_post_image(), 'dailymotion')) {
                ?>
					    <img src="<?php 
                echo eff_post_image();
                ?>
" width="232" height="136" alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
					
					<?php 
            } else {
                ?>
					    <img src="<?php 
                echo $Fimg;
                ?>
"  alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
					<?php 
            }
            ?>
				    </a>
				</div>
				<div class="stylebox2">
				    <div class="first_news">
					<h2><a href="<?php 
            the_permalink();
            ?>
" rel="bookmark"><?php 
            the_title();
            ?>
</a></h2>
					<?php 
        }
    } else {
        ?>
					<!--else here-->
					<?php 
    }
    ?>
					<?php 
    wp_reset_query();
    ?>
				    </div>
				    <ul>
					<?php 
    query_posts(array('showposts' => $bbnum, 'offset' => 1, 'cat' => $bbcat));
    ?>
					<?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>
					<li>
					    <h2>&raquo; <a href="<?php 
            the_permalink();
            ?>
" rel="bookmark"><?php 
            the_title();
            ?>
</a></h2>
					</li>
					<?php 
        }
    } else {
        ?>
					<!--else here-->
					<?php 
    }
    ?>
					<?php 
    wp_reset_query();
    ?>
					<a href="<?php 
    echo $bb_link;
    ?>
" class="read_more">More &raquo;</a>
				    </ul>
				</div>
		</section>
	    </div>
<?php 
}
	
    <?php 
if (eff_option('evernote_share')) {
    ?>
    <span title="Evernote" class="tip_s">
        <i class="evernote-share"></i>
        <a target="_new" href="http://www.evernote.com/clip.action?url=<?php 
    print urlencode(get_permalink());
    ?>
&title=<?php 
    print urlencode(the_title());
    ?>
">Evernote</a>
    </span>
    <?php 
}
?>
    <?php 
if (eff_option('email_share')) {
    ?>
    <span title="Email" class="tip_s">
        <i class="email-share"></i>
        <a href="mailto:?subject=I wanted you to see this Link&amp;body=Check out this site<?php 
    print urlencode(get_permalink());
    ?>
.">Email</a>
    </span>
    <?php 
}
?>
</div>
;
        }
        .block.bottom_box.cat_<?php 
            echo $of_categories;
            ?>
 ul li h2 a:hover{
             color: <?php 
            echo $cat_color;
            ?>
;
        }
        <?php 
        }
    }
}
if (eff_option('logo_align') == 'center') {
    ?>
        .align_center.header_content { padding: 20px 0; }
        .align_center .logo {
            float: none;
            display: block;
            text-align: center;
        }
        .align_center .logo a img {
            display: inline-block;
            margin: 0;
        }
        .align_center .top_banner{
            margin-top: 15px;
            display: block;
            text-align: center;
Example #16
0
<?php

include '../../../../../wp-load.php';
// this will get global variables from theme options
$parameters = array('consumer_key' => eff_option('twitter_ck'), 'consumer_secret' => eff_option('twitter_cs'), 'user_token' => eff_option('twitter_at'), 'user_secret' => eff_option('twitter_ats'));
if (empty($_POST)) {
    die;
}
class ezTweet
{
    /*************************************** config ***************************************/
    // Your Twitter App Consumer Key
    private $consumer_key = '';
    // Your Twitter App Consumer Secret
    private $consumer_secret = '';
    // Your Twitter App Access Token
    private $user_token = '';
    // Your Twitter App Access Token Secret
    private $user_secret = '';
    // Path to tmhOAuth libraries
    private $lib = './lib/';
    // Enable caching
    private $cache_enabled = false;
    // Cache interval (minutes)
    private $cache_interval = 1;
    // Path to writable cache directory
    private $cache_dir = './';
    // Enable debugging
    private $debug = false;
    /**************************************************************************************/
    public function __construct($parameters)
Example #17
0
    } else {
        dynamic_sidebar('Main sidebar');
    }
} elseif (is_category()) {
    $catsidebar = eff_option('cat_sidebar');
    if ($catsidebar) {
        dynamic_sidebar(sanitize_title($catsidebar));
    } else {
        dynamic_sidebar('Main sidebar');
    }
} elseif (is_page()) {
    $pagesidebar = eff_option('pages_sidebar');
    if ($pagesidebar) {
        dynamic_sidebar(sanitize_title($pagesidebar));
    } else {
        dynamic_sidebar('Main sidebar');
    }
} elseif (is_single()) {
    $postsidebar = eff_option('posts_sidebar');
    if ($postsidebar) {
        dynamic_sidebar(sanitize_title($postsidebar));
    } else {
        dynamic_sidebar('Main sidebar');
    }
} else {
    dynamic_sidebar('Main sidebar');
}
?>
</aside>
<!--Sidebar--> 
<div class="clear"></div>
 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' => eff_option('related_count'), 'ignore_sticky_posts' => 1);
     query_posts($args);
     ?>
 <?php 
     if (have_posts()) {
         while (have_posts()) {
             the_post();
             ?>
 
 <?php 
             if (eff_option('related_style') == 'default') {
                 ?>
 <li class="related_item_style1">
     <div class="related_image">
         <?php 
                 if (has_post_thumbnail($post->ID)) {
                     ?>
         <div class="post_thumb">
         <?php 
                     if (eff_post_image() != false) {
                         ?>
                                     <?php 
                         $img = eff_post_image('medium');
                         $Fimg = aq_resize($img, 126, 91, true);
                         ?>
                                     <a href="<?php 
Example #19
0
function eff_latest_videos_sc($order, $title, $count)
{
    ?>
	    <!--Crousel-->
		<div class="block rcrousel">
		    <div class="block_title">
			<div class="title_bg"><h2><a href="#"><?php 
    echo $title;
    ?>
</a></h2></div>
			<a href="#" class="lv_next">next</a>
			<a href="#" class="lv_prev">prev</a>
			<span></span>
		    </div>
		    
		    <section class="section_box">
			<div class="content_inner">
			    <div class="crousel_style1_lv">
				<div class="crousel1_lv">
				    <?php 
    query_posts(array('showposts' => $count, 'meta_key' => 'eff_article_type', 'meta_value' => 'video', 'orderby' => $order));
    ?>
                                    <?php 
    if (have_posts()) {
        while (have_posts()) {
            the_post();
            ?>
				    <div class="lv_item">
					<div class="post_thumb">
					    <a href="<?php 
            the_permalink();
            ?>
">
						<?php 
            $img = eff_post_image('thumbnail');
            $Fimg = aq_resize($img, 125, 93, true);
            ?>
						<?php 
            if (strpos(eff_post_image(), 'youtube')) {
                ?>
						<img src="<?php 
                echo eff_post_image();
                ?>
" width="125" height="93" alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
						
						<?php 
            } elseif (strpos(eff_post_image(), 'vimeo')) {
                ?>
						    <img src="<?php 
                echo eff_post_image();
                ?>
" width="125" height="93" alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
						
						<?php 
            } elseif (strpos(eff_post_image(), 'dailymotion')) {
                ?>
						    <img src="<?php 
                echo eff_post_image();
                ?>
" width="125" height="93" alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
						
						<?php 
            } else {
                ?>
						    <img src="<?php 
                echo $Fimg;
                ?>
"  alt="<?php 
                the_title();
                ?>
" title="<?php 
                the_title();
                ?>
" />
						<?php 
            }
            ?>
					    </a>
					</div>
					<h2><a href="<?php 
            the_permalink();
            ?>
" rel="bookmark"><?php 
            short_title(40);
            ?>
</a></h2>
					<span class="post_meta"><?php 
            the_time('F d, Y');
            ?>
</span>	
				    </div>
				    <?php 
        }
    } else {
        ?>
				    <!--else here-->
				    <?php 
    }
    ?>
				    <?php 
    wp_reset_query();
    ?>
				</div>
			    </div>
			</div>
		    </section>
		</div>
		<!--Crousel-->
		<script>
		    jQuery(document).ready(function($) {
			//latest vids wrap
			var vids = $(".lv_item");
			for(var i = 0; i < vids.length; i+=4) {
			  vids.slice(i, i+4).wrapAll('<div class="four_items"></div>');
			}
			//Crousel Style1
		       $('.crousel1_lv').cycle({
			prev: '.lv_prev',
			next: '.lv_next',
			slideExpr: '.four_items',
			slideResize: 0,
			pause: 1,
			easing: 'swing',
			<?php 
    if (is_rtl()) {
        ?>
			fx: 'scrollRight',
			<?php 
    } else {
        ?>
			fx: 'scrollHorz',
			<?php 
    }
    ?>
			cleartype: true,
			cleartypeNoBg: true,
			speed: <?php 
    echo eff_option('lv_speed');
    ?>
,
			<?php 
    if (eff_option('lv_auto') != false) {
        ?>
			 timeout:<?php 
        echo eff_option('lv_auto_time');
        ?>
,
			<?php 
    } else {
        ?>
			 timeout:0,
			<?php 
    }
    ?>
		    });
		    });
		</script>
<?php 
}