/**
 * Adds the CyberChimps credit.
 *
 * @since 1.0
 */
function cyberchimps_footer_credit()
{
    ?>
	<div class="container-full-width" id="after_footer">
		<div class="container">
			<div class="container-fluid">
				<footer class="site-footer row-fluid">
					<div class="span6">
						<div id="credit">
							<?php 
    if (cyberchimps_get_option('footer_cyberchimps_link', 1) == '1') {
        ?>
								<a href="http://cyberchimps.com/" target="_blank" title="CyberChimps Themes">
									<?php 
        if ('free' == cyberchimps_theme_check()) {
            ?>
										<h4 class="cc-credit-text">CyberChimps WordPress Themes</h4></a>
									<?php 
        } else {
            ?>
										
										<img width="32" height="32" class="cc-credit-logo" src="<?php 
            echo get_template_directory_uri();
            ?>
/cyberchimps/lib/images/achimps.png" alt="CyberChimps"/>
										<h4 class="cc-credit-text"><span>Cyber</span>Chimps</h4></a>
                                                                                <div class="market" style="line-height:2.3"><a href="http://neilpatel.com/" rel="noindex, nofollow">Marketed  By Neil Patel</a></div>
									<?php 
        }
        ?>
								
							<?php 
    }
    ?>
						
						</div>
					</div>
					<!-- Adds the afterfooter copyright area -->
					<div class="span6">
						<?php 
    $copyright = cyberchimps_get_option('footer_copyright_text') ? cyberchimps_get_option('footer_copyright_text') : 'CyberChimps &#169;' . date('Y');
    ?>
						<div id="copyright">
							<?php 
    echo wp_kses_post($copyright);
    ?>
						</div>
					</div>
				</footer>
				<!-- row-fluid -->
			</div>
			<!-- .container-fluid-->
		</div>
		<!-- .container -->
	</div>    <!-- #after_footer -->
<?php 
}
function cyberchimps_sanitize_unfiltered_textarea($input)
{
    $output = cyberchimps_get_option('html_box', '');
    if (current_user_can('unfiltered_html')) {
        $output = $input;
        return $output;
    } else {
        return $output;
    }
}
Exemplo n.º 3
0
function cyberchimps_product_element_render_display()
{
    global $options, $post;
    if (is_page()) {
        // Get page options
        $layout = get_post_meta($post->ID, 'cyberchimps_product_layout', true);
        $title = get_post_meta($post->ID, 'cyberchimps_product_title', true);
        $text = get_post_meta($post->ID, 'cyberchimps_product_text', true);
        $media_type = get_post_meta($post->ID, 'cyberchimps_product_media_type', true);
        $image = get_post_meta($post->ID, 'cyberchimps_product_image', true);
        $link_toggle = get_post_meta($post->ID, 'cyberchimps_product_image_link_toggle', true);
        $link = get_post_meta($post->ID, 'cyberchimps_product_image_link', true);
        $video = get_post_meta($post->ID, 'cyberchimps_product_video', true);
    } else {
        // Get blog options
        $layout = cyberchimps_get_option('cyberchimps_product_layout');
        $title = cyberchimps_get_option('cyberchimps_product_title');
        $text = cyberchimps_get_option('cyberchimps_product_text');
        $media_type = cyberchimps_get_option('cyberchimps_product_media_type');
        $image = cyberchimps_get_option('cyberchimps_product_image');
        $link_toggle = cyberchimps_get_option('cyberchimps_product_image_link_toggle');
        $link = cyberchimps_get_option('cyberchimps_product_image_link');
        $video = cyberchimps_get_option('cyberchimps_product_video');
    }
    // Prepare media : Check if image or video is selected
    if ($media_type == "1") {
        // Check if image link is on and the link is supplied.
        if ($link_toggle == "1" && $link != "") {
            $media = "<a href='{$link}'><img src='{$image}' /></a>";
        } else {
            $media = "<img src='{$image}'>";
        }
    } else {
        $media = "<div class='flex-video'>{$video}</div>";
    }
    // Get layout (position of text and media)
    if ($layout == "1") {
        // Text Left - Media Right
        $output = "\n\t\t\t<div id='product-text' class='span6'>\n\t\t\t\t<h2>{$title}</h2>\n\t\t\t\t<p>{$text} </p>\n\t\t\t</div>\n\t\t\t<div id='product-media' class='span6'>\n\t\t\t\t{$media}\n\t\t\t</div>";
    } else {
        // Text Right - Media Left
        $output = "\n\t\t\t<div id='product-media' class='span6'>\n\t\t\t\t{$media}\n\t\t\t</div>\n\t\t\t<div id='product-text' class='span6'>\n\t\t\t\t<h2>{$title}</h2>\n\t\t\t\t<p>{$text} </p>\n\t\t\t</div>";
    }
    ?>

	<div id="product-container" class="row-fluid">
  	<div class="product-sub-container">
			<?php 
    echo $output;
    ?>
    </div>
	</div>

<?php 
}
Exemplo n.º 4
0
 /**
  * Get the arguments to pass into wp_remote_get or wp_remote_post
  * @global string $wp_version
  * @global mixed $wpdb
  * @return array
  */
 protected function get_args()
 {
     global $wp_version, $wpdb;
     $skin = '';
     $key = '';
     if (function_exists('cyberchimps_get_option')) {
         $skin = cyberchimps_get_option('cyberchimps_skin_color', '');
         $admin = cyberchimps_get_option('admin', array());
         if (isset($admin['key'])) {
             $key = $admin['key'];
         }
     }
     return array('headers' => array('X-Plugin-Api-Key' => $key, 'X-Plugin-Theme' => wp_get_theme()->get_stylesheet(), 'X-Plugin-Theme-Version' => wp_get_theme()->get('Version'), 'X-Plugin-Theme-Skin' => $skin, 'X-Plugin-URL' => get_home_url(), 'X-Plugin-WP-Version' => $wp_version, 'X-Plugin-MySQL-Version' => $wpdb->db_version(), 'X-Plugin-PHP-Version' => PHP_VERSION, 'X-Plugin-Locale' => get_locale(), 'X-Plugin-WP-Lang' => defined('WP_LANG') ? WP_LANG : 'en_US'));
 }
Exemplo n.º 5
0
/**
 * Adds the CyberChimps credit.
 *
 * @since 1.0
 */
function cyberchimps_footer_credit()
{
    ?>
	<div class="container-full-width" id="after_footer">
		<div class="container">
			<div class="container-fluid">
				<footer class="site-footer row-fluid">
					<div class="span6">
						<div id="credit">
							<?php 
    if (cyberchimps_get_option('footer_cyberchimps_link', 1) == '1') {
        ?>
								<h4 class="cc-credit-text"><span>Isreal Consulting, LLC.</span> &nbsp;All rights reserved.</h4>
								</a>
							<?php 
    }
    ?>
						</div>
					</div>

					<!-- Adds the afterfooter copyright area -->
					<div class="span6">
						<?php 
    $copyright = cyberchimps_get_option('footer_copyright_text') ? cyberchimps_get_option('footer_copyright_text') : 'CyberChimps &#169;' . date('Y');
    ?>
						<div id="copyright">
							<?php 
    echo wp_kses_post($copyright);
    ?>
						</div>
					</div>
				</footer>
				<!-- row-fluid -->
			</div>
			<!-- .container-fluid-->
		</div>
		<!-- .container -->
	</div>    <!-- #after_footer -->
<?php 
}
Exemplo n.º 6
0
/**
 * Title: Blog Hooks
 *
 * Description: Defines actions/hooks for blog page.
 *
 * Please do not edit this file. This file is part of the Cyber Chimps Framework and all modifications
 * should be made in a child theme.
 *
 * @category Cyber Chimps Framework
 * @package  Framework
 * @since    1.0
 * @author   CyberChimps
 * @license  http://www.opensource.org/licenses/gpl-license.php GPL v2.0 (or later)
 * @link     http://www.cyberchimps.com/
 */
function cyberchimps_blog_section_order_action()
{
    global $post;
    $defaults = array();
    $default = apply_filters('cyberchimps_elements_draganddrop_defaults', array('slider_lite' => __('Slider Lite', 'cyberchimps'), 'boxes_lite' => __('Boxes', 'cyberchimps'), 'blog_post_page' => __('Post Page', 'cyberchimps')));
    foreach ($default as $key => $val) {
        $defaults[] = $key;
    }
    $blog_section_order = cyberchimps_get_option('blog_section_order', $defaults);
    //select default in case options are empty
    $blog_section_order = $blog_section_order == '' ? array('blog_post_page') : $blog_section_order;
    $slider_size = cyberchimps_get_option('blog_slider_size', 'full');
    if (is_array($blog_section_order)) {
        foreach ($blog_section_order as $func) {
            // checks if slider is selected at half size, if it is it removes it so we can display it above blog content
            if ($func == 'slider_lite' && cyberchimps_get_option('blog_slider_size') == 'half') {
                $func = '';
            }
            do_action($func);
        }
    }
}
Exemplo n.º 7
0
<?php

/**
 * Footer Template
 *
 * Please do not edit this file. This file is part of the Cyber Chimps Framework and all modifications
 * should be made in a child theme.
 *
 * @category CyberChimps Framework
 * @package  Framework
 * @since    1.0
 * @author   CyberChimps
 * @license  http://www.opensource.org/licenses/gpl-license.php GPL v3.0 (or later)
 * @link     http://www.cyberchimps.com/
 */
if (cyberchimps_get_option('footer_show_toggle') == '1') {
    ?>
	<div id="footer-full" class="container-full-width">
		<div id="footer-widgets-wrapper" class="container-fluid">
			<div id="footer-wrapper" class="container">

				<?php 
    do_action('cyberchimps_before_footer_widgets');
    ?>

				<div id="footer-widgets" class="row-fluid">
					<div id="footer-widget-container" class="span12">
						<div class="row-fluid">
							<?php 
    if (!dynamic_sidebar('cyberchimps-footer-widgets')) {
        ?>
Exemplo n.º 8
0
function cyberchimps_add_responsive_class($classes)
{
    // Check if responisve design is on.
    if (cyberchimps_get_option('responsive_design', 'checked')) {
        $classes[] = 'cc-responsive';
    }
    return $classes;
}
function cyberchimps_contact_info()
{
    $contact = apply_filters('cyberchimps_header_contact', cyberchimps_get_option('contact_details'));
    ?>

	<div class="contact_details">
		<?php 
    echo $contact;
    ?>
	</div>
<?php 
}
Exemplo n.º 10
0
function cyberchimps_slider_lite_content()
{
    global $wp_query, $post;
    // Set directory uri
    $directory_uri = get_template_directory_uri();
    $slide = array();
    $link = array();
    if (is_page()) {
        $slides[0]['img'] = get_post_meta($post->ID, 'cyberchimps_slider_lite_slide_one_image', true);
        $slides[1]['img'] = get_post_meta($post->ID, 'cyberchimps_slider_lite_slide_two_image', true);
        $slides[2]['img'] = get_post_meta($post->ID, 'cyberchimps_slider_lite_slide_three_image', true);
        $slides[0]['link'] = get_post_meta($post->ID, 'cyberchimps_slider_lite_slide_one_url', true);
        $slides[1]['link'] = get_post_meta($post->ID, 'cyberchimps_slider_lite_slide_two_url', true);
        $slides[2]['link'] = get_post_meta($post->ID, 'cyberchimps_slider_lite_slide_three_url', true);
    } else {
        $slides[0]['img'] = cyberchimps_get_option('image_one_slide', $directory_uri . apply_filters('cyberchimps_slider_lite_img1', '/images/branding/slide1.jpg'));
        $slides[1]['img'] = cyberchimps_get_option('image_two_slide', $directory_uri . apply_filters('cyberchimps_slider_lite_img2', '/elements/lib/images/slider/slide1.jpg'));
        $slides[2]['img'] = cyberchimps_get_option('image_three_slide', $directory_uri . apply_filters('cyberchimps_slider_lite_img3', '/elements/lib/images/slider/slide1.jpg'));
        $slides[0]['link'] = cyberchimps_get_option('image_one_slide_url', apply_filters('cyberchimps_slider_lite_url1', 'http://cyberchimps.com'));
        $slides[1]['link'] = cyberchimps_get_option('image_two_slide_url', apply_filters('cyberchimps_slider_lite_url2', 'http://cyberchimps.com'));
        $slides[2]['link'] = cyberchimps_get_option('image_three_slide_url', apply_filters('cyberchimps_slider_lite_url3', 'http://cyberchimps.com'));
    }
    $i = 0;
    ?>
	<div class="row-fluid">
	<div id="slider_lite" class="carousel slide">
		<div class="carousel-inner">
			<?php 
    foreach ($slides as $slide) {
        ?>
			<?php 
        if ($slide['img'] != '') {
            ?>
			<?php 
            if ($i == 0) {
                ?>
			<div class="active item">
				<?php 
            } else {
                ?>
				<div class="item">
					<?php 
            }
            ?>
					<a href="<?php 
            echo esc_url($slide['link']);
            ?>
">
						<img src="<?php 
            echo esc_url($slide['img']);
            ?>
" alt="Slider"/>
					</a>
				</div>
				<?php 
        }
        ?>
				<?php 
        $i++;
    }
    ?>
			</div>

			<!-- Slider nav -->
			<a class="carousel-control left slider-lite-left" href="#slider_lite" data-slide="prev">&lsaquo;</a>
			<a class="carousel-control right slider-lite-right" href="#slider_lite" data-slide="next">&rsaquo;</a>

		</div>
	</div>
	<!-- row-fluid -->
	
	<script type="text/javascript">
		jQuery(document).ready(function () {

			// Initialize the slider.
			jQuery('.carousel').carousel();
		});
	</script>
			
<?php 
}
Exemplo n.º 11
0
function cyberchimps_footer_social()
{
    $twitter_display = cyberchimps_get_option('social_twitter', 'checked');
    $facebook_display = cyberchimps_get_option('social_facebook', 'checked');
    $google_display = cyberchimps_get_option('social_google', 'checked');
    $flickr_display = cyberchimps_get_option('social_flickr');
    $pinterest_display = cyberchimps_get_option('social_pinterest');
    $linkedin_display = cyberchimps_get_option('social_linkedin');
    $youtube_display = cyberchimps_get_option('social_youtube');
    $googlemaps_display = cyberchimps_get_option('social_googlemaps');
    $email_display = cyberchimps_get_option('social_email');
    $rss_display = cyberchimps_get_option('social_rss');
    if (!empty($twitter_display) || !empty($facebook_display) || !empty($google_display) || !empty($flickr_display) || !empty($pinterest_display) || !empty($linkedin_display) || !empty($youtube_display) || !empty($googlemaps_display) || !empty($email_display) || !empty($rss_display)) {
        ?>
		<div class="container-full-width" id="footer_social_icons">
			<div class="container">
				<div class="container-fluid">
					<div class="row-fluid">
						<?php 
        cyberchimps_header_social_icons();
        ?>
					</div>
				</div>
			</div>
		</div>
	<?php 
    }
}
Exemplo n.º 12
0
function cyberchimps_header_scripts()
{
    $header_scripts = cyberchimps_get_option('header_scripts');
    echo $header_scripts;
}
Exemplo n.º 13
0
 /**
  * Get the arguments to pass into wp_remote_get or wp_remote_post
  * @global string $wp_version
  * @global mixed $wpdb
  * @return array
  */
 protected function get_args()
 {
     global $wp_version, $wpdb;
     $options = get_option('gd_quicksetup_options');
     if (!empty($options['key'])) {
         $skin = '';
         if (function_exists('cyberchimps_get_option')) {
             $skin = cyberchimps_get_option('cyberchimps_skin_color', '');
         }
         return array('headers' => array('X-Plugin-Api-Key' => $options['key'], 'X-Plugin-Theme' => wp_get_theme()->get_stylesheet(), 'X-Plugin-Theme-Version' => wp_get_theme()->get('Version'), 'X-Plugin-Theme-Skin' => $skin, 'X-Plugin-URL' => get_home_url(), 'X-Plugin-WP-Version' => $wp_version, 'X-Plugin-Plugins' => json_encode(get_option('active_plugins')), 'X-Plugin-MySQL-Version' => $wpdb->db_version(), 'X-Plugin-PHP-Version' => PHP_VERSION, 'X-Plugin-Locale' => get_locale(), 'X-Plugin-WP-Lang' => defined('WP_LANG') ? WP_LANG : 'en_US', 'X-Plugin-Version' => get_option('gd_quicksetup_version'), 'X-Plugin-Slug' => $this->_slug));
     }
     return array('headers' => array('X-Plugin-Api-Key' => '', 'X-Plugin-Theme' => '', 'X-Plugin-Theme-Version' => '', 'X-Plugin-Theme-Skin' => '', 'X-Plugin-URL' => '', 'X-Plugin-WP-Version' => $wp_version, 'X-Plugin-Plugins' => json_encode(array()), 'X-Plugin-MySQL-Version' => $wpdb->db_version(), 'X-Plugin-PHP-Version' => PHP_VERSION, 'X-Plugin-Locale' => get_locale(), 'X-Plugin-WP-Lang' => defined('WP_LANG') ? WP_LANG : 'en_US', 'X-Plugin-Version' => get_option('gd_quicksetup_version'), 'X-Plugin-Slug' => $this->_slug));
 }
Exemplo n.º 14
0
function cyberchimps_slider_lite_content()
{
    global $wp_query, $post;
    // Set directory uri
    $directory_uri = get_template_directory_uri();
    $slide = array();
    $link = array();
    if (is_page()) {
        $slider_speed = get_post_meta($post->ID, 'cyberchimps_slider_lite_speed', true);
        $slider_height = get_post_meta($post->ID, 'cyberchimps_slider_lite_height', true);
        $slider_arrows = get_post_meta($post->ID, 'cyberchimps_slider_lite_arrows', true);
        for ($d = 1; $d <= 12; $d++) {
            $slide_default = $d === 1 ? $directory_uri . apply_filters('cyberchimps_slider_lite_img1', '/images/branding/slide1.jpg') : '';
            $slides[$d]['img'] = get_post_meta($post->ID, 'cyberchimps_slider_lite_slide_image_' . $d, true);
            $slides[$d]['link'] = get_post_meta($post->ID, 'cyberchimps_slider_lite_slide_url_' . $d, true);
            $slides[$d]['caption'] = get_post_meta($post->ID, 'cyberchimps_slider_lite_slide_caption_' . $d, true);
        }
    } else {
        $slider_speed = cyberchimps_get_option('slider_speed', 3000);
        $slider_height = cyberchimps_get_option('slider_height', 300);
        $slider_arrows = cyberchimps_get_option('slider_arrows', 1);
        for ($d = 1; $d <= 12; $d++) {
            $slide_default = $d === 1 ? $directory_uri . apply_filters('cyberchimps_slider_lite_img1', '/images/branding/slide1.jpg') : '';
            $slides[$d]['img'] = cyberchimps_get_option('image_slide_' . $d, $slide_default);
            $slides[$d]['link'] = cyberchimps_get_option('image_slide_url_' . $d, '');
            $slides[$d]['caption'] = cyberchimps_get_option('image_slide_caption_' . $d, '');
        }
    }
    // Set slider height
    $height = $slider_height != '' ? 'style="max-height:' . intval($slider_height) . 'px!important"' : 'style="max-height:300px"';
    $i = 0;
    ?>
<div class="row-fluid">
	<div id="slider-lite" class="carousel slide">
		<div class="carousel-inner">
      <?php 
    foreach ($slides as $slide) {
        ?>
      <?php 
        if ($slide['img'] != '') {
            ?>
      <?php 
            if ($i == 0) {
                ?>
			<div class="active item">
      <?php 
            } else {
                ?>
      <div class="item">
      <?php 
            }
            ?>
		<?php 
            if ($slide['link'] != "") {
                ?>
				<a href="<?php 
                echo esc_url($slide['link']);
                ?>
">
					<img src="<?php 
                echo esc_url($slide['img']);
                ?>
" alt="Slider" <?php 
                echo $height;
                ?>
 />
				</a>
		<?php 
            } else {
                ?>
				<img src="<?php 
                echo esc_url($slide['img']);
                ?>
" alt="Slider" <?php 
                echo $height;
                ?>
 />
		<?php 
            }
            ?>
				<?php 
            // Display caption bar if caption is present
            if ($slide['caption'] != "") {
                ?>
					<div class="carousel-caption">
						<h4> <?php 
                echo $slide['caption'];
                ?>
 </h4>
					</div>
				<?php 
            }
            ?>
			</div>
			<?php 
        }
        ?>
      <?php 
        $i++;
    }
    ?>
		</div>
		
		<!-- Slider nav -->
		 <?php 
    // turn off arrows if set
    ?>
        <?php 
    if (!empty($slider_arrows)) {
        ?>
			<a class="carousel-control left slider-lite-left" href="#slider-lite" data-slide="prev">&lsaquo;</a>
			<a class="carousel-control right slider-lite-right" href="#slider-lite" data-slide="next">&rsaquo;</a>
		<?php 
    }
    ?>
		
	</div>
</div><!-- row-fluid -->

	<script type="text/javascript">
		jQuery(document).ready(function() {
		
			// Initialize the carousel and supply the speed
			jQuery('.carousel').carousel({
				interval: <?php 
    echo $slider_speed;
    ?>
			})
		});
	</script>
<?php 
}
Exemplo n.º 15
0
											<?php 
}
?>
											<?php 
wp_nav_menu(array('theme_location' => 'primary', 'menu_class' => 'nav', 'walker' => new cyberchimps_walker(), 'fallback_cb' => 'cyberchimps_fallback_menu'));
?>

											<?php 
if (cyberchimps_get_option('searchbar') == "1") {
    get_search_form();
}
?>

											<?php 
/* hide collapsing menu if not responsive */
if (cyberchimps_get_option('responsive_design')) {
    ?>
										</div>
										<!-- container -->
									</div>
								<!-- collapse -->
								<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
									<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
										<span class="icon-bar"></span>
										<span class="icon-bar"></span>
										<span class="icon-bar"></span>
									</a>
								<?php 
}
?>
Exemplo n.º 16
0
/**
 * Create the blog page title and hook it in
 *
 * @hook cyberchimps_before_content
 */
function cyberchimps_blog_title()
{
    if (is_home()) {
        // Add blog title if toggle is on.
        $title_toggle = cyberchimps_get_option('blog_title', false);
        if ($title_toggle) {
            $title_text = cyberchimps_get_option('blog_title_text', __('Our Blog', 'cyberchimps_core'));
            echo apply_filters('cyberchimps_blog_title_html', '
        <div id="cyberchimps_blog_title" class="row-fluid">
            <header class="page-header">
                <h1 class="page-title">' . $title_text . '</h1>
            </header>
        </div>');
        }
    }
}
Exemplo n.º 17
0
function cyberchimps_boxes_lite_content()
{
    // Set directory uri
    $directory_uri = get_template_directory_uri();
    // Getting Image URL for each box
    $img1 = cyberchimps_get_option('cyberchimps_blog_boxes_lite_image_one', $directory_uri . apply_filters('cyberchimps_boxes_lite_img1', '/elements/lib/images/boxes/slidericon.png'));
    $img2 = cyberchimps_get_option('cyberchimps_blog_boxes_lite_image_two', $directory_uri . apply_filters('cyberchimps_boxes_lite_img2', '/elements/lib/images/boxes/blueprint.png'));
    $img3 = cyberchimps_get_option('cyberchimps_blog_boxes_lite_image_three', $directory_uri . apply_filters('cyberchimps_boxes_lite_img3', '/elements/lib/images/boxes/docs.png'));
    // Getting URL of custom link
    $url1 = cyberchimps_get_option('cyberchimps_blog_boxes_link_url_one');
    $url2 = cyberchimps_get_option('cyberchimps_blog_boxes_link_url_two');
    $url3 = cyberchimps_get_option('cyberchimps_blog_boxes_link_url_three');
    $box_default_text = 'Alto ventos est coeptis utque fecit. Phoebe sine circumfuso arce. Tanto aliis. Matutinis cornua origo formaeque animal mundo. Chaos: fabricator. Natura mundo caesa addidit.
        Cuncta habendum meis omni ille formaeque emicuit septemque et. Lege fecit aethere porrexerat gentes horrifer formas.';
    // Getting text for each box
    $text1 = cyberchimps_get_option('cyberchimps_blog_boxes_lite_image_one_text', $box_default_text);
    $text2 = cyberchimps_get_option('cyberchimps_blog_boxes_lite_image_two_text', $box_default_text);
    $text3 = cyberchimps_get_option('cyberchimps_blog_boxes_lite_image_three_text', $box_default_text);
    ?>

	<!-- Start of markup for boxes lite element -->
	<div id="widget_boxes_container" class="row-fluid">
		<div class="boxes">
			<div class="box span4">
				<?php 
    if ($url1 != '' && $img1 != '') {
        ?>
					<a href="<?php 
        echo esc_url($url1);
        ?>
" class="box-link">
						<img class="box-image" src="<?php 
        echo esc_url($img1);
        ?>
"/>
					</a>
				<?php 
    } else {
        ?>
					<?php 
        if ($img1 != '') {
            ?>
						<a class="box-no-url">
							<img class="box-image" src="<?php 
            echo esc_url($img1);
            ?>
"/>
						</a>
					<?php 
        }
        ?>
				<?php 
    }
    ?>
				<p><?php 
    echo wp_kses($text1, array('br' => array(), 'em' => array(), 'strong' => array()));
    ?>
</p>
			</div>
			<!--end box1-->

			<div class="box span4">
				<?php 
    if ($url2 != '' && $img2 != '') {
        ?>
					<a href="<?php 
        echo esc_url($url2);
        ?>
" class="box-link">
						<img class="box-image" src="<?php 
        echo esc_url($img2);
        ?>
"/>
					</a>
				<?php 
    } else {
        ?>
					<?php 
        if ($img2 != '') {
            ?>
						<a class="box-no-url">
							<img class="box-image" src="<?php 
            echo esc_url($img2);
            ?>
"/>
						</a>
					<?php 
        }
        ?>
				<?php 
    }
    ?>
				<p><?php 
    echo wp_kses($text2, array('br' => array(), 'em' => array(), 'strong' => array()));
    ?>
</p>
			</div>
			<!--end box2-->

			<div class="box span4">
				<?php 
    if ($url3 != '' && $img3 != '') {
        ?>
					<a href="<?php 
        echo esc_url($url3);
        ?>
" class="box-link">
						<img class="box-image" src="<?php 
        echo esc_url($img3);
        ?>
"/>
					</a>
				<?php 
    } else {
        ?>
					<?php 
        if ($img3 != '') {
            ?>
						<a class="box-no-url">
							<img class="box-image" src="<?php 
            echo esc_url($img3);
            ?>
"/>
						</a>
					<?php 
        }
        ?>
				<?php 
    }
    ?>
				<p><?php 
    echo wp_kses($text3, array('br' => array(), 'em' => array(), 'strong' => array()));
    ?>
</p>
			</div>
			<!--end box3-->
		</div>
		<!-- end boxes -->
	</div><!-- end row-fluid -->
	<!-- End of markup for boxes lite element -->
<?php 
}
Exemplo n.º 18
0
/**
 * Validate options
 *
 * Validate theme options before updating to database.
 */
function cyberchimps_options_validate($input)
{
    // Theme option import functionality
    if (isset($_POST['import'])) {
        if (trim($_POST['import'])) {
            $string = stripslashes(trim($_POST['import']));
            $try = unserialize($string);
            if ($try) {
                add_settings_error('cyberchimps_options', 'imported_success', __('Options Imported', 'cyberchimps'), 'updated fade');
                return $try;
            } else {
                add_settings_error('cyberchimps_options', 'imported_failed', __('Invalid Data for Import', 'cyberchimps'), 'error fade');
            }
        }
    }
    /*
     * Restore Defaults.
     *
     * In the event that the user clicked the "Restore Defaults"
     * button, the options defined in the theme's options.php
     * file will be added to the option for the active theme.
     */
    if (isset($_POST['reset'])) {
        add_settings_error('cyberchimps_options', 'restore_defaults', __('Default options restored.', 'cyberchimps'), 'updated fade');
        $defaults = cyberchimps_get_default_values();
        /* get the admin array */
        $admin_array = cyberchimps_get_option('admin');
        /* if it exists then add it to the defaults array */
        if ($admin_array) {
            $defaults['admin'] = $admin_array;
        }
        return $defaults;
    } else {
        // Update general setting options
        if (isset($_POST['blogname'])) {
            update_option('blogname', wp_unslash($_POST['blogname']));
        }
        if (isset($_POST['blogdescription'])) {
            update_option('blogdescription', wp_unslash($_POST['blogdescription']));
        }
        $clean = array();
        $options = cyberchimps_get_fields();
        foreach ($options as $option) {
            if (!isset($option['id'])) {
                continue;
            }
            if (!isset($option['type'])) {
                continue;
            }
            $id = preg_replace('/[^a-zA-Z0-9._\\-]/', '', strtolower($option['id']));
            // Set upload to false if it wasn't sent in the $_POST
            if ('info' == $option['type'] && !isset($input[$id])) {
                $input[$id] = false;
            }
            // Set upload to false if it wasn't sent in the $_POST
            if ('upload' == $option['type'] && !isset($input[$id])) {
                $input[$id] = false;
            }
            // Set radio to false if it wasn't sent in the $_POST
            if ('radio' == $option['type'] && !isset($input[$id])) {
                $input[$id] = false;
            }
            // Set toggle to false if it wasn't sent in the $_POST
            if ('toggle' == $option['type'] && !isset($input[$id])) {
                $input[$id] = false;
            }
            // Set checkbox to false if it wasn't sent in the $_POST
            if ('checkbox' == $option['type'] && !isset($input[$id])) {
                $input[$id] = false;
            }
            // Set checkbox to false if it wasn't sent in the $_POST
            if ('images' == $option['type'] && !isset($input[$id])) {
                $input[$id] = false;
            }
            // Set each item in the multicheck to false if it wasn't sent in the $_POST
            if ('multicheck' == $option['type'] && !isset($input[$id])) {
                foreach ($option['options'] as $key => $value) {
                    $input[$id][$key] = false;
                }
            }
            // For a value to be submitted to database it must pass through a sanitization filter
            if (has_filter('cyberchimps_sanitize_' . $option['type'])) {
                $clean[$id] = apply_filters('cyberchimps_sanitize_' . $option['type'], $input[$id], $option);
            }
        }
        $clean['admin'] = array();
        if (isset($input['admin'])) {
            $clean['admin'] = $input['admin'];
        } else {
            $clean['admin'] = cyberchimps_get_option('admin');
        }
        add_settings_error('cyberchimps_options', 'save_options', __('Options saved.', 'cyberchimps'), 'updated fade');
        return $clean;
    }
}
Exemplo n.º 19
0
function cyberchimps_ep_blog_description()
{
    $html = '';
    $title_text = cyberchimps_get_option('blog_title_text', __('Our Blog', 'cyberchimps_core'));
    $blog_description = cyberchimps_get_option('blog_description');
    $blog_description_text = cyberchimps_get_option('blog_description_text');
    $html = '<div id="cyberchimps_blog_title" class="row-fluid">
		<header class="page-header">
			<h1 class="page-title">' . $title_text . '</h1>
		</header>';
    if (!empty($blog_description) && !empty($blog_description_text)) {
        $html .= '<div id="cyberchimps_blog_description">' . $blog_description_text . '</div>';
    }
    $html .= '</div>';
    return $html;
}
Exemplo n.º 20
0
function cyberchimps_full_width_fix()
{
    $responsive_design = cyberchimps_get_option('responsive_design');
    $min_width = cyberchimps_get_option('max_width');
    if (!$responsive_design) {
        $style = '<style rel="stylesheet" type="text/css" media="all">';
        $style .= '#footer-widgets-wrapper, #footer-main-wrapper { min-width: ' . $min_width . 'px;}';
        $style .= '</style>';
        echo $style;
    }
}
Exemplo n.º 21
0
<?php

/**
 * Search Form
 *
 * Please do not edit this file. This file is part of the Cyber Chimps Framework and all modifications
 * should be made in a child theme.
 *
 * @category CyberChimps Framework
 * @package  Framework
 * @since    1.0
 * @author   CyberChimps
 * @license  http://www.opensource.org/licenses/gpl-license.php GPL v3.0 (or later)
 * @link     http://www.cyberchimps.com/
 */
// Fetching the searchbar text from the theme options.
$search_text = esc_attr(cyberchimps_get_option('searchbar_text'));
if (!$search_text) {
    $search_text = esc_attr('Search &hellip;', 'fresh-lite');
}
?>
<form method="get" id="searchform" class="navbar-search pull-right" action="<?php 
echo esc_url(home_url('/'));
?>
" role="search">
	<input type="text" class="search-query input-medium" name="s" placeholder="<?php 
echo $search_text;
?>
"/>
</form>
<div class="clear"></div>
Exemplo n.º 22
0
function cyberchimps_google_analytics()
{
    $code = cyberchimps_get_option('google_analytics', '');
    if ($code != '') {
        echo '<script type="text/javascript">' . $code . '</script>';
    }
}
Exemplo n.º 23
0
 /**
  * Get latest plugin data from API
  * Cached in a transient for 6 hours
  * @return mixed
  */
 protected function get_api_data()
 {
     global $wp_version, $wpdb;
     $_options = get_option('wtwp_options');
     $api_data = get_site_transient($this->_key . '_api_data');
     $skin = '';
     if (function_exists('cyberchimps_get_option')) {
         $skin = cyberchimps_get_option('cyberchimps_skin_color', '');
     }
     if (empty($api_data)) {
         $options = array('headers' => array('X-Plugin-Api-Key' => $_options['key'], 'X-Plugin-Theme' => wp_get_theme()->get_stylesheet(), 'X-Plugin-Theme-Version' => wp_get_theme()->get('Version'), 'X-Plugin-Theme-Skin' => $skin, 'X-Plugin-URL' => get_home_url(), 'X-Plugin-WP-Version' => $wp_version, 'X-Plugin-Plugins' => json_encode(get_option('active_plugins')), 'X-Plugin-MySQL-Version' => $wpdb->db_version(), 'X-Plugin-PHP-Version' => PHP_VERSION, 'X-Plugin-Locale' => get_locale(), 'X-Plugin-WP-Lang' => defined('WP_LANG') ? WP_LANG : 'en_US', 'X-Plugin-Version' => $this->_plugin_data['Version'], 'X-Plugin-Slug' => $this->_key, 'X-Plugin-PLID' => $_options['plid']));
         $url = trailingslashit($_options['api_url']) . 'updates/plugin/' . $this->_key;
         add_filter('https_ssl_verify', '__return_false');
         $response = wp_remote_get($url, $options);
         remove_filter('https_ssl_verify', '__return_false');
         if (is_wp_error($response) || $response['response']['code'] != 200) {
             $api_data = new stdClass();
         } else {
             $api_data = json_decode($response['body']);
         }
         set_site_transient($this->_key . '_api_data', $api_data, 60 * 60 * 6);
     }
     return $api_data;
 }
Exemplo n.º 24
0
function cyberchimps_header_image()
{
    $image_url = cyberchimps_get_option('header_image');
    if ($image_url) {
        $image = '<div class="header-image"><img src="' . $image_url . '" alt="' . get_bloginfo('name') . '" /></div>';
        echo $image;
    }
}
Exemplo n.º 25
0
    ?>
									<?php 
    _e('Oops! That page cannot be found.', 'neuro');
    ?>
</h1>
								<?php 
}
?>
							</header>

							<div class="entry-content">
								<?php 
if (cyberchimps_get_option('error_custom_content') != '') {
    ?>
									<p><?php 
    echo cyberchimps_get_option('error_custom_content');
    ?>
</p>
								<?php 
} else {
    ?>
									<p><?php 
    _e('It looks like nothing was found at this location. Maybe try searching for it?', 'neuro');
    ?>
</p>
								<?php 
}
?>

							</div>
							<!-- .entry-content -->
Exemplo n.º 26
0
function cyberchimps_boxes_render_display()
{
    // Intialize box counter
    $box_counter = 1;
    // Set template directory uri
    $template_directory = get_template_directory_uri();
    // Get selected custom category for box element
    if (is_page()) {
        $customcategory = get_post_meta(get_the_ID(), 'boxes_category', true);
    } else {
        $customcategory = cyberchimps_get_option('boxes_category', '');
    }
    // Custom box query
    $args = array('numberposts' => 3, 'offset' => 0, 'boxes_categories' => $customcategory, 'orderby' => 'post_date', 'order' => 'ASC', 'post_type' => 'boxes', 'post_status' => 'publish');
    $boxes = get_posts($args);
    ?>
	<div id="boxes-container" class="row-fluid">
		<div class="boxes">
		<?php 
    if ($boxes && $customcategory != '') {
        foreach ($boxes as $box) {
            // Break after desired number of boxes displayed
            if ($box_counter > 3) {
                break;
            }
            // Get the image of the box
            $box_image = get_post_meta($box->ID, 'cyberchimps_box_image', true);
            // Get the URL of the box
            $box_url = get_post_meta($box->ID, 'cyberchimps_box_url', true);
            // Get the text of the box
            $box_text = get_post_meta($box->ID, 'cyberchimps_box_text', true);
            ?>
	
				<div id="box<?php 
            echo $box_counter;
            ?>
" class="box span4">
        <?php 
            if ($box_url != '') {
                ?>
					<a href="<?php 
                echo $box_url;
                ?>
" class="box-link">
						<img class="box-image" src="<?php 
                echo $box_image;
                ?>
" />
          </a>
        <?php 
            } else {
                ?>
        	<a class="box-no-url">
						<img class="box-image" src="<?php 
                echo $box_image;
                ?>
" />
          </a>
        <?php 
            }
            ?>
					<h2 class="box-widget-title"><?php 
            echo $box->post_title;
            ?>
</h2>
					<p><?php 
            echo $box_text;
            ?>
</p>
				</div><!--end box1-->
		<?php 
            $box_counter++;
        }
    } else {
        ?>
				<div class="box span4">
					<a href="http://cyberchimps.com" class="box-link">
						<img class="box-image" src="<?php 
        echo $template_directory;
        echo apply_filters('cyberchimps_box1_image', '/elements/lib/images/boxes/slidericon.png');
        ?>
" alt="CyberChimps Slider" />
          </a>
					<h2 class="box-widget-title"><?php 
        _e('Professional Slider', 'cyberchimps');
        ?>
</h2>
					<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut suscipit, augue at rhoncus viverra, velit.</p>
				</div><!--end box1-->
        
        <div class="box span4">
					<a href="http://cyberchimps.com" class="box-link">
						<img class="box-image" src="<?php 
        echo $template_directory;
        echo apply_filters('cyberchimps_box2_image', '/elements/lib/images/boxes/blueprint.png');
        ?>
" alt="CyberChimps Blueprint" />
          </a>
					<h2 class="box-widget-title"><?php 
        _e('Responsive Design', 'cyberchimps');
        ?>
</h2>
					<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut suscipit, augue at rhoncus viverra, velit.</p>
				</div><!--end box3-->
        
        <div class="box span4">
					<a href="http://cyberchimps.com" class="box-link">
						<img class="box-image" src="<?php 
        echo $template_directory;
        echo apply_filters('cyberchimps_box3_image', '/elements/lib/images/boxes/docs.png');
        ?>
" alt="CyberChimps Help" />
          </a>
					<h2 class="box-widget-title"><?php 
        _e('Excellent Support', 'cyberchimps');
        ?>
</h2>
					<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut suscipit, augue at rhoncus viverra, velit.</p>
				</div><!--end box4-->
			
		<?php 
    }
    ?>
		</div><!-- end boxes -->
	</div><!-- end row-fluid -->
<?php 
}
Exemplo n.º 27
0
    ?>
		<div class="entry-summary">
			<?php 
    cyberchimps_featured_image();
    ?>
			<?php 
    the_content();
    ?>
		</div><!-- .entry-summary -->
	
	<?php 
} elseif (is_home()) {
    // blog post pages
    ?>
  	<?php 
    if (cyberchimps_get_option('post_excerpts', 0)) {
        ?>
  		<div class="entry-summary">
      	<?php 
        cyberchimps_featured_image();
        ?>
        <?php 
        the_excerpt();
        ?>
      </div>
    <?php 
    } else {
        ?>
    	<div class="entry-content">
    		<?php 
        cyberchimps_featured_image();
Exemplo n.º 28
0
function cyberchimps_portfolio_lite_content()
{
    // call globals
    global $post;
    // Getting options of portfolio-lite when added to page
    if (is_page()) {
        // Geting title option
        $title_enable = get_post_meta($post->ID, 'cyberchimps_portfolio_title_toggle', true);
        $title = get_post_meta($post->ID, 'cyberchimps_portfolio_title', true);
        // Getting Image URL for each protfolio
        $img1 = get_post_meta($post->ID, 'cyberchimps_portfolio_lite_image_one', true);
        $img2 = get_post_meta($post->ID, 'cyberchimps_portfolio_lite_image_two', true);
        $img3 = get_post_meta($post->ID, 'cyberchimps_portfolio_lite_image_three', true);
        $img4 = get_post_meta($post->ID, 'cyberchimps_portfolio_lite_image_four', true);
        // Getting caption for each protfolio
        $caption1 = get_post_meta($post->ID, 'cyberchimps_portfolio_lite_image_one_caption', true);
        $caption2 = get_post_meta($post->ID, 'cyberchimps_portfolio_lite_image_two_caption', true);
        $caption3 = get_post_meta($post->ID, 'cyberchimps_portfolio_lite_image_three_caption', true);
        $caption4 = get_post_meta($post->ID, 'cyberchimps_portfolio_lite_image_four_caption', true);
        // Getting Custom URL toggle
        $url_toggle1 = get_post_meta($post->ID, 'cyberchimps_portfolio_link_toggle_one', true);
        $url_toggle2 = get_post_meta($post->ID, 'cyberchimps_portfolio_link_toggle_two', true);
        $url_toggle3 = get_post_meta($post->ID, 'cyberchimps_portfolio_link_toggle_three', true);
        $url_toggle4 = get_post_meta($post->ID, 'cyberchimps_portfolio_link_toggle_four', true);
        // Getting URL of custom link
        $url1 = get_post_meta($post->ID, 'cyberchimps_portfolio_link_url_one', true);
        $url2 = get_post_meta($post->ID, 'cyberchimps_portfolio_link_url_two', true);
        $url3 = get_post_meta($post->ID, 'cyberchimps_portfolio_link_url_three', true);
        $url4 = get_post_meta($post->ID, 'cyberchimps_portfolio_link_url_four', true);
    } else {
        // Geting title option
        $title_enable = cyberchimps_get_option('cyberchimps_blog_portfolio_title_toggle', 1);
        $title = cyberchimps_get_option('cyberchimps_blog_portfolio_title', 'Portfolio');
        $portfolio_default_image = get_template_directory_uri() . '/cyberchimps/lib/images/portfolio.jpg';
        // Getting Image URL for each protfolio
        $img1 = cyberchimps_get_option('cyberchimps_blog_portfolio_lite_image_one', $portfolio_default_image);
        $img2 = cyberchimps_get_option('cyberchimps_blog_portfolio_lite_image_two', $portfolio_default_image);
        $img3 = cyberchimps_get_option('cyberchimps_blog_portfolio_lite_image_three', $portfolio_default_image);
        $img4 = cyberchimps_get_option('cyberchimps_blog_portfolio_lite_image_four', $portfolio_default_image);
        // Getting caption for each protfolio
        $caption1 = cyberchimps_get_option('cyberchimps_blog_portfolio_lite_image_one_caption', 'CyberChimps');
        $caption2 = cyberchimps_get_option('cyberchimps_blog_portfolio_lite_image_two_caption', 'CyberChimps');
        $caption3 = cyberchimps_get_option('cyberchimps_blog_portfolio_lite_image_three_caption', 'CyberChimps');
        $caption4 = cyberchimps_get_option('cyberchimps_blog_portfolio_lite_image_four_caption', 'CyberChimps');
        // Getting Custom URL toggle
        $url_toggle1 = cyberchimps_get_option('cyberchimps_blog_portfolio_link_toggle_one');
        $url_toggle2 = cyberchimps_get_option('cyberchimps_blog_portfolio_link_toggle_two');
        $url_toggle3 = cyberchimps_get_option('cyberchimps_blog_portfolio_link_toggle_three');
        $url_toggle4 = cyberchimps_get_option('cyberchimps_blog_portfolio_link_toggle_four');
        // Getting URL of custom link
        $url1 = cyberchimps_get_option('cyberchimps_blog_portfolio_link_url_one');
        $url2 = cyberchimps_get_option('cyberchimps_blog_portfolio_link_url_two');
        $url3 = cyberchimps_get_option('cyberchimps_blog_portfolio_link_url_three');
        $url4 = cyberchimps_get_option('cyberchimps_blog_portfolio_link_url_four');
    }
    // Set the title to default value if null is supplied
    $title = $title != '' ? $title : 'Portfolio';
    // Set the markup for title
    $title_output = ($title_enable == 'on' or $title_enable == '1') ? $title : '';
    // Post-specific variables
    $image = get_post_meta($post->ID, 'portfolio_image', true);
    $title = get_the_title();
    // Post-specific variables
    $image = get_post_meta($post->ID, 'portfolio_image', true);
    $title = get_the_title();
    // Setting portfolio link and rel
    if ($url_toggle1 == 1) {
        $portfolio_link1 = $url1;
        $portfolio_rel1 = "";
    } else {
        $portfolio_link1 = $img1;
        $portfolio_rel1 = 'rel=cyberchimps-lightbox';
    }
    if ($url_toggle2 == 1) {
        $portfolio_link2 = $url2;
        $portfolio_rel2 = "";
    } else {
        $portfolio_link2 = $img2;
        $portfolio_rel2 = 'rel=cyberchimps-lightbox';
    }
    if ($url_toggle3 == 1) {
        $portfolio_link3 = $url3;
        $portfolio_rel3 = "";
    } else {
        $portfolio_link3 = $img3;
        $portfolio_rel3 = 'rel=cyberchimps-lightbox';
    }
    if ($url_toggle4 == 1) {
        $portfolio_link4 = $url4;
        $portfolio_rel4 = "";
    } else {
        $portfolio_link4 = $img4;
        $portfolio_rel4 = 'rel=cyberchimps-lightbox';
    }
    ?>

	<!-- Start of markup for portfolio element -->
	<div id="portfolio" class="row-fluid">
		<div id="gallery" class="span12">

			<!-- Display the title -->
			<h2 class="entry-title"><?php 
    echo esc_html($title_output);
    ?>
</h2>

			<ul class="row-fluid">

				<!-- Portfolio 1 -->
				<li id="portfolio_wrap" class="span3">
					<div class="portfolio-item">
						<a href='<?php 
    echo esc_url($portfolio_link1);
    ?>
' <?php 
    echo esc_attr($portfolio_rel1);
    ?>
 title='<?php 
    echo esc_attr($caption1);
    ?>
'><img
								src='<?php 
    echo esc_url($img1);
    ?>
' alt='Image 1'/>

							<div class='portfolio_caption'><?php 
    echo esc_html($caption1);
    ?>
</div>
						</a>
					</div>
				</li>

				<!-- Portfolio 2 -->
				<li id="portfolio_wrap" class="span3">
					<div class="portfolio-item">
						<a href='<?php 
    echo esc_url($portfolio_link2);
    ?>
' <?php 
    echo esc_attr($portfolio_rel2);
    ?>
 title='<?php 
    echo esc_attr($caption2);
    ?>
'><img
								src='<?php 
    echo esc_url($img2);
    ?>
' alt='Image 1'/>

							<div class='portfolio_caption'><?php 
    echo esc_html($caption2);
    ?>
</div>
						</a>
					</div>
				</li>

				<!-- Portfolio 3 -->
				<li id="portfolio_wrap" class="span3">
					<div class="portfolio-item">
						<a href='<?php 
    echo esc_url($portfolio_link3);
    ?>
' <?php 
    echo esc_attr($portfolio_rel3);
    ?>
 title='<?php 
    echo esc_attr($caption3);
    ?>
'><img
								src='<?php 
    echo esc_url($img3);
    ?>
' alt='Image 1'/>

							<div class='portfolio_caption'><?php 
    echo esc_html($caption3);
    ?>
</div>
						</a>
					</div>
				</li>

				<!-- Portfolio 4 -->
				<li id="portfolio_wrap" class="span3">
					<div class="portfolio-item">
						<a href='<?php 
    echo esc_url($portfolio_link4);
    ?>
' <?php 
    echo esc_attr($portfolio_rel4);
    ?>
 title='<?php 
    echo esc_attr($caption4);
    ?>
'><img
								src='<?php 
    echo esc_url($img4);
    ?>
' alt='Image 1'/>

							<div class='portfolio_caption'><?php 
    echo esc_html($caption4);
    ?>
</div>
						</a>
					</div>
				</li>
			</ul>
		</div>
		<!-- End of #gallery -->
	</div>  <!-- End of .row-fluid -->
	<!-- End of markup for portfolio element -->
<?php 
}
Exemplo n.º 29
0
								<?php 
if (cyberchimps_get_option('searchbar', 1) == "1") {
    ?>
									<div class="menu-searchbar">
										<?php 
    get_search_form();
    ?>
									</div>
								<?php 
}
?>

								<?php 
/* hide collapsing menu if not responsive */
if (cyberchimps_get_option('responsive_design', 'checked')) {
    ?>
							</div>
						<!-- collapse -->

						<!-- .btn-navbar is used as the toggle for collapsed navbar content -->
							<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
								<span class="icon-bar"></span>
								<span class="icon-bar"></span>
								<span class="icon-bar"></span>
							</a>
						<?php 
}
?>
						</div>
						<!-- container -->
Exemplo n.º 30
0
function cyberchimps_skin_styles()
{
    $skin = cyberchimps_get_option('cyberchimps_skin_color');
    if ($skin != 'default') {
        wp_enqueue_style('skin-style', get_stylesheet_directory_uri() . '/inc/css/skins/' . $skin . '.css', array('style'), '1.0');
    }
}