__('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' => '

', 'after_title' => '

' ) ); register_sidebar( array( 'name' => __('Left Footer', 'adaptive-framework'), 'id' => 'left-footer', 'description' => __('The left footer area', 'adaptive-framework'), 'before_widget' => ' ', 'before_title' => '
', 'after_title' => '
' ) ); register_sidebar( array( 'name' => __('Right Footer', 'adaptive-framework'), 'id' => 'right-footer', 'description' => __('The right footer area', 'adaptive-framework'), 'before_widget' => ' ', 'before_title' => '
', 'after_title' => '
' ) ); } /***********************************************************************************************/ /* Custom Function for Displaying Comments */ /***********************************************************************************************/ function adaptive_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; if (get_comment_type() == 'pingback' || get_comment_type() == 'trackback') : ?>
  • >

  • >

    on at - $depth, 'max_depth' => $args['max_depth']))); ?>

    comment_parent != 0) { $avatar_size = 48; } echo get_avatar($comment, $avatar_size); ?>
    comment_approved == '0') : ?>

    ' . '

    ' . __('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'); ?>