Example #1
0
<?php

/**
 * Templatepart for Slideroutput
 * by www.unitedthemes.com
 * since lambda framework v 2.0
 */
global $wpdb;
$slides = lambda_return_meta('slider');
$teaserstatus = isset($slides['hide_teaser']) ? $slides['hide_teaser'] : 'teaseron';
$removeborder = $teaserstatus == 'teaseron' ? 'remove-border' : '';
if (isset($slides['sliderstyle_type']) && !(is_archive() || is_search())) {
    if ($slides['sliderstyle_type'] == 'static_image') {
        $margintop = isset($slides['static_image_size']) && $slides['static_image_size'] == 'on' ? 'style="margin-top:40px;"' : '';
        echo '<div id="lambda-featured-header-wrap" ' . $margintop . ' class="' . $removeborder . '"><div id="lambda-featured-header">
					<figure class="lambda-featured-header-image">';
        //optional url
        $url = isset($slides['static_image_url']) ? $slides['static_image_url'] : '';
        echo isset($slides['static_image']) ? '<a href="' . $url . '"><img src="' . $slides['static_image'] . '" /></a>' : '';
        //optional Caption
        echo isset($slides['static_image_caption']) ? '<div class="container"><div class="row-fluid"><figcaption class="lambda-featured-header-caption"><span>' . $slides['static_image_caption'] . '</span></figcaption></div></div>' : '';
        echo '</figure></div></div>';
    }
    if ($slides['sliderstyle_type'] == 'static_video') {
        echo '<div id="lambda-featured-header-wrap" class="' . $removeborder . '"><div class="container"><div class="row-fluid"><div class="lambda-video span12">';
        echo do_shortcode($slides['single_embedded_code']);
        echo '</div></div></div></div>';
    }
    if ($slides['sliderstyle_type'] == 'static_slider') {
        if (isset($slides['main_slider'])) {
            $sliderinfo = explode('_', $slides['main_slider']);
Example #2
0
 function get_wrap_padding()
 {
     $theme_options = get_option('option_tree');
     $metadata = lambda_return_meta('page');
     if (!empty($metadata['top_header_style']) && $metadata['top_header_style'] != 'default') {
         $headerstyle = $metadata['top_header_style'];
     } else {
         $headerstyle = !empty($theme_options['top_header_style']) ? $theme_options['top_header_style'] : 'th1';
     }
     $theme_options['th1_height'] = !empty($theme_options['th1_height']) ? $theme_options['th1_height'] : '62';
     $theme_options['th2_height'] = !empty($theme_options['th2_height']) ? $theme_options['th2_height'] : '96';
     $theme_options['th3_height'] = !empty($theme_options['th3_height']) ? $theme_options['th3_height'] : '96';
     $theme_options['th4_height'] = !empty($theme_options['th4_height']) ? $theme_options['th4_height'] : '96';
     $theme_options['th5_height'] = !empty($theme_options['th5_height']) ? $theme_options['th5_height'] : '97';
     $theme_options['th6_height'] = !empty($theme_options['th6_height']) ? $theme_options['th6_height'] : '101';
     /* default header paddings */
     $headerstyles = array('th1' => $theme_options['th1_height'], 'th2' => $theme_options['th2_height'], 'th3' => $theme_options['th3_height'], 'th4' => $theme_options['th4_height'], 'th5' => $theme_options['th5_height'], 'th6' => $theme_options['th6_height']);
     /* check if admin bar is active - default admin bar height is 28 */
     if (is_admin_bar_showing()) {
         $padding = $headerstyles[$headerstyle];
         $padding = $padding - 28;
     }
     /* only set a padding value if we have a dynamic header */
     if (isset($theme_options['fixed_header']) && $theme_options['fixed_header'] == 'on') {
         $padding = $headerstyles[$headerstyle];
         $padding = 'style="padding-top: ' . $padding . 'px;"';
     } else {
         /* fixed header is turned off = no output */
         $padding = '';
     }
     echo $padding;
 }
Example #3
0
    function lambda_custom_css()
    {
        global $lambda_meta_data, $slider_meta_data;
        $theme_path = get_template_directory_uri();
        $theme_options = get_option('option_tree');
        $finalcss = '<style type="text/css">';
        #-----------------------------------------------------------------
        # needed variables
        #-----------------------------------------------------------------
        $color_scheme = !empty($theme_options['themecolor']) ? $theme_options['themecolor'] : '#4CB0DB';
        //Get needed meta variables
        if (is_home()) {
            $homeid = get_option('page_for_posts');
            $pagemetadata = get_post_meta($homeid, $lambda_meta_data->get_the_id(), TRUE);
            $slidermetadata = get_post_meta($homeid, $slider_meta_data->get_the_id(), TRUE);
        } else {
            $pagemetadata = $lambda_meta_data->the_meta();
            $slidermetadata = $slider_meta_data->the_meta();
        }
        if (isset($theme_options['sitelayout']) && $theme_options['sitelayout'] == 'boxed') {
            $finalcss .= '.boxed {
			
			max-width:1230px;
			
		}';
        }
        #-----------------------------------------------------------------
        # Sidebar Alignement
        #-----------------------------------------------------------------
        $page_settings = !empty($pagemetadata['sidebar_align']) ? $pagemetadata['sidebar_align'] : '';
        $sidebar_position = !empty($page_settings) ? $page_settings : $theme_options['sidebar_alignement'];
        $content_position = $sidebar_position == "right" ? "left" : "right";
        $sidebar_padding = $sidebar_position == "right" ? "left" : "right";
        $sidebar_second_padding = $sidebar_position == "both" ? "left" : "right";
        if (!is_page_template('template-home.php')) {
            $finalcss .= "\n        #wrap #content {float: {$content_position};}\n        #wrap #sidebar {float: {$sidebar_position};}\n        #wrap #sidebar .sidebar {padding-{$sidebar_padding}: 10px;padding-{$sidebar_position}: 0px;}\n        \n        /* second sidebar enhancement */\t\n        #wrap #sidebar_second {float:{$content_position};}\n        #wrap #sidebar_second .sidebar {padding-{$sidebar_second_padding}: 10px;padding-{$content_position}: 0px;}";
        }
        #-----------------------------------------------------------------
        # Custom Background
        #-----------------------------------------------------------------
        if (isset($theme_options['sitelayout']) && $theme_options['sitelayout'] == 'boxed') {
            if ($theme_options['background_type'] == 'default_backgroundcolor') {
                $finalcss .= 'body { background: ' . $theme_options['default_backgroundcolor'] . ' !important; }';
            } elseif ($theme_options['background_type'] == 'default_backgroundpattern') {
                $finalcss .= 'body { background: #FFF url(' . $theme_path . '/images/pattern/' . $theme_options['default_backgroundpattern']['background-image'] . ') repeat; }';
            } elseif ($theme_options['background_type'] == 'default_backgroundtexture') {
                $finalcss .= 'body { background: #FFF url(' . $theme_path . '/images/bg-textured/' . $theme_options['default_backgroundtexture']['background-image'] . ') repeat-x; }';
            } elseif ($theme_options['background_type'] == 'default_backgroundimage') {
                $finalcss .= '
				body { 
					background: #FFF url(' . $theme_options['default_backgroundimage'] . ');
					background-attachment: scroll;
					background-repeat: no-repeat;
					background-position: center top;								
				}';
            }
        }
        #-----------------------------------------------------------------
        # Custom Featured Header
        #-----------------------------------------------------------------
        //overwrite default values coming from meta panel if necessary
        $backgroundtype = !empty($slidermetadata['slider_background_type']) ? $slidermetadata['slider_background_type'] : '';
        $backgroundpattern = !empty($slidermetadata['slider_default_backgroundpattern']) ? $slidermetadata['slider_default_backgroundpattern'] : '';
        $backgroundimage['background-color'] = !empty($slidermetadata['slider_default_backgroundcolor']) ? $slidermetadata['slider_default_backgroundcolor'] : '';
        $backgroundimage['background-image'] = !empty($slidermetadata['slider_default_background_image']) ? $slidermetadata['slider_default_background_image'] : '';
        $backgroundimage['background-repeat'] = !empty($slidermetadata['slider_default_background_repeat']) ? $slidermetadata['slider_default_background_repeat'] : '';
        $backgroundimage['background-position'] = !empty($slidermetadata['slider_default_background_position']) ? $slidermetadata['slider_default_background_position'] : '';
        $backgroundimage['background-attachment'] = !empty($slidermetadata['slider_default_background_attachment']) ? $slidermetadata['slider_default_background_attachment'] : '';
        if ($backgroundtype == 'slider_default_backgroundpattern') {
            $finalcss .= '#lambda-featured-header-wrap { background: url(' . $theme_path . '/images/pattern/' . $backgroundpattern . ') repeat; }';
        } elseif ($backgroundtype == 'slider_default_backgroundimage') {
            $finalcss .= '#lambda-featured-header-wrap { background:' . $backgroundimage['background-color'] . ' url(' . $backgroundimage['background-image'] . ') ' . $backgroundimage['background-repeat'] . ' ' . $backgroundimage['background-position'] . ' ' . $backgroundimage['background-attachment'] . '; }';
        }
        #-----------------------------------------------------------------
        # Declare CSS Font Stacks for reuse
        #-----------------------------------------------------------------
        $websafefonts = array('arial' => 'Arial, Helvetica, sans-serif', 'georgia' => 'Georgia, serif', 'helvetica' => '"HelveticaNeue","Helvetica Neue",Helvetica,Arial,sans-serif', 'tahoma' => 'Tahoma, Geneva, sans-serif', 'times' => '"Times New Roman", Times, serif', 'trebuchet' => '"Trebuchet MS", Helvetica, sans-serif', 'verdana' => 'Verdana, Geneva, sans-serif', 'impact' => 'Impact, Charcoal, sans-serif', 'palatino' => '"Palatino Linotype", "Book Antiqua", Palatino, serif', 'century' => 'Century Gothic, sans-serif', 'lucida' => '"Lucida Sans Unicode", "Lucida Grande", sans-serif', 'luciaconsole' => '"Lucida Console", Monaco, monospace', 'arialblack' => '"Arial Black", Gadget, sans-serif', 'arialnarrow' => '"Arial Narrow", sans-serif', 'copperplate' => 'Copperplate / Copperplate Gothic Light, sans-serif', 'gillsans' => 'Gill Sans / Gill Sans MT, sans-serif', 'courier' => '"Courier New", Courier, monospace');
        #-----------------------------------------------------------------
        # Add Custom Font to font stack
        #-----------------------------------------------------------------
        if (isset($theme_options['custom_font']) && is_array($theme_options['custom_font'])) {
            foreach ($theme_options['custom_font'] as $key => $value) {
                $websafefonts[strtolower($value['title'])] = '"' . $value['title'] . '"';
            }
        }
        #-----------------------------------------------------------------
        # Color Helper Functions
        #-----------------------------------------------------------------
        function HexToRGB($hex)
        {
            $hex = str_replace("#", "", $hex);
            $color = array();
            if (strlen($hex) == 3) {
                $color['r'] = hexdec(substr($hex, 0, 1) . $r);
                $color['g'] = hexdec(substr($hex, 1, 1) . $g);
                $color['b'] = hexdec(substr($hex, 2, 1) . $b);
            } else {
                if (strlen($hex) == 6) {
                    $color['r'] = hexdec(substr($hex, 0, 2));
                    $color['g'] = hexdec(substr($hex, 2, 2));
                    $color['b'] = hexdec(substr($hex, 4, 2));
                }
            }
            $color = implode(',', $color);
            return $color;
        }
        function RGBToHex($r, $g, $b)
        {
            $hex = "#";
            $hex .= str_pad(dechex($r), 2, "0", STR_PAD_LEFT);
            $hex .= str_pad(dechex($g), 2, "0", STR_PAD_LEFT);
            $hex .= str_pad(dechex($b), 2, "0", STR_PAD_LEFT);
            return $hex;
        }
        #-----------------------------------------------------------------
        # Load Cutom Font Face
        #-----------------------------------------------------------------
        if (isset($theme_options['custom_font']) && is_array($theme_options['custom_font'])) {
            foreach ($theme_options['custom_font'] as $key => $value) {
                $finalcss .= "@font-face {";
                if (!empty($value['title'])) {
                    $finalcss .= "\t\t" . "font-family: '" . $value['title'] . "';";
                }
                if (!empty($value['embedded-opentype'])) {
                    $finalcss .= "\t\t" . "src: url('" . $value['embedded-opentype'] . "');";
                    $finalcss .= "\t\t" . "src: url('" . $value['embedded-opentype'] . "?#iefix') format('embedded-opentype'),";
                }
                if (!empty($value['woff'])) {
                    $finalcss .= "\t\t" . "url('" . $value['woff'] . "') format('woff'),";
                }
                if (!empty($value['truetype'])) {
                    $finalcss .= "\t\t" . "url('" . $value['truetype'] . "') format('truetype'),";
                }
                if (!empty($value['svg'])) {
                    $finalcss .= "\t\t" . "url('" . $value['svg'] . "') format('svg');";
                }
                $finalcss .= "}";
            }
        }
        #-----------------------------------------------------------------
        # Body Typography
        #-----------------------------------------------------------------
        if (!empty($theme_options['bodyfont'])) {
            $finalcss .= 'body, .ut-clients blockquote, .author-description {';
            $finalcss .= 'color:' . $theme_options['bodyfont']['font-color'] . ';';
            $finalcss .= 'font-size:' . $theme_options['bodyfont']['font-size'] . ';';
            if (!empty($websafefonts[$theme_options['bodyfont']['font-family']])) {
                // Custom Font
                $finalcss .= 'font-family:' . $websafefonts[$theme_options['bodyfont']['font-family']] . ';';
            } else {
                // Fallback Font
                $finalcss .= 'font-family:' . $websafefonts['arial'] . ';';
            }
            $finalcss .= 'font-weight:' . $theme_options['bodyfont']['font-weight'] . ';';
            $finalcss .= 'font-style:' . $theme_options['bodyfont']['font-style'] . ';';
            $finalcss .= '}';
        }
        #-----------------------------------------------------------------
        # Headlines
        #-----------------------------------------------------------------
        if (!empty($theme_options['headline_font_face_type']) && $theme_options['headline_font_face_type'] == 'headline_font_face_google') {
            $fontface = lambda_polish_font_name($theme_options['headline_font_face_google']['font-family']);
        } elseif (!empty($websafefonts[$theme_options['headline_font_face_websafe']['font-family']])) {
            $fontface = $websafefonts[$theme_options['headline_font_face_websafe']['font-family']];
        } else {
            $fontface = 'Arial, Helvetica, sans-serif';
        }
        $finalcss .= 'h1 { font-family: ' . $fontface . ';
		 font-size: ' . $theme_options['h1_font_size']['0'] . $theme_options['h1_font_size']['1'] . ';
	}';
        $finalcss .= 'h2 { font-family: ' . $fontface . '; 
		 font-size: ' . $theme_options['h2_font_size']['0'] . $theme_options['h2_font_size']['1'] . ';
	}';
        $finalcss .= 'h3 { font-family: ' . $fontface . '; 
		 font-size: ' . $theme_options['h3_font_size']['0'] . $theme_options['h3_font_size']['1'] . ';
	}';
        $finalcss .= 'h4 { font-family: ' . $fontface . '; 
		 font-size: ' . $theme_options['h4_font_size']['0'] . $theme_options['h4_font_size']['1'] . ';
	}';
        $finalcss .= 'h5 { font-family: ' . $fontface . '; 
		 font-size: ' . $theme_options['h5_font_size']['0'] . $theme_options['h5_font_size']['1'] . ';
	}';
        $finalcss .= 'h6 { font-family: ' . $fontface . '; 
		 font-size: ' . $theme_options['h6_font_size']['0'] . $theme_options['h6_font_size']['1'] . ';
	}';
        $finalcss .= 'h1, h2, h3, h4, h5, h6 {
		color: ' . $theme_options['headline_font_color'] . ';
	}';
        if (!empty($theme_options['headline_font_face_type']) && $theme_options['headline_font_face_type'] == 'headline_font_face_websafe') {
            $finalcss .= ' h1, h2, h3, h4, h5, h6 {
			font-weight: ' . $theme_options['headline_font_face_websafe']['font-weight'] . ';
			font-style: ' . $theme_options['headline_font_face_websafe']['font-style'] . '; 
		}';
        }
        $finalcss .= 'span.client-title strong {
		font-family: ' . $fontface . '; 
	}';
        #-----------------------------------------------------------------
        # Page Title & Teaser
        #-----------------------------------------------------------------
        if (!empty($theme_options['page_title'])) {
            $finalcss .= '#page-title, .featured-header-title {';
            $finalcss .= 'color:' . $theme_options['page_title']['font-color'] . ';';
            $finalcss .= 'font-size:' . $theme_options['page_title']['font-size'] . ';';
            if (!empty($websafefonts[$theme_options['page_title']['font-family']])) {
                // Custom Font
                $finalcss .= 'font-family:' . $websafefonts[$theme_options['page_title']['font-family']] . ';';
            } else {
                // Fallback Font
                $finalcss .= 'font-family:' . $websafefonts['arial'] . ';';
            }
            $finalcss .= 'font-weight:' . $theme_options['page_title']['font-weight'] . ';';
            $finalcss .= 'font-style:' . $theme_options['page_title']['font-style'] . ';';
            $finalcss .= 'text-transform:' . $theme_options['page_title']['font-transform'] . ';';
            $finalcss .= '}';
        }
        if (!empty($theme_options['home_title'])) {
            $finalcss .= '.ut-title, .portfolio-info .ut-title span {';
            $finalcss .= 'color:' . $theme_options['home_title']['font-color'] . ';';
            $finalcss .= 'font-size:' . $theme_options['home_title']['font-size'] . ';';
            if (!empty($websafefonts[$theme_options['home_title']['font-family']])) {
                // Custom Font
                $finalcss .= 'font-family:' . $websafefonts[$theme_options['home_title']['font-family']] . ';';
            } else {
                // Fallback Font
                $finalcss .= 'font-family:' . $websafefonts['arial'] . ';';
            }
            $finalcss .= 'font-weight:' . $theme_options['home_title']['font-weight'] . ';';
            $finalcss .= 'font-style:' . $theme_options['home_title']['font-style'] . ';';
            $finalcss .= 'text-transform:' . $theme_options['home_title']['font-transform'] . ';';
            $finalcss .= '}';
        }
        if (!empty($theme_options['page_teaser'])) {
            $finalcss .= 'p.teaser-text {';
            $finalcss .= 'color:' . $theme_options['page_teaser']['font-color'] . ';';
            $finalcss .= 'font-size:' . $theme_options['page_teaser']['font-size'] . ';';
            if (!empty($websafefonts[$theme_options['page_teaser']['font-family']])) {
                // Custom Font
                $finalcss .= 'font-family:' . $websafefonts[$theme_options['page_teaser']['font-family']] . ';';
            } else {
                // Fallback Font
                $finalcss .= 'font-family:' . $websafefonts['arial'] . ';';
            }
            $finalcss .= 'font-weight:' . $theme_options['page_teaser']['font-weight'] . ';';
            $finalcss .= 'font-style:' . $theme_options['page_teaser']['font-style'] . ';';
            $finalcss .= 'text-transform:' . $theme_options['page_teaser']['font-transform'] . ';';
            $finalcss .= '}';
        }
        #-----------------------------------------------------------------
        # Logo
        #-----------------------------------------------------------------
        if (!empty($theme_options['logo_font'])) {
            $finalcss .= '#logo h1, #logo h1 a {';
            $finalcss .= 'color:' . $theme_options['logo_font']['font-color'] . ';';
            $finalcss .= 'font-size:' . $theme_options['logo_font']['font-size'] . ';';
            if (!empty($websafefonts[$theme_options['logo_font']['font-family']])) {
                // Custom Font
                $finalcss .= 'font-family:' . $websafefonts[$theme_options['logo_font']['font-family']] . ';';
            } else {
                // Fallback Font
                $finalcss .= 'font-family:' . $websafefonts['arial'] . ';';
            }
            $finalcss .= 'font-weight:' . $theme_options['logo_font']['font-weight'] . ';';
            $finalcss .= 'font-style:' . $theme_options['logo_font']['font-style'] . ';';
            $finalcss .= 'text-transform:' . $theme_options['logo_font']['font-transform'] . ';';
            $finalcss .= '}';
        }
        #-----------------------------------------------------------------
        # Widget Titles
        #-----------------------------------------------------------------
        if (!empty($theme_options['sidebar_widget_title'])) {
            $finalcss .= '.widget-title, .home-title, .page-title, .archive-title, .ut-title {';
            $finalcss .= 'color:' . $theme_options['sidebar_widget_title']['font-color'] . ';';
            $finalcss .= 'font-size:' . $theme_options['sidebar_widget_title']['font-size'] . ';';
            if (!empty($websafefonts[$theme_options['sidebar_widget_title']['font-family']])) {
                // Custom Font
                $finalcss .= 'font-family:' . $websafefonts[$theme_options['sidebar_widget_title']['font-family']] . ';';
            } else {
                // Fallback Font
                $finalcss .= 'font-family:' . $websafefonts['arial'] . ';';
            }
            $finalcss .= 'font-weight:' . $theme_options['sidebar_widget_title']['font-weight'] . ';';
            $finalcss .= 'font-style:' . $theme_options['sidebar_widget_title']['font-style'] . ';';
            $finalcss .= 'text-transform:' . $theme_options['sidebar_widget_title']['font-transform'] . ';';
            $finalcss .= '}';
            $finalcss .= '.widget-title a { ';
            $finalcss .= 'color:' . $theme_options['sidebar_widget_title']['font-color'] . ';';
            $finalcss .= '}';
        }
        if (!empty($theme_options['footer_widget_title'])) {
            $finalcss .= '#footer .widget-title {';
            $finalcss .= 'color:' . $theme_options['footer_widget_title']['font-color'] . ';';
            $finalcss .= 'font-size:' . $theme_options['footer_widget_title']['font-size'] . ';';
            if (!empty($websafefonts[$theme_options['footer_widget_title']['font-family']])) {
                // Custom Font
                $finalcss .= 'font-family:' . $websafefonts[$theme_options['footer_widget_title']['font-family']] . ';';
            } else {
                // Fallback Font
                $finalcss .= 'font-family:' . $websafefonts['arial'] . ';';
            }
            $finalcss .= 'font-weight:' . $theme_options['footer_widget_title']['font-weight'] . ';';
            $finalcss .= 'font-style:' . $theme_options['footer_widget_title']['font-style'] . ';';
            $finalcss .= 'text-transform:' . $theme_options['footer_widget_title']['font-transform'] . ';';
            $finalcss .= '}';
        }
        #-----------------------------------------------------------------
        # Blog Styling
        #-----------------------------------------------------------------
        if (!empty($theme_options['blog_titles'])) {
            $finalcss .= '.entry-title { ';
            $finalcss .= 'color:' . $theme_options['blog_titles']['font-color'] . ';';
            $finalcss .= 'font-size:' . $theme_options['blog_titles']['font-size'] . ';';
            if (!empty($websafefonts[$theme_options['blog_titles']['font-family']])) {
                // Custom Font
                $finalcss .= 'font-family:' . $websafefonts[$theme_options['blog_titles']['font-family']] . ';';
            } else {
                // Fallback Font
                $finalcss .= 'font-family:' . $websafefonts['arial'] . ';';
            }
            $finalcss .= 'font-weight:' . $theme_options['blog_titles']['font-weight'] . ';';
            $finalcss .= 'font-style:' . $theme_options['blog_titles']['font-style'] . ';';
            $finalcss .= 'text-transform:' . $theme_options['blog_titles']['font-transform'] . ';';
            $finalcss .= '}';
            $finalcss .= '.entry-title a { ';
            $finalcss .= 'color:' . $theme_options['blog_titles']['font-color'] . ';';
            $finalcss .= '}';
        }
        if (!empty($theme_options['blog_titles_home'])) {
            $finalcss .= '.recent-post .entry-title { ';
            $finalcss .= 'color:' . $theme_options['blog_titles_home']['font-color'] . ';';
            $finalcss .= 'font-size:' . $theme_options['blog_titles_home']['font-size'] . ';';
            if (!empty($websafefonts[$theme_options['blog_titles_home']['font-family']])) {
                // Custom Font
                $finalcss .= 'font-family:' . $websafefonts[$theme_options['blog_titles_home']['font-family']] . ';';
            } else {
                // Fallback Font
                $finalcss .= 'font-family:' . $websafefonts['arial'] . ';';
            }
            $finalcss .= 'font-weight:' . $theme_options['blog_titles_home']['font-weight'] . ';';
            $finalcss .= 'font-style:' . $theme_options['blog_titles_home']['font-style'] . ';';
            $finalcss .= 'text-transform:' . $theme_options['blog_titles_home']['font-transform'] . ';';
            $finalcss .= '}';
        }
        if (!empty($theme_options['blog_titles'])) {
            $finalcss .= '.link-post-title { ';
            $finalcss .= 'font-size:' . $theme_options['blog_titles']['font-size'] . ';';
            if (!empty($websafefonts[$theme_options['blog_titles']['font-family']])) {
                // Custom Font
                $finalcss .= 'font-family:' . $websafefonts[$theme_options['blog_titles']['font-family']] . ';';
            } else {
                // Fallback Font
                $finalcss .= 'font-family:' . $websafefonts['arial'] . ';';
            }
            $finalcss .= 'font-weight:' . $theme_options['blog_titles']['font-weight'] . ';';
            $finalcss .= 'font-style:' . $theme_options['blog_titles']['font-style'] . ';';
            $finalcss .= 'text-transform:' . $theme_options['blog_titles']['font-transform'] . ';';
            $finalcss .= '}';
            $finalcss .= '.link-post-title a { ';
            $finalcss .= 'color:' . $theme_options['blog_titles']['font-color'] . ';';
            $finalcss .= '}';
        }
        #-----------------------------------------------------------------
        # Revolution Slider Caption
        #----------------------------------------------------------------
        $finalcss .= '
	.caption.themecolor_background {
		background-color: ' . $color_scheme . ' ;
	}
	.caption.themecolor_normal {
		color: ' . $color_scheme . ';
	}
	.themecolor-background {
		background: ' . $color_scheme . ';
		-moz-border-radius: 2px;
		border-radius: 2px;
		padding: 5px 10px;
	}	
	.themebutton.button {
		background: ' . $color_scheme . ';
		color:#FFFFFF;
	}
	.themebutton2:hover {
		background: ' . $color_scheme . ';
	}';
        #-----------------------------------------------------------------
        # Navigation Customisation
        #-----------------------------------------------------------------
        //Navigation Level 1
        if (!empty($theme_options['navigation_font'])) {
            $finalcss .= '#navigation ul li a {';
            $finalcss .= 'color:' . $theme_options['navigation_font']['font-color'] . ';';
            $finalcss .= 'font-size:' . $theme_options['navigation_font']['font-size'] . ';';
            if (!empty($websafefonts[$theme_options['navigation_font']['font-family']])) {
                // Custom Font
                $finalcss .= 'font-family:' . $websafefonts[$theme_options['navigation_font']['font-family']] . ';';
            } else {
                // Fallback Font
                $finalcss .= 'font-family:' . $websafefonts['arial'] . ';';
            }
            $finalcss .= 'font-weight:' . $theme_options['navigation_font']['font-weight'] . ';';
            $finalcss .= 'font-style:' . $theme_options['navigation_font']['font-style'] . ';';
            $finalcss .= 'text-transform:' . $theme_options['navigation_font']['font-transform'] . ';';
            $finalcss .= '}';
        }
        //Navigation Level 2 Link Style
        if (!empty($theme_options['drop_down_font_color'])) {
            $finalcss .= '#navigation ul.sub-menu li a {';
            $finalcss .= 'color:' . $theme_options['drop_down_font_color']['font-color'] . ' !important;';
            $finalcss .= 'font-size:' . $theme_options['drop_down_font_color']['font-size'] . ';';
            if (!empty($websafefonts[$theme_options['drop_down_font_color']['font-family']])) {
                // Custom Font
                $finalcss .= 'font-family:' . $websafefonts[$theme_options['drop_down_font_color']['font-family']] . ';';
            } else {
                // Fallback Font
                $finalcss .= 'font-family:' . $websafefonts['arial'] . ';';
            }
            $finalcss .= 'font-weight:' . $theme_options['drop_down_font_color']['font-weight'] . ';';
            $finalcss .= 'font-style:' . $theme_options['drop_down_font_color']['font-style'] . ';';
            $finalcss .= 'text-transform:' . $theme_options['drop_down_font_color']['font-transform'] . ';';
            $finalcss .= '}';
        }
        $finalcss .= '
	#navigation ul a:hover {
		color: ' . $color_scheme . ' !important;
	}
	#navigation ul li:hover a {
		color: ' . $color_scheme . ';
	}
	#navigation ul li ul li:hover a{
		color: ' . $theme_options['drop_down_font_color_hover'] . ' !important;
	}
	#navigation ul.sub-menu .current-menu-ancestor a {
		color: ' . $theme_options['drop_down_font_color_hover'] . ' !important;
	}
	#navigation ul.sub-menu .current-menu-ancestor ul a {
		color: ' . $theme_options['drop_down_font_color']['font-color'] . ' !important;
	}
	#navigation ul.sub-menu .current-menu-ancestor ul a:hover {
		color: ' . $theme_options['drop_down_font_color_hover'] . ' !important;
	}
	#navigation ul.sub-menu .current-menu-ancestor ul li.active > a {
		color: ' . $theme_options['drop_down_font_color_hover'] . ' !important;
	}	
	#navigation ul li ul li:hover ul li a {
		color: ' . $theme_options['drop_down_font_color']['font-color'] . ' !important;
	}
	#navigation ul.sub-menu a:hover {
		color: ' . $theme_options['drop_down_font_color_hover'] . ' !important;
	}
	#navigation ul > li.active > a {
		color: ' . $theme_options['navigation_active'] . ' !important;		
	}
	#navigation ul > li ul li ul li.active > a,
	#navigation ul > li ul li.active > a {
		color: ' . $theme_options['drop_down_font_color_hover'] . ' !important;
		background: #141414;
	}
	';
        #-----------------------------------------------------------------
        # Color Variations
        #-----------------------------------------------------------------
        $finalcss .= '
	
	
	::-moz-selection  {
		color: #FFFFFF !important;
		background: ' . $color_scheme . ';
	}
	::selection {
		color: #FFFFFF !important;
		background:' . $color_scheme . ';
	}
	
	
	.alignnone img:hover,
	img.alignnone:hover,
	.attachment-thumbnail:hover,
	.attachment-medium:hover,
	.attachment-large:hover,
	.attachment-full:hover,
	#footer .lambda_widget_flickr .flickr_items a:hover,
	#footer .lambda_widget_flickr .flickr_items a:focus,
	.flickr_items li a:hover,
	.flickr_items li a:focus,
	.size-full:hover,
	.size-large:hover,
	.size-medium:hover,
	.size-thumbnail:hover,
  	.pager img.selected,
	.pager img:hover {
		border-color:' . $color_scheme . ' !important;
	}
	
	
	.ut-cta-shadow {
		border-left:2px solid ' . $color_scheme . ';
	}
	
	
	.fbg5,
	.top-header.th6 {
	}
	.archive-title span,
	.page-title span,
	.ut-title span,
	.home-title span,
	.widget-title span {
		
	}
	
	#wp-calendar td#today,
	address {
	background: ' . $color_scheme . ' !important;
	}
	
	.ut-bar,
	.tp-caption.delaware_big_sub-title_BG,
	.mask .mask-inner .hi-icon-effect-1 .hi-icon:hover,
	.hi-icon-effect-1a .hi-icon:hover,
	.top-header.th3,
	.lambda-highlight1,
	.lambda-pricingtable.featured .lambda-pricingtable-top,
	.format-link .entry-title a {
		background: ' . $color_scheme . ';
	}
	
	.ut-btn.theme-btn {
	border:1px solid ' . $color_scheme . ';
	color:' . $color_scheme . ' !important;
	}
	.theme-btn:after {
	background:' . $color_scheme . ';
	}
	.theme-btn:hover,
	.theme-btn:active {
	color: #FFFFFF !important;
	}
	
	.pformat-marker {
	background:' . $color_scheme . ';
	border-color:' . $color_scheme . ';
	color:#FFFFFF;
	}
	
	.ut-portfolio-item h3:hover,
	.accordion-toggle,
	.accordion-toggle.collapsed:hover,
	hr.style-one, 
	.quote-caption a:hover,
	.more-link,
	.author-link,
	.comment-time i,
	.comment-reply i,
  	.themecolor,
	#wp-calendar a,
	.widget_rss .rss-date,
	.comment-edit-link:hover,
	.edit-link a:hover {
		color: ' . $color_scheme . ' !important;
	}
	
	.service h3 i,
	h1 a:hover, 
	h2 a:hover, 
	h3 a:hover, 
	h4 a:hover, 
	h5 a:hover, 
	h6 a:hover,
  	#mobile-menu ul li a,
	#mobile-menu .sub-menu li a:hover,
	.tp-caption.delaware_big_sub-title_theme-color,
	.testimonial-entry p:before,
	.testimonial-entry p:after,
	.top-header.th4 ul.lambda-sociallinks li:hover,
	.nav-tabs > .active > a,
	.nav-tabs > .active > a:hover,
	.nav-tabs > .active > a:focus,
	.nav-tabs > li > a:hover,
	.nav-tabs > li > a:focus,
	.required,
	input[type="submit"]:hover, 
	input[type="reset"]:hover, 
	input[type="button"]:hover,
	#footer input[type="submit"]:hover, 
	#footer [type="reset"]:hover, 
	#footer [type="button"]:hover,
	.nav-wrap ul.ut-default-menu i,
	.comment-author,
	.comment-author a,
	.mm-trigger.active .mm-button:before,
	.mm-button:hover:before,
	.mm-trigger:hover .mm-button:before,
	#toTop:hover:before,
	#toTop:hover,
	#footer strong,
	footer.entry-meta a:hover,
	footer.entry-meta i,
	#footer-wrap ul.lambda-sociallinks li:hover,
	ul.lambda-sociallinks li:hover,
	a,
	.entry-title a:hover,
	.sidebar a:hover,
	.widget-sidebar a:hover {
		color: ' . $color_scheme . ';
	}
	
	.hi-icon-effect-1 .hi-icon:after {
	box-shadow: 0 0 0 4px ' . $color_scheme . ';
	}
	
	hr.style-two { 
	border: 0; 
	height: 1px; 
	background: ' . $color_scheme . '; 
	background-image: -webkit-linear-gradient(left, #DDDDDD, ' . $color_scheme . ', #DDDDDD); 
	background-image: -moz-linear-gradient(left, #DDDDDD, ' . $color_scheme . ', #DDDDDD); 
	background-image: -ms-linear-gradient(left, #DDDDDD, ' . $color_scheme . ', #DDDDDD); 
	background-image: -o-linear-gradient(left, #DDDDDD, ' . $color_scheme . ', #DDDDDD);
	}
	
	.ut-qtprogress {
		 background: ' . $color_scheme . ';
	}';
        #-----------------------------------------------------------------
        # Image Animation
        #-----------------------------------------------------------------
        if (lambda_detect_ie()) {
            if (isset($theme_options['animation_area']) && is_array($theme_options['animation_area'])) {
                foreach ($theme_options['animation_area'] as $singlearea) {
                    if (!empty($singlearea['description']) && !empty($singlearea['effect'])) {
                        $classes = str_replace(array("\r\n", "\r"), '', $singlearea['description']);
                        if (!empty($singlearea['page']) && is_page($singlearea['page'])) {
                            $finalcss .= $classes . '{ display: block; }';
                        } elseif (empty($singlearea['page'])) {
                            $finalcss .= $classes . '{ display: block; }';
                        }
                    }
                }
            }
        } else {
            if (isset($theme_options['animation_area']) && is_array($theme_options['animation_area'])) {
                foreach ($theme_options['animation_area'] as $singlearea) {
                    if (!empty($singlearea['description']) && !empty($singlearea['effect'])) {
                        $classes = str_replace(array("\r\n", "\r"), '', $singlearea['description']);
                        if (!empty($singlearea['page']) && is_page($singlearea['page'])) {
                            $finalcss .= $classes . '{ visibility: hidden; }';
                        } elseif (empty($singlearea['page'])) {
                            $finalcss .= $classes . '{ visibility: hidden; }';
                        }
                    }
                }
            }
        }
        #-----------------------------------------------------------------
        # PageCreator
        #-----------------------------------------------------------------
        $pagecreator = lambda_return_meta('pagecreator');
        if (isset($pagecreator['activate_page_creator']) && $pagecreator['activate_page_creator'] == 'on') {
            $finalcss .= '.type-page.hentry { margin-bottom:20px !important; }';
        }
        #-----------------------------------------------------------------
        # Custom CSS out of Theme Options Panel
        #-----------------------------------------------------------------
        $finalcss .= stripslashes($theme_options['custom_css']);
        $finalcss .= '</style>';
        #-----------------------------------------------------------------
        # Output minified CSS
        #-----------------------------------------------------------------
        echo lambda_regx_removal($finalcss);
    }
Example #4
0
<?php

/**
 * The Sidebar containing the primary blog sidebar
 *
 * by www.unitedthemes.com
 * based on skeleton
 */
$sidebar = lambda_return_meta('page');
do_action('lambda_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('lambda_after_sidebar');
?>

Example #5
0
<?php

#-----------------------------------------------------------------
# UnitedThemes PageCreator
#-----------------------------------------------------------------
$boxmetadata = lambda_return_meta('pagecreator');
?>

<?php 
$row = 0;
if (is_array($boxmetadata['lambda_page_item'])) {
    $boxcounter = 1;
    $totalboxes = count($boxmetadata['lambda_page_item']);
    # loop through each box
    foreach ($boxmetadata['lambda_page_item'] as $singlebox) {
        if (isset($singlebox['box_type'])) {
            #-----------------------------------------------------------------
            # create a row if necessary
            #-----------------------------------------------------------------
            if ($singlebox['box_type'] != 'hrow') {
                if ($row == 0) {
                    echo '<div class="row-fluid">';
                }
            }
            #-----------------------------------------------------------------
            # box settings
            #-----------------------------------------------------------------
            $gridsize = isset($singlebox['grid_size']) ? $singlebox['grid_size'] : '940';
            $boxtitle = isset($singlebox['box_title']) ? $singlebox['box_title'] : false;
            $entrycontent = isset($singlebox['box_type']) && $singlebox['box_type'] == 'simple_textbox' ? true : false;
            $sidebar = isset($singlebox['box_type']) && $singlebox['box_type'] == 'sidebarwidget' ? true : false;
Example #6
0
<?php

$audiometa = lambda_return_meta('page');
?>

<div class="lambda-video">

    <?php 
echo isset($audiometa['portfolio_audio_embedded_code']) ? do_shortcode($audiometa['portfolio_audio_embedded_code']) : '';
?>

</div>
Example #7
0
// end of the loop.
?>


    <?php 
#-----------------------------------------------------------------
# FAQ optional information
#-----------------------------------------------------------------
?>

    <?php 
if (!post_password_required($post)) {
    ?>

    <?php 
    $faqitems = lambda_return_meta('page');
    ?>
       
    <?php 
    if (isset($faqitems[UT_THEME_INITIAL . 'faq_items']) && is_array($faqitems[UT_THEME_INITIAL . 'faq_items'])) {
        ?>
        
        <?php 
        $grouped = isset($faqitems['faq_setting']) && $faqitems['faq_setting'] == 'grouped' ? 'data-parent="#faq-accordion"' : '';
        ?>
                
        <div class="accordion" id="faq-accordion">
            
            <div class="accordion-group">
            
            <?php 
 function get_post_format_quote_content($pagecreator = false, $box = array())
 {
     /* if pagecreatgor is active , all needed variables are provided by $box */
     if ($pagecreator) {
         $content = !empty($box['quote']) ? lambda_translate_meta($box['quote']) : '';
         $source_name = !empty($box['quote_cite']) ? lambda_translate_meta($box['quote_cite']) : '';
         $source_url = !empty($box['quote_url']) ? lambda_translate_meta($box['quote_url']) : '';
         /* blog is requesting the quote */
     } else {
         $quotefound = '';
         /* Get the post content. */
         $content = get_the_content();
         /* retrieve meta data */
         $value = lambda_return_meta('postformat');
         /* check if there is a valid quote author and url shortcode inside the meta */
         if (isset($value['_format_quote_source_name']) && isset($value['_format_quote_source_url'])) {
             $source_name = !empty($value['_format_quote_source_name']) ? lambda_translate_meta($value['_format_quote_source_name']) : '';
             $source_url = !empty($value['_format_quote_source_url']) ? lambda_translate_meta($value['_format_quote_source_url']) : '';
             /* Start Quote */
             $quote = '';
             $quote .= '<figure class="quote">';
             $quote .= '<blockquote>';
             $quote .= '<p>' . $content . '</p>';
             $quote .= '</blockquote>';
             if (empty($source_url)) {
                 $quote .= '<figcaption class="quote-caption">-&nbsp;' . $source_name . '</figcaption>';
             } else {
                 $quote .= '<figcaption class="quote-caption"><a href="' . $source_url . '">-&nbsp;' . $source_name . '</a></figcaption>';
             }
             $quote .= '</figure>';
             /* Return Quote */
         } else {
             /* there is no valid source name and url */
             $quote = '';
             $quote .= '<figure class="quote">';
             $quote .= $content;
             $quote .= '</figure>';
         }
     }
     /* return final quote */
     return $quote;
 }
Example #9
0
 function lambda_breadcrumb_case($the_post)
 {
     global $post, $blog_page, $wp_query, $author;
     /**
      * Basic Conditionals
      */
     if (is_page()) {
         if ($the_post->post_parent) {
             $the_query = get_post($the_post->post_parent);
             $this->lambda_breadcrumb_case($the_query);
             echo $this->options['before'] . '<a href="' . get_permalink($the_query->ID) . '">' . get_the_title($the_query->ID) . '</a>' . $this->options['delimiter'] . $this->options['after'];
             if ($post->post_parent == $the_post->post_parent) {
                 echo $this->options['before'] . '<span class="active">' . get_the_title($post->ID) . '</span>' . $this->options['after'];
             }
         } elseif ($post->post_parent == $the_post->post_parent && !is_front_page()) {
             echo $this->options['before'] . '<span class="active">' . get_the_title($post->ID) . '</span>' . $this->options['after'];
         }
         return;
     }
     if (is_single()) {
         if (is_attachment()) {
             $parent = get_post($post->post_parent);
             $cat = get_the_category($parent->ID);
             $cat = $cat[0];
             echo is_wp_error($cat_parents = get_category_parents($cat, TRUE, ' ' . $this->options['delimiter'] . ' ')) ? '' : $cat_parents;
             echo '<a href="' . get_permalink($parent) . '">' . $parent->post_title . '</a> ' . $this->options['delimiter'] . ' ';
             echo $this->options['before'] . '<span class="active">' . get_the_title() . '</span>' . $this->options['after'];
             return;
         } elseif (is_singular(UT_PORTFOLIO_SLUG)) {
             $portfoliometa = lambda_return_meta('portfolio');
             $permalink = !empty($portfoliometa['parentID']) ? get_permalink($portfoliometa['parentID']) : '#';
             $permalinktitle = !empty($portfoliometa['parentID']) ? get_the_title($portfoliometa['parentID']) : __('Portfolio', 'delaware-theme');
             echo $this->options['before'] . '<a href="' . $permalink . '">' . $permalinktitle . '</a>' . $this->options['delimiter'] . $this->options['after'];
             echo $this->options['before'] . '<span class="active">' . get_the_title($post->ID) . '</span>' . $this->options['after'];
         } else {
             $page_for_posts_id = get_option('page_for_posts');
             echo $this->options['before'] . '<a href="' . get_permalink($page_for_posts_id) . '">' . __('Blog', 'delaware-theme') . '</a>' . $this->options['delimiter'] . $this->options['after'];
             echo $this->options['before'] . '<span class="active">' . get_the_title($post->ID) . '</span>' . $this->options['after'];
         }
     }
     if (is_home()) {
         echo $this->options['before'] . '<span class="active">' . __('Blog', 'delaware-theme') . '</span>' . $this->options['after'];
         return;
     }
     if (is_404()) {
         echo $this->options['before'] . '<span class="active">' . __('Error 404', 'delaware-theme') . '</span>' . $this->options['after'];
         return;
     }
     if (is_search()) {
         echo $this->options['before'] . '<span class="active">' . __('Résultat', 'delaware-theme') . '</span>' . $this->options['after'];
         return;
     }
     if (is_tag()) {
         echo $this->options['before'] . '<span class="active">' . __('Posts with tags', 'delaware-theme') . $this->options['delimiter'] . single_tag_title('', false) . ' ' . '</span>' . $this->options['after'];
         return;
     }
     if (is_category()) {
         $cat_obj = $wp_query->get_queried_object();
         $thisCat = $cat_obj->term_id;
         $thisCat = get_category($thisCat);
         $parentCat = get_category($thisCat->parent);
         if ($thisCat->parent != 0) {
             echo is_wp_error($cat_parents = get_category_parents($parentCat, TRUE, ' ' . $this->options['delimiter'] . ' ')) ? '' : $cat_parents;
         }
         echo $this->options['before'] . '<span class="active">' . single_cat_title('', false) . '</span>' . $this->options['after'];
         return;
     }
     if (is_author()) {
         $userdata = get_userdata($author);
         echo $this->options['before'] . '<span class="active">' . $userdata->display_name . '</span>' . $this->options['after'];
         return;
     }
     /**
      * Date Conditionals
      */
     if (is_day() || is_time()) {
         echo '<a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> ' . $this->options['delimiter'] . ' ';
         echo '<a href="' . get_month_link(get_the_time('Y'), get_the_time('m')) . '">' . get_the_time('F') . '</a> ' . $this->options['delimiter'] . ' ';
         echo $this->options['before'] . '<span class="active">' . get_the_time('d') . '</span>' . $this->options['after'];
         return;
     }
     if (is_month()) {
         echo '<a href="' . get_year_link(get_the_time('Y')) . '">' . get_the_time('Y') . '</a> ' . $this->options['delimiter'] . ' ';
         echo $this->options['before'] . '<span class="active">' . get_the_time('F') . '</span>' . $this->options['after'];
         return;
     }
     if (is_year()) {
         echo $this->options['before'] . '<span class="active">' . get_the_time('Y') . '</span>' . $this->options['after'];
         return;
     }
 }
Example #10
0
?>


    <?php 
#-----------------------------------------------------------------
# Team
#-----------------------------------------------------------------
?>
    

    <?php 
if (!post_password_required($post)) {
    ?>
    
    <?php 
    $memberitems = lambda_return_meta('page');
    ?>
    
    <?php 
    $rowcounter = 1;
    $itemcounter = 1;
    $count = isset($memberitems[UT_THEME_INITIAL . 'team_member']) ? count($memberitems[UT_THEME_INITIAL . 'team_member']) : '';
    if (isset($memberitems[UT_THEME_INITIAL . 'team_member']) && is_array($memberitems[UT_THEME_INITIAL . 'team_member'])) {
        foreach ($memberitems[UT_THEME_INITIAL . 'team_member'] as $member) {
            ?>
            
            <?php 
            echo $rowcounter == 1 ? '<section class="member-wrap clearfix row-fluid">' : '';
            ?>
            
                <?php 
Example #11
0
<?php

$videometa = lambda_return_meta('page');
?>

<div class="lambda-video">

    <?php 
echo isset($videometa['portfolio_video_embedded_code']) ? do_shortcode($videometa['portfolio_video_embedded_code']) : '';
?>

</div>




Example #12
0
                        
						<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        ?>
                        	
								<?php 
        global $more;
        $more = 0;
        $portfoliotype = 'standard';
        $title = str_ireplace('"', '', trim(get_the_title()));
        #-----------------------------------------------------------------
        # Portfolio Meta Data & IconSet
        #-----------------------------------------------------------------
        $portfoliometa = lambda_return_meta('page', get_the_ID());
        if (isset($portfoliometa['portfolio_type'])) {
            switch ($portfoliometa['portfolio_type']) {
                case 'video_portfolio':
                    $portfoliotype = 'video';
                    $portfolioicon = 'icon-film';
                    break;
                case 'audio_portfolio':
                    $portfoliotype = 'audio';
                    $portfolioicon = 'icon-headphones';
                    break;
                case 'single_image_portfolio':
                    $portfoliotype = 'image';
                    $portfolioicon = 'icon-camera-retro';
                    break;
                case 'image_portfolio':
 function render_testimonial($metadata = array(), $async = 2, $shortcode = false, $page = '', $testimonial = '', $class = '')
 {
     $color = $async % 2 == 0 ? 'dark' : 'white';
     if ($shortcode && !empty($page)) {
         $metadata = lambda_return_meta('page', $page);
         if (is_array($metadata[UT_THEME_INITIAL . 'testimonial_items'])) {
             foreach ($metadata[UT_THEME_INITIAL . 'testimonial_items'] as $singletestimonial) {
                 if (isset($singletestimonial['testimonial_id']) && $singletestimonial['testimonial_id'] == $testimonial) {
                     // testimonial shortcode
                     $testimonial = $singletestimonial;
                     $testimonial['testimonial_class'] = $class . ' ' . $color;
                 }
             }
         }
     } else {
         // testimonial template
         $testimonial = $metadata;
         $testimonial['testimonial_class'] = !empty($testimonial['testimonial_class']) ? $testimonial['testimonial_class'] . ' ' . $color : $color;
     }
     //create testimonialbox
     $testimonialbox = '<article class="testimonial-entry clearfix ' . $testimonial['testimonial_class'] . '">';
     if (isset($testimonial['author_image'])) {
         $authorimage = lambda_resize($testimonial['author_image'], 50, 50, true);
     }
     if (empty($testimonial['author_image'])) {
         $authorimage = THEME_WEB_ROOT . '/images/default-avatar.jpg';
     }
     $testimonialbox .= '<figure class="testimonial-photo">';
     $testimonialbox .= '<img alt="' . $testimonial['author_name'] . '" class="testimonial-img" src="' . $authorimage . '">';
     $testimonialbox .= '</figure>';
     $testimonialbox .= '<p>' . do_shortcode(lambda_translate_meta($testimonial['author_comment'])) . '</p>';
     $testimonialbox .= '<span class="testimonial-name clearfix">';
     $testimonialbox .= isset($testimonial['author_name']) ? $testimonial['author_name'] : '';
     $testimonialbox .= isset($testimonial['author_company']) ? ', <strong>' . $testimonial['author_company'] . '</strong>' : '';
     $testimonialbox .= '</span>';
     $testimonialbox .= '</article>';
     return $testimonialbox;
 }
Example #14
0
 function lambda_footer_style()
 {
     $theme_options = get_option('option_tree');
     $metadata = lambda_return_meta('page');
     if (!empty($metadata['top_footer_style']) && $metadata['top_footer_style'] != 'default') {
         $footerstyle = $metadata['top_footer_style'];
     } else {
         $footerstyle = $theme_options['footer_default_style'];
     }
     echo $footerstyle;
 }
Example #15
0
<?php

/*
 * The Template for displaying all single posts.
 *
 * lambda framework v 2.0
 * by www.unitedthemes.com
 */
$pagecreator = lambda_return_meta('pagecreator');
get_header();
?>

<?php 
get_template_part('template-part', 'slider');
?>

<?php 
get_template_part('template-part', 'teaser');
?>

<?php 
lambda_before_content();
?>
    
            <?php 
while (have_posts()) {
    the_post();
    ?>
    
                <?php 
    #-----------------------------------------------------------------
Example #16
0
<?php

echo !is_page_template('template-home.php') ? '</div><!-- /.row --></div><!-- /.container -->' : '';
?>
    </div><!-- /#content-wrap -->

<?php 
/**
 * The Footer
 * by www.unitedthemes.com
 */
$theme_options = get_option('option_tree');
$metadata = lambda_return_meta('page');
$footerwidgets = is_active_sidebar('first-footer-widget-area') + is_active_sidebar('second-footer-widget-area') + is_active_sidebar('third-footer-widget-area') + is_active_sidebar('fourth-footer-widget-area');
$class = $footerwidgets == '0' ? 'noborder' : 'normal';
?>

        
        <?php 
lambda_before_footer_hook();
// action hook, see functions/theme-hooks.php
?>
            
        <div id="footer-wrap">
            
            <?php 
if ($footerwidgets != 0) {
    ?>
                <div id="footer-bg" class="<?php 
    echo lambda_footer_style();
    ?>
Example #17
0
<?php

/**
 * Templatepart for Teaser
 *
 * by www.unitedthemes.com
 * since lambda framework v 2.0
 */
#-----------------------------------------------------------------
# Conditional Tags for displaying Site Titles and Teaser
#-----------------------------------------------------------------
$featuredheader = lambda_return_meta('slider');
$title = "";
if (get_option_tree('blog_title') && is_home()) {
    //Set Title
    $title = !empty($featuredheader['teaser_text']) ? $featuredheader['teaser_text'] : get_option_tree('blog_title');
} elseif (is_page() || is_single()) {
    $title = !empty($featuredheader['teaser_text']) ? $featuredheader['teaser_text'] : get_the_title();
} elseif (is_404()) {
    //Set Title
    $title = __('404 Error', 'delaware-theme');
} else {
    // for all other especially Archives
    if (is_day()) {
        $title = sprintf(__('%s', 'delaware-theme'), get_the_date());
    } elseif (is_month()) {
        $title = sprintf(__('%s', 'delaware-theme'), get_the_date('F Y'));
    } elseif (is_year()) {
        $title = sprintf(__('%s', 'delaware-theme'), get_the_date('Y'));
    } elseif (is_category()) {
        $title = sprintf(__('%s', 'delaware-theme'), single_cat_title('', false));
Example #18
0
        function home_clients()
        {
            global $columnset;
            //receive standard meta
            $metadata = lambda_return_meta('page');
            $clients = !empty($metadata[UT_THEME_INITIAL . 'home_clients']) ? $metadata[UT_THEME_INITIAL . 'home_clients'] : '';
            ?>
	
            
            <section class="ut-clients clearfix">	
            	<div class="container">
                	<div class="row">
                    
					<?php 
            if (!empty($metadata['client_headline'])) {
                ?>
                    
                        <header class="ut-title-header center span12 clearfix">
                            <h3 class="ut-title remove-bottom"><span><?php 
                echo lambda_translate_meta($metadata['client_headline']);
                ?>
</span></h3>
                        </header>
                        
                    <?php 
            }
            ?>
	
                
                <?php 
            $loadmax = isset($metadata['client_load_last']) ? $metadata['client_load_last'] : $columnset;
            if (isset($clients) && is_array($clients)) {
                foreach ($clients as $client) {
                    //fallback
                    $url = isset($client['url']) ? $client['url'] : '#';
                    $src = isset($client['imgurl']) ? $client['imgurl'] : '';
                    $name = isset($client['name']) ? $client['name'] : '';
                    $content = isset($client['content']) ? $client['content'] : '';
                    $postid = get_attachment_meta_from_src($src);
                    $alt = isset($postid['_wp_attachment_image_alt'][0]) ? $postid['_wp_attachment_image_alt'][0] : '';
                    //Output client
                    echo '<div class="span3">
                                          <a href="' . $url . '">
                                                <img alt="' . $alt . '" src="' . $src . '" />
                                          </a>';
                    if (!empty($content)) {
                        echo '<blockquote>
                                                <p>' . $content . '</p>
                                          </blockquote>';
                    }
                    echo '</div>';
                }
            }
            ?>
        
                    
            		</div>
            	</div>
            </section><!-- ut-clients -->
            
          
        <?php 
        }
Example #19
0
<?php

#-----------------------------------------------------------------
# Pprtfolio Format : Gallery
#-----------------------------------------------------------------
$portfoliometa = lambda_return_meta('page');
$portfolioheight = !empty($portfoliometa['portfolio_gallery_height']) ? $portfoliometa['portfolio_gallery_height'] : 500;
$imagecropping = !empty($portfoliometa['portfolio_gallery_cropping']) && $portfoliometa['portfolio_gallery_cropping'] == 'off' ? false : true;
lambda_revolution_slider(get_the_ID(), $portfolioheight, '', $imagecropping);