/** * banca functions and definitions * * @link https://developer.wordpress.org/themes/basics/theme-functions/ * * @package banca */ if ( ! function_exists( 'banca_setup' ) ) { /** * Sets up theme defaults and registers support for various WordPress features. * * Note that this function is hooked into the after_setup_theme hook, which * runs before the init hook. The init hook is too late for some features, such * as indicating support for post thumbnails. */ function banca_setup() { /* * Make theme available for translation. * Translations can be filed in the /languages/ directory. * If you're building a theme based on gull, use a find and replace * to change 'gull' to the name of your theme in all the template files. */ load_theme_textdomain('banca', get_template_directory() . '/languages'); // Add default posts and comments RSS feed links to head. add_theme_support('automatic-feed-links'); // Enable excerpt support for page add_post_type_support('page', 'excerpt'); /* * Let WordPress manage the document title. * By adding theme support, we declare that this theme does not use a * hard-coded tag in the document head, and expect WordPress to * provide it for us. */ add_theme_support('title-tag'); /* * Enable support for Post Thumbnails on posts and pages. * * @link https://developer.wordpress.org/themes/functionality/featured-images-post-thumbnails/ */ add_theme_support('post-thumbnails'); add_post_type_support('forum', 'thumbnail'); add_theme_support('post-formats', array('video', 'quote', 'link')); // This theme uses wp_nav_menu() in one location. register_nav_menus(array( 'main_menu' => esc_html__('Main Menu', 'banca'), )); /* * 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', )); add_theme_support('align-wide'); add_theme_support('editor-styles'); add_editor_style('style-editor.css'); add_theme_support('responsive-embeds'); } } add_action( 'after_setup_theme', 'banca_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. * * Priority 0 to make it available to lower priority callbacks. * * @global int $content_width */ function banca_content_width() { $GLOBALS['content_width'] = apply_filters( 'banca_content_width', 1170 ); } add_action( 'after_setup_theme', 'banca_content_width', 0 ); /** * Constants * Defining default asset paths */ define( 'BANCA_DIR_CSS', get_template_directory_uri() . '/assets/css' ); define( 'BANCA_DIR_JS', get_template_directory_uri() . '/assets/js' ); define( 'BANCA_DIR_VEND', get_template_directory_uri() . '/assets/vendors' ); define( 'BANCA_DIR_IMG', get_template_directory_uri() . '/assets/img' ); define( 'BANCA_DIR_FONT', get_template_directory_uri() . '/assets/fonts' ); /** * Defining Get Theme Version */ $banca_theme = wp_get_theme(); define( 'BANCA_THEME_VERSION', $banca_theme->Version ); //gets version written in your style.css /** * Enqueue scripts and styles. */ require get_template_directory() . '/inc/enqueue.php'; /** * Theme's helper functions */ require get_template_directory() . '/inc/classes/Banca_Helper.php'; require get_template_directory() . '/inc/template_functions.php'; /*** * Theme's Ajax Features */ include_once get_template_directory() . '/inc/ajax.php'; /** * Theme's filters and actions */ require get_template_directory() . '/inc/filter_actions.php'; /** * Classes */ require get_template_directory() . '/inc/classes/Banca_Walker_Comment.php'; /** * Theme settings */ require get_template_directory() . '/options/opt-config.php'; /** * Configure one click demo */ require get_template_directory() . '/inc/demo_config.php'; /** * Required plugins activation */ require get_template_directory() . '/inc/plugin_activation.php'; /** * Bootstrap Nav Walker */ require get_template_directory() . '/inc/classes/Banca_Nav_Walker.php'; /** * Register Sidebar Areas */ require get_template_directory() . '/inc/sidebars.php'; {"id":65,"count":1,"description":"","link":"https:\/\/70aniosdehistoria.acde.org.ar\/tag\/papa-juan-xxiii\/","name":"Papa Juan XXIII","slug":"papa-juan-xxiii","taxonomy":"post_tag","meta":[],"_links":{"self":[{"href":"https:\/\/70aniosdehistoria.acde.org.ar\/wp-json\/wp\/v2\/tags\/65"}],"collection":[{"href":"https:\/\/70aniosdehistoria.acde.org.ar\/wp-json\/wp\/v2\/tags"}],"about":[{"href":"https:\/\/70aniosdehistoria.acde.org.ar\/wp-json\/wp\/v2\/taxonomies\/post_tag"}],"wp:post_type":[{"href":"https:\/\/70aniosdehistoria.acde.org.ar\/wp-json\/wp\/v2\/posts?tags=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}