esc_html__( 'Primary Navigation', 'Raindrops' ), ) ); /** * Custom image header * $raindrops_custom_header_args */ add_filter('raindrops_header_image_width','raindrops_responsive_width_ajust'); add_filter('raindrops_header_image_height', 'raindrops_responsive_height_ajust'); if ( !isset( $raindrops_custom_header_args ) ) { $raindrops_custom_header_width = apply_filters( 'raindrops_header_image_width', absint( raindrops_detect_header_image_size_clone( 'width' ) ) ); $raindrops_custom_header_height = apply_filters( 'raindrops_header_image_height', absint( raindrops_detect_header_image_size_clone( 'height' ) ) ); $raindrops_current_style_type = raindrops_warehouse_clone( 'raindrops_style_type' ); $raindrops_custom_header_args = array( 'default-text-color' => raindrops_default_colors_clone( $raindrops_current_style_type, "header_textcolor", true ) , 'width' => $raindrops_custom_header_width, 'flex-width' => true, 'height' => $raindrops_custom_header_height , 'flex-height' => true, 'header-text' => true, 'default-image' => '%1$s/images/headers/wp3.jpg', 'wp-head-callback' => apply_filters( 'raindrops_wp-head-callback', 'raindrops_embed_meta' ), ); if ( version_compare( $wp_version, '4.1', '<' ) ) { $raindrops_custom_header_args['admin-preview-callback'] = 'raindrops_admin_header_image'; $raindrops_custom_header_args['admin-head-callback'] = 'raindrops_admin_header_style'; } add_theme_support( 'custom-header', apply_filters( 'raindrops_custom_header_args', $raindrops_custom_header_args ) ); /** * Add for WordPress 4.1 * @since 1.260 */ register_default_headers( array( 'raindrops' => array( 'url' => '%s/images/headers/wp3.jpg', 'thumbnail_url' => '%s/images/headers/wp3-thumbnail.jpg', ), ) ); } if ( ! function_exists( 'raindrops_extend_query') ) { /** * Accessibility Settings * * When true * Add to hidden text for identify entry-title link text, comment link text, more link * * @since 1.116 */ function raindrops_extend_query( $vars ) { $vars[] = 'raindrops_color_type'; $vars[] = 'raindrops_pid'; return $vars; } } if ( 'yes' == raindrops_warehouse_clone( 'raindrops_accessibility_settings' ) ) { $raindrops_accessibility_link = false; } if ( ! function_exists( 'raindrops_current_url' ) ) { function raindrops_current_url() { $url = 'http'; $server_https = filter_input(INPUT_SERVER, 'HTTPS'); if ( ! is_null( $server_https ) && "on" == $server_https ) { $url = "https"; } $url .= "://"; $server_port = filter_input(INPUT_ENV,"SERVER_PORT", FILTER_VALIDATE_INT ); $server_name = filter_input(INPUT_ENV,"SERVER_PORT"); $request_uri = filter_input(INPUT_ENV,"REQUEST_URI"); if ( ! is_null( $server_port ) && 80 !== $server_port ) { $url .= $server_name . ":" . $server_port . $request_uri; } else { $url .= $server_name . $request_uri; } $url = esc_url( $url ); return apply_filters( 'raindrops_current_url', $url ); } } /** * home link * * ver 1.116 default value change * if you need home link then $raindrops_nav_menu_home_link set true. */ if ( !isset( $raindrops_nav_menu_home_link ) ) { $raindrops_link_unique_text = raindrops_link_unique_text(); if ( true == $raindrops_link_unique_text ) { $raindrops_nav_menu_home_link = false; } else { $raindrops_nav_menu_home_link = true; } } /** * HTML document type * * * * Now only 'xhtml' * ver 0.999 add type 'html5' */ if ( !isset( $raindrops_document_type ) ) { if ( 'xhtml' == raindrops_warehouse_clone( 'raindrops_doc_type_settings' ) ) { $raindrops_document_type = 'xhtml'; } else { $raindrops_document_type = 'html5'; add_theme_support( 'html5', array( 'gallery', 'caption' ) ); } } if( ! function_exists( 'raindrops_gallery_atts' ) ) { /** * * @global type $raindrops_extend_galleries * @param type $out * @param type $pairs * @param type $atts * @return gallery default attribute value * @since 1.269 */ function raindrops_gallery_atts( $out, $pairs, $atts ) { global $raindrops_extend_galleries; if ( $raindrops_extend_galleries !== true ){ return $out; } if ( empty( $atts["columns"] ) || $atts["columns"] < 4 ) { $atts = shortcode_atts( array( 'size' => 'medium', ), $atts ); $out['size'] = $atts['size']; } return $out; } } add_filter( 'shortcode_atts_gallery', 'raindrops_gallery_atts', 10, 3 ); /** * Force Document type for lt IE9 Old Browser * Note: This setting is SERVER_SIDE Setting, I recommend that the browser is set when the cache of less than IE9 as not performed * * Raindrops 1.204 remove from header.php * * * * ver 1.204 */ if ( $is_IE ) { $http_user_agent = filter_input(INPUT_ENV,'HTTP_USER_AGENT'); preg_match( "|(MSIE )([0-9]{1,2})(\.)|si", $http_user_agent, $raindrops_regs ); if ( isset( $raindrops_regs[ 2 ] ) && $raindrops_regs[ 2 ] < 9 ) { $raindrops_document_type = 'xhtml'; remove_theme_support( 'html5' ); } } /** * * * $raindrops_post_formats_args * add ver0.991 gallery,status */ if ( !isset( $raindrops_post_formats_args ) ) { $raindrops_post_formats_args = apply_filters( 'raindrops_post_formats_args', array( 'aside', 'gallery', 'chat', 'link', 'image', 'status', 'quote', 'video' ) ); add_theme_support( 'post-formats', $raindrops_post_formats_args ); } /** * * * * $raindrops_custom_background_args * */ if ( !isset( $raindrops_custom_background_args ) ) { $raindrops_custom_background_args = apply_filters( 'raindrops_custom_background_args', array( 'default-color' => '', 'default-image' => '', ) ); add_theme_support( 'custom-background', $raindrops_custom_background_args ); } /** * * * * $raindrops_post_thumbnails_args * */ if ( !isset( $raindrops_post_thumbnails_args ) ) { $raindrops_post_thumbnails_args = array( 'post', 'page' ); add_theme_support( 'post-thumbnails', apply_filters( 'raindrops_post_thumbnails_args', $raindrops_post_thumbnails_args ) ); } /** * * * * * */ add_theme_support( 'automatic-feed-links' ); /** * Content width implementation by manual labor * * If you need specific $content_width. * value set 400 When not setting or empty. * */ //$content_width = ''; /** * $raindrops_fluid_minimum_width for IE * * IE browser not support responsive * * $raindrops_fluid_minimum_width * */ if ( $is_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 ] ) && $regs[ 2 ] < 9 ) { $raindrops_fluid_minimum_width = apply_filters( 'raindrops_fluid_minimum_width_lt_ie9', '640'); } } /** * fluid page main column maximum width px * * * * $raindrops_fluid_maximum_width * */ if ( !isset( $raindrops_fluid_maximum_width ) ) { $raindrops_fluid_maximum_width = raindrops_warehouse_clone( 'raindrops_fluid_max_width' ); } /** * * * * @since 1.127 */ if ( !function_exists( 'raindrops_detect_display_none_condition' ) ) { function raindrops_detect_display_none_condition() { global $raindrops_where_display_none; if ( !isset( $raindrops_where_display_none ) ) { $raindrops_display_none_pages = array(); if ( raindrops_warehouse_clone( 'raindrops_entry_content_is_home' ) == 'none' ) { $raindrops_display_none_pages[] = 'is_home'; } if ( raindrops_warehouse_clone( 'raindrops_entry_content_is_category' ) == 'none' ) { $raindrops_display_none_pages[] = 'is_category'; } if ( raindrops_warehouse_clone( 'raindrops_entry_content_is_search' ) == 'none' ) { $raindrops_display_none_pages[] = 'is_search'; } $raindrops_where_display_none = $raindrops_display_none_pages; } if ( !empty( $raindrops_where_display_none ) && is_array( $raindrops_where_display_none ) ) { foreach ( $raindrops_where_display_none as $excerpt ) { if ( true == $excerpt() ) { return true; } } } return false; } } if ( !function_exists( 'raindrops_detect_excerpt_condition' ) ) { function raindrops_detect_excerpt_condition() { global $raindrops_where_excerpts, $post; if ( !isset( $raindrops_where_excerpts ) ) { $raindrops_excerpt_pages = array(); if ( raindrops_warehouse_clone( 'raindrops_entry_content_is_home' ) == 'excerpt' ) { $raindrops_excerpt_pages[] = 'is_home'; } if ( raindrops_warehouse_clone( 'raindrops_entry_content_is_category' ) == 'excerpt' ) { $raindrops_excerpt_pages[] = 'is_category'; } if ( raindrops_warehouse_clone( 'raindrops_entry_content_is_search' ) == 'excerpt' ) { $raindrops_excerpt_pages[] = 'is_search'; } $raindrops_where_excerpts = $raindrops_excerpt_pages; } if ( RAINDROPS_USE_LIST_EXCERPT !== true ) { return false; } if ( !empty( $raindrops_where_excerpts ) ) { foreach ( $raindrops_where_excerpts as $excerpt ) { if ( true == $excerpt() ) { return true; } } } return false; } } if ( !defined( 'RAINDROPS_TABLE_TITLE' ) ) { define( "RAINDROPS_TABLE_TITLE", 'options' ); } if ( !defined( 'RAINDROPS_PLUGIN_TABLE' ) ) { define( 'RAINDROPS_PLUGIN_TABLE', $wpdb->prefix . RAINDROPS_TABLE_TITLE ); } if ( !isset( $raindrops_theme_settings ) ) { $raindrops_theme_settings = get_option( 'raindrops_theme_settings', 'no' ); } /** * widget settings * * Registered Default Sidebar, Extra Sidebar, Sticky Widget, Footer Widget, Category Blog Widget * * @since 1.119 Widget label change from Category Blog Widget to Status Sidebar * */ if ( !function_exists( 'raindrops_widgets_init' ) ) { function raindrops_widgets_init() { register_sidebar( array( 'name' => esc_html__( 'Default Sidebar', 'Raindrops' ), 'id' => 'sidebar-1', 'before_widget' => '
comment_ID ), ' ' ); ?>
'raindrops_post_category_relation' ) ); $exclude_tag_conditional = apply_filters( 'raindrops_posted_in_tag',array( 'is_tag' => '' ) ); global $post,$raindrops_tag_emoji,$raindrops_category_emoji; if ( is_sticky() ) { return; } $format = get_post_format( $post->ID ); $tag_list = get_the_tag_list( '', ' ' ); $categories_list = get_the_category_list( ' ' ); if ( ! empty($exclude_category_conditionals) && is_array( $exclude_category_conditionals ) ) { foreach( $exclude_category_conditionals as $key => $conditional ) { if( function_exists( $key ) && true == $key() ) { if ( empty( $conditional ) ) { $categories_list = ''; } elseif ( function_exists( $conditional ) ) { $categories_list = $conditional(); } } } } if ( ! empty($exclude_tag_conditionals) && is_array( $exclude_tag_conditionals ) ) { foreach( $exclude_tag_conditionals as $key => $conditional ) { if( function_exists( $key ) && true == $key() ) { if ( empty( $conditional ) ) { $tag_list = ''; } elseif ( function_exists( $conditional ) ) { $tag_list = $conditional(); } } } } if( 'emoji' == raindrops_warehouse_clone( 'raindrops_posted_in_label' ) ) { $category_label = $raindrops_category_emoji. ''. esc_html__( 'This entry was posted in', 'Raindrops' ). ''; $tag_label = $raindrops_tag_emoji. ''. esc_html__( 'and tagged', 'Raindrops' ). ''; $categories = wp_get_post_categories( $post->ID ); $categories_count = count( $categories ); $default_category_id = absint( get_option('default_category') ); $raindrops_display_default_category = raindrops_warehouse_clone( 'raindrops_display_default_category' ); if( $categories_count == 1 && absint( $categories[0] ) == absint( $default_category_id ) && 'show' !== $raindrops_display_default_category){ $category_label = ''; } if( is_category() ) { $category_label = ''; } } else { $category_label = esc_html__( 'This entry was posted in', 'Raindrops' ); $tag_label = esc_html__( 'and tagged', 'Raindrops' ); } if ( false === $format ) { if ( $tag_list ) { $posted_in = '' . $category_label. ' %1$s ' . $tag_label. ' %2$s'; } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { $posted_in = '' . $category_label . ' %1$s '; } else { $posted_in = ''; } $result = $format . sprintf( $posted_in, $categories_list, $tag_list ); echo apply_filters( "raindrops_posted_in", $result ); } else { if ( $tag_list ) { $posted_in = '' . $category_label . ' %1$s ' . $tag_label . ' %2$s ' . ' %4$s %5$s'; } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { $posted_in = '' . $category_label . ' %1$s %2$s' . ' %4$s %5$s'; } else { $posted_in = ' %4$s %5$s'; } $result = sprintf( $posted_in, get_the_category_list( ' ' ), $tag_list, esc_url( get_post_format_link( $format ) ), esc_html( 'Format', 'Raindrops' ), get_post_format_string( $format ) ); echo apply_filters( "raindrops_posted_in", $result ); } } } /** * Template function raindrops_comments_link * * * * loop.php * @since 1.163 */ if ( !function_exists( 'raindrops_comments_link' ) ) { function raindrops_comments_link() { if ( comments_open() ) { $raindrops_comment_html = '%2$s %3$s'; if ( get_comments_number() > 0 ) { $raindrops_comment_string = _n( 'Comment', 'Comments', get_comments_number(), 'Raindrops' ) . raindrops_link_unique( 'Post', get_the_ID() ); $raindrops_comment_number = get_comments_number(); } else { $raindrops_comment_string = __( 'Comment ', 'Raindrops' ) . raindrops_link_unique( 'Post', get_the_ID() ); $raindrops_comment_number = ''; } } else { $raindrops_comment_html = ''; $raindrops_comment_string = ''; $raindrops_comment_number = ''; } $result = sprintf( $raindrops_comment_html, get_comments_link(), $raindrops_comment_number, $raindrops_comment_string ); return apply_filters( 'raindrops_comments_link', $result, get_comments_link(), $raindrops_comment_number, $raindrops_comment_string ); } } if ( !function_exists( 'raindrops_post_author' ) ) { /** * loop * @global type $post * @return type * @since 1.272 */ function raindrops_post_author( ) { global $post; $author = raindrops_blank_fallback( get_the_author(), 'Somebody' ); $author_attr_title_string = sprintf( esc_attr__( 'View all posts by %s', 'Raindrops' ), wp_kses( $author, array() ) ); $author_html = ' '; if ( "avatar" == raindrops_warehouse_clone( 'raindrops_display_article_author' ) ) { $author = get_avatar( get_the_author_meta( 'ID' ), 24 ). ''. $author. ''; } $author_html = sprintf( $author_html, get_author_posts_url( get_the_author_meta( 'ID' ) ), $author_attr_title_string, $author ); $author_html = apply_filters( 'raindrops_post_author', $author_html ); return $author_html; } } if ( !function_exists( 'raindrops_post_date' ) ) { /** * loop * @global type $post * @return type * @since1.272 */ function raindrops_post_date(){ global $post, $raindrops_posted_on_date_emoji ; $entry_date_html = '<%4$s class="entry-date updated" %5$s>%3$s%4$s>'; $archive_year = get_the_time( 'Y' ); $archive_month = get_the_time( 'm' ); $archive_day = get_the_time( 'd' ); $day_link = esc_url( get_day_link( $archive_year, $archive_month, $archive_day ) . '#post-' . $post->ID ); $raindrops_date_format = get_option( 'date_format' ) . ' ' . get_option( 'time_format' ); $date_text = get_the_date( $raindrops_date_format ); if ( 'emoji' == raindrops_warehouse_clone( 'raindrops_display_article_publish_date' ) ) { $date_text = ''. $raindrops_posted_on_date_emoji. ''. $date_text. ''; } $entry_date_html = sprintf( $entry_date_html, $day_link, esc_attr( 'archives daily ' . get_the_date( $raindrops_date_format ) ), $date_text, raindrops_doctype_elements( 'span', 'time', false ), raindrops_doctype_elements( '', 'datetime="' . esc_attr( get_the_date( 'c' ) ) . '"', false ) ); $entry_date_html = apply_filters( 'raindrops_post_date', $entry_date_html ); return $entry_date_html; } } /** * Template function posted_on * * * * loop.php * */ if ( !function_exists( 'raindrops_posted_on' ) ) { function raindrops_posted_on() { global $post; $called_function = __FUNCTION__; $author_html = apply_filters( 'raindrops_post_author', raindrops_post_author( ), $called_function ); $entry_date_html = apply_filters( 'raindrops_post_date', raindrops_post_date( ), $called_function ); $posted_on_comment_link = apply_filters( 'raindrops_comments_link', raindrops_comments_link(), $called_function ); $result = ' %2$s %4$s %5$s'; $result = apply_filters('raindrops_posted_on_result', $result ); $posted_on_string = ''; if( !empty( $entry_date_html ) ) { $posted_on_string = __( 'Posted on', 'Raindrops' ); } $posted_by_string = ''; if( !empty( $entry_date_html ) ) { $posted_by_string = __( 'by', 'Raindrops' ); } $result = sprintf( $result, $posted_on_string , $entry_date_html, $posted_by_string, $author_html, $posted_on_comment_link ); $format = get_post_format(); $content_empty_check = ''; if ( isset( $post ) ) { $content_empty_check = trim( get_the_content() ); } if ( false === $format ) { echo apply_filters( "raindrops_posted_on", $result ); } elseif ( empty( $content_empty_check ) ) { echo $posted_on_comment_link; } else { echo apply_filters( "raindrops_posted_on", $result ); } } } /** * Special custom fields key css, javascript, metatags * * * css,javascrip,meta is separated anothor Custom Field. * * */ if ( !function_exists( 'raindrops_filter_explode_meta_keys' ) ) { function raindrops_filter_explode_meta_keys( $content, $key ) { $explode_keys = array( 'css', 'javascript', 'meta' ); if ( in_array( $key, $explode_keys ) ) { return; } else { return $content; } } } /** * Like a get_option( ) * * * Raindrops conditional response. * * for templates */ if ( !function_exists( 'raindrops_warehouse' ) ) { function raindrops_warehouse( $name , $property = false, $fallback = false ) { return apply_filters( "raindrops_warehouse", raindrops_warehouse_clone( $name , $property, $fallback ) ); } } /** * Return $raindrops_base_setting value. * * * * * */ if ( !function_exists( 'raindrops_admin_meta' ) ) { function raindrops_admin_meta( $name, $meta_name ) { global $raindrops_base_setting, $raindrops_page_width; $vertical = array(); foreach ( $raindrops_base_setting as $key => $val ) { if ( !is_null( $raindrops_base_setting ) ) { $vertical[] = $val[ 'option_name' ]; } } $row = array_search( $name, $vertical ); return $raindrops_base_setting[ $row ][ $meta_name ]; } } /** * Admin Panel help * * * * * */ if ( !function_exists( 'raindrops_settings_page_contextual_help' ) ) { function raindrops_settings_page_contextual_help() { global $raindrops_current_data; $html = '#hd{display:none;}
';
$help .= '.posted-by-string,.author{display:none;}
';
$help .= '.posted-on-string,.entry-date{display:none;}
';
$help .= '.entry-meta{display:none;}
';
$help .= '#archives-title .label{display:none;}
';
$help .= ' #nav-above{ display:none;}
';
$help .= '' . esc_html__( 'above codes paste style.css last. If not change when Version value change ( line:9 )', 'Raindrops' ) . '
'; $help = wpautop( $help ); $content = '' . esc_html__( 'If Raindrops Options panel is opened, and the reference color is set, this arrangement of color is changed at once.', "Raindrops" ) . "
"; $result .= "class color5 | class color4 | class color3 | class color2 | class color1 |
class color-1 | class color-2 | class color-3 | class color-4 | class color-5 |
' . esc_html__( 'code example:please HTML editor mode', 'Raindrops' ) . '
<div class="color-1">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum</div>
|
class gradient1 | class gradient2 | class gradient3 | class gradient4 | |
class gradient-1 | class gradient-2 | class gradient-3 | class gradient-4 | |
' . esc_html__( 'code example:please HTML editor mode', 'Raindrops' ) . '
<div class="gradient-1"> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. </div> |
" . esc_html__( 'Classes', 'Raindrops' ) . '
" . esc_html__( 'f10 , f11 , f12 , f13 , f14 , f15 , f16 , f17 , f18 , f19 , f20 , f21 , f22 , f23 , f24 , f25 , f26', 'Raindrops' ) . "
<p class=\"f16\">Font Size 16px</p>
";
$result .= "" . esc_html__( 'Classes', 'Raindrops' ) . '
" . esc_html__( 'Note, More than 90 percent of the Google font can be used, but there are some limitations.', 'Raindrops' ) . "
" . esc_html__( 'Examples of the no corresponding font', 'Raindrops' ) . "
Fredericka the Great ( The first character is lowercase word )
" . esc_html__( 'Examples of the corresponding font', 'Raindrops' ) . "
Open Sans Condensed ( font name has 0 - 2 spaces )
" . esc_html__( 'How to specify the font', 'Raindrops' ) . "
Open Sans: <p class=\"google-font-open-sans\">Open Sans</p>
" . esc_html__( 'Add prefix google-font- + Font name lowercase and change to - the space', 'Raindrops' ) . "
" . esc_html__( 'How to specify the font weight', 'Raindrops' ) . "
Open Sans EXTRA-BOLD800: <p class=\"google-font-open-sans800\">Open Sans</p>
" . esc_html__( 'How to specify the font style', 'Raindrops' ) . "
Open Sans EXTRA-BOLD800 Italic: <p class=\"google-font-open-sans800i\">Open Sans</p>
" . esc_html__( 'Styling Entry Title', 'Raindrops' ) . '
" . esc_html__( 'Change entry title color', 'Raindrops' ) . "
.entry-title span{ color:red; }
";
$result .= "" . esc_html__( 'Styling Posted on', 'Raindrops' ) . '
" . esc_html__( 'hide posted on from all post', 'Raindrops' ) . "
.posted-on, .entry-meta-default{ display:none;}
" . esc_html__( 'Styling Posted in', 'Raindrops' ) . '
" . esc_html__( 'hide posted in', 'Raindrops' ) . "
.entry-meta{ display:none;}
" . esc_html__( 'Styling Article', 'Raindrops' ) . '
" . esc_html__( 'add border and padding', 'Raindrops' ) . "
article {border:1px solid red;padding:1em;}
"
. "" . esc_html__( 'note:article elements and post_class () You can use all of the elements to be output.', 'Raindrops' ) . "
' . esc_html__( '( optional )', 'Raindrops' ) . '
'; return apply_filters( "raindrops_comment_form", $form ); } } /** * filter function remove area required * * * * */ if ( !function_exists( "raindrops_custom_remove_aria_required" ) ) { function raindrops_custom_remove_aria_required( $arg ) { global $raindrops_document_type; if ( $raindrops_document_type == 'xhtml' ) { $change = array( "aria-required=\"true\"", "aria-required='true'" ); $arg = str_replace( $change, '', $arg ); return $arg; } else { return $arg; } } } /** * Option value set when install. * * * * */ if ( !function_exists( "setup_raindrops" ) ) { function setup_raindrops() { global $wpdb, $raindrops_base_setting; if ( false == RAINDROPS_USE_AUTO_COLOR ) { return; } $raindrops_theme_settings = get_option( 'raindrops_theme_settings' ); foreach ( $raindrops_base_setting as $add ) { $option_name = $add[ 'option_name' ]; if ( !isset( $raindrops_theme_settings[ $option_name ] ) ) { $raindrops_theme_settings[ $option_name ] = $add[ 'option_value' ]; } } $style_type = raindrops_warehouse_clone( "raindrops_style_type" ); $raindrops_indv_css = raindrops_design_output_clone( $style_type ) . raindrops_color_base_clone(); $raindrops_theme_settings[ '_raindrops_indv_css' ] = $raindrops_indv_css; update_option( 'raindrops_theme_settings', $raindrops_theme_settings, "", $add[ 'autoload' ] ); if ( file_exists( get_stylesheet_directory() . '/images/headers/wp3.jpg' ) ) { $raindrops_site_image = get_stylesheet_directory_uri() . '/images/headers/wp3.jpg'; $raindrops_site_thumbnail_image = get_stylesheet_directory_uri() . '/images/headers/wp3-thumbnail.jpg'; } else { $raindrops_site_image = get_template_directory_uri() . '/images/headers/wp3.jpg'; $raindrops_site_thumbnail_image = get_template_directory_uri() . '/images/headers/wp3-thumbnail.jpg'; } set_theme_mod( 'default-image', $raindrops_site_image ); } } /** * image element has attribute 'width','height' and image size > column width * style max-width value 100% set when expand height height attribute value. * * IE filter * */ if ( !function_exists( "raindrops_ie_height_expand_issue" ) ) { function raindrops_ie_height_expand_issue( $content ) { global $is_IE, $content_width; if ( $is_IE ) { preg_match_all( '#(]+)(height|width)(=")([0-9]+)"([^>]+)(height|width)(=")([0-9]+)"([^>]*)>#', $content, $images, PREG_SET_ORDER ); foreach ( $images as $image ) { if ( ( "width" == $image[ 3 ] && $image[ 5 ] > $content_width ) || ( "width" == $image[ 7 ] && $image[ 9 ] > $content_width ) ) { $content = str_replace( $image[ 0 ], $image[ 1 ] . $image[ 2 ] . $image[ 6 ] . $image[ 10 ] . '>', $content ); } } return $content; } else { return $content; } } } /** * Raindrops once message when install. * * * * * */ if ( !function_exists( "raindrops_first_only_msg" ) ) { function raindrops_first_only_msg( $type = 0 ) { global $raindrops_current_theme_name; if ( 1 == $type ) { $query = 'raindrops_settings'; $link = get_site_url( '', 'wp-admin/themes.php', 'admin' ) . '?page=' . $query; if ( version_compare( PHP_VERSION, '5.0.0', '<' ) ) { $msg = sprintf( esc_html__( 'Sorry Your PHP version is %s Please use PHP version 5 || later.', 'Raindrops' ), PHP_VERSION ); } else { $msg = sprintf( esc_html__( 'Thank you for adopting the %1$s theme. It is necessary to set it to this theme. Please move to a set screen clicking this ', 'Raindrops' ) . '' . esc_html__( 'Raindrops settings view', 'Raindrops' ) . '.', $raindrops_current_theme_name, $link ); } } return '' . $msg . '
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 |
'; if ( 10 > $i ) { $output .= "0$i:00"; } else { $output .= "$i:00"; } $output .= ' | ';
if ( isset( $today[ $i ] ) ) {
foreach ( $today[ $i ] as $mytime ) {
$mytime->post_title = raindrops_fallback_title( $mytime->post_title );
$mytime->post_title = preg_replace( '|>.+|', '>[Article ' . $mytime->ID . ']', $mytime->post_title );
$output .= "ID ) ) . "\"
id=\"post-" . absint( $mytime->ID ) . "\">". strip_tags( $mytime->post_title , '' )." "; } } else { $output .= ' '; } $output .= ' |
[WordPress site description]
%7$s
%2$s
%2$s