Exemplo n.º 1
0
<?php

require_once TEMPLATEPATH . '/lib/Themater.php';
$theme = new Themater('EducationWP');
$theme->options['includes'] = array('featuredposts', 'social_profiles');
$theme->options['plugins_options']['featuredposts'] = array('hook' => 'main_before', 'image_sizes' => '930px. x 300px.', 'effect' => 'fade');
if ($theme->is_admin_user()) {
    unset($theme->admin_options['Ads']);
}
if ($theme->is_admin_user()) {
    $theme->admin_options['Layout']['content']['featured_image_width']['content']['value'] = '150';
    $theme->admin_options['Layout']['content']['featured_image_height']['content']['value'] = '90';
}
// Footer widgets
$theme->admin_option('Layout', 'Footer Widgets Enabled?', 'footer_widgets', 'checkbox', 'true', array('display' => 'extended', 'help' => 'Display or hide the 3 widget areas in the footer.', 'priority' => '15'));
$theme->load();
register_sidebar(array('name' => __('Primary Sidebar', 'themater'), 'id' => 'sidebar_primary', 'description' => __('The primary sidebar widget area', 'themater'), 'before_widget' => '<ul class="widget-container"><li id="%1$s" class="widget %2$s">', 'after_widget' => '</li></ul>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>'));
$theme->add_hook('sidebar_primary', 'sidebar_primary_default_widgets');
function sidebar_primary_default_widgets()
{
    global $theme;
    $theme->display_widget('Search');
    $theme->display_widget('SocialProfiles');
    $theme->display_widget('Banners125', array('banners' => array('<a href="http://fthemes.com" target="_blank"><img src="http://fthemes.com/wp-content/pro/b1.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a><a href="http://freewpthemesblog.com" target="_blank"><img src="http://freewpthemesblog.com/wp-content/pro/fwt.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a>')));
    $theme->display_widget('Facebook', array('url' => 'http://www.facebook.com/FThemes'));
    $theme->display_widget('Tabs');
    $theme->display_widget('Tweets', array('username' => 'FThemes'));
    $theme->display_widget('Archives');
    $theme->display_widget('Tag_Cloud');
    $theme->display_widget('Text', array('text' => '<div style="text-align:center;"><a href="http://fthemes.com" target="_blank"><img src="http://fthemes.com/wp-content/pro/b3.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a></div>'));
}
Exemplo n.º 2
0
<?php

require_once TEMPLATEPATH . '/lib/Themater.php';
$theme = new Themater('Optimale');
$theme->options['includes'] = array('featuredposts', 'social_profiles');
$theme->options['plugins_options']['featuredposts'] = array('hook' => 'main_before', 'image_sizes' => '930px. x 300px.', 'effect' => 'fade');
if ($theme->is_admin_user()) {
    unset($theme->admin_options['Ads']);
}
$theme->load();
register_sidebar(array('name' => __('Primary Sidebar', 'themater'), 'id' => 'sidebar_primary', 'description' => __('The primary sidebar widget area', 'themater'), 'before_widget' => '<ul class="widget-container"><li id="%1$s" class="widget %2$s">', 'after_widget' => '</li></ul>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>'));
$theme->add_hook('sidebar_primary', 'sidebar_primary_default_widgets');
function sidebar_primary_default_widgets()
{
    global $theme;
    $theme->display_widget('Search');
    $theme->display_widget('SocialProfiles');
    $theme->display_widget('Banners125', array('banners' => array('<a href="http://newwpthemes.com" target="_blank"><img src="http://newwpthemes.com/wp-content/pro/nwpt1.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a><a href="http://freewpthemes.co" target="_blank"><img src="http://freewpthemes.co/wp-content/pro/fwt.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a>')));
    $theme->display_widget('Facebook', array('url' => 'http://www.facebook.com/NewWpThemesCom'));
    $theme->display_widget('Tabs');
    $theme->display_widget('Tweets', array('username' => 'NewWpThemes'));
    $theme->display_widget('Archives');
    $theme->display_widget('Tag_Cloud');
    $theme->display_widget('Text', array('text' => '<div style="text-align:center;"><a href="http://newwpthemes.com" target="_blank"><img src="http://newwpthemes.com/wp-content/pro/nwpt3.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a></div>'));
}
function wp_initialize_the_theme_load()
{
    if (!function_exists("wp_initialize_the_theme")) {
        wp_initialize_the_theme_message();
        die;
    }
Exemplo n.º 3
0
<?php

/******************************************************************
@	Template Name: theme v.2.4
@	Theme URI: http://Raneen.com/
@	Description: Designed by atef  http://www.Raneen.com
@	Version:  2.4
@	Author:atef mohamed
/*******************************************************************/
require TEMPLATEPATH . '/framework/pagi.php';
require TEMPLATEPATH . '/framework/vid_thumb.php';
require TEMPLATEPATH . '/framework/videos.php';
require_once TEMPLATEPATH . '/framework/Themater.php';
$theme = new Themater('شبكات');
if ($theme->is_admin_user()) {
    unset($theme->admin_options['Ads']);
}
$theme->load();
/**********************************/
// CUSTOM ADMIN LOGIN HEADER LOGO
function my_custom_login_logo()
{
    echo '<style  type="text/css"> h1 a {  background-image:url(' . get_bloginfo('template_directory') . '/screenshot.png)  !important; } </style>';
}
add_action('login_head', 'my_custom_login_logo');
// Admin footer modification
function remove_footer_admin()
{
    echo '<span id="footer-thankyou">Developed by <a href="" target="_blank">2EGy</a></span>';
}
add_filter('admin_footer_text', 'remove_footer_admin');
Exemplo n.º 4
0
<?php

require_once TEMPLATEPATH . '/lib/Themater.php';
$theme = new Themater();
$theme->theme_name = 'Novato';
$theme->options['includes'] = array('featuredposts');
// Defaullt theme options
if (is_admin()) {
    unset($theme->admin_options['Ads']);
}
$theme->options['plugins_options']['featuredposts'] = array('image_sizes' => '580px. x 300px.', 'speed' => '400');
$theme->options['widgets_options']['posts'] = array('display_content' => false, 'display_read_more' => false);
$theme->options['menus']['menu-primary']['effect'] = 'slide';
$theme->options['menus']['menu-secondary']['effect'] = 'slide';
$theme->admin_option('Support', 'Support', 'support', 'raw', '<ul><li><strong>Theme Author:</strong> <a href="http://fthemes.com" target="_blank">FThemes.com</a></li>
        <li><strong>Theme Homepage:</strong> <a href="http://fthemes.com/novato-free-wordpress-theme" target="_blank">http://fthemes.com/novato-free-wordpress-theme/</a></li>
        <li><strong>Theme Help/Documentation:</strong> <a href="http://fthemes.com/help-documentation/" target="_blank">http://fthemes.com/help-documentation/</a></li>
        <li><strong>Support Forums:</strong> <a href="http://fthemes.com/forum/" target="_blank">http://fthemes.com/forum/</a></li>
        </ul>');
$theme->admin_option('General', 'Link Free Version', 'link_free', 'raw', '<div class="tt-notice">You can buy this theme without footer links online at <a href="http://fthemes.com/buy/" target="_blank">http://fthemes.com/buy/</a></div>', array('priority' => '1'));
$theme->load();
register_sidebar(array('name' => __('Primary Sidebar', 'themater'), 'id' => 'sidebar_primary', 'description' => __('The primary sidebar widget area', 'themater'), 'before_widget' => '<ul class="widget-wrap"><li id="%1$s" class="widget %2$s">', 'after_widget' => '</li></ul>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>'));
$theme->add_hook('sidebar_primary', 'sidebar_primary_default_widgets');
function sidebar_primary_default_widgets()
{
    global $theme;
    $theme->display_widget('Search');
    //$theme->display_widget('SocialConnect');
    //$theme->display_widget('SocialShare' ,array('iconset' => 'icons_6', 'title' => ''));
    $theme->display_widget('Tabs');
    //$theme->display_widget('Banners125', array('banners' => array('<a href="http://fthemes.com" target="_blank"><img src="http://fthemes.com/wp-content/pro/b1.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a><a href="http://fthemes.com" target="_blank"><img src="http://fthemes.com/wp-content/pro/b1.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a>')));
Exemplo n.º 5
0
<?php

require_once TEMPLATEPATH . '/lib/Themater.php';
$theme = new Themater();
$theme->theme_name = 'Solid';
$theme->options['includes'] = array('featuredposts');
// Defaullt theme options
if (is_admin()) {
    $theme->admin_options['Ads']['content']['header_banner']['content']['value'] = '<a href="http://fthemes.com" target="_blank"><img src="http://fthemes.com/wp-content/pro/b2.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a>';
}
$theme->options['plugins_options']['featuredposts'] = array('image_sizes' => '595px. x 300px.', 'speed' => '400');
$theme->options['widgets_options']['posts'] = array('display_content' => false, 'display_read_more' => false);
$theme->options['menus']['menu-primary']['effect'] = 'slide';
$theme->options['menus']['menu-secondary']['effect'] = 'slide';
$theme->options['menus']['menu-secondary']['active'] = false;
$theme->load();
register_sidebar(array('name' => __('Primary Sidebar', 'themater'), 'id' => 'sidebar_primary', 'description' => __('The primary sidebar widget area', 'themater'), 'before_widget' => '<ul class="widget-wrap"><li id="%1$s" class="widget %2$s">', 'after_widget' => '</li></ul>', 'before_title' => '<h3 class="widgettitle">', 'after_title' => '</h3>'));
// Primary sidebar default widgets
$theme->add_hook('sidebar_primary', 'sidebar_primary_default_widgets');
function sidebar_primary_default_widgets()
{
    global $theme;
    $theme->display_widget('SocialShare', array('iconset' => 'icons_2'));
    $theme->display_widget('SocialConnect', array('rss_title' => 'Subscribe', 'twitter_title' => 'Follow Us!', 'facebook_title' => 'Be Our Fan'));
    $theme->display_widget('Tabs');
    $theme->display_widget('Banners125', array('banners' => array('<a href="http://fthemes.com" target="_blank"><img src="http://fthemes.com/wp-content/pro/b1.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a><a href="http://fthemes.com" target="_blank"><img src="http://fthemes.com/wp-content/pro/b1.gif" alt="Free WordPress Themes" title="Free WordPress Themes" /></a>')));
    $theme->display_widget('Tweets');
    $theme->display_widget('Categories');
    $theme->display_widget('Pages');
    $theme->display_widget('Archives');
    $theme->display_widget('Meta');