tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support( 'title-tag' ); add_theme_support( 'woocommerce' ); /* * Enable support for Post Thumbnails on posts and pages. * * @link http://codex.wordpress.org/Function_Reference/add_theme_support#Post_Thumbnails */ add_theme_support( 'post-thumbnails' ); add_image_size('accesspress-prod-cat-size', 562, 492, true); add_image_size('accesspress-service-thumbnail', 380, 252, true); add_image_size('accesspress-blog-big-thumbnail', 760, 300, true); add_image_size('accesspress-slider', 1350, 570, true); // This theme uses wp_nav_menu() in one location. register_nav_menus( array( 'primary' => __( 'Primary Menu', 'accesspress-store' ), ) ); /* * 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', 'gallery', 'caption', ) ); /* * Enable support for Post Formats. * See http://codex.wordpress.org/Post_Formats */ add_theme_support( 'post-formats', array( 'aside', 'image', 'video', 'quote', 'link', ) ); // Set up the WordPress core custom background feature. add_theme_support( 'custom-background', apply_filters( 'accesspress_store_custom_background_args', array( 'default-color' => 'ffffff', 'default-image' => '', ) ) ); } endif; // accesspress_store_setup add_action( 'after_setup_theme', 'accesspress_store_setup' ); /** * Custom template tags for this theme. */ require get_template_directory() . '/inc/template-tags.php'; /** * Custom functions that act independently of the theme templates. */ require get_template_directory() . '/inc/extras.php'; /** * Customizer additions. */ require get_template_directory() . '/inc/customizer.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/jetpack.php'; /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/accesspress-function.php'; /** * Implement the Custom Metabox feature. */ require get_template_directory() . '/inc/custom-metabox.php'; /** * Load Option Framework file. */ define( 'OPTIONS_FRAMEWORK_DIRECTORY', get_template_directory_uri() . '/inc/option-framework/' ); /** * Load Jetpack compatibility file. */ require get_template_directory() . '/inc/accesspress-widget.php'; /** * Load General Setting */ require get_template_directory() . '/inc/custom-header.php'; /** * Load Sanitizer Functions */ require get_template_directory() . '/inc/accesspress-sanitizer.php'; /** * Load General Setting */ require get_template_directory() . '/inc/assets/assets-general-setting.php'; /** * Load Slider Setting */ require get_template_directory() . '/inc/assets/assets-slider-setting.php'; /** * Load Woocommerce Setting */ require get_template_directory() . '/inc/assets/assets-woocommerce-setting.php'; /** * Load Page/Post Setting */ require get_template_directory() . '/inc/assets/assets-pagepost-setting.php'; /** * Load Page/Post Setting */ require get_template_directory() . '/inc/assets/assets-blog-setting.php'; /** * Load Page/Post Setting */ require get_template_directory() . '/inc/assets/assets-paymentlogo-setting.php'; /** * Load Class Custom Radio */ require get_template_directory() . '/inc/class/class-image-radio.php'; /** * Load Class Custom Switch */ require get_template_directory() . '/inc/class/class-custom-switch.php'; /** * Load Class Custom Categories */ require get_template_directory() . '/inc/class/class-custom-categories.php'; /** * AccessPress More Themes */ // Add upsell page to the menu. function accesspress_store_add_upsell() { add_theme_page( __( 'More Themes', 'accesspress-store' ), __( 'More Themes', 'accesspress-store' ), 'administrator', 'accesspressstore-themes', 'accesspress_store_display_upsell' ); } add_action( 'admin_menu', 'accesspress_store_add_upsell', 11 ); // Define markup for the upsell page. function accesspress_store_display_upsell() { // Set template directory uri $directory_uri = get_template_directory_uri(); ?>

AccessPress Themes', 'accesspress-store' ) , esc_url('https://accesspressthemes.com/'))?>

'access-keys', ); // Set the $request array. $request = array( 'body' => array( 'action' => 'query_themes', 'request' => serialize( (object)$args ) ) ); $themes = accesspressstore_get_themes( $request ); $active_theme = wp_get_theme()->get( 'Name' ); $counter = 1; // For currently active theme. foreach ( $themes->themes as $theme ) { if( $active_theme == $theme->name ) {?>

: name; ?>

themes as $theme ) { if( $active_theme != $theme->name ) { // Set the argument array with author name. $args = array( 'slug' => $theme->slug, ); // Set the $request array. $request = array( 'body' => array( 'action' => 'theme_information', 'request' => serialize( (object)$args ) ) ); $theme_details = accesspressstore_get_themes( $request ); ?>

name; ?>

slug )->exists() ) { ?> 'install-theme', 'theme' => $theme->slug, ), self_admin_url( 'update.php' ) ); ?>