Ejemplo n.º 1
0
 function boots_page_width()
 {
     $id = raindrops_warehouse_clone('raindrops_page_width');
     switch ($id) {
         case 'doc':
             return '750px';
             break;
         case 'doc2':
             return '950px';
             break;
         case 'doc4':
             return '974px';
             break;
         default:
             $boots_content_max_width = raindrops_warehouse_clone('raindrops_fluid_max_width');
             if (!empty($boots_content_max_width) && $id == 'doc3') {
                 return '100%; max-width:' . $boots_content_max_width . 'px;';
             } else {
                 return '100%';
             }
             break;
     }
 }
Ejemplo n.º 2
0
						<div id="post-<?php 
        the_ID();
        ?>
"  class="<?php 
        echo raindrops_article_wrapper_class();
        ?>
">
                        <<?php 
        raindrops_doctype_elements('div', 'article');
        ?>
 <?php 
        raindrops_post_class(array('clearfix'));
        ?>
>	
                        <?php 
        $raindrops_sticky_conditional = raindrops_warehouse_clone('raindrops_display_sticky_post');
        if (is_sticky() && 'only_home' == $raindrops_sticky_conditional) {
            ?>
                            <div class="sticky-single-follow-text">

                                <strong><a href="<?php 
            echo $raindrops_home_url;
            ?>
"><?php 
            esc_html_e('Sticky Post Shows Only WEB Site Home.', 'raindrops');
            ?>
</a></strong>

                            </div>
            <?php 
        }
Ejemplo n.º 3
0
 function raindrops_bcn_breadcrumb_title($title, $type, $id)
 {
     if (raindrops_warehouse_clone('raindrops_japanese_date') !== 'yes') {
         return $title;
     }
     if (preg_match('![0-9]{4}!', $title)) {
         return raindrops_year_to_gengou($title);
     }
     return $title;
 }
Ejemplo n.º 4
0
 function raindrops_child_fallback_footer_link_color($val)
 {
     global $raindrops_child_base_setting_args;
     return raindrops_warehouse_clone('raindrops_footer_link_color');
 }
Ejemplo n.º 5
0
    /**
     *
     *
     */
    function raindrops_the_event_calendar_css($main_css)
    {
        if ('yes' == get_theme_mod('raindrops_the_events_calendar_status') && 'yes' == raindrops_warehouse_clone('raindrops_plugin_presentation_the_events_calendar')) {
            $color_type = raindrops_warehouse('raindrops_style_type');
            $border_rgba = '52,52,52,1';
            switch ($color_type) {
                case 'dark':
                    $color_type_value = -3;
                    $color_type_value_hover = 3;
                    $border_rgba = '222,222,222,0.3';
                    break;
                case 'light':
                    $color_type_value = 4;
                    $color_type_value_hover = -3;
                    $border_rgba = '52,52,52,0.2';
                    break;
                default:
                    $color_type_value = false;
                    break;
            }
            if ($color_type_value !== false) {
                $raindrops_gradient = raindrops_gradient_single_clone($color_type_value);
                $custom_color = raindrops_colors_clone($color_type_value, 'color');
                $custom_background = raindrops_colors_clone($color_type_value, 'background');
                $custom_color_hover = raindrops_colors_clone($color_type_value_hover, 'color');
                $custom_background_hover = raindrops_colors_clone($color_type_value_hover, 'background');
            } else {
                $raindrops_gradient = '';
                $custom_color = '#000';
                $custom_background = '#fff';
                $custom_color_hover = '#fff';
                $custom_background_hover = '#000';
            }
            $raindrops_event_calendar_css = '@media screen and (max-width : 920px){
					div#tribe-bar-collapse-toggle{color:' . $custom_color . '; background:' . $custom_background . '}
				}
			.tribe-events-loop .tribe-events-list .tribe-events-event-cost span{ color:red;}
			.datepicker{ width:280px;max-width:100%;}
			.tribe-events-list-widget li{padding:0 10px 20px;}
			.tribe-events-list-widget ol li{margin:10px 0;}
			.events-archive .entry-title,.icon-link-no-title,
			.events-single .entry-title{display:none;}
			.events-archive.events-gridview #tribe-events-content table .vevent .entry-title{display:block;margin:0;text-align:left;background:transparent;}
			.events-archive.events-gridview #tribe-events-content table .vevent .tribe-events-month-event-title:hover + .tribe-events-tooltip .entry-title{color:#000;}
			.events-archive.events-gridview #tribe-events-content  .vevent .entry-title,
			.events-list #tribe-events-content a, 
			.events-list .tribe-events-event-meta a,
			.events-archive #tribe-events-bar .tribe-bar-views-inner label,
			.tribe-events-day .tribe-events-day-time-slot h5,
			.tribe-bar-views-inner,
			#tribe-bar-form,
			.datepicker.dropdown-menu,
			.tribe-events-list .tribe-events-event-cost span,
			.tribe-events-list-separator-month span,
			#tribe-events-content .tribe-events-calendar td.tribe-events-othermonth,
			.single-tribe_events .tribe-events-event-meta{color:' . $custom_color . '; background:' . $custom_background . '}
			.datepicker thead tr:first-child th:hover, .datepicker tfoot tr th:hover,.datepicker.dropdown-menu td span:hover{color:' . $custom_color_hover . '; background:' . $custom_background_hover . '}
			.tribe-events-list-widget-events,
			.events-archive .tribe-events-calendar td.tribe-events-future div[id*="tribe-events-daynum-"],
			.events-archive .tribe-events-calendar td.tribe-events-future div[id*="tribe-events-daynum-"] > a,
			.events-archive .tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"],
			.events-archive .tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"] > a,
			.events-archive #tribe-events, .events-archive #tribe-events-content-wrapper,
			.single-tribe_events #tribe-events, .single-tribe_events #tribe-events-content-wrapper{' . $raindrops_gradient . '}
			.rd-type-minimal .tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"],
			.rd-type-minimal .tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"] > a,
			.rd-type-w3standard .tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"],
			.rd-type-w3standard .tribe-events-calendar td.tribe-events-past div[id*="tribe-events-daynum-"] > a{
				color:#000; background:#eee:}
			.single-tribe_events .tribe-events-event-meta,
			#tribe-events-content .tribe-events-calendar td{border:1px solid rgba(' . $border_rgba . ');}
			.single-tribe_events #tribe-events-footer,
			.tribe-events-day #tribe-events-footer,
			.events-list #tribe-events-footer,
			.tribe-events-map #tribe-events-footer,
			.tribe-events-photo #tribe-events-footer{border-top:1px solid rgba(' . $border_rgba . ');}
			#tribe-events .tribe-events-notices li{background:#d9edf7; color:#000;}
			#tribe-bar-views .tribe-bar-views-list .tribe-bar-views-option a:hover{background:#fff;color:#000;}
			.tribe-events-list-widget .tribe-events-widget-link a{margin:1em;
			background:' . $custom_background . '; text-align:center; padding:1em;display:inline-block;box-sizing:border-box;border:1px solid rgba(' . $border_rgba . ');}
			.tribe-events-list-widget .tribe-events-widget-link a,
			.tribe-events-list-widget .tribe-events-list-widget-events .entry-title{font-size:108%;}
			.tribe-events-list-widget ol li{margin-bottom:10px;}
			#tribe-bar-collapse-toggle,
			.tribe-events-sub-nav{background:transparent!important;}
			#tribe-events-content .tribe-events-calendar td:hover{background:' . $custom_background . '}';
            if (WP_DEBUG !== true) {
                $raindrops_event_calendar_css = str_replace(array("\n", "\r", "\t", '&quot;', '--', '\\"'), array("", "", "", '"', '', '"'), $raindrops_event_calendar_css);
            }
            wp_add_inline_style('tribe-events-calendar-style', $raindrops_event_calendar_css);
        }
    }
Ejemplo n.º 6
0
/**
 * Declaration Calculator
 *
 *
 *
 *
 */
function raindrops_design_output($name = 'dark')
{
    global $raindrops_show_theme_option, $raindrops_automatic_color;
    $uploads = wp_upload_dir();
    $raindrops_header_image = raindrops_warehouse_clone('raindrops_header_image');
    $raindrops_hd_image_path = $uploads['path'] . '/' . $raindrops_header_image;
    if (file_exists($raindrops_hd_image_path)) {
        $raindrops_hd_images_path = $uploads['url'] . '/';
    } else {
        $raindrops_hd_images_path = get_stylesheet_directory_uri() . '/images/';
    }
    if (!file_exists(get_stylesheet_directory() . '/images/')) {
        $raindrops_hd_images_path = get_template_directory_uri() . '/images/';
    }
    $raindrops_hd_image_path = apply_filters('raindrops_hd_image_path', $raindrops_hd_images_path);
    $raindrops_images_path = get_stylesheet_directory_uri() . '/images/';
    if (!file_exists(get_stylesheet_directory() . '/images/')) {
        $raindrops_images_path = get_template_directory_uri() . '/images/';
    }
    $raindrops_images_path = apply_filters('raindrops_images_path', $raindrops_images_path);
    $navigation_title_img = raindrops_warehouse_clone('raindrops_heading_image');
    $raindrops_header_color = raindrops_warehouse_clone('raindrops_default_fonts_color');
    $raindrops_footer_image = raindrops_warehouse_clone('raindrops_footer_image');
    $raindrops_footer_color = raindrops_warehouse_clone('raindrops_footer_color');
    $raindrops_footer_link_color = raindrops_warehouse_clone('raindrops_footer_link_color');
    if (empty($name)) {
        $name = 'dark';
    }
    $c_border = raindrops_colors(0, 'background');
    if ('#' == $c_border) {
        $rgba_border = 'rgba(203,203,203, 0.8)';
    } else {
        $rgba_border = raindrops_hex2rgba($c_border, 0.5);
    }
    if ('light' == $name) {
        if ('#' == $c_border) {
            $rgba_border = 'rgba(203,203,203, 0.4)';
        } else {
            $rgba_border = raindrops_hex2rgba($c_border, 0.2);
        }
    }
    $c1 = raindrops_colors(0);
    $c1 = raindrops_colors(1);
    $c2 = raindrops_colors(2);
    $c3 = raindrops_colors(3);
    $c4 = raindrops_colors(4);
    $c5 = raindrops_colors(5);
    $c_1 = raindrops_colors(-1);
    $c_2 = raindrops_colors(-2);
    $c_3 = raindrops_colors(-3);
    $c_4 = raindrops_colors(-4);
    $c_5 = raindrops_colors(-5);
    $position_y = raindrops_warehouse_clone('raindrops_heading_image_position');
    $y = $position_y * 26;
    $y = '-' . $y . 'px';
    switch ($position_y) {
        case 0:
            $h_position_rsidebar_h2 = "background-position:0 0;";
            break;
        case 1:
            $h_position_rsidebar_h2 = "background-position:0 {$y};";
            break;
        case 2:
            $h_position_rsidebar_h2 = "background-position:0 {$y};";
            break;
        case 3:
            $h_position_rsidebar_h2 = "background-position:0 {$y};";
            break;
        case 4:
            $h_position_rsidebar_h2 = "background-position:0 {$y};";
            break;
        case 5:
            $h_position_rsidebar_h2 = "background-position:0 {$y};";
            break;
        case 6:
            $h_position_rsidebar_h2 = "background-position:0 {$y};";
            break;
        case 7:
            $h_position_rsidebar_h2 = "background-position:0 {$y};";
            break;
        default:
            $h_position_rsidebar_h2 = "background-position:0 208px;";
            break;
    }
    if ($raindrops_show_theme_option == true) {
        if (file_exists(get_template_directory() . '/images/' . $navigation_title_img) || file_exists(get_stylesheet_directory() . '/images/' . $navigation_title_img)) {
            $image_exists = true;
        } else {
            $image_exists = false;
        }
        $h2_w3standard_background = "background:" . raindrops_colors(5, 'background') . ' ';
        if (true == $image_exists) {
            $h2_w3standard_background .= "url({$raindrops_images_path}{$navigation_title_img});";
        } else {
            $h2_w3standard_background .= ";";
        }
        $h2_w3standard_background .= "color:" . raindrops_colors(4, 'color') . ';';
        $h2_dark_background = "background:" . raindrops_colors(-3, 'background') . ' ';
        if (true == $image_exists) {
            $h2_dark_background .= "url({$raindrops_images_path}{$navigation_title_img});";
        } else {
            $h2_dark_background .= ";";
        }
        $h2_dark_background .= "color:" . raindrops_colors(-3, 'color') . ';';
        $h2_light_background = "background:" . raindrops_colors(5, 'background') . ' ';
        if (true == $image_exists) {
            $h2_light_background .= "url({$raindrops_images_path}{$navigation_title_img});";
        } else {
            $h2_light_background .= ";";
        }
        $h2_light_background .= "color:" . raindrops_colors(4, 'color') . ';';
    }
    $raindrops_has_indivisual_notation = raindrops_has_indivisual_notation();
    // else color is only notation default
    switch ($name) {
        case "w3standard":
            $custom_dark_bg = raindrops_colors(3, 'background');
            $custom_light_bg = raindrops_colors(1, 'background');
            $custom_color = raindrops_colors('1', 'color');
            if (!empty($raindrops_footer_color) && false == $raindrops_has_indivisual_notation && false == $raindrops_automatic_color) {
                $raindrops_footer_color = $raindrops_footer_color;
            } else {
                $raindrops_footer_color = '#000';
            }
            if (!empty($raindrops_footer_link_color) && false == $raindrops_has_indivisual_notation && false == $raindrops_automatic_color) {
                $raindrops_footer_link_color = $raindrops_footer_link_color;
            } else {
                $raindrops_footer_link_color = '#555';
            }
            if (!empty($raindrops_header_color) && false == $raindrops_has_indivisual_notation && false == $raindrops_automatic_color) {
                $raindrops_header_color = $raindrops_header_color;
            } else {
                $raindrops_header_color = '#000';
            }
            $gradient = raindrops_gradient_clone();
            break;
        case "dark":
            /**
             * dark
             */
            $custom_dark_bg = apply_filters('raindrops_dark_dark_bg', -1);
            $custom_dark_bg = raindrops_colors($custom_dark_bg, 'background');
            $custom_light_bg = apply_filters('raindrops_dark_light_bg', -4);
            $custom_light_bg = raindrops_colors($custom_light_bg, 'background');
            $custom_color = apply_filters('raindrops_dark_color', -3);
            $custom_color = raindrops_colors($custom_color, 'color');
            if (!empty($raindrops_footer_color) && false == $raindrops_has_indivisual_notation && false == $raindrops_automatic_color) {
                $raindrops_footer_color = $raindrops_footer_color;
            } else {
                $raindrops_footer_color = '#fff';
            }
            if (!empty($raindrops_footer_link_color) && false == $raindrops_has_indivisual_notation && false == $raindrops_automatic_color) {
                $raindrops_footer_link_color = $raindrops_footer_link_color;
            } else {
                $raindrops_footer_link_color = '#fff';
            }
            if (!empty($raindrops_header_color) && false == $raindrops_has_indivisual_notation && false == $raindrops_automatic_color) {
                $raindrops_header_color = $raindrops_header_color;
            } else {
                $raindrops_header_color = '#fff';
            }
            $gradient = raindrops_gradient_clone();
            break;
        case "light":
            /**
             * light
             */
            $custom_dark_bg = apply_filters('raindrops_light_dark_bg', 5);
            $custom_dark_bg = raindrops_colors($custom_dark_bg, 'background');
            $custom_light_bg = apply_filters('raindrops_light_light_bg', 4);
            $custom_light_bg = raindrops_colors($custom_light_bg, 'background');
            $custom_color = apply_filters('raindrops_light_color', 3);
            $custom_color = raindrops_colors($custom_color, 'color');
            $base_gradient = raindrops_gradient_single_clone(3, "asc");
            if (!empty($raindrops_footer_color)) {
                $raindrops_footer_color = $raindrops_footer_color;
            } else {
                $raindrops_footer_color = '#333';
            }
            if (!empty($raindrops_footer_link_color) && false == $raindrops_has_indivisual_notation && false == $raindrops_automatic_color) {
                $raindrops_footer_link_color = $raindrops_footer_link_color;
            } else {
                $raindrops_footer_link_color = '#fff';
            }
            if (!empty($raindrops_header_color) && false == $raindrops_has_indivisual_notation && false == $raindrops_automatic_color) {
                $raindrops_header_color = $raindrops_header_color;
            } else {
                $raindrops_header_color = '#333';
            }
            $gradient = raindrops_gradient_clone();
            break;
        default:
            $custom_dark_bg = apply_filters('raindrops_default_dark_bg', 3);
            $custom_dark_bg = raindrops_colors($custom_dark_bg, 'background');
            $custom_light_bg = apply_filters('raindrops_default_light_bg', 1);
            $custom_light_bg = raindrops_colors($custom_light_bg, 'background');
            $custom_color = apply_filters('raindrops_default_color', 1);
            $custom_color = raindrops_colors($custom_color, 'color');
            if (!empty($raindrops_footer_color)) {
                $raindrops_footer_color = $raindrops_footer_color;
            } else {
                $raindrops_footer_color = '#000';
            }
            if (!empty($raindrops_footer_link_color) && false == $raindrops_has_indivisual_notation && false == $raindrops_automatic_color) {
                $raindrops_footer_link_color = $raindrops_footer_link_color;
            } else {
                $raindrops_footer_link_color = '#555';
            }
            if (!empty($raindrops_header_color) && false == $raindrops_has_indivisual_notation && false == $raindrops_automatic_color) {
                $raindrops_header_color = $raindrops_header_color;
            } else {
                $raindrops_header_color = '#000';
            }
            $gradient = raindrops_gradient_clone();
            break;
    }
    $function_name = 'raindrops_indv_css_' . $name;
    if (function_exists($function_name)) {
        $content = $function_name();
        foreach (explode(' ', $content, -1) as $line) {
            preg_match_all('|%([a-z0-9_-]+)?%|si', $line, $regs, PREG_SET_ORDER);
            foreach ($regs as $reg) {
                if (isset(${$reg}[1])) {
                    $content = str_replace($reg[0], ${$reg}[1], $content);
                } else {
                    $content = str_replace($reg[0], '/*cannot bind data [%' . $reg[1] . '%]*/', $content);
                }
            }
        }
    }
    if (isset($content)) {
        return $content;
    } else {
        return false;
    }
}
Ejemplo n.º 7
0
 function raindrops_theme_setup()
 {
     global $raindrops_wp_version, $raindrops_extend_galleries;
     if ($raindrops_extend_galleries == true) {
         add_filter('use_default_gallery_style', '__return_false');
     } else {
         add_filter('use_default_gallery_style', '__return_true');
     }
     /**
      *
      *
      *
      *
      *
      */
     add_action('load-themes.php', 'raindrops_install_navigation');
     /**
      *
      *
      *
      *
      *
      */
     if (is_admin() && isset($_GET['post']) && !empty($_GET['post'])) {
         $raindrops_post_id = absint($_GET['post']);
         add_editor_style(array('editor-style.css', esc_url(add_query_arg(array('action' => 'raindrops_editor_styles', 'id' => $raindrops_post_id), admin_url('admin-ajax.php')))));
     } else {
         add_editor_style(array('editor-style.css', esc_url(add_query_arg('action', 'raindrops_editor_styles', admin_url('admin-ajax.php')))));
     }
     /**
      *
      *
      *
      *
      * thanks ison
      */
     add_filter('wp_page_menu_args', 'raindrops_page_menu_args');
     /**
      *
      *
      *
      *
      *
      */
     add_filter('comment_form_default_fields', 'raindrops_comment_form');
     /**
      *
      *
      *
      *
      *
      */
     add_filter('the_meta_key', 'raindrops_filter_explode_meta_keys', 10, 2);
     /**
      *
      *
      *
      *
      *
      */
     add_filter('body_class', 'raindrops_add_body_class');
     /**
      *
      *
      *
      *
      *
      */
     add_filter('comment_form_field_comment', 'raindrops_custom_remove_aria_required');
     /**
      *
      *
      *
      *
      *
      */
     add_filter('the_meta_key', 'raindrops_filter_explode_meta_keys', 10, 2);
     /**
      *
      *
      *
      *
      *
      */
     add_filter('the_title', 'raindrops_fallback_title', 10, 2);
     /**
      *
      *
      *
      *
      *
      */
     add_filter('the_content', 'raindrops_ie_height_expand_issue');
     /**
      *
      *
      *
      * 	@since 1.100
      */
     add_filter('widget_text', 'raindrops_ie_height_expand_issue');
     /**
      *
      *
      *
      *
      *
      */
     add_action('admin_init', 'raindrops_options_init');
     /**
      *
      *
      *
      *
      *
      */
     add_theme_support('title-tag');
     /**
      *
      *
      *
      *
      * @since 0.956
      */
     add_action('wp_enqueue_scripts', 'raindrops_enqueue_comment_reply');
     /**
      *
      *
      *
      *
      * @since 0.956
      */
     add_action('customize_controls_print_styles', 'raindrops_customize_controls_print_styles');
     /**
      * @1.304 commentout add_shortcode
      * This setting will removed ver 1.305
      *
      *
      * @since 0.964 ?
      */
     //add_filter( 'widget_text', 'do_shortcode' );
     /**
      *
      *
      *
      * @since 0.992
      */
     add_action('wp_head', 'raindrops_mobile_meta');
     /**
      * Switch elements from div to figure when doctype html5
      *
      *
      * @since 1.003
      */
     add_filter('img_caption_shortcode', 'raindrops_img_caption_shortcode_filter', 10, 3);
     /**
      * Archive link title add string 'Archives ' for for screen reader
      *
      *
      * @since 1.008
      */
     add_filter('get_archives_link', 'raindrops_accessible_titled');
     /**
      *
      *
      *
      * @since 1.008
      */
     add_filter('the_category', 'raindrops_remove_category_rel');
     /**
      *
      *
      *
      * @since 1.136
      */
     add_filter('theme_mod_header_textcolor', 'raindrops_filter_header_text_color');
     /**
      *
      *
      *
      * @since 1.211
      */
     add_action('wp_footer', 'raindrops_status_bar');
     /*
      *
      *
      *
      * @since 1.217
      */
     add_filter('query_vars', 'raindrops_extend_query');
     /**
      *
      *
      *
      *
      * @since 1.220
      */
     add_filter('raindrops_base_font_size', 'raindrops_base_font_size');
     /**
      *
      *
      *
      *
      * @since 1.229
      */
     add_filter('widget_tag_cloud_args', 'raindrops_widget_tag_cloud_args');
     /**
      *
      *
      *
      *
      * @since 1.233
      */
     add_filter('sidebars_widgets', 'raindrops_widget_ids');
     add_filter('the_content', 'raindrops_remove_wrong_p_before', 9);
     add_filter('the_content', 'raindrops_remove_wrong_p', 11);
     /**
      *
      *
      *
      *
      * @since 1.234
      */
     if (is_admin()) {
         add_action('load-post.php', 'raindrops_call_custom_css');
         add_action('load-post-new.php', 'raindrops_call_custom_css');
     }
     /**
      *
      *
      *
      *
      * @since 1.238
      */
     add_action('widgets_init', 'raindrops_register_recent_post_group_by_category');
     add_action('widgets_init', 'raindrops_register_pinup_entry_Widget');
     /**
      *
      *
      *
      *
      * @since 1.246
      */
     add_filter('embed_oembed_html', 'raindrops_oembed_filter', 99, 4);
     add_action('save_post', 'raindrops_transient_update');
     add_action('edit_term', 'raindrops_transient_update');
     add_action('wp_enqueue_scripts', 'raindrops_load_small_device_helper');
     /**
      *
      * @since 1.261
      */
     add_filter('wp_headers', 'raindrops_wp_headers', 10, 2);
     /**
      *
      * @since 1.270
      */
     add_action('widgets_init', 'raindrops_register_extend_archive_Widget');
     add_filter('shortcode_atts_playlist', 'raindrops_play_list_add_atts', 10, 3);
     add_action('wp_enqueue_scripts', 'raindrops_add_complementary_color');
     add_filter('tiny_mce_before_init', 'raindrops_tiny_mce_before_init');
     add_action('wp_ajax_raindrops_editor_styles', 'raindrops_editor_styles_callback');
     add_action('wp_ajax_nopriv_raindrops_editor_styles', 'raindrops_editor_styles_callback');
     add_filter('raindrops_color_type_style_buffer', 'raindrops_pinup_entry_style');
     add_filter('raindrops_month_list_post_count', 'raindrops_month_list_count');
     /**
      * @since 1.272
      */
     add_action('wp_head', 'raindrops_add_header_archive_description');
     /**
      * @since 1.276
      */
     add_filter('raindrops_fallback_title', 'raindrops_strip_escaped_title', 99);
     /**
      * @since 1.278
      */
     add_filter('the_content', 'raindrops_excerpt_with_html');
     add_filter('embed_oembed_html', 'raindrops_oembed_result', 11, 3);
     /**
      * since 1.278
      */
     add_action('raindrops_prepend_entry_content', 'raindrops_excerpt_id');
     add_filter('raindrops_the_excerpt', 'raindrops_excerpt_after_link', 10, 2);
     add_filter('raindrops_html_excerpt_with_elements', 'raindrops_excerpt_after_link', 10, 2);
     add_filter('raindrops_header_image_contents', 'raindrops_custom_header_image_contents');
     add_filter('raindrops_site_title_class', 'raindrops_custom_site_title_class');
     add_filter('raindrops_embed_meta_css', 'raindrops_custom_site_title_style');
     add_filter('raindrops_embed_meta_pre', 'raindrops_apply_google_font_import_rule_for_site_title');
     add_filter('raindrops_embed_meta_pre', 'raindrops_apply_google_font_import_rule_for_primary_menu');
     add_filter('raindrops_embed_meta_css', 'raindrops_apply_google_font_styles_for_site_title');
     add_filter('raindrops_embed_meta_css', 'raindrops_apply_google_font_styles_for_primary_menu');
     /* move from functions.php 
      * @since 1,289
      */
     add_action('load-post.php', array('RaindropsPostHelp', 'init'));
     add_action('load-post-new.php', array('RaindropsPostHelp', 'init'));
     add_action('load-themes.php', array('RaindropsPostHelp', 'init'));
     add_action('load-theme-editor.php', array('RaindropsPostHelp', 'init'));
     if ('details' == raindrops_warehouse_clone('raindrops_col_setting_type')) {
         add_action('raindrops_pre_part_header-front', 'raindrops_filter_page_column_control');
         add_action('raindrops_pre_part_header-xhtml', 'raindrops_filter_page_column_control');
         add_action('raindrops_pre_part_header', 'raindrops_filter_page_column_control');
         add_action('raindrops_pre_index.php', 'raindrops_filter_page_column_control');
         add_action('raindrops_pre_date.php', 'raindrops_filter_page_column_control');
         add_action('raindrops_pre_page.php', 'raindrops_filter_page_column_control');
         add_action('raindrops_pre_single.php', 'raindrops_filter_page_column_control');
         add_action('raindrops_pre_search.php', 'raindrops_filter_page_column_control');
         add_action('raindrops_pre_404.php', 'raindrops_filter_page_column_control');
         add_action('raindrops_pre_list-of-post.php', 'raindrops_filter_page_column_control');
         add_action('raindrops_pre_category.php', 'raindrops_filter_page_column_control');
         add_action('raindrops_pre_author.php', 'raindrops_filter_page_column_control');
         /**
          * @since 1.297
          */
         add_action('raindrops_external_css_pre', 'raindrops_filter_page_column_control');
     }
     /*
      * @since 1.295
      */
     add_filter('raindrops_embed_meta_css', 'raindrops_customizer_hide_post_author');
     add_filter('raindrops_embed_meta_css', 'raindrops_customizer_hide_post_date');
     add_filter('raindrops_embed_meta_css', 'raindrops_customizer_hide_default_category');
     add_filter('raindrops_entry_title_class', 'raindrops_customizer_add_article_title_css_class');
     add_filter('excerpt_length', 'raindrops_excerpt_length', 99);
     /**
      * @since 1.307
      */
     add_filter('press_this_suggested_html', 'raindrops_press_this_add_class');
     add_filter('get_comment_author_link', 'raindrops_recent_comments_avatar', 10, 3);
     /**
      * @since 1.308
      */
     add_filter('raindrops_embed_meta_pre', 'raindrops_apply_google_font_import_rule_for_article_title');
     add_filter('raindrops_embed_meta_css', 'raindrops_apply_google_font_styles_for_article_title');
     /**
      * @since 1.328
      */
     add_filter('the_content', 'raindrops_link_text_filter');
     /**
      * @since 1.330
      */
     add_filter('editor_stylesheets', 'raindrops_localize_style_add');
 }
Ejemplo n.º 8
0
raindrops_doctype_elements('', 'role="banner"');
?>
>
				<?php 
if (raindrops_is_place_of_site_title() == true) {
    echo raindrops_site_title();
}
echo raindrops_site_description();
?>
               
			</div>
            <?php 
/**
 * Custom Header
 */
$raindrops_title_in_the_header_check = raindrops_warehouse_clone('raindrops_place_of_site_title');
if (true == $raindrops_link_unique_text || $raindrops_title_in_the_header_check == 'header_image') {
    ?>
			
			<?php 
    echo raindrops_header_image('elements');
} else {
    ?>

			<?php 
    echo raindrops_header_image('home_url');
}
raindrops_nav_menu_primary();
/**
 * horizontal menubar
 */
Ejemplo n.º 9
0
 * @uses raindrops_prev_next_post( )
 * @uses comment_template( )
 * @uses get_day_link( )
 */
if (!defined('ABSPATH')) {
    exit;
}
global $template;
do_action('raindrops_pre_part_' . basename(__FILE__, '.php') . '_' . basename($template));
$raindrops_date_html_module = '<a href="%1$s">%2$s</a>';
$raindrops_date_format = get_option('date_format') . ' ' . get_option('time_format');
$raindrops_archive_year = get_the_time('Y');
$raindrops_archive_month = get_the_time('m');
$raindrops_archive_day = get_the_time('d');
$raindrops_day_link = esc_url(get_day_link($raindrops_archive_year, $raindrops_archive_month, $raindrops_archive_day) . '#post-' . $post->ID);
$raindrops_display_article_publish_date = raindrops_warehouse_clone('raindrops_display_article_publish_date');
if ('ja' == get_locale()) {
    // japanese date
    $raindrops_archive_year = raindrops_year_name_filter($raindrops_archive_year);
    $raindrops_archive_month = raindrops_archive_day_filter_month($raindrops_archive_month);
    $raindrops_archive_day = raindrops_archive_day_filter_day($raindrops_archive_day);
    $raindrops_status_date = $raindrops_archive_year . $raindrops_archive_month . $raindrops_archive_day;
} else {
    $raindrops_status_date = get_the_time($raindrops_date_format);
}
if (is_single()) {
    /**
     * 	Template for Single post
     *
     *
     *
Ejemplo n.º 10
0
 function raindrops_header_image_validate($input)
 {
     if (preg_match('/[^(a-z|0-9|_|-|\\.)]+/si', $input)) {
         return raindrops_warehouse_clone('raindrops_header_image');
     }
     return $input;
 }
Ejemplo n.º 11
0
 function widget($args, $instance)
 {
     global $attachment;
     extract($args);
     echo $before_widget;
     if (isset($instance['id']) && preg_match('!,!', $instance['id'])) {
         $instance['id'] = explode(',', $instance['id']);
         $count = count($instance['id']);
         $num = rand(0, $count - 1);
         $instance['id'] = $instance['id'][$num];
     }
     if (isset($instance['id']) && isset($instance['inline_style']) && !empty($instance['inline_style'])) {
         $style = str_replace(PHP_EOL, '', $instance['inline_style']);
         $style = wp_strip_all_tags($style);
         echo '<div id="pinup-' . absint($instance['id']) . '" ' . raindrops_post_class('', absint($instance['id']), false) . ' style="' . $style . '">';
     } else {
         if (isset($instance['id']) && isset($instance['inline_style'])) {
             $style = str_replace(PHP_EOL, '', $instance['inline_style']);
             $style = wp_strip_all_tags($style);
             echo '<div id="pinup-' . absint($instance['id']) . '" ' . raindrops_post_class('', absint($instance['id']), false) . ' style="' . $style . '">';
         }
     }
     if (isset($instance['inline_style']) && ($instance['content'] == 'content' || $instance['content'] == 'excerpt') && !is_single($instance['id'])) {
         $posts = get_posts(array('include' => absint($instance['id']), 'post_type' => sanitize_key($instance['type'])));
         $pinup_entry_title_class = apply_filters('raindrops_pinup_entry_title_class', ' title pinup-entry-title ');
         $pinup_entry_title_class = trim($pinup_entry_title_class);
         $html_title = '<h2 class="' . esc_attr($pinup_entry_title_class) . '" id="approach-%1$s"><a href="%2$s"><span>%3$s</span></a></h2>';
         foreach ($posts as $post) {
             setup_postdata($post);
             printf($html_title, absint($post->ID), esc_url(get_permalink($post->ID)), get_the_title($post->ID));
             if (isset($instance['content']) and $instance['content'] == 'excerpt') {
                 the_excerpt();
             } else {
                 if (isset($post->post_content) && !empty($post->post_content)) {
                     $raindrops_pinup_content = $post->post_content;
                     if (preg_match('/<!--more[^-]*-->/u', $raindrops_pinup_content, $matches)) {
                         list($raindrops_pinup_content, $raindrops_pinup_sub_content) = explode($matches[0], $raindrops_pinup_content, 2);
                         $raindrops_pinup_content = apply_filters('the_content', $raindrops_pinup_content);
                         $raindrops_pinup_content = apply_filters('raindrops_entry_content', $raindrops_pinup_content);
                         $raindrops_pinup_content = str_replace(']]>', ']]&gt;', $raindrops_pinup_content);
                         echo $raindrops_pinup_content;
                     } elseif (preg_match('/<!--nextpage-->/u', $raindrops_pinup_content, $matches)) {
                         list($raindrops_pinup_content, $raindrops_pinup_sub_content) = explode($matches[0], $raindrops_pinup_content, 2);
                         $raindrops_pinup_content = apply_filters('the_content', $raindrops_pinup_content);
                         $raindrops_pinup_content = apply_filters('raindrops_entry_content', $raindrops_pinup_content);
                         $raindrops_pinup_content = str_replace(']]>', ']]&gt;', $raindrops_pinup_content);
                         echo $raindrops_pinup_content;
                     } else {
                         $raindrops_pinup_content = get_post(absint($post->ID));
                         $raindrops_pinup_content = apply_filters('the_content', $raindrops_pinup_content->post_content);
                         $raindrops_pinup_content = apply_filters('raindrops_entry_content', $raindrops_pinup_content);
                         $raindrops_pinup_content = str_replace(']]>', ']]&gt;', $raindrops_pinup_content);
                         echo $raindrops_pinup_content;
                     }
                 }
             }
         }
         wp_reset_postdata();
     }
     if (isset($instance['inline_style']) && $instance['content'] == 'attachment' && !is_single($instance['id'])) {
         $args = array('post_type' => 'attachment', 'numberposts' => -1, 'post_status' => 'public', 'post_parent' => $instance['id']);
         $attachments = get_posts($args);
         $attachments_num = count($attachments);
         if (isset($attachments) && $attachments_num > 1) {
             $attachment_key = rand(0, $attachments_num - 1);
             $post = $attachments[$attachment_key];
         } elseif ($attachments_num == 1) {
             $post = $attachments[0];
         } else {
         }
         if (isset($attachments) && $attachments_num > 0) {
             setup_postdata($post);
             $raindrops_image_size = 'midium';
             if (raindrops_warehouse_clone('raindrops_right_sidebar_width_percent') > 25) {
                 $raindrops_image_size = 'large';
             }
             $html = '<a href="%1$s" class="approach-image">%2$s</a>';
             $check_alt_exists = get_post_meta($post->ID, '_wp_attachment_image_alt', true);
             if (!empty($check_alt_exists)) {
                 $alt_attribute = esc_attr($check_alt_exists);
             } else {
                 $alt_attribute = wp_kses(get_the_title($instance['id']), array());
             }
             $attr = array('alt' => trim($alt_attribute));
             printf($html, get_permalink($instance['id']), wp_get_attachment_image($post->ID, apply_filters('raindrops_pinup_image_size', $raindrops_image_size, get_the_ID()), false, $attr));
             $html = '<h2 class="entry-title raindrops-entrywidget-attachment-title" id="approach-%2$s">%1$s</h2>';
             printf($html, get_the_title($instance['id']), absint($instance['id']));
             wp_reset_postdata();
         }
     }
     if (isset($instance['inline_style']) && $instance['content'] == 'featured' && !is_single($instance['id'])) {
         if (has_post_thumbnail($instance['id'])) {
             $html = '<a href="%1$s" class="approach-image">%2$s</a>';
             $raindrops_image_size = 'midium';
             if (raindrops_warehouse_clone('raindrops_right_sidebar_width_percent') > 25) {
                 $raindrops_image_size = 'large';
             }
             $alt_attribute = wp_kses(get_the_title($instance['id']), array());
             $attr = array('alt' => trim($alt_attribute));
             printf($html, esc_url(get_permalink($instance['id'])), get_the_post_thumbnail($instance['id'], apply_filters('raindrops_pinup_image_size', $raindrops_image_size, get_the_ID())), $attr);
             $html = '<h2 class="entry-title raindrops-entrywidget-attachment-title" id="approach-%2$s">%1$s</h2>';
             printf($html, get_the_title($instance['id']), absint($instance['id']));
         } else {
             $html = '<h2 class="entry-title raindrops-entrywidget-attachment-title" id="approach-%2$s"><a href="%3$s" class="approach-image">%1$s</a></h2>';
             printf($html, get_the_title($instance['id']), absint($instance['id']), esc_url(get_permalink($instance['id'])));
         }
     }
     if (isset($instance['id'])) {
         echo '</div>';
     }
     echo $after_widget;
 }
Ejemplo n.º 12
0
 function raindrops_responsive_height_ajust($height)
 {
     $page_type_check = raindrops_warehouse_clone('raindrops_page_width');
     if ($page_type_check == 'doc3') {
         $max_width = raindrops_warehouse_clone('raindrops_fluid_max_width');
         $width = absint(raindrops_detect_header_image_size_clone('width'));
         if ($width < $max_width) {
             $orrection_amount = $width / $max_width;
             return round($height * $orrection_amount);
         }
         if ($width > $max_width) {
             $orrection_amount = $max_width / $width;
             return round($height * $orrection_amount);
         }
         return $height;
     }
     if ($page_type_check == 'doc5') {
         $raindrops_full_width_limit_window_width = raindrops_warehouse_clone('raindrops_full_width_limit_window_width');
         $max_width = raindrops_warehouse_clone('raindrops_full_width_max_width');
         $width = absint(raindrops_detect_header_image_size_clone('width'));
         if ($width < $max_width) {
             $orrection_amount = $width / $max_width;
             return round($height * $orrection_amount);
         }
         if ($width > $max_width) {
             $orrection_amount = $max_width / $width;
             return round($height * $orrection_amount);
         }
         return $height;
     }
     return $height;
 }
Ejemplo n.º 13
0
    function raindrops_child_embed_css()
    {
        global $post, $raindrops_current_theme_name, $raindrops_base_font_size;
        $pinup_style = '';
        $result = '';
        $css = '/*raindrops_child_embed_css*/';
        $result_indv = '';
        $raindrops_page_width = raindrops_warehouse_clone('raindrops_page_width');
        $raindrops_base_color = raindrops_warehouse_clone('raindrops_base_color');
        $raindrops_hyperlink_color = raindrops_warehouse_clone('raindrops_hyperlink_color');
        /* Single post , page check Raindrops notation */
        $color_check = raindrops_has_indivisual_notation();
        if (false == $color_check) {
            $raindrops_style_type = raindrops_warehouse_clone('raindrops_style_type');
        } else {
            if (isset($color_check['color_type'])) {
                $raindrops_style_type = $color_check['color_type'];
            }
            //$columns = $color_check['col'];
        }
        $raindrops_indv_css = raindrops_design_output($raindrops_style_type) . raindrops_color_base();
        //when this code exists [raindrops color_type="minimal" col="1"] in the post
        $raindrops_indv_css = raindrops_color_type_custom($raindrops_indv_css);
        $css .= apply_filters("raindrops_indv_css", $raindrops_indv_css);
        if ($raindrops_hyperlink_color !== '' && false == raindrops_has_indivisual_notation()) {
            $css .= raindrops_custom_link_color($raindrops_hyperlink_color);
        }
        $background = get_background_image();
        $color = get_background_color();
        if (!empty($background) || !empty($color)) {
            $css = preg_replace("|body[^{]*{[^}]+}|", "", $css);
        }
        if (raindrops_warehouse_clone('raindrops_basefont_settings') > 13) {
            $css .= 'body{font-size:' . raindrops_warehouse_clone('raindrops_basefont_settings') . 'px;}';
        } elseif (isset($raindrops_base_font_size)) {
            $css .= 'body{font-size:' . $raindrops_base_font_size . 'px;}';
        }
        $css .= raindrops_embed_css();
        $css = str_replace("raindrops_color_ja", '', $css);
        $raindrops_text_color = get_theme_mod('header_textcolor', 'ffffff');
        $header_image = get_header_image();
        $raindrops_header_imge_filter_color = raindrops_warehouse_clone('raindrops_header_image_filter_color');
        $raindrops_header_image_color_rgb_array = raindrops_hex2rgb_array_clone($raindrops_header_imge_filter_color);
        $raindrops_header_image_filter_apply_top = raindrops_warehouse_clone('raindrops_header_image_filter_apply_top');
        $raindrops_header_image_filter_apply_bottom = raindrops_warehouse_clone('raindrops_header_image_filter_apply_bottom');
        $raindrops_enable_header_image_filter = raindrops_warehouse_clone('raindrops_enable_header_image_filter');
        $old_ie = '';
        $http_user_agent = filter_input(INPUT_ENV, 'HTTP_USER_AGENT');
        preg_match("|(MSIE )([0-9]{1,2})(\\.)|si", $http_user_agent, $regs);
        if (isset($regs[2])) {
            $old_ie = 'ie' . $regs[2];
        }
        $background_property = '';
        if (false !== $raindrops_header_image_color_rgb_array && 'enable' == $raindrops_enable_header_image_filter && $old_ie !== 'ie8' && $old_ie !== 'ie9') {
            // client side yet 1.298
            $style_rule_template = ' background:
				linear-gradient(
					rgba(%1$s, %2$s, %3$s, %4$s),rgba(%1$s, %2$s, %3$s, %5$s)
				),
				url(%6$s);
				 background:
				-moz-linear-gradient(
					rgba(%1$s, %2$s, %3$s, %4$s),rgba(%1$s, %2$s, %3$s, %5$s)
				),
				url(%6$s);
				 background-size:cover;';
            $background_property = sprintf($style_rule_template, $raindrops_header_image_color_rgb_array[0], $raindrops_header_image_color_rgb_array[1], $raindrops_header_image_color_rgb_array[2], $raindrops_header_image_filter_apply_top, $raindrops_header_image_filter_apply_bottom, esc_url($header_image));
        } else {
            $background_property = 'background-image:url( ' . esc_url($header_image) . ' );';
        }
        $css .= " \n#header-image{{$background_property} background-size:cover}";
        if ($raindrops_text_color !== 'blank' && !empty($header_image)) {
            $css .= " \n#site-title a,#site-title span{color:#" . $raindrops_text_color . ';}';
            $css .= " \n.description{color:#" . $raindrops_text_color . ';}';
        }
        $setting_value = raindrops_warehouse_clone('raindrops_tagline_in_the_header_image');
        if ($setting_value !== 'show') {
            $css .= '#top #header-image .tagline{display:none;}';
        }
        $raindrops_options = get_option('raindrops_theme_settings');
        $raindrops_hyperlink_color = raindrops_warehouse_clone('raindrops_hyperlink_color');
        if ($raindrops_hyperlink_color !== '' && false == raindrops_has_indivisual_notation()) {
            $css .= ".yui-main a{color:" . $raindrops_hyperlink_color . ";}";
        }
        $raindrops_fonts_color = raindrops_warehouse_clone('raindrops_default_fonts_color');
        if ($raindrops_fonts_color !== '' && false == raindrops_has_indivisual_notation()) {
            $css .= "article {color:" . $raindrops_fonts_color . ";}";
        }
        $raindrops_fonts_color = raindrops_warehouse_clone('raindrops_footer_color');
        if ($raindrops_fonts_color !== '' && false == raindrops_has_indivisual_notation()) {
            $css .= "#ft {color:" . $raindrops_fonts_color . "!important;}";
        }
        $raindrops_footer_link_color = raindrops_warehouse_clone('raindrops_footer_link_color');
        if (!empty($raindrops_footer_link_color) && false == raindrops_has_indivisual_notation()) {
            $css .= "#ft a{color:" . $raindrops_footer_link_color . ";}";
        }
        $background = get_background_image();
        $color = get_background_color();
        if (!empty($background) || !empty($color)) {
            $css .= preg_replace("|body[^{]*{[^}]+}|", "", $css);
        }
        //body background
        $body_background = get_theme_mod("background_color");
        $body_background_image = get_theme_mod("background_image");
        $body_background_repeat = get_theme_mod("background_repeat");
        $body_background_position_x = get_theme_mod("background_position_x");
        $body_background_attachment = get_theme_mod("background_attachment");
        if ($body_background !== false && !empty($body_background) && !empty($body_background_image)) {
            $css .= "\nbody{background:#" . $body_background . ' url(  ' . $body_background_image . '  );}';
        } elseif ($body_background !== false && !empty($body_background)) {
            $css .= "\nbody{background-color:#" . $body_background . '!important;}';
        } elseif (!empty($body_background_image)) {
            $css .= "\nbody{background-image: url(  " . $body_background_image . '  );}';
        }
        if (isset($body_background_repeat) && !empty($body_background_repeat)) {
            $css .= "\nbody{background-repeat: " . $body_background_repeat . ';}';
        }
        if (isset($body_background_position_x) && !empty($body_background_position_x)) {
            $css .= "\nbody{background-position:top " . $body_background_position_x . ';}';
        }
        if (isset($body_background_attachment) && !empty($body_background_attachment)) {
            $css .= "\nbody{background-attachment: " . $body_background_attachment . ';}';
        }
        /* Primary Menu Font Size */
        $primary_menu_font_size = raindrops_warehouse_clone('raindrops_menu_primary_font_size');
        if (isset($primary_menu_font_size) && !empty($primary_menu_font_size)) {
            /* Add check value why some web site font-size:0% using child theme */
            if ($primary_menu_font_size > 76 && $primary_menu_font_size < 183) {
                $css .= '#access a{font-size:' . floatval($primary_menu_font_size) . '%;}';
            } else {
                $css .= '#access a{font-size:100%;}';
            }
        } else {
            $css .= '#access a{font-size:100%;}';
        }
        $primary_menu_min_width = raindrops_warehouse_clone('raindrops_menu_primary_min_width');
        if (isset($primary_menu_min_width) && !empty($primary_menu_min_width)) {
            if ($primary_menu_min_width < 10) {
                $child_width = 10;
            } else {
                $child_width = floatval($primary_menu_min_width);
            }
            $adding_style = '#access ul ul li,#access ul ul,#access a{min-width:%1$dem;}
							.ie8 #access .page_item_has_children > a:after,
							.ie8 #access .menu-item-has-children > a:after{ content :"";}
							#access .children li,#access .sub-menu li,#access .children ul,#access .sub-menu ul,#access .children a,#access .sub-menu a{
							 min-width:%2$dem;
							}';
            $css .= sprintf($adding_style, $primary_menu_min_width, $child_width);
        }
        if (function_exists('raindrops_gradient_clone')) {
            $css .= raindrops_gradient_clone('.rd-type-boots #yui-main .entry-content .gradient');
        }
        if (function_exists('raindrops_color_base_clone')) {
            // $css .= raindrops_color_base_clone( $raindrops_base_color );
        }
        $raindrops_sticky_conditional = raindrops_warehouse_clone('raindrops_display_sticky_post');
        if ('only_home' == $raindrops_sticky_conditional) {
            $css .= ' .single .raindrops-sticky { display:none; }';
        }
        if (is_single() || is_page()) {
            $pinup_widget_ids = raindrops_get_pinup_widget_ids();
            $pinup_widget_post_ids = raindrops_pinup_widget_ids_to_post_ids($pinup_widget_ids);
            foreach ($pinup_widget_post_ids as $pinup_id) {
                $web_fonts = get_post_meta($pinup_id, '_web_fonts_link_element', true);
                if (isset($web_fonts) && !empty($web_fonts)) {
                    $web_fonts_each_array = explode("\n", $web_fonts);
                    foreach ($web_fonts_each_array as $web_fonts_each) {
                        $result = str_replace(array($web_fonts_each, "\n\n"), array('', "\n"), $result);
                        $result .= $web_fonts_each . "\n";
                    }
                }
                $web_fonts_style = get_post_meta($pinup_id, '_web_fonts_styles', true);
                if (isset($web_fonts_style) && !empty($web_fonts_style)) {
                    $web_fonts_style_each_array = explode("\n", $web_fonts_style);
                    foreach ($web_fonts_style_each_array as $web_fonts_style_each) {
                        $pinup_style = str_replace(array($web_fonts_style_each, "\n\n"), array('', "\n"), $pinup_style);
                        $pinup_style .= $web_fonts_style_each . "\n";
                    }
                }
            }
            $web_fonts = get_post_meta(get_the_ID(), '_web_fonts_link_element', true);
            if (isset($web_fonts) && !empty($web_fonts)) {
                $result .= $web_fonts;
            }
            $web_fonts_styles = get_post_meta($post->ID, '_web_fonts_styles', true);
            if (isset($web_fonts_styles) && !empty($web_fonts_styles) || !empty($pinup_style)) {
                $web_fonts_styles_wrapper = "<style type=\"text/css\" media=\"screen\">\n" . '%1$s</style>' . "\n";
                $result .= sprintf($web_fonts_styles_wrapper, $web_fonts_styles . $pinup_style);
            }
            $css_single = get_post_meta($post->ID, 'css', true);
            $css_single .= get_post_meta($post->ID, '_css', true);
            if (true == RAINDROPS_OVERRIDE_POST_STYLE_ALL_CONTENTS) {
                $css .= preg_replace_callback('![^}]+{[^}]+}!siu', 'raindrops_css_add_id', $css_single);
            } else {
                $css .= $css_single;
            }
            if (!empty($css) && RAINDROPS_CUSTOM_FIELD_CSS == true) {
                $result .= '<style type="text/css" id="raindrops-embed-css">';
                $result .= "\n<!--/*<! [CDATA[*/\n";
                $result .= strip_tags($css);
                $result .= "\n/*]]>*/-->\n";
                $result .= "</style>";
            }
            $meta = get_post_meta($post->ID, 'meta', true);
            if (!empty($meta) && RAINDROPS_CUSTOM_FIELD_META == true) {
                $result .= raindrops_esc_custom_field_meta($meta);
            }
            $javascript = get_post_meta($post->ID, 'javascript', true);
            if (!empty($javascript) && RAINDROPS_CUSTOM_FIELD_SCRIPT == true) {
                $result .= '<script type="text/javascript">';
                $result .= "\n<!--/*<! [CDATA[*/\n";
                $result .= raindrops_esc_custom_field_javascript($javascript);
                $result .= "\n/*]]>*/-->\n";
                $result .= "</script>";
            }
        } else {
            $pinup_widget_ids = raindrops_get_pinup_widget_ids();
            $pinup_widget_post_ids = raindrops_pinup_widget_ids_to_post_ids($pinup_widget_ids);
            foreach ($pinup_widget_post_ids as $pinup_id) {
                $web_fonts = get_post_meta($pinup_id, '_web_fonts_link_element', true);
                if (isset($web_fonts) && !empty($web_fonts)) {
                    $web_fonts_each_array = explode("\n", $web_fonts);
                    foreach ($web_fonts_each_array as $web_fonts_each) {
                        $result = str_replace(array($web_fonts_each, "\n\n"), array('', "\n"), $result);
                        $result .= $web_fonts_each . "\n";
                    }
                }
                $web_fonts_style = get_post_meta($pinup_id, '_web_fonts_styles', true);
                if (isset($web_fonts_style) && !empty($web_fonts_style)) {
                    $web_fonts_style_each_array = explode("\n", $web_fonts_style);
                    foreach ($web_fonts_style_each_array as $web_fonts_style_each) {
                        $result_indv = str_replace(array($web_fonts_style_each, "\n\n"), array('', "\n"), $result_indv);
                        $result_indv .= $web_fonts_style_each . "\n";
                    }
                }
            }
            if (true == RAINDROPS_OVERRIDE_POST_STYLE_ALL_CONTENTS) {
                if (have_posts()) {
                    if (false == RAINDROPS_USE_AUTO_COLOR) {
                    }
                    while (have_posts()) {
                        the_post();
                        $web_fonts = get_post_meta($post->ID, '_web_fonts_link_element', true);
                        if (isset($web_fonts) && !empty($web_fonts)) {
                            $web_fonts_each_array = explode("\n", $web_fonts);
                            foreach ($web_fonts_each_array as $web_fonts_each) {
                                $result = str_replace(array($web_fonts_each, "\n\n"), array('', "\n"), $result);
                                $result .= $web_fonts_each . "\n";
                            }
                        }
                        $web_fonts_style = get_post_meta($post->ID, '_web_fonts_styles', true);
                        if (isset($web_fonts_style) && !empty($web_fonts_style)) {
                            $web_fonts_style_each_array = explode("\n", $web_fonts_style);
                            foreach ($web_fonts_style_each_array as $web_fonts_style_each) {
                                $result_indv = str_replace(array($web_fonts_style_each, "\n\n"), array('', "\n"), $result_indv);
                                $result_indv .= $web_fonts_style_each . "\n";
                            }
                        }
                        $collections = get_post_meta($post->ID, 'css', true);
                        $collections .= get_post_meta($post->ID, '_css', true);
                        $result_indv .= preg_replace_callback('![^}]+{[^}]+}!siu', 'raindrops_css_add_id', $collections);
                    }
                    rewind_posts();
                }
            }
            if (WP_DEBUG !== true) {
                $result_indv = str_replace(array("\n", "\r", "\t", '&quot;', '--', '\\"'), array("", "", "", '"', '', '"'), $result_indv);
            }
            $result .= '<style type="text/css">';
            $result .= "\n<!--/*<! [CDATA[*/\n";
            $result .= "\n/*start custom fields style for loop pages*/\n";
            $result .= $result_indv;
            $result .= "\n/*end custom fields style for loop pages*/\n";
            $result .= "\n/*]]>*/-->\n";
            $result .= "</style>";
        }
        $must_first_css = apply_filters('raindrops_embed_meta_pre', '');
        $css = apply_filters('raindrops_embed_meta_css', $css);
        return '<style type="text/css"> ' . $must_first_css . $css . '</style>' . $result;
    }
Ejemplo n.º 14
0
        //Check this when option
        $raindrops_customize_args = array_merge($raindrops_customize_args, $raindrops_customize_args_conditional_2);
    }
    if ('yes' == get_theme_mod('raindrops_wp_pagenavi_status')) {
        $raindrops_customize_args = array_merge($raindrops_customize_args, $raindrops_customize_args_conditional_3);
    }
    if ('yes' == get_theme_mod('raindrops_ml_slider_status')) {
        $raindrops_customize_args = array_merge($raindrops_customize_args, $raindrops_customize_args_conditional_4);
    }
    if ('yes' == get_theme_mod('raindrops_the_events_calendar_status')) {
        $raindrops_customize_args = array_merge($raindrops_customize_args, $raindrops_customize_args_conditional_5);
    }
    if (get_locale() == 'ja') {
        $raindrops_customize_args = array_merge($raindrops_customize_args, $raindrops_customize_args_conditional_6);
    }
    $place_of_site_title_setting = raindrops_warehouse_clone('raindrops_place_of_site_title');
    if (get_header_image() !== false || $place_of_site_title_setting == 'header_image') {
        $raindrops_customize_args = array_merge($raindrops_customize_args, $raindrops_customize_args_conditional_7);
    }
}
$raindrops_customize_args = raindrops_theme_mod_default_normalize($raindrops_customize_args);
add_action('customize_register', 'raindrops_extend_customize_register');
if (!function_exists('raindrops_extend_customize_register')) {
    function raindrops_extend_customize_register($wp_customize)
    {
        global $raindrops_theme_customize_sections, $raindrops_customize_args, $raindrops_theme_customize_panels;
        /**
         * Create Section
         */
        foreach ($raindrops_theme_customize_sections as $raindrops_section_key => $raindrops_section_val) {
            $wp_customize->add_section($raindrops_section_key, $raindrops_section_val);
Ejemplo n.º 15
0
 /**
  * 
  * @global type $raindrops_post_image_size
  * @global type $content_width
  * @global type $raindrops_thumb_apply_count
  * @param type $css
  * @return type
  * @since 1.274
  */
 function raindrops_post_thumbnail_size_lefty_style($css)
 {
     global $content_width;
     $raindrops_post_image_position = raindrops_warehouse_clone('raindrops_featured_image_position');
     if ($raindrops_post_image_position !== 'left') {
         return $css;
     }
     $raindrops_post_image_size = raindrops_warehouse_clone('raindrops_featured_image_size');
     $raindrops_thumb_apply_count = raindrops_warehouse_clone('raindrops_featured_image_recent_post_count');
     $raindrops_thumb_apply_count = $raindrops_thumb_apply_count;
     $raindrops_use_featured_image_emphasis = raindrops_warehouse_clone('raindrops_use_featured_image_emphasis');
     if ($raindrops_use_featured_image_emphasis !== 'yes') {
         return $css;
     }
     $http_user_agent = filter_input(INPUT_ENV, 'HTTP_USER_AGENT');
     preg_match("|(MSIE )([0-9]{1,2})(\\.)|si", $http_user_agent, $regs);
     if (isset($regs[2]) && $regs[2] < 9) {
         return $css;
     }
     if (is_array($raindrops_post_image_size)) {
         return $css;
     }
     if (is_singular()) {
         return $css;
     }
     if ($raindrops_post_image_size == 'thumbnail') {
         $featured_image_column_width = '19.8%';
         $featured_image_column_val = 0.198;
     }
     if ($raindrops_post_image_size !== 'thumbnail') {
         $featured_image_column_width = '30%';
         $featured_image_column_val = 0.3;
     }
     $padding = '';
     $custom_css = '';
     $article_column_width = str_replace('%', '', $featured_image_column_width) * 1.1;
     $article_column_width = $article_column_width . '%';
     $recent_posts = wp_get_recent_posts(array('numberposts' => $raindrops_thumb_apply_count, 'post_status' => 'publish'));
     $post_image_background = apply_filters('raindrops_post_image_background_style', 'rgba(123,123,123,.1);');
     $post_image_background = str_replace(array('{', '}'), '', $post_image_background);
     foreach ($recent_posts as $key => $val) {
         $thumb_image_size = raindrops_get_post_image_size($raindrops_post_image_size);
         if ($thumb_image_size['width'] < $content_width) {
             $padding = ($content_width - $thumb_image_size['width']) / 2;
             $padding = round($padding / $content_width * 100);
             $padding = 'padding:0 ' . $padding . '%;';
         }
         $thumb_ratio = $thumb_image_size['height'] / $thumb_image_size['width'];
         $height = $content_width * $featured_image_column_val * $thumb_ratio;
         $height = apply_filters('raindrops_post_thumbnail_size_lefty_style_height', $height);
         $id = absint($recent_posts[$key]['ID']);
         if (has_post_thumbnail($id) && !has_post_format('status', $id)) {
             $post_id = '#post-' . $id;
             $custom_css .= "{$post_id} .h2-thumb{display:block; margin-bottom:1em;}\n\t\t\t\t\t\t\t {$post_id} .hentry{position:relative; min-height:{$height}px;}\n\t\t\t\t\t\t\t {$post_id} .wp-post-image{\tposition:absolute; left:10px; width:{$featured_image_column_width};}\n\t\t\t\t\t\t\t {$post_id} .entry-meta-list, {$post_id}  #nav-below, {$post_id}  .entry-meta-default, \n\t\t\t\t\t\t\t {$post_id} .entry-meta, {$post_id} .entry-title, {$post_id} .posted-on, {$post_id} .entry-meta-aside,\n\t\t\t\t\t\t\t {$post_id} .hentry .entry-content, {$post_id} .posted-in{\n\t\t\t\t\t\t\t\tmargin-left:{$article_column_width}; }";
             $custom_css .= '@media screen and (max-width : 960px){';
             $custom_css .= $post_id . " .wp-post-image{margin-bottom:1em;display:block;width:100%;" . $padding;
             $custom_css .= ' background:' . $post_image_background;
             $custom_css .= "}";
             $custom_css .= "{$post_id} .wp-post-image{position:static; }\n\t\t\t\t\t\t\t {$post_id} .entry-meta-list, {$post_id}  #nav-below, {$post_id}  .entry-meta-default, \n\t\t\t\t\t\t\t {$post_id} .entry-meta, {$post_id} .entry-title, {$post_id} .posted-on, \n\t\t\t\t\t\t\t {$post_id} .hentry .entry-content, {$post_id} .posted-in{\n\t\t\t\t\t\t\t\tmargin-left:0; }";
             $custom_css .= '}';
         }
     }
     return $css . $custom_css;
 }
Ejemplo n.º 16
0
 * Original page width implementation by manual labor
 *
 * If you need original page width
 * you can specific pixel page width
 * e.g. '$raindrops_page_width = '776';' is  776px page width.
 *
 *
 */
if (!isset($raindrops_page_width)) {
    $raindrops_page_width = '';
}
/**
 * Default Setting vars
 */
if (!isset($raindrops_base_setting_args)) {
    $raindrops_current_style_type = raindrops_warehouse_clone('raindrops_style_type');
    $raindrops_base_setting_args = array(array('option_id' => 1, 'blog_id' => 0, 'option_name' => "raindrops_color_scheme", 'option_value' => "raindrops_color_ja", 'autoload' => 'yes', 'title' => esc_html__('Color Scheme', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Please choose the naming convention for the color list', 'raindrops'), 'validate' => 'raindrops_color_scheme_validate', 'list' => 12), array('option_id' => 2, 'blog_id' => 0, 'option_name' => "raindrops_base_color", 'option_value' => "#444444", 'autoload' => 'yes', 'title' => esc_html__('Base Color for Automatic Color Arrangement', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Please specify your favorite color. and an automatic arrangement of color is designed.', 'raindrops'), 'validate' => 'raindrops_base_color_validate', 'list' => 1), array('option_id' => 3, 'blog_id' => 0, 'option_name' => "raindrops_style_type", 'option_value' => "dark", 'autoload' => 'yes', 'title' => esc_html__('Color Type', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('The mood like dark atmosphere and the bright note, etc. is decided. and The editor is displayed when themename is selected, and a present style can be edited in detail.', 'raindrops'), 'validate' => 'raindrops_style_type_validate', 'list' => 2), array('option_id' => 4, 'blog_id' => 0, 'option_name' => "raindrops_header_image", 'option_value' => "none", 'autoload' => 'yes', 'title' => esc_html__('Header background image', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('The header image can be set by two methods.
One is a method of up-loading the image from the below up-loading form. Another is a method of filling in the filename from this textfield from Raindrops/images something image.', 'raindrops'), 'validate' => 'raindrops_header_image_validate', 'list' => 3), array('option_id' => 5, 'blog_id' => 0, 'option_name' => "raindrops_footer_image", 'option_value' => "none", 'autoload' => 'yes', 'title' => esc_html__('Footer background image', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('The footer image can be set by two methods.
One is a method of up-loading the image from the below up-loading form. Another is a method of filling in the filename from this textfield from Raindrops/images something image.', 'raindrops'), 'validate' => 'raindrops_footer_image_validate', 'list' => 4), array('option_id' => 6, 'blog_id' => 0, 'option_name' => "raindrops_heading_image", 'option_value' => "none", 'autoload' => 'yes', 'title' => esc_html__('Widget Title Background Image', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('The header image can be chosen from among three kinds [h2.png,h2b.png,h2c.png].', 'raindrops'), 'validate' => 'raindrops_heading_image_validate', 'list' => 5), array('option_id' => 7, 'blog_id' => 0, 'option_name' => "raindrops_heading_image_position", 'option_value' => "0", 'autoload' => 'yes', 'title' => esc_html__('Widget Title Background Image Position', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('The name of the picture file used for the h2 headding is set. Please set the integral value from 0 to 7. ', 'raindrops'), 'validate' => 'raindrops_heading_image_position_validate', 'list' => 6), array('option_id' => 8, 'blog_id' => 0, 'option_name' => "raindrops_page_width", 'option_value' => "doc3", 'autoload' => 'yes', 'title' => __('Page Width', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Please choose width on the page.', 'raindrops') . esc_html__('Please choose from four kinds of inside of', 'raindrops') . esc_html__('750px centerd 950px centerd fluid 974px.', 'raindrops'), 'validate' => 'raindrops_page_width_validate', 'list' => 7), array('option_id' => 9, 'blog_id' => 0, 'option_name' => "raindrops_col_width", 'option_value' => "t2", 'autoload' => 'yes', 'title' => esc_html__('Column Width and Position', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Please specify the position and the width of Default Sidebar. Six kinds of sidebars of left 160px left 180px left 300px right 180px right 240px right 300px can be specified.', 'raindrops'), 'validate' => 'raindrops_col_width_validate', 'list' => 8), array('option_id' => 10, 'blog_id' => 0, 'option_name' => "raindrops_default_fonts_color", 'option_value' => raindrops_default_colors_clone($raindrops_current_style_type, "raindrops_default_fonts_color", true), 'autoload' => 'yes', 'title' => esc_html__('Text color in content ', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('If you need to set contents Special font color.', 'raindrops'), 'validate' => 'raindrops_default_fonts_color_validate', 'list' => 9), array('option_id' => 11, 'blog_id' => 0, 'option_name' => "raindrops_footer_color", 'option_value' => raindrops_default_colors_clone($raindrops_current_style_type, "raindrops_footer_color", true), 'autoload' => 'yes', 'title' => esc_html__('Text color in footer ', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('If you need to set footer Special font color.', 'raindrops'), 'validate' => 'raindrops_footer_color_validate', 'list' => 10), array('option_id' => 12, 'blog_id' => 0, 'option_name' => "raindrops_show_right_sidebar", 'option_value' => "show", 'autoload' => 'yes', 'title' => esc_html__('Extra Sidebar', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Please specify show when you want to use three row layout. Please set Ratio to text when extra sidebar is displayed when you specify show', 'raindrops'), 'validate' => 'raindrops_show_right_sidebar_validate', 'list' => 11), array('option_id' => 13, 'blog_id' => 0, 'option_name' => "raindrops_right_sidebar_width_percent", 'option_value' => "25", 'autoload' => 'yes', 'title' => esc_html__('Extra Sidebar Width', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('When display extra sidebar is set to show', 'raindrops') . esc_html__('it is necessary to specify it.', 'raindrops') . esc_html__('It can decide to divide the width of which place of extra sidebar', 'raindrops') . esc_html__('and to give it. Please select it from among 25% 33% 50% 66% 75%. ', 'raindrops'), 'validate' => 'raindrops_right_sidebar_width_percent_validate', 'list' => 12), array('option_id' => 14, 'blog_id' => 0, 'option_name' => "raindrops_show_menu_primary", 'option_value' => "show", 'autoload' => 'yes', 'title' => esc_html__('Menu Primary', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Display or not Menu Primary. default value is show. set hide when not display menu primary', 'raindrops'), 'validate' => 'raindrops_show_menu_primary_validate', 'list' => 13), array('option_id' => 15, 'blog_id' => 0, 'option_name' => "raindrops_hyperlink_color", 'option_value' => raindrops_default_colors_clone($raindrops_current_style_type, "raindrops_hyperlink_color", true), 'autoload' => 'yes', 'title' => esc_html__('Link color', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Hyper link color', 'raindrops'), 'validate' => 'raindrops_hyperlink_color_validate', 'list' => 14), array('option_id' => 16, 'blog_id' => 0, 'option_name' => "raindrops_accessibility_settings", 'option_value' => "no", 'autoload' => 'yes', 'title' => esc_html__('Accessibility Settings', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Accessibility Settings is create a unique link text. set to yes or no.', 'raindrops'), 'validate' => 'raindrops_accessibility_settings_validate', 'list' => 15), array('option_id' => 17, 'blog_id' => 0, 'option_name' => "raindrops_doc_type_settings", 'option_value' => "html5", 'autoload' => 'yes', 'title' => esc_html__("Document Type Settings", 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__("Default Document type html5. Set to xhtml or html5.", 'raindrops'), 'validate' => 'raindrops_doc_type_settings_validate', 'list' => 16), array('option_id' => 18, 'blog_id' => 0, 'option_name' => "raindrops_basefont_settings", 'option_value' => "13", 'autoload' => 'yes', 'title' => esc_html__("Base Font Size Setting", 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__("Base Font Size Value Recommend 13-20 (px size)", 'raindrops'), 'validate' => 'raindrops_basefont_settings_validate', 'list' => 17), array('option_id' => 19, 'blog_id' => 0, 'option_name' => "raindrops_fluid_max_width", 'option_value' => "1280", 'autoload' => 'yes', 'title' => esc_html__("Fluid ( Responsive ) Max Page Width", 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__("Default 1280 (px size)", 'raindrops'), 'validate' => 'raindrops_fluid_max_width_validate', 'list' => 18), array('option_id' => 20, 'blog_id' => 0, 'option_name' => "raindrops_entry_content_is_home", 'option_value' => "content", 'autoload' => 'yes', 'title' => esc_html__("Home Entry Content Type", 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__("value content, excerpt, none", 'raindrops'), 'validate' => 'raindrops_entry_content_is_home_validate', 'list' => 19), array('option_id' => 21, 'blog_id' => 0, 'option_name' => "raindrops_entry_content_is_category", 'option_value' => "content", 'autoload' => 'yes', 'title' => esc_html__("Category Archive Content Type", 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__("value content, excerpt, none", 'raindrops'), 'validate' => 'raindrops_entry_content_is_category_validate', 'list' => 20), array('option_id' => 22, 'blog_id' => 0, 'option_name' => "raindrops_entry_content_is_search", 'option_value' => "content", 'autoload' => 'yes', 'title' => esc_html__("Search Result Content Type", 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__("value content, excerpt, none", 'raindrops'), 'validate' => 'raindrops_entry_content_is_tag_validate', 'list' => 21), array('option_id' => 23, 'blog_id' => 0, 'option_name' => "raindrops_footer_link_color", 'option_value' => raindrops_default_colors_clone($raindrops_current_style_type, "raindrops_footer_link_color", true), 'autoload' => 'yes', 'title' => esc_html__('Link color in footer ', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('If you need to set footer Special link color.hex color ex.#ff0000 or empty string', 'raindrops'), 'validate' => 'raindrops_footer_link_color_validate', 'list' => 22), array('option_id' => 24, 'blog_id' => 0, 'option_name' => "raindrops_complementary_color_for_title_link", 'option_value' => "none", 'autoload' => 'yes', 'title' => esc_html__('Complementary Color For Entry Title Link ', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('If you need to set complementary color for entry title.(There is a need to link color is set to chromatic) value yes or none', 'raindrops'), 'validate' => 'raindrops_complementary_color_for_title_link_validate', 'list' => 23), array('option_id' => 25, 'blog_id' => 0, 'option_name' => "raindrops_plugin_presentation_bcn_nav_menu", 'option_value' => "none", 'autoload' => 'yes', 'title' => esc_html__('Breadcrumb NavXT Automatic Presentation ', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Theme, will make a presentation of applying the plugin automatically, value set yes or none', 'raindrops'), 'validate' => 'raindrops_plugin_presentation_bcn_nav_menu_validate', 'list' => 24), array('option_id' => 26, 'blog_id' => 0, 'option_name' => "raindrops_plugin_presentation_wp_pagenav", 'option_value' => "none", 'autoload' => 'yes', 'title' => esc_html__('WP-PageNavi Automatic Presentation ', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Theme, will make a presentation of applying the plugin automatically, value set yes or none', 'raindrops'), 'validate' => 'raindrops_plugin_presentation_wp_pagenav_validate', 'list' => 25), array('option_id' => 27, 'blog_id' => 0, 'option_name' => "raindrops_plugin_presentation_meta_slider", 'option_value' => "none", 'autoload' => 'yes', 'title' => esc_html__('Meta Slider Automatic Presentation ', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Please Set Meta Slider ID or none', 'raindrops'), 'validate' => 'raindrops_plugin_presentation_wp_pagenav_validate', 'list' => 26), array('option_id' => 28, 'blog_id' => 0, 'option_name' => "raindrops_plugin_presentation_the_events_calendar", 'option_value' => "none", 'autoload' => 'yes', 'title' => esc_html__('The Events Calendar Automatic Presentation ', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Theme, will make a presentation of applying the plugin automatically, value set yes or none', 'raindrops'), 'validate' => 'raindrops_plugin_presentation_the_events_calendarr_validate', 'list' => 27), array('option_id' => 29, 'blog_id' => 0, 'option_name' => "raindrops_disable_keyboard_focus", 'option_value' => "enable", 'autoload' => 'yes', 'title' => esc_html__('Disable Keyboard Focus ', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Fallback Setting when Nav Menu displayed improperly, value set enable( defalt ) or disable', 'raindrops'), 'validate' => 'raindrops_disable_keyboard_focus_validate', 'list' => 28), array('option_id' => 30, 'blog_id' => 0, 'option_name' => "raindrops_sync_style_for_tinymce", 'option_value' => "yes", 'autoload' => 'yes', 'title' => esc_html__('Synchronize Style for Visual Editor', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Reflect on Dynamically Editor Style Settings, value set yes ( default ) or none', 'raindrops'), 'validate' => 'raindrops_sync_style_for_tinymce_validate', 'list' => 29), array('option_id' => 31, 'blog_id' => 0, 'option_name' => "raindrops_uninstall_option", 'option_value' => "keep", 'autoload' => 'yes', 'title' => esc_html__('Uninstall Option', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Delete all Theme Settings when switch theme. default keep ( or delete )', 'raindrops'), 'validate' => 'raindrops_uninstall_option_validate', 'list' => 30), array('option_id' => 32, 'blog_id' => 0, 'option_name' => "raindrops_menu_primary_font_size", 'option_value' => 100, 'autoload' => 'yes', 'title' => esc_html__('Menu Primary Font Size', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Menu Primary Font Size. default value is 100( % ). set font size between 77 and 182', 'raindrops'), 'validate' => 'raindrops_menu_primary_font_size_validate', 'list' => 31), array('option_id' => 33, 'blog_id' => 0, 'option_name' => "raindrops_menu_primary_min_width", 'option_value' => 10, 'autoload' => 'yes', 'title' => esc_html__('Menu Primary Menu Width', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Menu Primary Menu Width. default value is 10 ( em ). set 1 between 95.999', 'raindrops'), 'validate' => 'raindrops_menu_primary_min_width_validate', 'list' => 32), array('option_id' => 34, 'blog_id' => 0, 'option_name' => "raindrops_featured_image_position", 'option_value' => 'left', 'autoload' => 'yes', 'title' => esc_html__('Featured Image Position', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Featured Image Position for Emphasis of new content using the Featured Image values default,left,front', 'raindrops'), 'validate' => 'raindrops_featured_image_position_validate', 'list' => 33), array('option_id' => 35, 'blog_id' => 0, 'option_name' => "raindrops_featured_image_size", 'option_value' => 'thumbnail', 'autoload' => 'yes', 'title' => esc_html__('Featured Image Size', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('values thumbnail, medium, large, default', 'raindrops'), 'validate' => 'raindrops_featured_image_size_validate', 'list' => 34), array('option_id' => 36, 'blog_id' => 0, 'option_name' => "raindrops_featured_image_recent_post_count", 'option_value' => 3, 'autoload' => 'yes', 'title' => esc_html__('Featured Image Special Layout Apply Post Count', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('values from 1 to Post Per Page count default value none', 'raindrops'), 'validate' => 'raindrops_featured_image_recent_post_count_validate', 'list' => 35), array('option_id' => 37, 'blog_id' => 0, 'option_name' => "raindrops_featured_image_singular", 'option_value' => 'show', 'autoload' => 'yes', 'title' => esc_html__('Featured Image Show, lightbox or Hide on Singular Post,Page', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('values show or hide or lightbox ( light box is crop height ,add lightbox )', 'raindrops'), 'validate' => 'raindrops_featured_image_singular_validate', 'list' => 36), array('option_id' => 38, 'blog_id' => 0, 'option_name' => "raindrops_use_featured_image_emphasis", 'option_value' => 'no', 'autoload' => 'yes', 'title' => esc_html__('USE or Not Emphasis of new content using the Featured Image', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('values yes or no default no', 'raindrops'), 'validate' => 'raindrops_use_featured_image_emphasis_validate', 'list' => 37), array('option_id' => 39, 'blog_id' => 0, 'option_name' => "raindrops_japanese_date", 'option_value' => 'no', 'autoload' => 'yes', 'title' => esc_html__('USE or Not Japanese Date', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('values yes or no default no', 'raindrops'), 'validate' => 'raindrops_japanese_date_validate', 'list' => 38), array('option_id' => 40, 'blog_id' => 0, 'option_name' => "raindrops_read_more_after_excerpt", 'option_value' => 'no', 'autoload' => 'yes', 'title' => esc_html__('Add Read More Link', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Add read more link after excerpt. values yes or no default no', 'raindrops'), 'validate' => 'raindrops_read_more_after_excerpt_validate', 'list' => 39), array('option_id' => 41, 'blog_id' => 0, 'option_name' => "raindrops_excerpt_enable", 'option_value' => 'no', 'autoload' => 'yes', 'title' => esc_html__('Use Raindrops Extend Excerpt', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('HTML in Excerpt. values yes or no default no', 'raindrops'), 'validate' => 'raindrops_excerpt_enable_validate', 'list' => 40), array('option_id' => 42, 'blog_id' => 0, 'option_name' => "raindrops_allow_oembed_excerpt_view", 'option_value' => 'yes', 'autoload' => 'yes', 'title' => esc_html__('Allow Oembed Media at Raindrops Extend Excerpt', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Overview display, if you set no, you can reduce the load time of the page. values yes or no default yes', 'raindrops'), 'validate' => 'raindrops_allow_oembed_excerpt_view_validate', 'list' => 41), array('option_id' => 43, 'blog_id' => 0, 'option_name' => "raindrops_place_of_site_title", 'option_value' => 'above', 'autoload' => 'yes', 'title' => esc_html__('Place of Title', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value default above or header_image', 'raindrops'), 'validate' => 'raindrops_place_of_site_title_validate', 'list' => 42), array('option_id' => 44, 'blog_id' => 0, 'option_name' => "raindrops_site_title_left_margin", 'option_value' => 1, 'autoload' => 'yes', 'title' => esc_html__('Left Margin of Site Title', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Works only Place of Title value set header_image, default value  1', 'raindrops'), 'validate' => 'raindrops_site_title_left_margin_validate', 'list' => 43), array('option_id' => 45, 'blog_id' => 0, 'option_name' => "raindrops_site_title_top_margin", 'option_value' => 1, 'autoload' => 'yes', 'title' => esc_html__('Top Margin of Site Title', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Works only Place of Title value set header_image, default value  1', 'raindrops'), 'validate' => 'raindrops_site_title_top_margin_validate', 'list' => 44), array('option_id' => 46, 'blog_id' => 0, 'option_name' => "raindrops_site_title_font_size", 'option_value' => 'none', 'autoload' => 'yes', 'title' => esc_html__('Font Size of Site Title', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('default value none, or 1-10( percent of viewport width )', 'raindrops'), 'validate' => 'raindrops_site_title_font_size_validate', 'list' => 45), array('option_id' => 47, 'blog_id' => 0, 'option_name' => "raindrops_site_title_css_class", 'option_value' => 'none', 'autoload' => 'yes', 'title' => esc_html__('Site Title CSS', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('for example google-font-lobster default value none', 'raindrops'), 'validate' => 'raindrops_site_title_css_class_validate', 'list' => 46), array('option_id' => 47, 'blog_id' => 0, 'option_name' => "raindrops_tagline_in_the_header_image", 'option_value' => 'show', 'autoload' => 'yes', 'title' => esc_html__('Tagline in the header image', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('tagline show or hide', 'raindrops'), 'validate' => 'raindrops_tagline_in_the_header_image_validate', 'list' => 46), array('option_id' => 48, 'blog_id' => 0, 'option_name' => "raindrops_col_setting_type", 'option_value' => 'simple', 'autoload' => 'yes', 'title' => esc_html__('Side bar setting method', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value details or simple. default simple', 'raindrops'), 'validate' => 'raindrops_col_setting_type_validate', 'list' => 47), array('option_id' => 49, 'blog_id' => 0, 'option_name' => "raindrops_sidebar_index", 'option_value' => '3', 'autoload' => 'yes', 'title' => esc_html__('Index Page columns', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value 1-3. default 3', 'raindrops'), 'validate' => 'raindrops_sidebar_index_validate', 'list' => 48), array('option_id' => 51, 'blog_id' => 0, 'option_name' => "raindrops_sidebar_date", 'option_value' => '3', 'autoload' => 'yes', 'title' => esc_html__('Date Archive columns', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value 1-3. default 3', 'raindrops'), 'validate' => 'raindrops_sidebar_date_validate', 'list' => 50), array('option_id' => 52, 'blog_id' => 0, 'option_name' => "raindrops_sidebar_page", 'option_value' => '3', 'autoload' => 'yes', 'title' => esc_html__('Static Page columns', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value 1-3. default 3', 'raindrops'), 'validate' => 'raindrops_sidebar_page_validate', 'list' => 51), array('option_id' => 53, 'blog_id' => 0, 'option_name' => "raindrops_sidebar_single", 'option_value' => '3', 'autoload' => 'yes', 'title' => esc_html__('Single Post columns', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value 1-3. default 3', 'raindrops'), 'validate' => 'raindrops_sidebar_single_validate', 'list' => 52), array('option_id' => 54, 'blog_id' => 0, 'option_name' => "raindrops_sidebar_search", 'option_value' => '3', 'autoload' => 'yes', 'title' => esc_html__('Search Result Page columns', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value 1-3. default 3', 'raindrops'), 'validate' => 'raindrops_sidebar_search_validate', 'list' => 53), array('option_id' => 55, 'blog_id' => 0, 'option_name' => "raindrops_sidebar_404", 'option_value' => '3', 'autoload' => 'yes', 'title' => esc_html__('404 Page columns', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value 1-3. default 3', 'raindrops'), 'validate' => 'raindrops_sidebar_404_validate', 'list' => 54), array('option_id' => 56, 'blog_id' => 0, 'option_name' => "raindrops_sidebar_list_of_post", 'option_value' => '3', 'autoload' => 'yes', 'title' => esc_html__('List of Post Template columns', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value 1-3. default 3', 'raindrops'), 'validate' => 'raindrops_sidebar_list_of_post_validate', 'list' => 55), array('option_id' => 57, 'blog_id' => 0, 'option_name' => "raindrops_full_width_max_width", 'option_value' => 1280, 'autoload' => 'yes', 'title' => esc_html__('Content Container Width', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('px value, default 1280', 'raindrops'), 'validate' => 'raindrops_full_width_max_width_validate', 'list' => 56), array('option_id' => 58, 'blog_id' => 0, 'option_name' => "raindrops_full_width_limit_window_width", 'option_value' => 1920, 'autoload' => 'yes', 'title' => esc_html__('Support limit Browser Width', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('In the case of specified size abnormalities of the browser window size, it will show in the box layout. set px value, default 1920', 'raindrops'), 'validate' => 'raindrops_full_width_limit_window_width_validate', 'list' => 57), array('option_id' => 59, 'blog_id' => 0, 'option_name' => "raindrops_sidebar_category", 'option_value' => '3', 'autoload' => 'yes', 'title' => esc_html__('Category Archive columns', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value 1-3. default 3', 'raindrops'), 'validate' => 'raindrops_sidebar_category_validate', 'list' => 58), array('option_id' => 60, 'blog_id' => 0, 'option_name' => "raindrops_sidebar_author", 'option_value' => '3', 'autoload' => 'yes', 'title' => esc_html__('Category Archive columns', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value 1-3. default 3', 'raindrops'), 'validate' => 'raindrops_sidebar_author_validate', 'list' => 59), array('option_id' => 61, 'blog_id' => 0, 'option_name' => "raindrops_xhtml_media_type", 'option_value' => 'text/html', 'autoload' => 'yes', 'title' => esc_html__('xhtml media type', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value text/html or application/xhtml+xml, default text/html', 'raindrops'), 'validate' => 'raindrops_xhtml_media_type_validate', 'list' => 60), array('option_id' => 62, 'blog_id' => 0, 'option_name' => "raindrops_actions_hook_message", 'option_value' => 'hide', 'autoload' => 'yes', 'title' => esc_html__('Insert Point hooks and auto load template name for Developer', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value show or hide, default hide', 'raindrops'), 'validate' => 'raindrops_actions_hook_message_validate', 'list' => 61), array('option_id' => 63, 'blog_id' => 0, 'option_name' => "raindrops_status_bar", 'option_value' => 'show', 'autoload' => 'yes', 'title' => esc_html__('Bottom Status Bar', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value show or hide, default show', 'raindrops'), 'validate' => 'raindrops_status_bar_validate', 'list' => 62), array('option_id' => 64, 'blog_id' => 0, 'option_name' => "raindrops_article_title_css_class", 'option_value' => ' ', 'autoload' => 'yes', 'title' => esc_html__('Entry Title CSS Class', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('default empty', 'raindrops'), 'validate' => 'raindrops_article_title_css_class_validate', 'list' => 63), array('option_id' => 65, 'blog_id' => 0, 'option_name' => "raindrops_display_article_publish_date", 'option_value' => 'show', 'autoload' => 'yes', 'title' => esc_html__('Display Post Publish Date', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('default show', 'raindrops'), 'validate' => 'raindrops_display_article_publish_date_validate', 'list' => 64), array('option_id' => 66, 'blog_id' => 0, 'option_name' => "raindrops_display_article_author", 'option_value' => 'avatar', 'autoload' => 'yes', 'title' => esc_html__('Display Post Author', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('default avatar', 'raindrops'), 'validate' => 'raindrops_display_article_author_validate', 'list' => 65), array('option_id' => 67, 'blog_id' => 0, 'option_name' => "raindrops_display_default_category", 'option_value' => 'show', 'autoload' => 'yes', 'title' => esc_html__('Display Default Category', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('default show', 'raindrops'), 'validate' => 'raindrops_display_default_category_validate', 'list' => 66), array('option_id' => 68, 'blog_id' => 0, 'option_name' => "raindrops_sidebar_image_archive", 'option_value' => '3', 'autoload' => 'yes', 'title' => esc_html__('Image Archive columns', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value 1-3. default 3', 'raindrops'), 'validate' => 'raindrops_sidebar_image_archive_validate', 'list' => 67), array('option_id' => 69, 'blog_id' => 0, 'option_name' => "raindrops_site_title_left_margin_type", 'option_value' => 'default', 'autoload' => 'yes', 'title' => esc_html__('Left Margin of Site Title', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Works only Place of Title value set header_image, default value  1', 'raindrops'), 'validate' => 'raindrops_site_title_left_margin_type_validate', 'list' => 68), array('option_id' => 70, 'blog_id' => 0, 'option_name' => "raindrops_sidebar_tag", 'option_value' => '3', 'autoload' => 'yes', 'title' => esc_html__('Tag Archive columns', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('value 1-3. default 3', 'raindrops'), 'validate' => 'raindrops_sidebar_tag_validate', 'list' => 69), array('option_id' => 71, 'blog_id' => 0, 'option_name' => "raindrops_excerpt_length", 'option_value' => '200', 'autoload' => 'yes', 'title' => esc_html__('Excerpt Length', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('20-400', 'raindrops'), 'validate' => 'raindrops_excerpt_length_validate', 'list' => 70), array('option_id' => 72, 'blog_id' => 0, 'option_name' => "raindrops_stylesheet_in_html", 'option_value' => 'embed', 'autoload' => 'yes', 'title' => esc_html__('Location of the style sheet', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Select link stylesheet to their source HTML or document with the LINK element', 'raindrops'), 'validate' => 'raindrops_stylesheet_in_html_validate', 'list' => 71), array('option_id' => 73, 'blog_id' => 0, 'option_name' => "raindrops_parent_theme_mods", 'option_value' => 'no', 'autoload' => 'yes', 'title' => esc_html__('Import Raindrops Theme Current Settings', 'raindrops'), 'excerpt1' => '', 'excerpt2' => '', 'validate' => 'raindrops_parent_theme_mods_validate', 'list' => 72), array('option_id' => 74, 'blog_id' => 0, 'option_name' => "raindrops_header_image_filter_color", 'option_value' => '', 'autoload' => 'yes', 'title' => esc_html__('Header Image Filter Color', 'raindrops'), 'excerpt1' => '', 'excerpt2' => '', 'validate' => 'raindrops_header_image_filter_color_validate', 'list' => 73), array('option_id' => 75, 'blog_id' => 0, 'option_name' => "raindrops_header_image_filter_apply_top", 'option_value' => 0, 'autoload' => 'yes', 'title' => esc_html__('Filter Image Top', 'raindrops'), 'excerpt1' => '', 'excerpt2' => '', 'validate' => 'raindrops_header_image_filter_apply_top_validate', 'list' => 74), array('option_id' => 76, 'blog_id' => 0, 'option_name' => "raindrops_header_image_filter_apply_bottom", 'option_value' => 0, 'autoload' => 'yes', 'title' => esc_html__('Filter Image Bottom', 'raindrops'), 'excerpt1' => '', 'excerpt2' => '', 'validate' => 'raindrops_header_image_filter_apply_bottom_validate', 'list' => 75), array('option_id' => 77, 'blog_id' => 0, 'option_name' => "raindrops_enable_header_image_filter", 'option_value' => 'disable', 'autoload' => 'yes', 'title' => esc_html__('Header Image Filter', 'raindrops'), 'excerpt1' => '', 'excerpt2' => '', 'validate' => 'raindrops_enable_header_image_filter_validate', 'list' => 76), array('option_id' => 78, 'blog_id' => 0, 'option_name' => 'raindrops_options_owner', 'option_value' => 'raindrops', 'autoload' => 'yes', 'title' => esc_html__('Header Image Filter', 'raindrops'), 'excerpt1' => '', 'excerpt2' => '', 'validate' => 'raindrops_options_owner_validate', 'list' => 77), array('option_id' => 79, 'blog_id' => 0, 'option_name' => 'raindrops_display_sticky_post', 'option_value' => 'anytime', 'autoload' => 'yes', 'title' => esc_html__('Sticky Post Show Single Post', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Sticky Post Show only Home Page or Always it displayed ( default Always it displayed )', 'raindrops'), 'validate' => 'raindrops_display_sticky_post_validate', 'list' => 78), array('option_id' => 80, 'blog_id' => 0, 'option_name' => 'raindrops_sitewide_css', 'option_value' => '', 'autoload' => 'yes', 'title' => esc_html__('Site-wide CSS', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Style  It will be retained even if the theme is updated', 'raindrops'), 'validate' => 'raindrops_sitewide_css_validate', 'list' => 79), array('option_id' => 81, 'blog_id' => 0, 'option_name' => 'raindrops_posted_in_label', 'option_value' => 'emoji', 'autoload' => 'show', 'title' => esc_html__('Posted in Labels', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Hide Posted in Labels ', 'raindrops') . esc_html__('This entry was posted in', 'raindrops') . esc_html__('and tagged', 'raindrops'), 'validate' => 'raindrops_posted_in_label_validate', 'list' => 80), array('option_id' => 81, 'blog_id' => 0, 'option_name' => 'raindrops_comments_are_closed', 'option_value' => 'hide', 'autoload' => 'show', 'title' => esc_html__('Comments are closed Label', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Hide ', 'raindrops') . esc_html__('Comments are closed.', 'raindrops'), 'validate' => 'raindrops_comments_are_closed_validate', 'list' => 80), array('option_id' => 82, 'blog_id' => 0, 'option_name' => 'raindrops_archive_title_label', 'option_value' => 'emoji', 'autoload' => 'show', 'title' => esc_html__('Archives label', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Hide or Show like Category Archives, Tag Archives label', 'raindrops'), 'validate' => 'raindrops_archive_title_label_validate', 'list' => 81), array('option_id' => 83, 'blog_id' => 0, 'option_name' => 'raindrops_archive_nav_above', 'option_value' => 'hide', 'autoload' => 'show', 'title' => esc_html__('Archive Page Top Navigation', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Hide or Show Blog Archives page top navigation', 'raindrops'), 'validate' => 'raindrops_archive_nav_above_validate', 'list' => 82), array('option_id' => 84, 'blog_id' => 0, 'option_name' => 'raindrops_posted_on_position', 'option_value' => 'before', 'autoload' => 'show', 'title' => esc_html__('Position of Posted on', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('default before contents', 'raindrops'), 'validate' => 'raindrops_posted_on_position_validate', 'list' => 83), array('option_id' => 85, 'blog_id' => 0, 'option_name' => 'raindrops_posted_in_position', 'option_value' => 'after', 'autoload' => 'show', 'title' => esc_html__('Position of Posted in', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('default after contents', 'raindrops'), 'validate' => 'raindrops_posted_in_position_validate', 'list' => 84), array('option_id' => 86, 'blog_id' => 0, 'option_name' => 'raindrops_fallback_image_for_entry_content', 'option_value' => get_template_directory_uri() . '/images/image-not-found.png', 'autoload' => 'show', 'title' => esc_html__('Fallback Image for Entry Content', 'raindrops'), 'excerpt1' => '', 'excerpt2' => esc_html__('Image, to display an alternative image if that can not be displayed', 'raindrops'), 'validate' => 'raindrops_fallback_image_for_entry_content_validate', 'list' => 85));
}
if (!isset($raindrops_base_setting)) {
    $raindrops_base_setting = $raindrops_base_setting_args;
}
/**
 * RAINDROPS_COLOR_SCHEME
 *
 *
 *
 *
 */
if (!isset($raindrops_color_ja)) {
Ejemplo n.º 17
0
 /**
  *
  * @global type $raindrops_setting_type
  * @global type $wp_customize
  * @return boolean
  * @since 1.297
  */
 function raindrops_import_parent_theme_mods()
 {
     global $raindrops_setting_type, $wp_customize;
     $oarent_slug = get_option('template');
     $child_slug = get_option('stylesheet');
     $mods = get_option("theme_mods_{$oarent_slug}");
     if (isset($wp_customize) && false !== $mods && false !== $child_slug && false !== $oarent_slug && is_child_theme()) {
         if (get_option("mods_{$child_slug}")) {
             delete_option("mods_{$child_slug}");
         }
         if ('import' == get_theme_mod("raindrops_parent_theme_mods")) {
             set_theme_mod("raindrops_parent_theme_mods", 'no');
         }
         if ('import' == raindrops_warehouse_clone('raindrops_parent_theme_mods')) {
             raindrops_update_theme_option('raindrops_parent_theme_mods', 'no');
         }
         return update_option("theme_mods_{$child_slug}", $mods);
     }
     return false;
 }
Ejemplo n.º 18
0
    ?>
<div class="posted-on-after"><?php 
    raindrops_posted_on();
    ?>
</div><?php 
}
?>
        <div class="entry-utility entry-meta">
            <?php 
$category_id = get_cat_ID('Gallery');
$category_link = get_category_link($category_id);
printf('%4$s<a href="%1$s" title="%2$s">%3$s</a> | ', esc_url($category_link), esc_attr__('View posts in the Gallery category', 'raindrops'), ' ' . esc_html__('Gallery', 'raindrops'), esc_html__('Link to Category', 'raindrops'));
?>
            <span class="comments-link">
            <?php 
$raindrops_comments_are_closed = raindrops_warehouse_clone('raindrops_comments_are_closed');
if ('hide' == $raindrops_comments_are_closed) {
    $comment_off_message = '';
} else {
    $comment_off_message = 'Comments off';
}
comments_popup_link(esc_html__('Leave a comment', 'raindrops'), esc_html__('1 Comment', 'raindrops'), esc_html__('% Comments', 'raindrops'), '', $comment_off_message);
?>
            </span>
                <?php 
edit_post_link(esc_html__('Edit', 'raindrops') . raindrops_link_unique('Post', $post->ID), '<span class="edit-link">', '</span>');
raindrops_delete_post_link(esc_html__('Trash', 'raindrops'), '<span class="edit-link">', '</span>');
?>
        </div>

<?php