Exemplo n.º 1
0
}
add_action('wp_head', 'theme_favicon');
add_action('admin_head', 'theme_favicon');
add_action('login_head', 'theme_favicon');
if (function_exists('add_theme_support')) {
    add_theme_support('post-thumbnails');
    add_theme_support('nav-menus');
    add_theme_support('automatic-feed-links');
    add_theme_support('post-formats', array('aside', 'gallery'));
}
if (function_exists('register_nav_menus')) {
    register_nav_menus(array('primary-menu' => __('Primary Navigation', THEME_NS)));
}
if (is_admin()) {
    theme_include_lib('options.php');
    theme_include_lib('admins.php');
    function theme_add_option_page()
    {
        add_theme_page(__('Theme Options', THEME_NS), __('Theme Options', THEME_NS), 'edit_themes', basename(__FILE__), 'theme_print_options');
    }
    add_action('admin_menu', 'theme_add_option_page');
    if (WP_VERSION >= 3.0) {
        add_action('sidebar_admin_setup', 'theme_widget_process_control');
        add_action('add_meta_boxes', 'theme_add_meta_boxes');
        add_action('save_post', 'theme_save_post');
    }
    return;
}
function theme_get_option($name)
{
    global $theme_default_options;
Exemplo n.º 2
0
 function theme_comment_form_field_comment($form_field)
 {
     theme_include_lib('smiley.php');
     return theme_get_smilies_js() . '<p class="smilies">' . theme_get_smilies() . '</p>' . $form_field;
 }