__('Top Menu', 'adaptive-framework'), 'main-menu' => __('Main Menu', 'adaptive-framework') ) ); } add_action('init', 'register_my_menus'); /***********************************************************************************************/ /* Localization Support */ /***********************************************************************************************/ function custom_theme_localization() { $lang_dir = THEMEROOT . '/lang'; load_theme_textdomain('adaptive-framework', $lang_dir); } add_action('after_theme_setup', 'custom_theme_localization'); /***********************************************************************************************/ /* Disable the gallery default styling */ /***********************************************************************************************/ //add_filter('use_default_gallery_style', '__return_false'); /***********************************************************************************************/ /* Add Sidebar Support */ /***********************************************************************************************/ if (function_exists('register_sidebar')) { register_sidebar( array( 'name' => __('Main Sidebar', 'adaptive-framework'), 'id' => 'main-sidebar', 'description' => __('The main sidebar area', 'adaptive-framework'), 'before_widget' => '
', 'before_title' => 'on at - $depth, 'max_depth' => $args['max_depth']))); ?>
' . __('Allowed Tags', 'adaptive-framework') . '
' . ' ' . allowed_tags() . ' ' .
' ';
$defaults['comment_notes_before'] = '';
$defaults['comment_notes_after'] = $comment_notes_after;
$defaults['id_form'] = 'comment-form';
$defaults['comment_field'] = '';
return $defaults;
}
add_filter('comment_form_defaults', 'adaptive_custom_comment_form');
function adaptive_custom_comment_fields() {
$commenter = wp_get_current_commenter();
$req = get_option('require_name_email');
$aria_req = ($req ? " aria-required='true'" : '');
$fields = array(
'author' => '' . '' . '' . '
', 'email' => '' . '' . '' . '
', 'url' => '' . '' . '' . '
' ); return $fields; } add_filter('comment_form_default_fields', 'adaptive_custom_comment_fields'); /***********************************************************************************************/ /* Load Theme Options Page and Custom Widgets */ /***********************************************************************************************/ require_once('functions/adaptive-theme-customizer.php'); require_once('functions/widget-ad-125.php'); require_once('functions/widget-ad-260.php'); require_once('functions/widget-adaptive-social.php'); require_once('functions/widget-video.php'); ?>