コード例 #1
0
ファイル: color_scheme.php プロジェクト: venkimithu/npmgroups
/**
 * Color Scheme
 *
 * @since Lambda 2.0
 *
 * @param array $value
 * @param array $settings
 * @param int $int
 *
 * @return string
 */
function option_tree_color_scheme($value, $settings, $int)
{
    ?>
  <div class="option">
    
	<div class="lambda-opttitle">
        <div class="lambda-opttitle-pad">
		<?php 
    echo htmlspecialchars_decode($value->item_title);
    ?>
		<span class="infoButton right">
				<img class="infoImage" src="<?php 
    echo OT_PLUGIN_URL;
    ?>
/assets/images/info.png" width="40px" height="20px" alt="Info" style="left: 0px;">
		</span>  
        </div>
    </div>   
    <div class="section">
        
        <fieldset id="choosecolor">
		<?php 
    global $theme_path;
    $count = 1;
    foreach (recognized_color_schemes() as $key => $singlecolor) {
        $checked = '';
        if ($settings[$value->item_id] == $singlecolor) {
            $checked = ' checked="checked"';
        }
        if ($key == 'Custom' && $value->item_id . '_' . $count == 'color_scheme_1') {
            $singlecolor = get_option_tree('themecolor');
            $singlecolor = $singlecolor['hex'];
            $checked = ' checked="checked"';
        }
        $datascheme = str_replace(' ', '', $key);
        echo '<div class="color-scheme-box" data-scheme="' . trim(strtolower($datascheme)) . '">
					  <input class="check-with-label" name="' . $value->item_id . '" id="' . $value->item_id . '_' . $count . '" type="radio" value="' . $singlecolor . '"' . $checked . ' />
					  <label class="label-for-color" for="' . $value->item_id . '_' . $count . '"><div class="color color_scheme_' . $count . '" style="background-color: ' . $singlecolor . ';"><img src="' . $theme_path . '/lambda/assets/images/colorlayer.png"></div></label>
					  <span class="colorbadge">' . $key . '</span>
					  </div>';
        $count++;
    }
    ?>
		</fieldset>
		
      	<?php 
    if ($value->item_desc) {
        ?>
        <div class="desc alert alert-neutral"><?php 
        echo htmlspecialchars_decode($value->item_desc);
        ?>
</div>
	    <div class="clear"></div>
      <?php 
    }
    ?>
    </div>
  </div>
<?php 
}
コード例 #2
0
 function handle_slider_shortcode($atts)
 {
     extract(shortcode_atts(array("id" => ''), $atts));
     global $wpdb, $theme_path, $lambda_meta_data;
     $sitelayout = $lambda_meta_data->get_the_value('sitelayout');
     $table_name = $wpdb->base_prefix . "lambda_sliders";
     $slider_result = $wpdb->get_row('SELECT * FROM ' . $table_name . ' WHERE id =' . $id);
     if (!$slider_result) {
         return;
     }
     switch ($slider_result->slidertype) {
         case 'flexslider':
             //Flexslider CSS
             wp_enqueue_style('flexslider', get_template_directory_uri() . '/css/flexslider.css', 'theme', '1.8');
             //JS
             wp_enqueue_script('flexslider', get_template_directory_uri() . "/javascripts/jquery.flexslider.min.js", array('jquery'), '1.8', true);
             //dynamic JS
             wp_register_script('lambda_script_' . $id . '.js', $theme_path . '/javascripts/slider.init.php?id=' . $id, array('jquery'));
             wp_enqueue_script('lambda_script_' . $id . '.js');
             //Return Flexslider's HTML
             return getFlexHTML($slider_result);
             break;
         case 'cameraslider':
             //CameraSlider CSS
             wp_enqueue_style('cameraslider', get_template_directory_uri() . '/css/cameraslider.css', 'theme', '1.0');
             //JS
             wp_register_script('cameraslider', get_template_directory_uri() . '/javascripts/camera.min.js', array('jquery'));
             wp_print_scripts('cameraslider');
             wp_register_script('cameraslidermob', get_template_directory_uri() . '/javascripts/jquery.mobile.customized.min.js', array('jquery'));
             wp_print_scripts('cameraslidermob');
             //dynamic JS
             wp_register_script('lambda_script_' . $id . '.js', $theme_path . '/javascripts/slider.init.php?id=' . $id, array('jquery'));
             wp_enqueue_script('lambda_script_' . $id . '.js');
             //Return Cycle's HTML
             return getCameraHTML($slider_result);
             break;
         case 'supersized':
             if (get_option_tree('sitelayout') == 'boxed' || $sitelayout == 'boxed') {
                 //Supersized's CSS
                 wp_enqueue_style('supersized-css', get_template_directory_uri() . '/css/supersized.css', 'theme', '3.2.7', 'screen, projection');
                 wp_enqueue_style('supersized-shutter-css', get_template_directory_uri() . '/css/supersized.shutter.css', 'theme', '3.2.7', 'screen, projection');
                 //JS
                 wp_register_script('supersized.3.2.6.min.js', get_template_directory_uri() . '/javascripts/supersized.3.2.7.min.js', array('jquery'));
                 wp_print_scripts('supersized.3.2.6.min.js');
                 wp_register_script('supersized.shutter.min.js', get_template_directory_uri() . '/javascripts/supersized.shutter.min.js', array('jquery'));
                 wp_print_scripts('supersized.shutter.min.js');
                 //dynamic JS
                 wp_register_script('lambda_script_' . $id . '.js', $theme_path . '/javascripts/slider.init.php?id=' . $id, array('jquery'));
                 wp_print_scripts('lambda_script_' . $id . '.js');
                 //Return supersized into global
                 return getSupersizedHTML($slider_result);
             }
             break;
     }
 }
コード例 #3
0
function get_sidebars_array()
{
    $sidebars = get_option_tree('sidebars', '', false, true, -1);
    $_sidebars = array('default' => __('Default Sidebar', UT_THEME_NAME), 'none' => __('No Sidebar', UT_THEME_NAME));
    if (is_array($sidebars)) {
        foreach ($sidebars as $num => $sidebar) {
            $_sidebars[$num] = $sidebar['title'];
        }
        return $_sidebars;
    }
}
コード例 #4
0
 function before_sidebar($columns)
 {
     global $lambda_meta_data;
     if (is_home()) {
         //get the meta data from the blog page
         $homeid = get_option('page_for_posts');
         $sidebar_align = get_post_meta($homeid, $lambda_meta_data->get_the_id(), TRUE);
     } else {
         $sidebar_align = $lambda_meta_data->the_meta();
     }
     $sidebar_align = isset($sidebar_align['sidebar_align']) ? $sidebar_align['sidebar_align'] : get_option_tree('sidebar_alignement');
     if (empty($columns) && $sidebar_align != 'both') {
         //one sidebar
         $columns = 'five columns';
     } elseif (empty($columns) && $sidebar_align == 'both') {
         //two sidebars
         $columns = 'four columns';
     } else {
         // Check the function for a returned variable
         $columns = $columns;
     }
     $sID = $columns == 'widget-sidebar' ? '_' . rand(1, 100) : '';
     echo '<aside id="sidebar' . $sID . '" class="' . $columns . '" role="complementary">';
 }
コード例 #5
0
ファイル: shop.php プロジェクト: Nightgunner5/Pubcomp-CMS
</p>
    </div>
    <div class="grid_6 social-icon"></div>
  </div>
</div>
<div style="clear:both;"></div>
<div style="margin-bottom:112px;"></div>
<!-- Social End -->

<!-- Advert Start -->
<div class="container_16">
    <div class="grid_16" style="width:970px;">
      
      <?php 
    $category = get_option_tree('app_shopcategories');
    $number = get_option_tree('app_shopshow');
    ?>
         

          <?php 
    $paged = get_query_var('paged') ? get_query_var('paged') : 1;
    query_posts("cat={$category}&showposts={$number}&somecat&paged={$paged}");
    ?>
          <?php 
    while (have_posts()) {
        the_post();
        ?>
                
      <?php 
        if (get_post_meta($post->ID, 'icon', true)) {
            ?>
コード例 #6
0
ファイル: loop.php プロジェクト: venkimithu/npmgroups
            echo '</div></div></div>';
        }
        ?>
            
            
            
            
			          
            <div class="entry-content clearfix">
                
            
            			
			<div class="entry-summary">
            
				<?php 
        if (is_archive() || is_search() || get_option_tree('excerpt_blog') == 'yes') {
            the_excerpt();
        } else {
            the_content(__('Read more', UT_THEME_NAME));
        }
        ?>
   
                 
			</div><!-- .entry-summary -->
            
            </div><!-- .entry-content -->
                       
            <footer class="entry-footer clearfix">
            
               
                
コード例 #7
0
             			<?php 
    }
    ?>
</a><p>&copy; 2015 Evergreen Tap House | <a href="http://www.evergreenwebdesign.com" target="_blank">Evergreen Web Design</a></p></div>
            <?php 
}
?>
  
            </div>  
          </div>
        </div>
    </div>

    
</footer>
    <?php 
$boxed = get_option_tree('boxed', $theme_options);
if ($boxed == "Yes") {
    ?>
</div><?php 
}
?>
  
</div>


    <?php 
wp_footer();
?>
  </body>
</html>
コード例 #8
0
ファイル: category.php プロジェクト: venkimithu/npmgroups
/**
 * The template for displaying Category Archive pages.
 *
 * lambda framework v 2.1
 * by www.unitedthemes.com
 * since lambda framework v 1.0
 * based on skeleton
 */
global $lambda_meta_data;
if (is_home() || is_category()) {
    $homeid = get_option('page_for_posts');
    $meta_sidebar = get_post_meta($homeid, $lambda_meta_data->get_the_id(), TRUE);
} else {
    $meta_sidebar = $lambda_meta_data->the_meta();
}
$meta_sidebar = isset($meta_sidebar['sidebar']) ? $meta_sidebar['sidebar'] : get_option_tree('select_sidebar');
get_header();
//includes the template-part-slider.php
get_template_part('template-part', 'slider');
//includes the template-part-teaser.php
get_template_part('template-part', 'teaser');
//set column layout depending if user wants to display a sidebar
if ($meta_sidebar != UT_THEME_INITIAL . 'sidebar_none') {
    lambda_before_content($columns = '');
} elseif ($meta_sidebar == UT_THEME_INITIAL . 'sidebar_none') {
    lambda_before_content($columns = 'sixteen');
}
?>
	
<?php 
$category_description = category_description();
コード例 #9
0
				<a href="<?php 
echo get_option_tree('twitter_link');
?>
" target="_blank"><img src="<?php 
echo get_template_directory_uri();
?>
/img/socail_icon_2.png" alt=""></a>
				<a href="<?php 
echo get_option_tree('google_plus_link');
?>
" target="_blank"><img src="<?php 
echo get_template_directory_uri();
?>
/img/socail_icon_3.png" alt=""></a>
				<a href="<?php 
echo get_option_tree('linkedin_link');
?>
" target="_blank"><img src="<?php 
echo get_template_directory_uri();
?>
/img/socail_icon_4.png" alt=""></a>
			</div>
		</div>
		<div class="col-md-12 trainer_call_ul_right">
			<h2><span>About</span> training Your Body</h2>
			<?php 
$args = array('page_id' => 38);
// The Query
$the_query = new WP_Query($args);
// The Loop
while ($the_query->have_posts()) {
コード例 #10
0
<div class="wrapper wrapper-navbar" id="wrapper-navbar">	
    <nav class="site-navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">                            
        <div class="navbar">
            <div class="container">
                <div class="col-xs-12">
                    <div class="navbar-header">
                        <!-- .navbar-toggle is used as the toggle for collapsed navbar content -->
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-responsive-collapse">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                        <!-- Your site title as branding in the menu -->
                        <?php 
$logo = function_exists('get_option_tree') ? get_option_tree('vn_logo') : '';
?>
                        
                        <a class="navbar-brand" href="<?php 
echo esc_url(home_url('/'));
?>
" title="<?php 
echo esc_attr(get_bloginfo('name', 'display'));
?>
" rel="home"><?php 
if (!empty($logo)) {
    echo '<img src="' . $logo . '" alt="' . esc_attr(get_bloginfo('name', 'display')) . '" class="brand-logo" />';
} else {
    bloginfo('name');
}
?>
コード例 #11
0
                <!-- Start of post details -->
                <div class="cr3ativcareer_post_details">

                <!-- Start of post date -->
                <div class="cr3ativcareer_post_date">
                <?php 
    the_time(get_option('date_format'));
    ?>

                </div><!-- End of post date -->

                <!-- Start of post read more -->
                <div class="cr3ativcareer_post_read_more">
                        <?php 
    if (function_exists('get_option_tree')) {
        $readmoretext = get_option_tree('vn_readmore_button_text');
    }
    ?>
                <a href="<?php 
    the_permalink();
    ?>
"><?php 
    echo $readmoretext;
    ?>
</a>

                </div><!-- End of post read more -->

                </div><!-- End of post details -->

                </div><!-- End of blog wrapper -->
コード例 #12
0
							<?php 
    if (!function_exists('dynamic_sidebar') || !dynamic_sidebar('dropdown-widget-4')) {
    }
    ?>
							</div>
			       	</div>
			    </div>

		<div class="container">
			<div class="sixteen columns">

		    	<!-- Banner -->
		    	<div class="fp_banner" >
		        	<div class="show_hide flag_toggle" >
		        		<img width="92px" height="auto" src="<?php 
    echo get_option_tree('fp_banner');
    ?>
" />
		            </div>
		        </div>        
		        <!-- /End Banner -->

			</div>
		</div>
	</div>

	<?php 
}
?>
	
	<!-- /Flag Dropdown -->
コード例 #13
0
function bliccaThemes_after_main_content()
{
    if (function_exists('get_option_tree')) {
        $theme_options = get_option('option_tree');
    }
    $woocommerce_style = get_option_tree('woocommerce_style', $theme_options);
    if (!isset($woocommerce_style) || $woocommerce_style == "") {
        $woocommerce_style == "col-md-8";
    }
    if (is_single()) {
        $woocommerce_style = "col-md-12";
    }
    ?>
	</div>
	<?php 
    if (!is_single() && $woocommerce_style != "col-md-12") {
        get_sidebar('shop');
    }
    ?>
	</div></div>
</section>
	<?php 
}
コード例 #14
0
 function lambda_before_content()
 {
     global $content_width;
     $metadata = lambda_return_meta('page');
     // check if user has set an individual sidebar for this page / post if not, load default values from option tree
     $sidebar_align = $GLOBALS['sidebar_align'] = isset($metadata['sidebar_align']) ? $metadata['sidebar_align'] : get_option_tree('sidebar_alignement');
     $sidebar = !empty($metadata['sidebar']) ? $metadata['sidebar'] : get_option_tree('select_sidebar');
     if (is_page_template('template-portfolio.php')) {
         $sidebar = UT_THEME_INITIAL . 'sidebar_none';
     }
     if ($sidebar != UT_THEME_INITIAL . 'sidebar_none') {
         # sidebar has been set
         $columns = '';
         $GLOBALS['lambda_content_width'] = $columns;
     } elseif ($sidebar == UT_THEME_INITIAL . 'sidebar_none') {
         # no sidebars
         $columns = 'span12';
         $GLOBALS['lambda_content_width'] = $columns;
     }
     #-----------------------------------------------------------------
     # No Sidebar for following templates
     # - template-home.php
     #-----------------------------------------------------------------
     if (is_page_template('template-home.php')) {
         # no sidebars
         $columns = 'span12';
         $GLOBALS['lambda_content_width'] = $columns;
     }
     #-----------------------------------------------------------------
     # Standard Column Set
     #-----------------------------------------------------------------
     if (empty($columns) && $sidebar_align != 'both') {
         # one sidebar
         $columns = 'span9';
         $GLOBALS['lambda_content_column'] = $columns;
         $content_width = 870;
     } elseif (empty($columns) && $sidebar_align == 'both') {
         # two sidebars
         $columns = 'span6';
         $GLOBALS['lambda_content_column'] = $columns;
         $content_width = 570;
     } else {
         // Check the function for a returned variable
         $columns = $columns;
         $GLOBALS['lambda_content_column'] = $columns;
         $content_width = 1170;
     }
     #----------------------------------------------------------------
     # Markup
     #----------------------------------------------------------------
     lambda_before_content_hook();
     // action hook, see functions/theme-hooks.php
     # start content wrap and content
     echo '<div id="content-wrap" class="clearfix" data-content="content"><!-- content-wrap -->';
     echo !is_page_template('template-home.php') ? '<div class="container"><div class="row">' : '';
     # call second sidebar
     if ($columns == 'span6' && $sidebar_align == 'both') {
         get_sidebar('second');
     }
     echo !is_page_template('template-home.php') ? '<section id="content" class="' . $columns . ' site-content clearfix" role="main">' : '<section id="content" class="ut-home-template site-content clearfix" role="main">';
 }
コード例 #15
0
ファイル: theme-functions.php プロジェクト: sebfabiani/vcv
 function lambda_login_head()
 {
     if (get_option_tree('login_logo')) {
         echo "<style>\n            body.login #login h1 a {\n                background: url('" . get_option_tree('login_logo') . "') no-repeat scroll center top transparent;\n            }\n            .login #nav a, .login #backtoblog a {\n                color: " . get_option_tree('color_scheme') . " !important;\n            }\n            </style>";
     }
 }
コード例 #16
0
    function lambda_needed_js()
    {
        $theme_options = get_option('option_tree');
        ?>
        
        (function($){
            
            "use strict";
            
            $(document).ready(function() {
            
            <?php 
        #-----------------------------------------------------------------
        # Navigation Hover
        #-----------------------------------------------------------------
        ?>
            
            /* Navigation Hover
            ================================================== */
            $('#navigation').bind('mouseenter', showBackDrop).bind('mouseleave', hideBackDrop);
            
            var backdrop     = 'inactive',
                hoverstate   = 'inactive';            
            
            function showBackDrop(){
                
                hoverstate     = 'active';
                
                if( $(window).scrollTop() > 0 ) {
                    backdrop     = 'active';
                    $(".ut-backdrop").height( $(document).height() ).stop(true,true).fadeIn();
                }
            }
            
            function hideBackDrop(){
            
                hoverstate     = 'inactive';
                $(".ut-backdrop").stop().fadeOut(); 
                
            }
            
            $(window).scroll(function() {
                
                if($(this).scrollTop() > 0 && backdrop === 'inactive' && hoverstate === 'active') {
                
                    showBackDrop();
                    backdrop     = 'active';
                    
                } else {
                    
                    backdrop     = 'inactive';
                    hoverstate   = 'inactive';                     
                }
                
            });
                        
            
            <?php 
        #-----------------------------------------------------------------
        # PrettyPhoto Extension
        #-----------------------------------------------------------------
        ?>
            
            <?php 
        if (isset($theme_options['activate_prettyphoto']) && $theme_options['activate_prettyphoto'] == 'on') {
            ?>
                            
            /* Prettyphoto
            ================================================== */
            $("a[data-rel^='prettyPhoto']").prettyPhoto({
                show_title: false
            });                
                
            <?php 
        }
        ?>
            
            
            <?php 
        #-----------------------------------------------------------------
        # Service Template Scroll
        #-----------------------------------------------------------------
        ?>
            
            
            <?php 
        if (is_page_template('template-service.php')) {
            ?>
                                
                $('#scrollTo').parent().css('height', $('#verticaltabs-content').height() );
                
                $(window).scroll(function() {
                       
                    if( $(this).scrollTop() > 0) {
                        
                        $('#scrollTo').animate({'margin-top': $(this).scrollTop() });
                        
                    } else {
                    
                        $('#scrollTo').css({'margin-top': 0 });
                        
                    }
                    
                });
                
                
                
            
            <?php 
        }
        ?>
            
            
            <?php 
        #-----------------------------------------------------------------
        # Image Animation
        #-----------------------------------------------------------------
        ?>
            
            <?php 
        if (!lambda_detect_ie()) {
            if (isset($theme_options['animation_area']) && is_array($theme_options['animation_area'])) {
                ?>
                
                    
                    <?php 
                foreach ($theme_options['animation_area'] as $singlearea) {
                    if (!empty($singlearea['description']) && !empty($singlearea['effect'])) {
                        $delay = !empty($singlearea['delay']) ? $singlearea['delay'] : '100';
                        $classes = str_replace(array("\r\n", "\r"), '', $singlearea['description']);
                        if (!empty($singlearea['page']) && is_page($singlearea['page'])) {
                            echo '$("' . $classes . '").waypoint( function() {
                                        
                                        $(this).delay(' . $delay . ').queue(function(next){
                                            
                                            if( !$(this).hasClass("animated") ) {
                                                $(this).addClass("animated ' . $singlearea['effect'] . '");
                                            }
                                            
                                            next();
                                        
                                        });                                    
                                
                                 }, { offset: "85%" });';
                        } elseif (empty($singlearea['page'])) {
                            echo '$("' . $classes . '").waypoint( function() {
                                        
                                        $(this).delay(' . $delay . ').queue(function(next){
                                            
                                            if( !$(this).hasClass("animated") ) {
                                                $(this).addClass("animated ' . $singlearea['effect'] . '");
                                            }
                                            
                                            next();
                                        
                                        });
                                
                                 }, { offset: "85%" });';
                        }
                    }
                }
                ?>
  
                
                                                   
                <?php 
            }
            ?>
            
            <?php 
        }
        ?>
            
            <?php 
        #-----------------------------------------------------------------
        # fixed header animation
        #-----------------------------------------------------------------
        ?>
            
            <?php 
        if (isset($theme_options['fixed_header']) && $theme_options['fixed_header'] == 'on') {
            ?>
            
            
            <?php 
            $fontsizelarge = !empty($theme_options['logo_font']['font-size']) ? $theme_options['logo_font']['font-size'] : 28;
            $fontsizelarge = preg_replace('/px/', '', $fontsizelarge);
            ?>
            
            <?php 
            if (get_option_tree('textorlogo') == 'Logo') {
                ?>
                var large_logo_height   = '',
                	header_scrollable   = false;
            <?php 
            } else {
                ?>
                    
                var large_logo_height   = '',
                    fontsize_large      = '<?php 
                echo $fontsizelarge;
                ?>
',
                    header_scrollable   = false;
            <?php 
            }
            ?>
            
            
            $(window).load(function(){
                
                <?php 
            if (get_option_tree('textorlogo') == 'Logo') {
                ?>
                large_logo_height   = $('#logo').find("img").outerHeight();
                <?php 
            } else {
                ?>
                    
                large_logo_height   = $('#logo').find("h1").outerHeight();
                fontsize_large      = $('#logo').find('h1, h1 a').css('font-size');
                <?php 
            }
            ?>
 
                
                header_scrollable   = true;                
                delaware_header_size();
                
            });
            
            $(window).smartresize(function(){
                
                if( header_scrollable ) {
                	delaware_header_size();     
                }
                
            });
            
            function delaware_header_size() {
                
                /* animation variables */ 
                var $sitewrap           = $('#wrap'), 
                    $header             = $('#header'), 
                    $logowrap           = $('#logo'),
                    <?php 
            if (is_admin_bar_showing()) {
                ?>
                    toolbarheight       = $('#wpadminbar').outerHeight(),    
                    <?php 
            } else {
                ?>
                    toolbarheight       = 0,
                    <?php 
            }
            ?>
                    <?php 
            if (isset($theme_options['textorlogo']) && $theme_options['textorlogo'] != 'Logo') {
                ?>
                    fontsize_small      = "16px",
                    new_font_size       = fontsize_large,
                    <?php 
            }
            ?>
                    
                    new_logo_height     = large_logo_height, 
                    mini_logo_height    = large_logo_height / 2,
                    header_height       = $header.outerHeight(),
                    runanimation        = true,
                    animated            = 1,
                    newHP               = 0 + toolbarheight,
                    newSWP              = header_height,
                    win                 = $(window),
                    topheader           = $('.top-header').outerHeight(),
                    set_header_height   = function () {
                        
                        var header_position = win.scrollTop();
                        
                        if( header_position > 0 && animated === 1 && win.width() > 979 ) {
                            
                            if( $('.top-header').hasClass('th1') ) { topheader = 0; }
                                                                                                                    
                            newHP  = ( - topheader + toolbarheight );
                            newSWP = header_height - topheader - mini_logo_height - toolbarheight;
                            new_logo_height = mini_logo_height;
                            <?php 
            if (isset($theme_options['textorlogo']) && $theme_options['textorlogo'] != 'Logo') {
                ?>
                            new_font_size = fontsize_small;
                            <?php 
            }
            ?>
                            
                            runanimation = true;
                            animated++;
                           
                        } else if ( header_position === 0 && animated === 2 ) {
                            
                            newHP  = 0 + toolbarheight;
                            newSWP = header_height;
                            new_logo_height = large_logo_height;
                            <?php 
            if (isset($theme_options['textorlogo']) && $theme_options['textorlogo'] != 'Logo') {
                ?>
                            new_font_size = fontsize_large;
                            <?php 
            }
            ?>
                            
                            runanimation = true;
                            animated = 1;
                           
                        }
                                                
                        if( runanimation ) {
                                                                                                    
                                /* animate the stuff  */
                                $logowrap.stop().animate({ "height" : new_logo_height } , { duration: 300 , queue: false } );                                
                                <?php 
            if (isset($theme_options['textorlogo']) && $theme_options['textorlogo'] != 'Logo') {
                ?>
                                $logowrap.find('h1, h1 a').stop().animate({ "font-size" : new_font_size } , { duration: 300 , queue: false } );
                                <?php 
            }
            ?>
                                
                                $header.stop().animate({ "top" : newHP } , { duration: 300 , queue: false } );
                                $sitewrap.stop().animate({ "padding-top" : newSWP } , { duration: 300 , queue: false } );
                                
                                runanimation = false; 
                                          
                        }
                        
                    };
                
                win.scroll( set_header_height );
                set_header_height();
                     
            }
                  
            
            <?php 
        }
        ?>
            
            <?php 
        if (is_home()) {
            ?>
            
            var header = $('.header-inner').outerHeight();
            
            $('.post').waypoint( function(direction) {
                
                $('.pformat span').removeClass('pformat-marker');
                $(this).find('.pformat span').addClass('pformat-marker');
            
            }, { offset: header + 80 }); 
                        
            
            <?php 
        }
        ?>
            
            });
            
        })(jQuery);
        
     
        <?php 
    }
コード例 #17
0
ファイル: index.php プロジェクト: Nightgunner5/Pubcomp-CMS
<!-- Social Start -->
<!--
<div class="container_16">
  <div class="grid_16" id="social-back-two">
    <div id="sociallike"></div>
    <div class="grid_10 social-area">
      <h1><?php 
get_option_tree('social_title', '', 'true');
?>
</h1>
      <p><?php 
get_option_tree('social_subtitle', '', 'true');
?>
</p>
    </div>
    <div class="grid_6 social-icon">
      <ul>
        <?php 
get_option_tree('social_list', '', 'true');
?>
      </ul>
    </div>
  </div>
</div>
<div style="clear:both;"></div>
<div style="margin-bottom:160px;"></div>
-->
<!-- Social End -->

<?php 
get_footer();
コード例 #18
0
ファイル: header.php プロジェクト: Ashleyotero/oldest-old
</script>
</head>
<body <?php 
body_class();
?>
>
<div id="top">
	<div id="title"> 
	    <?php 
if (function_exists('get_option_tree') && get_option_tree('berlin_logo') != '') {
    ?>
               <a href="<?php 
    echo home_url();
    ?>
/" title="Return to the frontpage"><img src="<?php 
    get_option_tree('berlin_logo', '', true);
    ?>
" id="logo-image" alt="logo image" /></a>

          <?php 
} else {
    ?>
		<h1> <a href="<?php 
    echo home_url();
    ?>
" title="<?php 
    bloginfo('name');
    ?>
" class="logo"> 
<img src="http://829media.com/scc/wp-content/themes/berlin/images/logo.png" alt="Second-Class Citizens" />
			</a> </h1>  
コード例 #19
0
<?php

/* Template Name: Home Page Template */
get_header();
if (function_exists('get_option_tree')) {
    $theme_options = get_option('option_tree');
}
$header_style = get_option_tree('header_style', $theme_options);
if ($header_style == "") {
    $header_style == "bt-header-classic";
}
?>

<?php 
while (have_posts()) {
    the_post();
    ?>
    
<section class="bliccaThemes-waypoint" data-animate-down="on-sticky" data-animate-up="off-sticky"> 
  <!-- Page Content Start -->
    <?php 
    the_content();
    ?>
</section>
<?php 
}
// end of the loop.
get_footer();
コード例 #20
0
ファイル: sidebar.php プロジェクト: venkimithu/npmgroups
<?php

/**
 * The Sidebar containing the primary blog sidebar
 *
 * lambda framework v 2.1
 * by www.unitedthemes.com
 * since lambda framework v 1.0
 * based on skeleton
 */
global $lambda_meta_data, $wp_query;
$page_id = isset($wp_query->post) ? $wp_query->post->ID : null;
if (is_home()) {
    $homeid = get_option('page_for_posts');
    $sidebar = get_post_meta($homeid, $lambda_meta_data->get_the_id(), TRUE);
} else {
    $sidebar = get_post_meta($page_id, $lambda_meta_data->get_the_id(), TRUE);
}
do_action('st_before_sidebar');
echo '<ul class="sidebar">';
if (!isset($sidebar['sidebar']) || isset($sidebar['sidebar']) && $sidebar['sidebar'] == UT_THEME_INITIAL . "sidebar_default") {
    dynamic_sidebar(get_option_tree('select_sidebar'));
} elseif (isset($sidebar['sidebar'])) {
    dynamic_sidebar($sidebar['sidebar']);
}
echo '</ul>';
do_action('st_after_sidebar');
?>

コード例 #21
0
<div class="contentleft">
<p><?php 
    echo stripslashes($homepagemessageleft);
    ?>
</p>

</div><!-- End of contentleft -->

<?php 
} else {
}
?>

<?php 
if (function_exists('get_option_tree')) {
    $homepagemessageright = get_option_tree('vn_homepagemessageright');
}
?>

<?php 
if ($homepagemessageright != '') {
    ?>

<!-- Start of contentright -->
<div class="contentright">
<?php 
    echo $homepagemessageright;
    ?>

</div><!-- End of contentright -->
コード例 #22
0
<?php

/**
 * The Sidebar containing the primary blog sidebar
 *
 * lambda framework v 2.1
 * by www.unitedthemes.com
 * since lambda framework v 1.0
 * based on skeleton
 */
global $lambda_meta_data;
if (is_home()) {
    $homeid = get_option('page_for_posts');
    $sidebar = get_post_meta($homeid, $lambda_meta_data->get_the_id(), TRUE);
} else {
    $sidebar = $lambda_meta_data->the_meta();
}
do_action('st_before_sidebar_second');
echo '<ul class="sidebar">';
if (!isset($sidebar['sidebar_second']) || isset($sidebar['sidebar_second']) && $sidebar['sidebar_second'] == UT_THEME_INITIAL . "sidebar_default") {
    dynamic_sidebar(get_option_tree('select_sidebar_second'));
} elseif (isset($sidebar['sidebar_second'])) {
    dynamic_sidebar($sidebar['sidebar_second']);
}
echo '</ul>';
do_action('st_after_sidebar_second');
?>

コード例 #23
0
ファイル: header.php プロジェクト: SelaInc/eassignment
_e('top logo', 'squarecode');
?>
" />
                    </a>

                </div>
                <!-- End of top logo -->

                <!-- Start of container -->
                <div class="container">

                    <section>         
                        
                        <?php 
if (function_exists('get_option_tree')) {
    $menu = get_option_tree('vn_menuchoice');
}
?>
                        <?php 
if ($menu == 'popout' || $menu == 'both') {
    ?>

                        <a id="trigger-overlay">&nbsp;</a>
                        
                        <?php 
}
?>
       
                         
                        <?php 
wp_nav_menu(array('menu_class' => 'cr3_edd_cart', 'theme_location' => 'cart', 'fallback_cb' => 'false'));
コード例 #24
0
/*
Template Name: Front Template
*/
get_header();
//OptionTree Stuff
if (function_exists('get_option_tree')) {
    $theme_options = get_option('option_tree');
    /* Front Page Options
       ================================================== */
    $slogan = get_option_tree('slogan', $theme_options);
    $enable_callout = get_option_tree('enable_callout', $theme_options);
    $callout_title = get_option_tree('callout_title', $theme_options);
    $callout_caption = get_option_tree('callout_caption', $theme_options);
    $callout_button = get_option_tree('callout_button', $theme_options);
    $callout_button_url = get_option_tree('callout_button_url', $theme_options);
}
?>

        <?php 
$select_type = get_post_meta($post->ID, 'select-type_value', true);
?>
        <?php 
$layer_slider = get_post_meta($post->ID, 'layer-slider_value', true);
?>
        <?php 
$uno_slider = get_post_meta($post->ID, 'uno-slider_value', true);
?>
        <?php 
$video = theme_parse_video(get_post_meta($post->ID, 'video_value', true));
?>
コード例 #25
0
	<!-- <div class="sixteen columns">
		<div class="copyright twelve columns alpha"><?php 
if (get_option_tree('footer_blurb_left')) {
    echo get_option_tree('footer_blurb_left');
}
?>
</div>
		<?php 
if (get_option_tree('footer_social') != 'No') {
    get_template_part('includes/element', 'getsocial');
}
?>
		<div class="colophon"><?php 
if (get_option_tree('footer_blurb_right')) {
    echo get_option_tree('footer_blurb_right');
}
?>
</div>
	</div> -->

</div>
<!-- /End 960 Container -->
</div>
<!-- /End Super Container -->


<!-- ============================================== -->

<script src="<?php 
echo get_template_directory_uri();
コード例 #26
0
<?php

if (function_exists('get_option_tree')) {
    $theme_options = get_option('option_tree');
}
$header_style = get_option_tree('header_style', $theme_options);
if ($header_style == "") {
    $header_style == "bt-header-classic";
}
$logo_texty = get_option_tree('text_logo', $theme_options);
$phone_number = get_option_tree('phone_number', $theme_options);
$email_post = get_option_tree('email_post', $theme_options);
?>

<div class="topsection">    
    <div class="container"><div class="row"><div class="col-md-12">
                <div class="topsection-about">
                <?php 
if (!empty($phone_number)) {
    ?>
<i class="fa fa-phone"></i><?php 
    echo esc_html($phone_number);
}
?>

                <?php 
if (!empty($email_post)) {
    ?>
<i class="fa fa-envelope"></i><a href="mailto:<?php 
    echo esc_html($email_post);
    ?>
コード例 #27
0
ファイル: home.php プロジェクト: Ashleyotero/oldest-old
<h6>Flyers</h6> 
<img src="/wp-content/uploads/2012/01/stst.jpg" width="100" />
<img src="/wp-content/uploads/2012/01/toasters.jpg" width="100" />
</div>
</div>
</div>
<hr />

<!--END RIGHT SIDE-->

<!--3 CATEGORIES-->
<?php 
$i = 0;
$dt_bot_1st_cat = '';
if (function_exists('get_option_tree') && get_option_tree('berlin_bottom_1') != '') {
    $dt_bot_1st_cat = get_option_tree('berlin_bottom_1');
}
$display_categories = array("{$dt_bot_1st_cat}");
foreach ($display_categories as $category) {
    query_posts("showposts=1&cat={$category}");
    ?>
 

<?php 
    while (have_posts()) {
        the_post();
        $i++;
        ?>
 
    
<div class="column span-twoseventyfivepx post-<?php 
コード例 #28
0
ファイル: footer.php プロジェクト: sebfabiani/vcv
         
        <?php 
lambda_after_footer_hook();
// action hook, see functions/theme-hooks.php
?>

    </div><!-- # wrap -->
</div>
<?php 
#-----------------------------------------------------------------
# Special JavaScripts
# Do not edit anything below to keep theme functions
#-----------------------------------------------------------------
// Google Analytics
if (get_option_tree('google_analytics')) {
    echo stripslashes(get_option_tree('google_analytics'));
}
?>

<?php 
wp_footer();
?>

<script type="text/javascript">
/* <![CDATA[ */

    <?php 
lambda_java_footer_hook();
// action hook, see functions/theme-hooks.php
?>
コード例 #29
0
<?php

/**
 * Template Name: Team Template
 *
 * lambda framework v 2.1
 * by www.unitedthemes.com
 * since lambda framework v 1.0
 * based on skeleton
*/
global $lambda_meta_data;
$meta_sidebar = $lambda_meta_data->get_the_value('sidebar');
$meta_sidebar = !empty($meta_sidebar) ? $meta_sidebar : get_option_tree('select_sidebar');
//includes the header.php
get_header();
//includes the template-part-slider.php
get_template_part('template-part', 'slider');
//includes the template-part-teaser.php
get_template_part('template-part', 'teaser');
//content opener - this function can be found in functions/theme-layout-functions.php line 5-50
lambda_before_content($columns = 'sixteen');
?>

<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>

<section>
	<article>
コード例 #30
0
    function lambda_woo_before_content()
    {
        global $lambda_meta_data;
        if (is_shop()) {
            $shopid = get_option('woocommerce_shop_page_id');
            $meta_sidebar = get_post_meta($shopid, $lambda_meta_data->get_the_id(), TRUE);
            $sidebar_align = get_post_meta($shopid, $lambda_meta_data->get_the_id(), TRUE);
        } else {
            $meta_sidebar = $lambda_meta_data->the_meta();
            $sidebar_align = $lambda_meta_data->the_meta();
        }
        $sidebar = isset($meta_sidebar['sidebar']) ? $meta_sidebar['sidebar'] : get_option_tree('select_sidebar');
        $sidebar_second = isset($meta_sidebar['sidebar_second']) ? $meta_sidebar['sidebar_second'] : get_option_tree('select_sidebar_second');
        $sidebar_align = isset($sidebar_align['sidebar_align']) ? $sidebar_align['sidebar_align'] : get_option_tree('sidebar_alignement');
        #-----------------------------------------------------------------
        # special global for woocommerce
        #-----------------------------------------------------------------
        $GLOBALS['lambda_shop_sidebaralign'] = $sidebar_align;
        $GLOBALS['lambda_sidebar'] = $sidebar;
        #-----------------------------------------------------------------
        # includes the template-part-slider.php
        #-----------------------------------------------------------------
        get_template_part('template-part', 'slider');
        #-----------------------------------------------------------------
        # set column layout depending if user wants to display a sidebar
        #-----------------------------------------------------------------
        if ($sidebar != UT_THEME_INITIAL . 'sidebar_none') {
            $columns = '';
        } elseif ($sidebar == UT_THEME_INITIAL . 'sidebar_none') {
            $columns = 'sixteen';
        }
        #-----------------------------------------------------------------
        # Standard Column Set
        #-----------------------------------------------------------------
        if (empty($columns) && $sidebar_align != 'both') {
            //one sidebar
            $columns = 'eleven';
            $GLOBALS['lambda_content_column'] = $columns;
        } elseif (empty($columns) && $sidebar_align == 'both') {
            //two sidebars
            $columns = 'eight';
            $GLOBALS['lambda_content_column'] = $columns;
        } else {
            // Check the function for a returned variable
            $columns = $columns;
            $GLOBALS['lambda_content_column'] = $columns;
        }
        #----------------------------------------------------------------
        # Markup
        #----------------------------------------------------------------
        echo '<div id="content-wrap" class="fluid clearfix" data-content="content"><!-- /#start content-wrap -->
					<div class="container">';
        if ($columns == 'eight' && $sidebar_align == 'both') {
            echo '<aside id="sidebar_second" class="four columns" role="complementary">';
            echo '<ul>';
            if (isset($sidebar_second)) {
                dynamic_sidebar($sidebar_second);
            }
            echo '</ul>';
            echo '</aside><!-- #sidebar -->';
        }
        echo '<div id="content" class="' . $columns . ' columns">';
    }