"Logo Image Location", "id" => $shortname."_logo_image", "std" => "http://demo.vivathemes.com/themes/almanac/wp-content/uploads/2011/03/logo.png", "desc" => "Enter here your own custom logo image url", "type" => "text4"), array( "name" => "Disable Logo Image?", "desc" => "Select 'YES' if you want to disable the logo image and enable text.", "id" => $shortname."_logo_disable", "type" => "select", "std" => "No", "options" => array("No", "Yes")), ); function mytheme_add_admin() { global $themename, $shortname, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { foreach ($options as $value) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } foreach ($options as $value) { if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $_REQUEST[ $value['id'] ] ); } else { delete_option( $value['id'] ); } } header("Location: themes.php?page=functions.php&saved=true"); die; } else if( 'reset' == $_REQUEST['action'] ) { foreach ($options as $value) { delete_option( $value['id'] ); } header("Location: themes.php?page=functions.php&reset=true"); die; } } add_theme_page($themename." Options", "".$themename." Options", 'edit_themes', basename(__FILE__), 'mytheme_admin'); } function mytheme_admin() { global $themename, $shortname, $options; if ( $_REQUEST['saved'] ) echo '

'.$themename.' settings saved.

'; if ( $_REQUEST['reset'] ) echo '

'.$themename.' settings reset.

'; ?>

Theme Options

" />

" />

" />

" />

" />

" />

__('Left Sidebar'), 'id' => 'leftbar', 'description' => __('The widget ready left sidebar. Drag and drop widgets from the left'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); register_sidebar( array( 'name' => __('Top Widget'), 'id' => 'topwidget', 'description' => __('The widget in the top of the site below the logo, drag and drop widgets from the left'), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', )); ?>

Search this site

category_nicename; } echo $thelist; } add_action( 'init', 'register_my_menu' ); function register_my_menu() { register_nav_menus( array( 'main-menu' => __( 'Main Menu' ) ) ); } function init_my_theme(){ wp_enqueue_script('jquery'); } add_action('init', 'init_my_theme'); add_filter('widget_text', 'do_shortcode'); function bluebutton_shortcode( $atts, $content = null ) { return '' . $content . ''; } add_shortcode('bluebutton', 'bluebutton_shortcode'); function greenbutton_shortcode( $atts, $content = null ) { return '' . $content . ''; } add_shortcode('greenbutton', 'greenbutton_shortcode'); function redbutton_shortcode( $atts, $content = null ) { return '' . $content . ''; } add_shortcode('redbutton', 'redbutton_shortcode'); function brownbutton_shortcode( $atts, $content = null ) { return '' . $content . ''; } add_shortcode('brownbutton', 'brownbutton_shortcode'); function darkbutton_shortcode( $atts, $content = null ) { return '' . $content . ''; } add_shortcode('darkbutton', 'darkbutton_shortcode'); function lightbutton_shortcode( $atts, $content = null ) { return '' . $content . ''; } add_shortcode('lightbutton', 'lightbutton_shortcode'); function smallblue_shortcode( $atts, $content = null ) { return '' . $content . ''; } add_shortcode('smallblue', 'smallblue_shortcode'); function smallgreen_shortcode( $atts, $content = null ) { return '' . $content . ''; } add_shortcode('smallgreen', 'smallgreen_shortcode'); function smallred_shortcode( $atts, $content = null ) { return '' . $content . ''; } add_shortcode('smallred', 'smallred_shortcode'); function smallbrown_shortcode( $atts, $content = null ) { return '' . $content . ''; } add_shortcode('smallbrown', 'smallbrown_shortcode'); function smalldark_shortcode( $atts, $content = null ) { return '' . $content . ''; } add_shortcode('smalldark', 'smalldark_shortcode'); function smalllight_shortcode( $atts, $content = null ) { return '' . $content . ''; } add_shortcode('smalllight', 'smalllight_shortcode'); function alert_shortcode( $atts, $content = null ) { return '

' . $content . '

'; } add_shortcode('alert', 'alert_shortcode'); function cart_shortcode( $atts, $content = null ) { return '

' . $content . '

'; } add_shortcode('cart', 'cart_shortcode'); function doc_shortcode( $atts, $content = null ) { return '

' . $content . '

'; } add_shortcode('doc', 'doc_shortcode'); function download_shortcode( $atts, $content = null ) { return '

' . $content . '

'; } add_shortcode('download', 'download_shortcode'); function halfcolumn_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } add_shortcode('halfcolumn', 'halfcolumn_shortcode'); function onethirdcolumn_shortcode( $atts, $content = null ) { return '
' . $content . '
'; } add_shortcode('onethirdcolumn', 'onethirdcolumn_shortcode'); ?>