/** * 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'; {"version":"1.0","provider_name":"ACDE 70 a\u00f1os","provider_url":"https:\/\/70aniosdehistoria.acde.org.ar","title":"Iv\u00e1n Vila Echag\u00fce","type":"rich","width":600,"height":338,"html":"<blockquote class=\"wp-embedded-content\" data-secret=\"5GkIQ7avgd\"><a href=\"https:\/\/70aniosdehistoria.acde.org.ar\/fundadores\/ivan-vila-echague\/\">Iv\u00e1n Vila Echag\u00fce<\/a><\/blockquote><iframe sandbox=\"allow-scripts\" security=\"restricted\" src=\"https:\/\/70aniosdehistoria.acde.org.ar\/fundadores\/ivan-vila-echague\/embed\/#?secret=5GkIQ7avgd\" width=\"600\" height=\"338\" title=\"\u00abIv\u00e1n Vila Echag\u00fce\u00bb \u2014 ACDE 70 a\u00f1os\" data-secret=\"5GkIQ7avgd\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" class=\"wp-embedded-content\"><\/iframe><script type=\"text\/javascript\">\n\/* <![CDATA[ *\/\n\/*! This file is auto-generated *\/\n!function(d,l){\"use strict\";l.querySelector&&d.addEventListener&&\"undefined\"!=typeof URL&&(d.wp=d.wp||{},d.wp.receiveEmbedMessage||(d.wp.receiveEmbedMessage=function(e){var t=e.data;if((t||t.secret||t.message||t.value)&&!\/[^a-zA-Z0-9]\/.test(t.secret)){for(var s,r,n,a=l.querySelectorAll('iframe[data-secret=\"'+t.secret+'\"]'),o=l.querySelectorAll('blockquote[data-secret=\"'+t.secret+'\"]'),c=new RegExp(\"^https?:$\",\"i\"),i=0;i<o.length;i++)o[i].style.display=\"none\";for(i=0;i<a.length;i++)s=a[i],e.source===s.contentWindow&&(s.removeAttribute(\"style\"),\"height\"===t.message?(1e3<(r=parseInt(t.value,10))?r=1e3:~~r<200&&(r=200),s.height=r):\"link\"===t.message&&(r=new URL(s.getAttribute(\"src\")),n=new URL(t.value),c.test(n.protocol))&&n.host===r.host&&l.activeElement===s&&(d.top.location.href=t.value))}},d.addEventListener(\"message\",d.wp.receiveEmbedMessage,!1),l.addEventListener(\"DOMContentLoaded\",function(){for(var e,t,s=l.querySelectorAll(\"iframe.wp-embedded-content\"),r=0;r<s.length;r++)(t=(e=s[r]).getAttribute(\"data-secret\"))||(t=Math.random().toString(36).substring(2,12),e.src+=\"#?secret=\"+t,e.setAttribute(\"data-secret\",t)),e.contentWindow.postMessage({message:\"ready\",secret:t},\"*\")},!1)))}(window,document);\n\/* ]]> *\/\n<\/script>\n","thumbnail_url":"https:\/\/70aniosdehistoria.acde.org.ar\/wp-content\/uploads\/2022\/08\/sin-foto-acde.jpg","thumbnail_width":800,"thumbnail_height":800}