public function render_content() { $field = search_multi($this->ReduxFramework->sections, 'id', $this->option_key); // the key is always unique so there will be only one $field = $field[0]; if (!isset($field['name_suffix'])) { $field['name_suffix'] = ""; } if (!isset($field['default'])) { $field['default'] = array(); } $field['custom_data'] = $this->get_link(); $field_class = 'ReduxFramework_customizer_checkbox'; if (!class_exists($field_class)) { $class_file = apply_filters('redux-typeclass-load', '/inc/fields/checkbox/field_checkbox.php', $field_class); if ($class_file === 'inc/fields/checkbox/field_checkbox.php') { /* for PRO users! - * @noinspection PhpIncludeInspection */ require_once wpgrade::corepath() . 'vendor/redux3/' . $class_file; } } $value = wpgrade::option($field['id'], 0); if (class_exists($field_class) && method_exists($field_class, 'render')) { $enqueue = new $field_class($field, $value, $this->ReduxFramework); // $enqueue->enqueue(); echo "<label>" . "<span class=\"customize-control-title\">" . $field['title'] . "</span>" . "</label>"; echo '<div class="redux-container-' . $this->type . '">'; echo $enqueue->render(); echo '<div>'; } }
/** * A custom render for sliders in customizer panel */ public function render_content() { $field = search_multi($this->ReduxFramework->sections, 'id', $this->option_key); // the key is always unique so there will be only one $field = $field[0]; if (!isset($field['name_suffix'])) { $field['name_suffix'] = ""; } if (!isset($field['default'])) { $field['default'] = array(); } $field['custom_data'] = $this->get_link(); $field_class = 'ReduxFramework_customizer_background'; if (!class_exists($field_class)) { $class_file = apply_filters('redux-typeclass-load', '/inc/fields/background/field_background.php', $field_class); if ($class_file === '/inc/fields/background/field_background.php') { /** @noinspection PhpIncludeInspection */ require_once wpgrade::corepath() . 'vendor/redux3/' . $class_file; } } $value = wpgrade::option($field['id'], $field['default']); // get wordpress default labels $this->json['button_labels'] = array('select' => __('Select Image'), 'change' => __('Change Image'), 'remove' => __('Remove'), 'default' => __('Default'), 'placeholder' => __('No image selected'), 'frame_title' => __('Select Image'), 'frame_button' => __('Choose Image')); if (class_exists($field_class) && method_exists($field_class, 'render')) { $field_object = new $field_class($field, $value, $this->ReduxFramework); // $enqueue->enqueue(); echo "<label>" . "<span class=\"customize-control-title\">" . $field['title'] . "</span>" . "</label>"; // echo '<div class="redux-container-'. $this->type . '" >'; echo $field_object->render(); // echo '<div>'; } }
function wpgrade_callback_enqueue_dynamic_css() { $style_query = array(); // if (wpgrade::option('main_color')) { // $main_color = wpgrade::option('main_color'); // $main_color = str_replace('#', '', $main_color); // $style_query['color'] = $main_color; // } if (wpgrade::option('use_google_fonts')) { add_action('wp_head', 'wpgrade_callback_load_google_fonts'); $fonts_array = array('google_titles_font', 'google_second_font', 'google_nav_font', 'google_body_font'); foreach ($fonts_array as $font) { $the_font = wpgrade::get_the_typo($font); // var_dump($the_font); if (!empty($the_font)) { $style_query['fonts'][$font] = $the_font; } } } // if (wpgrade::option('portfolio_text_color')) { // $port_color = wpgrade::option('portfolio_text_color'); // $port_color = str_replace('#', '', $port_color); // $style_query['port_color'] = $port_color; // } if (wpgrade::option('inject_custom_css') == 'file') { wp_enqueue_style('wpgrade-custom-style', get_template_directory_uri() . '/theme-content/css/custom.css'); } }
function wpgrade_clean_static_files() { if (wpgrade::option('remove_parameters_from_static_res')) { add_filter('the_generator', 'wpgrade_remove_version_info'); add_filter('script_loader_src', 'wpgrade_remove_script_version', 15, 1); add_filter('style_loader_src', 'wpgrade_remove_script_version', 15, 1); } }
function wpgrade_callback_load_woocommerce_assets() { global $woocommerce; if (!wpgrade::option('enable_woocommerce_support', '0')) { return; } wp_enqueue_style('wpgrade-woocommerce', get_template_directory_uri() . '/assets/css/woocommerce.css', array('woocommerce-general'), wpgrade::cachebust_string(wpgrade::themefilepath('assets/css/woocommerce.css'))); }
/** * ... */ function wpgrade_callback_themesetup() { // General Purpose Resource Handling // --------------------------------- // register resources add_action('wp_enqueue_scripts', 'wpgrade_callback_register_theme_resources', 1); // auto-enque based on configuration entries and callbacks add_action('wp_enqueue_scripts', 'wpgrade_callback_enqueue_theme_resources', 1); $themeconfiguration = wpgrade::config(); // Specialized Resource Handling // ----------------------------- // extra script equeue handlers foreach ($themeconfiguration['resources']['script-enqueue-handlers'] as $callback) { if ($callback !== null) { if (!is_array($callback)) { add_action('wp_enqueue_scripts', $callback, 10); } else { // $callback is array if (!empty($callback['handler'])) { isset($callback['priority']) or $callback['priority'] = 10; add_action('wp_enqueue_scripts', $callback['handler'], $callback['priority']); } } } } // extra style equeue handlers foreach ($themeconfiguration['resources']['style-enqueue-handlers'] as $callback) { if ($callback !== null) { if (!is_array($callback)) { add_action('wp_enqueue_scripts', $callback, 10); } else { // $callback is array if (!empty($callback['handler'])) { isset($callback['priority']) or $callback['priority'] = 10; add_action('wp_enqueue_scripts', $callback['handler'], $callback['priority']); } } } } // some info add_action('after_switch_theme', 'wpgrade_callback_gtkywb'); // custom javascript handlers - make sure it is the last one added add_action('wp_head', 'wpgrade_callback_load_custom_js', 999); add_action('wp_footer', 'wpgrade_callback_load_custom_js_footer', 999); if (wpgrade::option('inject_custom_css') == 'inline') { $handler = wpgrade::confoption('custom-css-handler', null); if (empty($handler)) { $handler = 'wpgrade_callback_inlined_custom_style'; } add_action('wp_enqueue_scripts', $handler, 999999); } }
function wpgrade_callback_load_custom_js_footer() { $custom_js = wpgrade::option('custom_js_footer'); if (!empty($custom_js)) { //first lets test is the js code is clean or has <script> tags and such //if we have <script> tags than we will not enclose it in anything - raw output if (strpos($custom_js, '</script>') !== false) { echo $custom_js . "\n"; } else { echo "<script type=\"text/javascript\">\n;(function(\$){\n" . $custom_js . "\n})(jQuery);\n</script>\n"; } } }
function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', $instance['title']); $social_links = wpgrade::option('social_icons'); $target = ''; if (wpgrade::option('social_icons_target_blank')) { $target = 'target="_blank"'; } // Reset Post Data wp_reset_postdata(); echo $before_widget; if (!empty($social_links)) { ?> <?php if ($title) { echo $before_title . $title . $after_title; } ?> <div class="btn-list"> <?php foreach ($social_links as $domain => $icon) { if (isset($icon['value']) && isset($icon['checkboxes']['widget'])) { $value = $icon['value']; ?> <a href="<?php echo $value; ?> " <?php echo $target; ?> > <i class="pixcode pixcode--icon icon-e-<?php echo $domain; ?> "></i> </a> <?php } } ?> </div> <?php } echo $after_widget; }
function wpgrade_write_custom_css($options) { if (wpgrade::option('inject_custom_css') !== 'file') { return; } $error = false; global $wp_filesystem; // Initialise the Wordpress filesystem, no more using file_put_contents function if (empty($wp_filesystem)) { require_once ABSPATH . '/wp-admin/includes/file.php'; WP_Filesystem(); } $css_dir = get_template_directory() . '/assets/css/'; ob_start(); include wpgrade::corepartial('inline-custom-css' . EXT); $css = ob_get_clean(); $wp_filesystem->put_contents($css_dir . 'custom.css', $css, FS_CHMOD_FILE); if ($error == true) { echo 'There is been an error around'; } }
?> " data-customArrows <?php if ($slider_transition == 'move') { echo 'data-slidertransitiondirection="horizontal"' . PHP_EOL; } if ($slider_autoplay) { echo 'data-sliderautoplay="" ' . PHP_EOL; echo 'data-sliderdelay="' . $slider_delay . '" ' . PHP_EOL; } if ($slider_visiblenearby) { echo 'data-visiblenearby ' . PHP_EOL; } if (wpgrade::option('slideshow_arrows_style') == 'hover') { echo ' data-hoverarrows '; } ?> > <?php $set_cover = false; foreach ($attachments as $attachment) { $full_img = wp_get_attachment_image_src($attachment->ID, 'full-size'); $attachment_fields = get_post_custom($attachment->ID); // prepare the video url if there is one $video_url = isset($attachment_fields['_video_url'][0]) && !empty($attachment_fields['_video_url'][0]) ? esc_url($attachment_fields['_video_url'][0]) : ''; // should the video auto play? $video_autoplay = isset($attachment_fields['_video_autoplay'][0]) && !empty($attachment_fields['_video_autoplay'][0]) && $attachment_fields['_video_autoplay'][0] === 'on' ? $attachment_fields['_video_autoplay'][0] : ''; if (true === $set_cover) { ?>
<?php /* for PRO users! - * Get the comma delimited string from Theme Options and generate the a tags that are needed to make AddThis sharing work */ $share_buttons_types = wpgrade::option('share_buttons_settings'); if (!empty($share_buttons_types) || $share_buttons_types !== 'false') { //lets go through each button type and create the needed markup //but first some cleaning - remove all whitespaces $share_buttons_types = preg_replace('/\\s+/', '', $share_buttons_types); //now take each setting $buttons = explode(',', $share_buttons_types); //the preferred buttons need to have numbering appended to them $preferred_count = 0; $display_share_buttons = ''; if (!empty($buttons)) { for ($k = 0; $k < count($buttons); $k++) { switch ($buttons[$k]) { case 'preferred': $preferred_count++; $display_share_buttons .= '<a class="addthis_button_' . $buttons[$k] . '_' . $preferred_count . '"></a>'; break; case 'more': $display_share_buttons .= '<a class="addthis_button_compact"></a>'; break; case 'counter': $display_share_buttons .= '<a class="addthis_counter addthis_bubble_style"></a>'; break; default: $display_share_buttons .= '<a class="addthis_button_' . $buttons[$k] . '"></a>'; }
?> <img class="site-logo-img--light" src="<?php echo wpgrade::image_src('main_logo_light'); ?> " <?php echo $data_retina_logo_light; ?> rel="logo" alt="<?php echo get_bloginfo('name'); ?> "/> <?php if (wpgrade::image_src('main_logo_dark')) { $retina_logo_dark = wpgrade::image_src('retina_main_logo_dark'); $data_retina_logo_dark = wpgrade::option('use_retina_logo') && !empty($retina_logo_dark) ? 'data-logo2x="' . $retina_logo_dark . '"' : ''; ?> <img class="site-logo-img--dark" src="<?php echo wpgrade::image_src('main_logo_dark'); ?> " <?php echo $data_retina_logo_dark; ?> rel="logo" alt="<?php echo get_bloginfo('name'); ?> "/> <?php } ?>
<?php if (wpgrade::option('facebook_id_app')) { ?> <meta property="fb:app_id" content="<?php echo wpgrade::option('facebook_id_app'); ?> "/> <?php } ?> <?php if (wpgrade::option('facebook_admin_id')) { ?> <meta property="fb:admins" content="<?php echo wpgrade::option('facebook_admin_id'); ?> "/> <?php } ?> <meta property="og:site_name" content="<?php echo get_bloginfo("name"); ?> "/> <meta property="og:url" content="<?php echo $current_url; ?> "/> <meta property="og:title" content="<?php wp_title('|', true, 'right');
function load_social_share() { if (wpgrade::option('prepare_for_social_share')) { add_action('wp_head', 'wpgrade_callback_general_seo'); add_action('wp_head', 'wpgrade_callback_facebook_opengraph'); add_action('wp_head', 'wpgrade_callback_google_metas'); add_action('wp_head', 'wpgrade_callback_twitter_card'); } }
<svg class="blurp--bottom" width="192" height="61" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 160.7 61.5" enable-background="new 0 0 160.7 61.5" xml:space="preserve"><path fill="#FFFFFF" d="M80.3,61.5c0,0,22.1-2.7,43.1-5.4s41-5.4,36.6-5.4c-21.7,0-34.1-12.7-44.9-25.4S95.3,0,80.3,0c-15,0-24.1,12.7-34.9,25.4S22.3,50.8,0.6,50.8c-4.3,0-6.5,0,3.5,1.3S36.2,56.1,80.3,61.5z"/></svg> <div class="btn--top"> <a href="#" class="btn--top_text"> <span class="btn__arrow btn__arrow--top"></span> <span class="btn__arrow btn__arrow--bottom"></span> </a> </div> <div class="container"> <div class="footer-container"> <?php $copyright_text = wpgrade::option('copyright_text'); if (!empty($copyright_text)) { ?> <div class="copyright-text"> <?php echo wpgrade::option('copyright_text'); ?> </div> <?php } wpgrade_footer_nav('<nav class="navigation navigation--footer">', '</nav>'); ?> </div> </div> </div> <!-- .copyright-area --> </footer><!-- .site--footer --> <?php }
?> " addthis:title="<?php wp_title('|', true, 'right'); ?> " addthis:description="<?php echo trim(strip_tags(get_the_excerpt())); ?> "> <?php get_template_part('templates/core/addthis-social-buttons'); ?> </div> <?php } ?> </div> </div> <?php if (wpgrade::option('blog_single_show_author_box')) { get_template_part('author-bio'); } ?> </footer><!-- .article__footer --> <?php if (function_exists('yarpp_related')) { yarpp_related(); }
<?php /** * The main template file. * This is the most generic template file in a WordPress theme and one of the * two required files for a theme (the other being style.css). * It is used to display a page when nothing more specific matches a query. * For example, it puts together the home page when no home.php file exists. * Learn more: http://codex.wordpress.org/Template_Hierarchy * @package Rosa * @since Rosa 1.0 */ get_header(); $blog_style = wpgrade::option('blog_layout', 'classic'); get_template_part('templates/post/loop/' . $blog_style); get_footer();
global $wp, $post; if (is_singular()) { $current_url = wpgrade_get_current_canonical_url(); ?> <!-- twitter card tags --> <meta name="twitter:card" content="summary"> <meta name="twitter:url" content="<?php echo $current_url; ?> "> <?php if (wpgrade::option('twitter_card_site')) { ?> <meta name="twitter:site" content="@<?php echo wpgrade::option('twitter_card_site'); ?> "/> <?php } ?> <?php if (get_the_author_meta('user_tw')) { ?> <meta name="twitter:creator" content="@<?php echo get_the_author_meta('user_tw'); ?> "/> <?php } ?>
<?php if (is_active_sidebar('sidebar-footer')) { $num = wpgrade::option('footer_number_of_columns'); $cols_number = !empty($num) ? $num : 3; $column_width = ''; if ($cols_number == 1) { $column_width = wpgrade::option('footer_column_width'); } ?> <div class="footer-widget-area col-<?php echo $cols_number . ' ' . $column_width; ?> "> <aside class="sidebar"> <?php dynamic_sidebar('sidebar-footer'); ?> </aside> <!-- .sidebar --> </div><!-- .grid__item --> <?php }
<?php defined('ABSPATH') or die; // get the latest remote XML file on our server $xml = wpgrade_update_notifier_latest_theme_version(wpgrade::update_notifier_cacheinterval()); // read theme current version from the style.css $theme_data = wpgrade::themedata(); $options_url = admin_url('index.php?page=' . wpgrade::update_notifier_pagename() . '&wpgrade_update=true'); // compute envatoDetails if (wpgrade::option('marketplace_username') && wpgrade::option('marketplace_api_key')) { $envatoDetails = 'true'; } else { // ! marketplace_username || ! marketplace_api_key $envatoDetails = 'false'; } ?> <script type="text/javascript"> var wpGradeUpdateData = { optionsLink: "<?php echo $options_url; ?> ", envatoDetails: <?php echo $envatoDetails; ?> }; </script> <div class="wrap">
echo strip_tags(get_the_excerpt()); ?> "> <meta itemprop="image" content="<?php echo wpgrade_get_socialimage(); ?> "> <?php if (get_the_author_meta('google_profile')) { ?> <link rel="author" href="<?php echo get_the_author_meta('google_profile'); ?> "/> <?php } } ?> <?php # we only add the publisher link on the home page if (is_front_page() && wpgrade::option('google_page_url')) { ?> <link rel="publisher" href="http://plus.google.com/<?php echo wpgrade::option('google_page_url'); ?> "/> <?php } ?> <!-- end google+ tags -->
static function gallery_slideshow($current_post, $template = null, $size = 'medium-size') { if ($template === null) { $image_scale_mode = get_post_meta($current_post->ID, wpgrade::prefix() . 'post_image_scale_mode', true); $slider_visiblenearby = get_post_meta($current_post->ID, wpgrade::prefix() . 'post_slider_visiblenearby', true); $slider_transition = get_post_meta($current_post->ID, wpgrade::prefix() . 'post_slider_transition', true); $slider_autoplay = get_post_meta($current_post->ID, wpgrade::prefix() . 'post_slider_autoplay', true); if ($slider_autoplay) { $slider_delay = get_post_meta($current_post->ID, wpgrade::prefix() . 'post_slider_delay', true); } $template = '<div class="wp-gallery" data-royalslider data-autoHeight data-customarrows data-sliderpauseonhover data-slidertransition="' . $slider_transition . '" '; $template .= ' data-imagescale="' . $image_scale_mode . '" '; if ($slider_visiblenearby) { $template .= ' data-visiblenearby '; } if ($slider_autoplay) { $template .= ' data-sliderautoplay="" '; $template .= ' data-sliderdelay="' . $slider_delay . '" '; } if ($image_scale_mode != 'fill') { $template .= ' data-imagealigncenter '; } if (wpgrade::option('show_title_caption_popup') == 1) { $template .= ' data-enable_caption=""'; } $template .= '>:gallery</div>'; } // first check if we have a meta with a gallery $gallery_ids = get_post_meta($current_post->ID, wpgrade::prefix() . 'main_gallery', true); if (!empty($gallery_ids)) { //recreate the gallery shortcode $gallery = '[gallery ids="' . $gallery_ids . '"]'; if (strpos($gallery, 'style') === false) { $gallery = str_replace("]", " style='big_thumb' size='" . $size . "' link='file']", $gallery); } $shrtcode = do_shortcode($gallery); //var_dump( $template, $shrtcode ); // $shrtcode = preg_replace('/(<dd class="wp-caption-text gallery-caption">.+?)+(<\/dd>)/i', '', $shrtcode); if (!empty($shrtcode)) { return strtr($template, array(':gallery' => $shrtcode)); } else { return null; } } else { // empty gallery_ids // search for the first gallery shortcode $gallery_matches = null; preg_match("!\\[gallery.+?\\]!", $current_post->post_content, $gallery_matches); if (!empty($gallery_matches)) { $gallery = $gallery_matches[0]; if (strpos($gallery, 'style') === false) { $gallery = str_replace("]", " style='big_thumb' size='" . $size . "' link='file']", $gallery); } $shrtcode = do_shortcode($gallery); if (!empty($shrtcode)) { return strtr($template, array(':gallery' => $shrtcode)); } else { return null; } } else { // gallery_matches is empty return null; } } }
?> > <?php get_template_part('templates/post/loop-content/featured-classic/image'); ?> <div class="article__body"> <?php get_template_part('templates/post/loop-content/header-classic'); ?> <section class="article__content"> <?php echo wpgrade_better_excerpt(); ?> </section> <?php $read_more = wpgrade::option('blog_read_more_text'); if (!empty($read_more)) { ?> <a href="<?php the_permalink(); ?> " class="read-more-button"><?php echo $read_more; ?> </a> <?php } ?> </div> <!-- .article__body --> </article>
*/ get_header(); global $post, $wpgrade_private_post, $page_section_idx, $header_height; //some global variables that we use in our page sections $is_gmap = false; $footer_needs_big_waves = false; $page_section_idx = 0; if (post_password_required() && !$wpgrade_private_post['allowed']) { // password protection get_template_part('templates/password-request-form'); } else { while (have_posts()) { the_post(); get_template_part('templates/page/header'); $classes = "article--page article--main"; $down_arrow_style = wpgrade::option('down_arrow_style'); if ($page_section_idx == 1 && $header_height == 'full-height' && $down_arrow_style == 'bubble') { $classes .= " article--arrow"; } // $style = ''; // $inverse_colors = get_post_meta( wpgrade::lang_page_id( get_the_ID() ), wpgrade::prefix() . 'inverse_section_colors', true ); // if ($inverse_colors == 'on') { // $classes .= ' inverse-colors'; // // $text_color = wpgrade::option('text_color'); // $background_color = wpgrade::option('content_background_color'); // // $style .= ' style="background-color: '.$text_color.'; color: '.$background_color.'" '; // } $border_style = get_post_meta(wpgrade::lang_page_id(get_the_ID()), wpgrade::prefix() . 'page_border_style', true); if (!empty($border_style)) {
function display_header_down_arrow($page_section_idx, $header_height) { if ($page_section_idx !== 1 || $header_height !== 'full-height') { return; } //get the global option regarding down arrow style $down_arrow_style = wpgrade::option('down_arrow_style'); if (empty($down_arrow_style)) { $down_arrow_style = 'transparent'; //the default } if ($down_arrow_style == 'bubble') { echo '<svg class="blurp--top" width="192" height="61" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 160.7 61.5" enable-background="new 0 0 160.7 61.5" xml:space="preserve"><path fill="#FFFFFF" d="M80.3,61.5c0,0,22.1-2.7,43.1-5.4s41-5.4,36.6-5.4c-21.7,0-34.1-12.7-44.9-25.4S95.3,0,80.3,0c-15,0-24.1,12.7-34.9,25.4S22.3,50.8,0.6,50.8c-4.3,0-6.5,0,3.5,1.3S36.2,56.1,80.3,61.5z"/></svg>'; } echo '<div class="down-arrow down-arrow--' . $down_arrow_style . '"><div class="arrow"></div></div>' . PHP_EOL; }
/** * This will output the custom WordPress settings to the live theme's WP head. * Used by hook: 'wp_head' * @see add_action('wp_head',$func) * @since MyTheme 1.0 */ public function header_output() { if (!isset($GLOBALS['wp_customize'])) { return; } // iterate through options and setup an style for those who need an embeded style foreach ($this->parent->sections as $key => $section) { // Not a type that should go on the customizer if (empty($section['fields']) || isset($section['type']) && $section['type'] == "divide") { continue; } // If section customizer is set to false if (isset($section['customizer']) && $section['customizer'] === false) { continue; } foreach ($section['fields'] as $skey => $option) { if (isset($option['customizer']) && $option['customizer'] === false) { continue; } if ($this->parent->args['customizer'] === false && (!isset($option['customizer']) || !is_array($option['customizer']))) { continue; } // @TODO maybe refactor here if (!isset($option['customizer']) || !is_array($option['customizer'])) { continue; } // to localize setting $tlcs = array(); if (isset($option['customizer']['selector'])) { $tlcs['selector'] = $option['customizer']['selector']; } if (isset($option['customizer']['rules'])) { $tlcs['rules'] = $option['customizer']['rules']; } if (isset($option['customizer']['css_rules'])) { $tlcs['css_rules'] = $option['customizer']['css_rules']; } if (isset($option['customizer']['transport'])) { $tlcs['transport'] = $option['customizer']['transport']; } if (isset($option['type'])) { $tlcs['type'] = $option['type']; } if (!isset($tlcs['css_rules']) || !is_array($tlcs['css_rules'])) { continue; } // $option_value = wpgrade::option( $option['id'], $option['default'] );// ( isset($option['value'] ) ) ? $option['value'] : $option['default']; ?> <style id="<?php echo $option['id']; ?> " type="text/css"><?php foreach ($tlcs['css_rules'] as $key => $rule) { // rebuild the option value for each rule $option_value = wpgrade::option($option['id']); // get the rule wpgrade::display_dynamic_css_rule($rule, $key, $option_value, $important = false); } ?> </style> <?php } } }
<li> <div id="TA_socialButtonBubbles510" class="TA_socialButtonBubbles"> <ul id="5GQ0kz6aX" class="TA_links jyenlcHRwzA3"> <li id="JQ5ark8" class="4GNQIwz"> <a target="_blank" href="http://www.tripadvisor.com/Restaurant_Review-g304060-d7162518-Reviews-Jassyro_Coffee_Shop-Iasi_Iasi_County_Northeast_Romania.html"> <img src="http://www.tripadvisor.com/img/cdsi/img2/branding/socialWidget/20x28_white-21693-2.png"/></a> </li> </ul> </div> <script src="http://www.jscache.com/wejs?wtype=socialButtonBubbles&uniq=510&locationId=7162518&color=white&size=rect&lang=en_US&display_version=2"></script> </li> <?php */ } if (in_array('woocommerce/woocommerce.php', apply_filters('active_plugins', get_option('active_plugins'))) && wpgrade::option('show_cart_menu')) { global $woocommerce; ?> <li class="shop-menu-item menu-item-has-children"> <div class="widget_shopping_cart_content"> <a class="cart-icon-link" href="<?php echo $woocommerce->cart->get_cart_url(); ?> "> <i class="icon-shopping-cart"></i> <span class="shop-items-number"><?php echo sprintf(_n('%d', $woocommerce->cart->cart_contents_count, 'woocommerce'), $woocommerce->cart->cart_contents_count); ?> </span> </a>
addthis_config = { <?php if (wpgrade::option('share_buttons_enable_tracking') && wpgrade::option('share_buttons_enable_addthis_tracking')) { echo 'username : "******",'; } ?> ui_click: false, ui_delay: 100, ui_offset_top: 42, ui_use_css: true, data_track_addressbar: false, data_track_clickback: false <?php if (wpgrade::option('share_buttons_enable_tracking') && wpgrade::option('share_buttons_enable_ga_tracking')) { echo ', data_ga_property: "' . wpgrade::option('share_buttons_ga_id') . '"'; if (wpgrade::option('share_buttons_enable_ga_social_tracking')) { echo ', data_ga_social : true'; } } ?> }; addthis_share = { url: "<?php echo wpgrade_get_current_canonical_url(); ?> ", title: "<?php wp_title('|', true, 'right'); ?> ",
function new_excerpt_more($excerpt) { return wpgrade::option('blog_excerpt_more_text'); }
} <?php } */ //handle the complicated logic of the footer waves that keeps changing color $footer_sidebar_style = wpgrade::option('footer_sidebar_style'); $waves_fill_color = '#121212'; switch ($footer_sidebar_style) { case 'light': $waves_fill_color = '#ffffff'; break; case 'dark': $waves_fill_color = '#121212'; break; case 'accent': $waves_fill_color = '#' . wpgrade::option('main-color'); break; } ?> .site-footer.border-waves:before { background-image: url("data:image/svg+xml;utf8,<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 19 14' width='19' height='14' enable-background='new 0 0 19 14' xml:space='preserve' preserveAspectRatio='none slice'><g><path fill='<?php echo $waves_fill_color; ?> ' d='M0,0c4,0,6.5,5.9,9.5,5.9S15,0,19,0v7H0V0z'/><path fill='<?php echo $waves_fill_color; ?> ' d='M19,14c-4,0-6.5-5.9-9.5-5.9S4,14,0,14l0-7h19V14z'/></g></svg>"); } <?php if (wpgrade::option('custom_css')) { echo wpgrade::option('custom_css'); }