Statement: Site follow the Attribution-Noncommercial-Share Alike 3.0 Unported agreement. Reprinted please specify switched '; $options['indexggad'] = ''; update_option('SHe_options', $options); } return $options; } function add() { if(isset($_POST['theme_save'])) { $options = ThemeOptions::getOptions(); $options['menu_type'] = stripslashes($_POST['menu_type']); $options['rp_limit'] = stripslashes($_POST['rp_fp_limit']); $options['rp_title'] = stripslashes($_POST['rp_fp_title']); $options['rd_limit'] = stripslashes($_POST['rd_fp_limit']); $options['rc_limit'] = stripslashes($_POST['rc_fp_limit']); $options['keywords'] = stripslashes($_POST['keywords']); $options['description'] = stripslashes($_POST['description']); $options['feedinfo'] = stripslashes($_POST['feedinfo']); $options['indexggad'] = stripslashes($_POST['indexggad']); update_option('SHe_options', $options); } else { ThemeOptions::getOptions(); } add_theme_page(__('Theme Options', 'freephp'), __('Theme Options', 'freephp'), 'edit_themes', basename(__FILE__), array('ThemeOptions', 'display')); } function display() { $options = ThemeOptions::getOptions(); ?>


'uppart', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'midpart', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'downpart', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'leftpart', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); register_sidebar(array( 'name' => 'rightpart', 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

' )); } // get categories name function get_cats_SHe() { $allcats=get_categories(); foreach ($allcats as $category) { $keywords[] = $category->cat_name; } return $keywords; } // utf8 substr function utf8Substr($str, $from, $len) { return preg_replace('#^(?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$from.'}'. '((?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$len.'}).*#s', '$1',$str); } // Meta SEO function meta_SHe() { global $post; $output = ''; $options = get_option('SHe_options'); if (is_single()){ $keywords = ''; $description = ''; if ($post->post_excerpt) { $description = $post->post_excerpt; $description = str_replace("\r\n","",$description); $description = str_replace("\n","",$description); $description = str_replace("\"","'",$description); $description .= '...'; } else { $description = utf8Substr(strip_tags($post->post_content),0,200); $description = str_replace("\r\n","",$description); $description = str_replace("\n","",$description); $description = str_replace("\"","'",$description); $description .= '...'; } $tags = wp_get_post_tags($post->ID); foreach ($tags as $tag ) { $keywordarray[] = $tag->name; } $keywords = implode(',',array_unique((array)$keywordarray)); } else { $keywords = ''; $description = ''; if ($options['keywords'] == '') { $keywords = implode(',',array_unique((array)get_cats_SHe())); } else { $keywords = $options['keywords']; } if ($options['description'] == '') { $description = get_option('blogdescription'); } else { $description = $options['description']; } } $output .= '' . "\n"; $output .= '' . "\n"; if (is_single() OR is_page() OR is_home()) : $output .=''; else : $output .=''; endif; $output .= "\n"; $output .=''; echo "$output\n"; } // remove image css function remove_css_gal() { return "\n" . '