__( 'Main Menu', 'avocation' ), ) ); global $content_width; if ( ! isset( $content_width ) ) $content_width = 900; /* * Make avocation theme available for translation. */ load_theme_textdomain( 'avocation', get_template_directory() . '/languages' ); // This theme styles the visual editor to resemble the theme style. add_editor_style(array('css/editor-style.css', avocation_font_url())); // Add RSS feed links to
for posts and comments. add_theme_support('automatic-feed-links'); add_theme_support('post-thumbnails'); set_post_thumbnail_size( 640, 428, true ); add_image_size( 'avocation-latest-post', 748, 500, true ); add_image_size( 'avocation-latest-post-homepage', 640, 428, true ); add_image_size( 'avocation-latest-posts-widget', 50, 50, true ); /* * Switch default core markup for search form, comment form, and comments * to output valid HTML5. */ add_theme_support('html5', array( 'search-form', 'comment-form', 'comment-list', )); add_theme_support( 'custom-header', apply_filters( 'avocation_custom_header_args', array( 'uploads' => true, 'flex-height' => true, 'default-text-color' => '#fff', 'header-text' => true, 'height' => '120', 'width' => '1260' ) ) ); add_theme_support( 'custom-logo', array( 'height' => 250, 'width' => 250, 'flex-width' => true, 'flex-height' => true, 'priority' => 11, 'header-text' => array('img-responsive-logo', 'site-description-logo'), ) ); add_theme_support( 'title-tag' ); add_theme_support( 'custom-background', apply_filters( 'avocation_custom_background_args', array( 'default-color' => 'f5f5f5', ) ) ); // This theme uses its own gallery styles. add_filter('use_default_gallery_style', '__return_false'); } endif; // avocation_setup add_action( 'after_setup_theme', 'avocation_setup' ); add_action( 'admin_menu', 'avocation_admin_menu'); function avocation_admin_menu( ) { add_theme_page( __('Pro Feature','avocation'), __('Avocation Pro','avocation'), 'manage_options', 'avocation-pro-buynow', 'avocation_buy_now', 300 ); } function avocation_buy_now(){ ?> '.__('READ MORE','avocation').''; } add_filter('excerpt_more', 'avocation_change_excerpt_more'); function avocation_excerpt_length( $avocation_length ) { return 30; } add_filter( 'excerpt_length', 'avocation_excerpt_length', 999 ); /* CUSTOM POST WIDGET FOR LATEST POST */ require get_template_directory() . '/functions/popularpost.php'; /* get in touch start */ require get_template_directory() . '/functions/getintouch.php'; /*** Enqueue css and js files ***/ require get_template_directory() . '/functions/enqueue-files.php'; /*** Theme Default Setup ***/ require get_template_directory() . '/functions/theme-default-setup.php'; /*** Breadcrumbs ***/ require get_template_directory() . '/functions/breadcrumbs.php'; /*** Custom Header ***/ require get_template_directory() . '/functions/custom-header.php'; /*** Customizer ***/ require get_template_directory() . '/functions/theme-customizer.php';