Beispiel #1
0
    function raindrops_embed_css()
    {
        global $post, $raindrops_fluid_or_fixed, $raindrops_fluid_minimum_width, $raindrops_wp_version, $raindrops_current_theme_name, $raindrops_page_width, $raindrops_base_font_size, $raindrops_custom_header_width, $raindrops_custom_header_height, $raindrops_current_column, $raindrops_setting_type, $raindrops_use_transient, $raindrops_automatic_color;
        $css = apply_filters('raindrops_embed_css_pre', '');
        $css .= '/* raindrops_embed_css */';
        //preload
        $css_rule_set = 'body:after{display:none; content: url(%1$s);}';
        $css .= "\n" . sprintf($css_rule_set, get_header_image());
        //#header-image
        $css .= "\n" . raindrops_header_image('css') . "\n";
        //#header-image bounse issue fixed
        $css_rule_set = '#header-imge{ width:%1$spx;height:%2$spx;}';
        $css .= "\n" . sprintf($css_rule_set, $raindrops_custom_header_width, apply_filters('raindrops_header_image_height', $raindrops_custom_header_height));
        //site-title
        $raindrops_text_color = get_theme_mod('header_textcolor', 'dddddd');
        if ($raindrops_text_color !== 'blank' && display_header_text() == true && false == raindrops_has_indivisual_notation() && false == $raindrops_automatic_color) {
            $css .= "\n#site-title a{color:#" . $raindrops_text_color . ';}';
        }
        //page type
        if (isset($raindrops_fluid_or_fixed) && !empty($raindrops_fluid_or_fixed) && ('doc' == raindrops_warehouse_clone("raindrops_page_width") || 'doc2' == raindrops_warehouse_clone("raindrops_page_width") || 'custom-doc' == raindrops_warehouse_clone("raindrops_page_width") || 'doc4' == raindrops_warehouse_clone("raindrops_page_width"))) {
            $css .= raindrops_is_fixed();
        } elseif (isset($raindrops_fluid_minimum_width) && !empty($raindrops_fluid_minimum_width) || 'doc5' == raindrops_warehouse_clone("raindrops_page_width")) {
            $css .= raindrops_is_fluid();
        }
        //#hd
        $uploads = wp_upload_dir();
        $header_image_uri = $uploads['url'] . '/' . raindrops_warehouse('raindrops_header_image');
        if ('raindrops' !== $raindrops_current_theme_name && 'header.png' == raindrops_warehouse('raindrops_header_image')) {
            $header_image_uri = str_replace($raindrops_current_theme_name, 'raindrops', $header_image_uri);
        }
        $css .= "\n#hd{" . raindrops_upload_image_parser($header_image_uri, 'inline', '#hd') . '}';
        //#ft
        $footer_image_uri = $uploads['url'] . '/' . raindrops_warehouse('raindrops_footer_image');
        if ('raindrops' !== $raindrops_current_theme_name && 'footer.png' == raindrops_warehouse('raindrops_footer_image')) {
            $footer_image_uri = str_replace($raindrops_current_theme_name, 'raindrops', $footer_image_uri);
        }
        $css .= "\n#ft{" . raindrops_upload_image_parser($footer_image_uri, 'inline', '#ft') . '}';
        /* 1.306 add conditional */
        if (false == raindrops_has_indivisual_notation()) {
            if (false == $raindrops_automatic_color) {
                $css .= "\n#ft{color:" . raindrops_warehouse('raindrops_footer_color') . ';}';
            }
        }
        // 2col 3col change style helper
        $css .= '/*' . raindrops_warehouse_clone('raindrops_show_right_sidebar') . '*/';
        if ("show" == raindrops_warehouse_clone('raindrops_show_right_sidebar')) {
            $css .= ' .rsidebar{display:block;} ';
        } else {
            $css .= ' .rsidebar{display:none;} ';
            $css .= '.yui-t6 .index.archives,.yui-t5 .index.archives,.yui-t4 .index.archives{
					 margin-right:1em;	}';
        }
        if ("hide" == raindrops_warehouse_clone('raindrops_display_article_author')) {
            $css .= ' .posted-by-string{display:none;} .raindrops-comment-link{margin:0;} ';
        }
        if ("avatar" == raindrops_warehouse_clone('raindrops_display_article_author')) {
            $css .= 'body:not(.ja) .posted-by-string{visibility:hidden;margin:-.5em;} ';
        }
        if ("hide" == raindrops_warehouse_clone('raindrops_posted_in_label')) {
            $css .= ' .entry-meta .tagged, .this-posted-in{display:none;} ';
        }
        if ("show" !== raindrops_warehouse_clone('raindrops_comments_are_closed')) {
            $css .= ' .nocomments{display:none;} ';
        }
        $raindrops_archive_title_label = raindrops_warehouse_clone('raindrops_archive_title_label');
        if ("hide" == $raindrops_archive_title_label) {
            $css .= ' #archives-title .label{display:none;} ';
        } elseif ("emoji" == $raindrops_archive_title_label) {
            $css .= ' #archives-title .label{display:none;} ';
            $css .= ' #archives-title .title:before{ content: \'' . raindrops_emoji_collection() . '\';display:inline-block;margin-right:13px; }';
        }
        if ("show" !== raindrops_warehouse_clone('raindrops_archive_nav_above')) {
            $css .= ' #nav-above{display:none;} ';
        }
        /* ver 1.304 add */
        $raindrops_fonts_color = raindrops_warehouse_clone('raindrops_default_fonts_color');
        if ($raindrops_fonts_color !== '' && false == raindrops_has_indivisual_notation()) {
            /* 1.306 add false == raindrops_has_indivisual_notation() */
            if (false == $raindrops_automatic_color) {
                $css .= ' article {color:' . $raindrops_fonts_color . ';}';
            }
        }
        /**
         * Add @version 1.304
         */
        $raindrops_sticky_conditional = raindrops_warehouse_clone('raindrops_display_sticky_post');
        if ('only_home' == $raindrops_sticky_conditional) {
            $css .= ' .single .raindrops-sticky .entry-title, .single .raindrops-sticky .entry-content{ display:none; }';
        }
        /**
         * Add @since 1.309
         *
         */
        //
        $raindrops_display_default_category = raindrops_warehouse_clone('raindrops_display_default_category');
        if ('show' !== $raindrops_display_default_category) {
            //$css .= ' .this-posted-in{ display:none; }';
        }
        //when manual style rule mode
        if (raindrops_warehouse_clone("raindrops_style_type") == $raindrops_current_theme_name) {
            return $css . raindrops_warehouse_clone('_raindrops_indv_css');
        }
        /* 0611 1.301
         * $raindrops_options			 = get_option( 'raindrops_theme_settings' );
         */
        $raindrops_base_color = raindrops_warehouse_clone('raindrops_base_color');
        $raindrops_hyperlink_color = raindrops_warehouse_clone('raindrops_hyperlink_color');
        $raindrops_style_type = raindrops_warehouse_clone('raindrops_style_type');
        $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($raindrops_base_color);
        //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 !== '') {
            if (false !== ($type = raindrops_has_indivisual_notation())) {
                if (isset($type['color_type'])) {
                    $default_color = raindrops_default_color_clone('raindrops_hyperlink_color', $type['color_type']);
                    $css .= raindrops_custom_link_color($default_color);
                }
            } else {
                /* 1.306 add conditional */
                if (false == raindrops_has_indivisual_notation()) {
                    if (false == $raindrops_automatic_color) {
                        $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;}';
        }
        //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 . ';}';
        } 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 .children li{width:100%;}';
                $css .= '#access .sub-menu li{width:100%;}';
                $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 = "\n" . '#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);
        }
        $raindrops_sitewide_css = raindrops_warehouse_clone('raindrops_sitewide_css');
        if (isset($raindrops_sitewide_css) && !empty($raindrops_sitewide_css)) {
            $css .= ' ' . wp_strip_all_tags($raindrops_sitewide_css);
        }
        if (empty($css)) {
            $css = "cannot get style value check me";
        }
        if (WP_DEBUG !== true) {
            $css = str_replace(array("\n", "\r", "\t", '&quot;', '--', '\\"'), array("", "", "", '"', '', '"'), $css);
        } else {
            $css = str_replace(array('&quot;', '--', '\\"'), array('"', '', '"'), $css);
        }
        return apply_filters("raindrops_embed_meta_css", $css);
    }
Beispiel #2
0
 /**
  *
  *
  *
  *
  *
  */
 function raindrops_form_user_input()
 {
     global $raindrops_base_setting;
     global $wpdb;
     global $raindrops_wp_version;
     global $raindrops_current_theme_name;
     global $raindrops_current_data_theme_uri;
     $option_value = "-";
     $lines = "";
     $i = 0;
     $deliv = filter_input(INPUT_ENV, 'REQUEST_URI');
     $results = get_option('raindrops_theme_settings');
     if ($results == false) {
         $this->first_save_to_database = 'yes';
         $results = array();
         foreach ($raindrops_base_setting as $key => $row) {
             $raindrops_option_name = $raindrops_base_setting[$key]['option_name'];
             $raindrops_option_value = $raindrops_base_setting[$key]['option_value'];
             $results[$raindrops_option_name] = $raindrops_base_setting[$key]['option_value'];
         }
     }
     foreach ($raindrops_base_setting as $key => $row) {
         $raindrops_option_name = $raindrops_base_setting[$key]['option_name'];
         $raindrops_option_value = $raindrops_base_setting[$key]['option_value'];
         if (!empty($results[$raindrops_option_name])) {
             $raindrops_sort[$raindrops_option_name] = $results[$raindrops_option_name];
         } else {
             $raindrops_sort[$raindrops_option_name] = $raindrops_option_value;
         }
     }
     $results = $raindrops_sort;
     $current_heading_image = raindrops_warehouse("raindrops_heading_image");
     $raindrops_navigation_add = '';
     $raindrops_navigation_list = '<div class="raindrops-navigation-wrapper"><h3 class="raindrops-navigation-title">' . __('WordPress Native Theme Options', 'raindrops') . '</h3><ul style="margin-bottom:5px;" class="raindrops-native-menu">';
     $raindrops_navigation_list .= '<li><a href="' . admin_url('customize.php') . '">' . esc_html__('Theme customizer', 'raindrops') . '</a></li>';
     $raindrops_navigation_list .= '<li><a href="' . admin_url('themes.php?page=custom-header') . '">' . esc_html__('Custom Header', 'raindrops') . '</a></li>';
     $raindrops_navigation_list .= '<li><a href="' . admin_url('themes.php?page=custom-background') . '">' . esc_html__('Custom Background', 'raindrops') . '</a></li>';
     $raindrops_navigation_list .= '<li><a href="' . admin_url('widgets.php') . '">' . esc_html__('Widget', 'raindrops') . '</a></li>';
     $raindrops_navigation_list .= '<li><a href="' . admin_url('nav-menus.php') . '">' . esc_html__('Menus', 'raindrops') . '</a></li>';
     $raindrops_navigation_list .= '<li><a href="' . admin_url('theme-editor.php') . '">' . esc_html__('Theme Editor', 'raindrops') . '</a></li>';
     $raindrops_navigation_list .= '</ul>';
     if (true == RAINDROPS_USE_AUTO_COLOR) {
         $raindrops_navigation_list .= '<h3 class="raindrops-navigation-title">' . __('Raindrops Extend Theme Options', 'raindrops') . '</h3><ul id="raindrops_navigation_list" class="raindrops-options-menu">';
     } else {
         $raindrops_navigation_list = '<div class="raindrops-navigation-wrapper">';
     }
     $raindrops_navigation_add = '';
     unset($results['_raindrops_indv_css']);
     unset($results['install']);
     $lines .= "<form action=\"{$deliv}\" method=\"post\">" . wp_nonce_field('update-options');
     foreach ($results as $key => $val) {
         $add_box = '';
         if (true == RAINDROPS_USE_AUTO_COLOR) {
             $raindrops_navigation_list .= '<li><a href="#' . str_replace("_", "-", $key) . '">' . raindrops_admin_meta($key, 'title') . '</a></li>';
             if ('raindrops_base_color' == $key) {
                 $raindrops_navigation_add = '<ul style="padding:0 30px;"><li><a href="#raindrops-style-type">' . __('go to Color Type', 'raindrops') . '</a></li></ul>';
             } elseif ('raindrops_header_image' == $key || 'raindrops_footer_image' == $key) {
                 $raindrops_navigation_add = '<ul style="padding:0 30px;"><li><a href="#raindrops_upload_form">' . __('Go to upload form', 'raindrops') . '</a></li></ul>';
             } elseif ('raindrops_style_type' == $key) {
                 $raindrops_navigation_add = '<ul style="padding:0 30px;"><li><a href="#raindrops-base-color">' . __('Go to Base Color', 'raindrops') . '</a></li></ul>';
             } else {
                 $raindrops_navigation_add = '';
             }
         }
         $excerpt = "";
         $table = sprintf($this->table_template, str_replace("_", "-", $key));
         $excerpt = sprintf($this->title_template, str_replace("_", "-", $key), str_replace("_", " ", $key), raindrops_admin_meta($key, 'title'));
         $excerpt .= sprintf($this->excerpt_template, raindrops_admin_meta($key, 'excerpt2'));
         if (!empty($excerpt)) {
             $excerpt = '<div class="postbox" style="margin:1em;color:#339999">' . $excerpt;
         } else {
             $excerpt = "";
         }
         if (preg_match("!([0-9a-f]{6}|[0-9a-f]{3})!si", $val)) {
             $style = "background:" . $val . ';';
         } else {
             $style = "";
         }
         if (preg_match("!\\.(png|gif|jpeg|jpg)\$!i", $val) && $key !== "raindrops_footer_image" && $key !== "raindrops_header_image") {
             if (file_exists(get_stylesheet_directory() . "/images/" . $val)) {
                 $style .= "background:url(" . get_stylesheet_directory_uri() . "/images/" . $val . ');';
             } else {
                 $style .= "background:url(" . get_template_directory_uri() . "/images/" . $val . ');';
             }
         } else {
             $style .= '';
         }
         if (empty($style)) {
             $style .= 'visibility:hidden';
             $table_header = '<thead><tr><th>&nbsp;</th><th>' . __("Value", 'raindrops') . '</th><th>' . __("Edit", 'raindrops') . '</th><th style="width:6em;">&nbsp;</th></tr></thead>';
         } else {
             $table_header = '<thead><tr><th >' . __("Color", 'raindrops') . '</th><th>' . __("Value", 'raindrops') . '</th><th>' . __("Edit", 'raindrops') . '</th><th style="width:6em;">&nbsp;</th></tr></thead>';
         }
         if (false == RAINDROPS_USE_AUTO_COLOR && ("raindrops_footer_color" == $key or "raindrops_default_fonts_color" == $key or "raindrops_base_color" == $key or "raindrops_header_image" == $key or "raindrops_footer_image" == $key or "raindrops_heading_image_position" == $key or "raindrops_heading_image" == $key or "raindrops_style_type" == $key or "raindrops_hyperlink_color" == $key or "raindrops_color_scheme" == $key)) {
             continue;
         }
         $lines .= $excerpt;
         $lines .= $table;
         $lines .= $table_header;
         $lines .= '<tbody>';
         $lines .= '<tr>';
         $lines .= '<td style="display:none;">';
         $lines .= '<input type="text" name="option_id" value="' . $i . '" />' . $i . '</td>';
         //background setting
         if ("raindrops_heading_image_position" == $key) {
             if (file_exists(get_stylesheet_directory() . '/images/' . $current_heading_image)) {
                 $lines .= '<td style="background:url( ' . get_stylesheet_directory_uri() . '/images/' . $current_heading_image . ' );"><img src="' . get_stylesheet_directory_uri() . '/images/number.png" />';
             } elseif (file_exists(get_template_directory() . '/images/' . $current_heading_image)) {
                 $lines .= '<td style="background:url( ' . get_template_directory_uri() . '/images/' . $current_heading_image . ' );"><img src="' . get_template_directory_uri() . '/images/number.png" />';
             } else {
                 $lines .= '<td><img src="' . get_template_directory_uri() . '/images/number.png" />';
             }
         } elseif ($key == "raindrops_header_image") {
             $uploads = wp_upload_dir();
             $header_image_uri = $uploads['url'] . '/' . raindrops_warehouse('raindrops_header_image');
             $lines .= '<td colspan="4" style="height:150px;' . raindrops_upload_image_parser($header_image_uri, 'inline', '#hd') . '"></td></tr><tr><td>&nbsp;</td>';
         } elseif ($key == "raindrops_footer_image") {
             $uploads = wp_upload_dir();
             $footer_image_uri = $uploads['url'] . '/' . raindrops_warehouse('raindrops_footer_image');
             $lines .= '<td colspan="4" style="height:150px;' . raindrops_upload_image_parser($footer_image_uri, 'inline', '#ft') . '" ></td></tr><tr><td>&nbsp;</td>';
         } else {
             $lines .= '<td style="' . $style . '">';
         }
         $lines .= '<input type="hidden" name="option_name" value="' . esc_attr($key) . '" read-only="read-only" /></td>';
         $lines .= '<td>' . esc_html($val) . '</td>';
         if ($key == "raindrops_hyperlink_color" || $key == "raindrops_base_color" || $key == "raindrops_footer_color" || $key == "raindrops_default_fonts_color") {
             $lines .= "<td>" . $this->raindrops_color_selector($key, esc_attr($val), $i) . "</td>";
         } elseif ($key == "raindrops_col_width") {
             $lines .= '<td>';
             $lines .= sprintf($this->line_select_element, $this->accesskey[$i], 'raindrops_option_values[' . $key . ']', 6, 120);
             foreach ($this->col_settings_raindrops_col_width as $key => $current) {
                 $lines .= '<option value="' . esc_attr($current) . '" ' . selected(strcmp($val, $current), 0, false) . '>' . esc_html($key) . '</option>';
             }
             $lines .= '</select></td>';
         } elseif ($key == "raindrops_page_width") {
             $lines .= '<td>';
             $lines .= sprintf($this->line_select_element, esc_attr($this->accesskey[$i]), 'raindrops_option_values[' . $key . ']', 4, 80);
             foreach ($this->col_settings_raindrops_page_width as $key => $current) {
                 $lines .= '<option value="' . esc_attr($current) . '" ' . selected(strcmp($val, $current), 0, false) . '>' . esc_html($key) . '</option>';
             }
             $lines .= '</select></td>';
         } elseif ($key == "raindrops_show_right_sidebar") {
             $lines .= '<td>';
             $lines .= sprintf($this->line_select_element, esc_attr($this->accesskey[$i]), 'raindrops_option_values[' . $key . ']', 2, 40);
             foreach ($this->col_settings_raindrops_show_right_sidebar as $key => $current) {
                 $lines .= '<option value="' . esc_attr($current) . '" ' . selected(strcmp($val, $current), 0, false) . '>' . esc_html($key) . '</option>';
             }
             $lines .= '</select></td>';
         } elseif ($key == "raindrops_right_sidebar_width_percent") {
             $lines .= '<td>';
             $lines .= sprintf($this->line_select_element, esc_attr($this->accesskey[$i]), 'raindrops_option_values[' . $key . ']', 5, 100);
             foreach ($this->col_settings_raindrops_right_sidebar_width_percent as $key => $current) {
                 $lines .= '<option value="' . esc_attr($current) . '" ' . selected(strcmp($val, $current), 0, false) . '>' . esc_html($key) . '</option>';
             }
             $lines .= '</select></td>';
         } elseif ($key == "raindrops_style_type") {
             $lines .= '<td>';
             $lines .= sprintf($this->line_select_element, $this->accesskey[$i], 'raindrops_option_values[' . $key . ']', 3, 60);
             foreach ($this->col_settings_raindrops_style_type as $key => $current) {
                 $lines .= '<option value="' . esc_attr($current) . '" ' . selected(strcmp($val, $current), 0, false) . '>' . esc_html($key) . '</option>';
             }
             $lines .= '</select></td>';
         } elseif ($key == "raindrops_heading_image") {
             $lines .= '<td style="height:225px">';
             $lines .= '<input accesskey="' . esc_attr($this->accesskey[$i]) . '" type="text" name="raindrops_option_values[' . $key . ']" value="' . esc_attr($val) . '"';
             $lines .= ' /></td>';
         } elseif ($key == "raindrops_color_scheme") {
             $lines .= '<td>';
             $lines .= sprintf($this->line_select_element, $this->accesskey[$i], 'raindrops_option_values[' . $key . ']', 3, 60);
             foreach ($this->col_settings_raindrops_color_scheme as $key => $current) {
                 $lines .= '<option value="' . esc_attr($current) . '" ' . selected(strcmp($val, $current), 0, false) . '>' . esc_html($key) . '</option>';
             }
         } else {
             $lines .= '<td>';
             if (isset($this->accesskey[$i])) {
                 $lines .= '<input accesskey="' . esc_attr($this->accesskey[$i]) . '" type="text" name="raindrops_option_values[' . $key . ']" value="' . esc_attr($val) . '"';
             } else {
                 $lines .= '<input type="text" name="raindrops_option_values[' . $key . ']" value="' . esc_attr($val) . '"';
             }
             $lines .= ' /></td>';
         }
         $i++;
         $lines .= "<td style=\"vertical-align:bottom;text-align:right;\"><input type=\"submit\" class=\"button-primary\" value=\"" . esc_attr__('Save', 'raindrops') . '" /></td>';
         $lines .= '</tr>';
         $send_key_name = "";
         $lines .= "</tbody></table><br />{$add_box}{$raindrops_navigation_add}</div>";
     }
     // foreach ( $results as $key => $val )
     $lines .= "<div style=\"margin:0 50px;\"><input type=\"submit\" class=\"button-primary\" value=\"" . esc_attr('Save Changes') . '" />&nbsp;&nbsp;&nbsp;';
     $lines .= "<input type=\"submit\" name=\"reset\" class=\"button-primary\" value=\"" . esc_attr('Reset All Settings') . '" /></form><br style="clear:both;</div>"';
     $lines .= "</div>";
     if (!preg_match('|<tbody>|', $lines)) {
         $lines .= "<tbody><tr><td colspan=\"4\">" . __("Please reload this page ex. windows F5", 'raindrops') . '</td></tr></tbody>';
     }
     $lines .= raindrops_upload_form();
     if (is_child_theme()) {
         $raindrops_theme_name = 'Child theme ' . ucwords(wp_get_theme()) . ' of ' . __("Raindrops Theme", 'raindrops');
     } else {
         $raindrops_theme_name = esc_html__("Raindrops Theme", 'raindrops');
     }
     if (true == RAINDROPS_USE_AUTO_COLOR) {
         $add_infomation = sprintf('<div class="raindrops-option-footer-infomation"><a href="%s">%s</a></div>', $raindrops_current_data_theme_uri, $raindrops_theme_name);
     } else {
         $add_infomation = sprintf('<div class="raindrops-option-footer-infomation"><a href="%s">%s</a>%s</div>', $raindrops_current_data_theme_uri, $raindrops_theme_name, '&nbsp;&nbsp;<span class="raindrops-use-auto-color-disable">' . __("Now constant RAINDROPS_USE_AUTO_COLOR is false", 'raindrops') . '</span>');
     }
     return apply_filters('raindrops_form_user_input', $raindrops_navigation_list . '</ul>' . $add_infomation . '</div>' . $lines . '<br style="clear:both" />');
 }