ID, 'featured', TRUE)) { $img = get_post_meta($post->ID, 'featured', TRUE); return $img; } else { } } //Function to change the_excerpt length function the_content_limit($max_char, $more_link_text = '(more...)', $stripteaser = 0, $more_file = '') { $con = get_the_content($more_link_text, $stripteaser, $more_file); $con = apply_filters('the_content', $con); $con = str_replace(']]>', ']]>', $con); $con = strip_tags($con); if (strlen($_GET['p']) > 0) { echo $con; } else if ((strlen($con)>$max_char) && ($espacio = strpos($con, " ", $max_char ))) { $con = substr($con, 0, $espacio); $con = $con; echo $con; echo "..."; } else { echo $con; } } //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 add_action('admin_menu', 'add_welcome_interface'); function add_welcome_interface() { /* add_theme_page( page_title, menu_title, access_level/capability, file, [function]); */ add_theme_page('myMag', 'myMag Options', 'edit_themes', basename(__FILE__), 'editoptions'); } function editoptions() { ?>

myMag Theme Settings Page

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

Navigation Settings

Exclude Pages from Navigation
Type in Page IDs you would like to exclude from menu (Seperated by comma).
Exclude Categories from Navigation
Type in Category IDs you would like to exclude from category menu (Seperated by comma).

Styling Settings

Select a colour scheme
>Blue (Default) >Green >Orange
We have 3 Colour Schemes for you:
BlueGreen Orange
Select the one you like best.

Homepage Settings

Slideshow Category ID
This is the category that will be shown in the Slideshow on the frontpage, use comma to seperate multiple IDs
Slideshow Number
Select the number of posts you want to show in Slideshow, leave empty if you want to show all.
Bottom Slideshow Category ID
Select the category ID you want to show in the slider right beneath the Slideshow, use comma to seperate multiple IDs
Bottom Slideshow Number
Decide how many Posts you would like to show in the Slider. Leave empty to show all.
Recent News Category ID
Set the category ID you want to display next to the Slideshow on "Recent News". Seperate multiple Categories by comma.
Recent News Number
Decide how many Posts you would like to show under Recent News. Leave empty to show all.
Show Featured Articles with thumbs?
>Yes (Default) >No
Decide wether you like to display featured articles with thumb yes or no!
Featured Articles with Thumbs Category ID
This sets the category ID for featured Articles with Thumbnails on Homepage.
Featured Articles with Thumbs Number
Decide how many featured Articles with Thumbnails you would like do display. Leave empty to show all.
Show Featured Articles without thumbs?
>Yes (Default) >No
Decide wether you like to display featured articles without thumb yes or no!
Featured Articles without Thumbs Cat ID
This sets the category ID for featured Articles without Thumbnails on Homepage.
Featured Articles without Thumbs Number
Decide how many featured Articles without Thumbnails you would like do display. Leave empty to show all.
Newsticker Category ID
Decide which category should be shown in the Newsticker. Seperate multiple categories with comma.
Newsticker Number
Decide how many Articles you would like do display in the Newsticker. Leave empty to show all.
Link to contact page
Type in your link to contact page - For example: http://www.wp-themix.org/contact/

Advertisting Settings

Sidebar 120x600px
Enter the code you would like to display as Advertising f.e.
<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>
Header 468x60px
Enter the code you would like to display as Advertising f.e.
<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>

Sidebar Settings

Featured Articles Category ID
This is the category that will be shown on the left side of the Sidebar beneath the Widgets, use comma to seperate multiple IDs
Featured Articles Number
Decide how many Posts you would like to display in the featured article section of the Sidebar.

Footer Settings

Featured Articles Category ID
This is the category that will be shown on the left side of the footer, use comma to seperate multiple IDs
Featured Articles Number
Decide how many Posts you would like to display in the featured article section of the footer.
"About the Website" Post ID
Enter the ID of the post you would like to display on the right side of the footer. The full content will be shown!