<?php
/*-----------------------------------------------------------------------------------*/
/* Start WooThemes Functions - Please refrain from editing this section */
/*-----------------------------------------------------------------------------------*/
// Set path to WooFramework and theme specific functions
$functions_path = get_template_directory() . '/functions/';
$includes_path = get_template_directory() . '/includes/';
// WooFramework
require_once ($functions_path . 'admin-init.php'); // Framework Init
// Theme specific functionality
require_once ($includes_path . 'theme-options.php'); // Options panel settings and custom settings
require_once ($includes_path . 'theme-functions.php'); // Custom theme functions
require_once ($includes_path . 'theme-plugins.php'); // Theme specific plugins integrated in a theme
require_once ($includes_path . 'theme-actions.php'); // Theme actions & user defined hooks
require_once ($includes_path . 'theme-comments.php'); // Custom comments/pingback loop
require_once ($includes_path . 'theme-js.php'); // Load javascript in wp_head
require_once ($includes_path . 'sidebar-init.php'); // Initialize widgetized areas
require_once ($includes_path . 'theme-widgets.php'); // Theme widgets
/*-----------------------------------------------------------------------------------*/
/* You can add custom functions below */
/*-----------------------------------------------------------------------------------*/
<?php
/* page log in and log out */
$args = array(
'echo' => true,
'redirect' => site_url( $_SERVER['http://www.classeprimae.altervista.org'] ),
'form_id' => 'loginform',
'label_username' => __( 'Username' ),
'label_password' => __( 'Password' ),
'label_remember' => __( 'Remember Me' ),
'label_log_in' => __( 'Log In' ),
'id_username' => 'user_login',
'id_password' => 'user_pass',
'id_remember' => 'rememberme',
'id_submit' => 'wp-submit',
'remember' => true,
'value_username' => NULL,
'value_remember' => false );
?>
/* modifica */
add_action('after_setup_theme', 'avopt_continuum_register_banner');
function avopt_continuum_register_banner() {
$default_params = array(
'border' => 'D8D8D8',
'background' => 'FFFFFF',
'link' => '222222',
'url' => '1B5474',
'text' => '555555',
'corners' => 'rc:0',
'type' => ''
);
$avtheme_registered_ads = array(
'av-300X250' => array(
'size' => '300X250',
'network' => 'altervista',
'label' => __('VideoBanner', AVTHEME),
'screenshot' => 'http://im.altervista.org/wordpress/images/av-300X250.png',
'description' => __('Show 300X250 banner on main sidebar top.', AVTHEME),
'available' => true,
),
'ga-468X60' => array(
'size' => '468X60',
'network' => 'adsense',
'label' => __('Small', AVTHEME),
'screenshot' => 'http://im.altervista.org/wordpress/images/ga-468X60-top.png',
'description' => __('Show 468X60 banner on header, home and after posts/pages.', AVTHEME),
'params' => $default_colors,
'available' => true,
'params' => $default_params,
),
'ga-300X250' => array(
'size' => '300X250',
'network' => 'adsense',
'label' => __('VideoBanner', AVTHEME),
'screenshot' => 'http://im.altervista.org/wordpress/images/ga-300X250.png',
'description' => __('Show 300X250 banner on main sidebar bottom.', AVTHEME),
'available' => true,
'params' => $default_params,
),
);
if(function_exists('avopt_register_ads')) avopt_register_ads($avtheme_registered_ads);
}
/* fine */
/*-----------------------------------------------------------------------------------*/
/* Don't add any code below here or the sky will fall down */
/*-----------------------------------------------------------------------------------*/
?>