ID, 'featured', TRUE)) { $img = get_post_meta($post->ID, 'featured', TRUE); return $img; } else { } } //Limit the Content function new_excerpt($limit) { $excerpt = explode(' ', get_the_excerpt(), $limit); if (count($excerpt)>=$limit) { array_pop($excerpt); $excerpt = implode(" ",$excerpt).'...'; } else { $excerpt = implode(" ",$excerpt); } $excerpt = preg_replace('`\[[^\]]*\]`','',$excerpt); return $excerpt; } //Make new excerpt Link function change_excerpt($content) { $content = str_replace('[...]','...',$content); // remove [...], replace with ... $content = strip_tags($content); // remove HTML return $content; } add_filter('the_excerpt','change_excerpt'); //Register Sidebars register_sidebar(array( 'name' => 'Footer Sidebar', 'description' => 'Widgets in this area will be shown in the center footer column', 'before_title' => '

', 'after_title' => '

')); register_sidebar(array( 'name' => 'Home Sidebar', 'description' => 'Widgets in this area will be shown in the Sidebar on Homepage', 'before_title' => '

', 'after_title' => '

')); register_sidebar(array( 'name' => 'Sub Sidebar', 'description' => 'Widgets in this area will be shown in the Sidebar on Subpages/Posts/Archives etc.', 'before_title' => '

', 'after_title' => '

')); //Styling Tag Cloud function style_tag_cloud($tags) { $tags = preg_replace_callback("|(class='tag-link-[0-9]+)('.*?)(style='font-size: )([0-9]+)(pt;')|", create_function( '$match', '$low=1; $high=5; $sz=($match[4]-8.0)/(22-8)*($high-$low)+$low; return "{$match[1]} tagsz-{$sz}{$match[2]}";' ), $tags); return $tags; } //Loading Theme Options Framework $themename = "myMag"; $shortname = "mag"; $options = array ( array( "type" => "open", "title" => "Navigation Settings" ), array( "name" => "Exclude Pages from Navigation", "desc" => "Type in Page IDs you would like to exclude from menu (Seperated by comma).", "id" => "pages_excl", "type" => "text", "std" => ""), array( "name" => "Limit Pages", "desc" => "Type in a number to limit the pages being displayed in the menu. Type 0 to show all the Pages. By default the number of pages is limited to 10", "id" => "pages_limit", "type" => "text", "std" => ""), array( "name" => "Exclude Categories from Navigation", "desc" => "Type in Category IDs you would like to exclude from category menu (Seperated by comma).", "id" => "cat_excl", "type" => "text", "std" => ""), array( "name" => "Limit Categories", "desc" => "Type in a number to limit the categories being displayed in the menu. Type 0 to show all Categories. By default the number of categories is limited to 10", "id" => "cat_limit", "type" => "text", "std" => ""), array( "type" => "close"), array( "type" => "open", "title" => "Styling Settings" ), array( "name" => "Select a colour scheme", "desc" => "We have 5 Colour Schemes for you:", "id" => "colour_scheme", "options" => array("blue", "green", "orange", "red", "purple"), "type" => "select", "std" => ""), array( "type" => "close"), array( "type" => "open", "title" => "Homepage Settings" ), array( "name" => "Slideshow Category ID", "desc" => "This is the category that will be shown in the Slideshow on the frontpage, use comma to seperate multiple IDs", "id" => "slide_cat", "type" => "text", "std" => ""), array( "name" => "Slideshow Number", "desc" => "Select the number of posts you want to show in Slideshow, leave empty if you want to show all.", "id" => "slide_posts", "type" => "text", "std" => ""), array( "name" => "Bottom Slideshow Category ID", "desc" => "Select the category ID you want to show in the slider right beneath the Slideshow, use comma to seperate multiple IDs", "id" => "bottom_cat", "type" => "text", "std" => ""), array( "name" => "Bottom Slideshow Number", "desc" => "Decide how many Posts you would like to show in the Slider. Leave empty to show all.", "id" => "bottom_posts", "type" => "text", "std" => ""), array( "name" => "Recent News Category ID", "desc" => "Set the category ID you want to display next to the Slideshow on \"Recent News\". Seperate multiple Categories by comma.", "id" => "recent_cat", "type" => "text", "std" => ""), array( "name" => "Recent News Number", "desc" => "Decide how many Posts you would like to show under Recent News. Leave empty to show all.", "id" => "recent_posts", "type" => "text", "std" => ""), array( "name" => "Show Featured Articles with thumbs?", "desc" => "Decide wether you like to display featured articles with thumb yes or no!", "id" => "show_thumbs", "options" => array("yes", "no"), "type" => "selectnormal", "std" => ""), array( "name" => "Featured Articles with Thumbs Category ID", "desc" => "This sets the category ID for featured Articles with Thumbnails on Homepage.", "id" => "feat_cat", "type" => "text", "std" => ""), array( "name" => "Featured Articles with Thumbs Number", "desc" => "Decide how many featured Articles with Thumbnails you would like do display. Leave empty to show all.", "id" => "feat_posts", "type" => "text", "std" => ""), array( "name" => "Show Featured Articles without thumbs?", "desc" => "Decide wether you like to display featured articles without thumb yes or no!", "id" => "show_no_thumbs", "options" => array("yes", "no"), "type" => "selectnormal", "std" => ""), array( "name" => "Featured Articles without Thumbs Cat ID", "desc" => "This sets the category ID for featured Articles without Thumbnails on Homepage.", "id" => "feat_no_cat", "type" => "text", "std" => ""), array( "name" => "Featured Articles without Thumbs Number", "desc" => "Decide how many featured Articles without Thumbnails you would like do display. Leave empty to show all.", "id" => "feat_no_posts", "type" => "text", "std" => ""), array( "name" => "Show Newsticker?", "desc" => "Decide wether you like to display the Newsticker yes or no!", "id" => "show_newsticker", "options" => array("yes", "no"), "type" => "selectnormal", "std" => ""), array( "name" => "Newsticker Category ID", "desc" => "Decide which category should be shown in the Newsticker. Seperate multiple categories with comma.", "id" => "ticker_cat", "type" => "text", "std" => ""), array( "name" => "Newsticker Number", "desc" => "Decide how many Articles you would like do display in the Newsticker. Leave empty to show all.", "id" => "ticker_posts", "type" => "text", "std" => ""), array( "name" => "Link to contact page", "desc" => "Type in your link to contact page - For example: http://www.wp-themix.org/contact/", "id" => "contact_link", "type" => "text", "std" => ""), array( "type" => "close"), array( "type" => "open", "title" => "Advertisting Settings" ), array( "name" => "Sidebar 120x600px", "desc" => "<a href=\"http://wpwebhost.com/affiliate/idevaffiliate.php?id=1073_0_1_32\" target=\"_blank\"> <img border=\"0\" src=\"http://wpwebhost.com/affiliate/banners/wp120x600.gif\" width=\"120\" height=\"600\"></a>", "id" => "sidebar_banner", "type" => "textarea", "std" => ""), array( "name" => "Header 468x60px", "desc" => "<a href=\"http://wpwebhost.com/affiliate/idevaffiliate.php?id=1073_0_1_32\" target=\"_blank\"> <img border=\"0\" src=\"http://wpwebhost.com/affiliate/banners/wp120x600.gif\" width=\"120\" height=\"600\"></a>", "id" => "header_banner", "type" => "textarea", "std" => ""), array( "type" => "close"), array( "type" => "open", "title" => "Sidebar Settings" ), array( "name" => "Featured Articles Category ID", "desc" => "This is the category that will be shown on the left side of the Sidebar beneath the Widgets, use comma to seperate multiple IDs", "id" => "side_feat", "type" => "text", "std" => ""), array( "name" => "Featured Articles Number", "desc" => "Decide how many Posts you would like to display in the featured article section of the Sidebar.", "id" => "side_posts", "type" => "text", "std" => ""), array( "type" => "close"), array( "type" => "open", "title" => "Footer Settings" ), array( "name" => "Featured Articles Category ID", "desc" => "This is the category that will be shown on the left side of the footer, use comma to seperate multiple IDs", "id" => "footer_feat", "type" => "text", "std" => ""), array( "name" => "Featured Articles Number", "desc" => "Decide how many Posts you would like to display in the featured article section of the footer.", "id" => "footer_posts", "type" => "text", "std" => ""), array( "name" => "\"About the Website\" Post ID", "desc" => "Enter the ID of the post you would like to display on the right side of the footer. The full content will be shown!", "id" => "about_post", "type" => "text", "std" => ""), array( "type" => "close") ); // create the Options page on the admin side function mytheme_add_admin() { global $themename, $shortname, $options; if ( $_GET['page'] == basename(__FILE__) ) { if ( 'save' == $_REQUEST['action'] ) { $myOptions = array(); foreach ($options as $value) { $myOptions[$value['id']]=$_REQUEST[ $value['id'] ]; } update_option('myOptions', $myOptions); if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option('myOptions', $myOptions); } 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 Options page to the admin menu add_theme_page($themename." Options", "$themename Options", 'edit_themes', basename(__FILE__), 'mytheme_admin'); } function mytheme_admin() { global $themename, $shortname, $options; ?>
Dontators who donate at least $5 will receive a lifetime backlink from our Supporters Page. (write an E-Mail with link and linktext to supporters@wp-themix.org if you have made an donation).

myMag Theme Settings Page

'.$themename.' settings saved.

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

'.$themename.' settings reset.

'; ?> Thumbnails not working - Please give write permission to Theme (myMag) Folder (755 or 777)
You cannot upload images because the folder "wp-content/themes/mymag/images/logos/ is not writeable please CHMOD this folder to 755 or 777

Custom Logo




Select your Logo to upload. Your Logo should not be higher than 175px. The width can be up to 500px.

Current Logo



Delete this image

Current Logo



Delete this image


" />



BlueGreen Orange
Red Purple
Select the one you like best.


/>