//MODO MANTENIMIENTO:
function mode_maintenance(){
if(!current_user_can('edit_themes') || !is_user_logged_in()){
wp_die('
SITIO WEB EN MANTENIMIENTO
Estamos en construcción, pronto recibirás nuevas noticias...

', 'Sitio en Mantenimiento', array( 'response' => 503 ));
}
}
add_action('init', 'mode_maintenance');
/**
* ColorMag functions related to defining constants, adding files and WordPress core functionality.
*
* Defining some constants, loading all the required files and Adding some core functionality.
*
* @uses add_theme_support() To add support for post thumbnails and automatic feed links.
* @uses register_nav_menu() To add support for navigation menu.
* @uses set_post_thumbnail_size() To set a custom post thumbnail size.
*
* @package ThemeGrill
* @subpackage ColorMag
* @since ColorMag 1.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Define Theme Constants.
*/
$theme = wp_get_theme( 'colormag' );
define( 'COLORMAG_THEME_VERSION', $theme['Version'] );
/**
* Define Directory Location Constants
*/
define( 'COLORMAG_PARENT_DIR', get_template_directory() );
define( 'COLORMAG_CHILD_DIR', get_stylesheet_directory() );
define( 'COLORMAG_INCLUDES_DIR', COLORMAG_PARENT_DIR . '/inc' );
define( 'COLORMAG_CSS_DIR', COLORMAG_PARENT_DIR . '/css' );
define( 'COLORMAG_JS_DIR', COLORMAG_PARENT_DIR . '/js' );
define( 'COLORMAG_LANGUAGES_DIR', COLORMAG_PARENT_DIR . '/languages' );
define( 'COLORMAG_ADMIN_DIR', COLORMAG_INCLUDES_DIR . '/admin' );
define( 'COLORMAG_WIDGETS_DIR', COLORMAG_INCLUDES_DIR . '/widgets' );
define( 'COLORMAG_CUSTOMIZER_DIR', COLORMAG_INCLUDES_DIR . '/customizer' );
define( 'COLORMAG_ELEMENTOR_DIR', COLORMAG_INCLUDES_DIR . '/elementor' );
define( 'COLORMAG_ELEMENTOR_WIDGETS_DIR', COLORMAG_ELEMENTOR_DIR . '/widgets' );
define( 'COLORMAG_ADMIN_IMAGES_DIR', COLORMAG_ADMIN_DIR . '/images' );
/**
* Define URL Location Constants
*/
define( 'COLORMAG_PARENT_URL', get_template_directory_uri() );
define( 'COLORMAG_CHILD_URL', get_stylesheet_directory_uri() );
define( 'COLORMAG_INCLUDES_URL', COLORMAG_PARENT_URL . '/inc' );
define( 'COLORMAG_CSS_URL', COLORMAG_PARENT_URL . '/css' );
define( 'COLORMAG_JS_URL', COLORMAG_PARENT_URL . '/js' );
define( 'COLORMAG_LANGUAGES_URL', COLORMAG_PARENT_URL . '/languages' );
define( 'COLORMAG_ADMIN_URL', COLORMAG_INCLUDES_URL . '/admin' );
define( 'COLORMAG_WIDGETS_URL', COLORMAG_INCLUDES_URL . '/widgets' );
define( 'COLORMAG_CUSTOMIZER_URL', COLORMAG_INCLUDES_URL . '/customizer' );
define( 'COLORMAG_ELEMENTOR_URL', COLORMAG_INCLUDES_URL . '/elementor' );
define( 'COLORMAG_ELEMENTOR_WIDGETS_URL', COLORMAG_ELEMENTOR_URL . '/widgets' );
define( 'COLORMAG_ADMIN_IMAGES_URL', COLORMAG_ADMIN_URL . '/images' );
/** ColorMag setup file, hooked for `after_setup_theme`. */
require COLORMAG_INCLUDES_DIR . '/colormag-setup.php';
/** ColorMag content width file. */
require COLORMAG_INCLUDES_DIR . '/colormag-content-width.php';
/** Helper functions. */
require COLORMAG_INCLUDES_DIR . '/helper-functions.php';
/** Template functions files. */
require COLORMAG_INCLUDES_DIR . '/template-tags.php';
require COLORMAG_INCLUDES_DIR . '/template-functions.php';
/** WP_Query functions files. */
require COLORMAG_INCLUDES_DIR . '/colormag-wp-query.php';
/** Dynamic class file include. */
require_once COLORMAG_INCLUDES_DIR . '/colormag-dynamic-classes.php';
/**
* Load required theme hook files.
*/
require_once COLORMAG_INCLUDES_DIR . '/hooks/hooks.php';
require_once COLORMAG_INCLUDES_DIR . '/hooks/header.php';
require_once COLORMAG_INCLUDES_DIR . '/hooks/content.php';
require_once COLORMAG_INCLUDES_DIR . '/hooks/footer.php';
/** Load functions */
require_once COLORMAG_INCLUDES_DIR . '/custom-header.php';
require_once COLORMAG_CUSTOMIZER_DIR . '/class-colormag-customizer.php';
require_once COLORMAG_INCLUDES_DIR . '/enqueue-scripts.php';
require_once COLORMAG_INCLUDES_DIR . '/class-colormag-dynamic-css.php';
/** Add the WooCommerce plugin support */
if ( class_exists( 'WooCommerce' ) ) {
require_once COLORMAG_INCLUDES_DIR . '/woocommerce.php';
}
/** Add the Elementor compatibility file */
if ( defined( 'ELEMENTOR_VERSION' ) ) {
require_once COLORMAG_ELEMENTOR_DIR . '/elementor.php';
require_once COLORMAG_ELEMENTOR_DIR . '/elementor-functions.php';
}
/** Add meta boxes. */
require_once COLORMAG_INCLUDES_DIR . '/meta-boxes/class-colormag-meta-boxes.php';
require_once COLORMAG_INCLUDES_DIR . '/meta-boxes/class-colormag-meta-box-page-settings.php';
/** Load migration scripts. */
require_once COLORMAG_INCLUDES_DIR . '/migration.php';
/** Load Widgets and Widgetized Area */
require_once COLORMAG_WIDGETS_DIR . '/widgets.php';
/**
* Load deprecated functions.
*/
require_once COLORMAG_INCLUDES_DIR . '/deprecated/deprecated-filters.php';
require_once COLORMAG_INCLUDES_DIR . '/deprecated/deprecated-functions.php';
require_once COLORMAG_INCLUDES_DIR . '/deprecated/deprecated-hooks.php';
/**
* Load Demo Importer Configs.
*/
if ( class_exists( 'TG_Demo_Importer' ) ) {
require get_template_directory() . '/inc/demo-config.php';
}
/**
* Calling in the admin area for the Welcome Page as well as for the new theme notice too.
*/
if ( is_admin() ) {
require get_template_directory() . '/inc/admin/class-colormag-admin.php';
require get_template_directory() . '/inc/admin/class-colormag-dashboard.php';
require get_template_directory() . '/inc/admin/class-colormag-notice.php';
require get_template_directory() . '/inc/admin/class-colormag-welcome-notice.php';
require get_template_directory() . '/inc/admin/class-colormag-upgrade-notice.php';
require get_template_directory() . '/inc/admin/class-colormag-theme-review-notice.php';
}
/**
* Detect plugin. For use on Front End only.
*/
include_once ABSPATH . 'wp-admin/includes/plugin.php';
BEGIN:VCALENDAR
VERSION:2.0
METHOD:PUBLISH
CALSCALE:GREGORIAN
PRODID:-//WordPress - MECv6.2.8//EN
X-ORIGINAL-URL:https://educaspain.com/
X-WR-CALNAME:EducaSpain
X-WR-CALDESC:Red Internacional de Enseñanza del Español
REFRESH-INTERVAL;VALUE=DURATION:PT1H
X-PUBLISHED-TTL:PT1H
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
BEGIN:VEVENT
CLASS:PUBLIC
UID:MEC-ad409abd19cd473d128eaab4f69f0daf@educaspain.com
DTSTART;TZID=Europe/Madrid:20201120T100000
DTEND;TZID=Europe/Madrid:20201122T190000
DTSTAMP:20200912T091000
CREATED:20200912
LAST-MODIFIED:20200912
PRIORITY:5
TRANSP:OPAQUE
SUMMARY:Jornadas Pódcast ELE
DESCRIPTION:Participa en la primera edición de Jornadas Pódcast ELE, el evento que reúne a profesionales del mundo ELE con interés en el pódcast con fines educativos. ¡No te lo puedes perder! Del 20 al 22 de noviembre.\n¿DE QUÉ HABLAREMOS?\nConversaremos sobre experiencias docentes del pódcast en el aula de español como lengua extranjera, aprenderemos cómo utilizarlo como herramienta de marketing en negocios de ELE y también descubriremos cómo lo usan nuestros estudiantes para aprender.\n¿POR QUÉ DEBERÍAS ASISTIR?\nNuestro encuentro es más que unas simples jornadas. Al participar en este evento podrás formar parte de una gran tribu de profesores podcasters y conocer a otros miembros con intereses similares.\nEste es tu espacio para el intercambio de ideas con personas que, al igual que tú, sienten pasión por el mundo del podcasting.\n¿QUIÉN PUEDE ASISTIR?\nInvitamos a profesores de español, negocios de podcasting, y también a estudiantes que tengan interés en los podcasts como herramienta educativa.\n¿Qué estás esperando? Inscríbete ya para participar en este evento único.\n¡Nos vemos en noviembre!\n
URL:https://podcastsele.com/jornadas
ORGANIZER;CN=Podcasts ELE:MAILTO:info@podcastsele.com
CATEGORIES:Jornadas
LOCATION:Online
ATTACH;FMTTYPE=image/png:https://educaspain.com/wp-content/uploads/2020/09/logo-jpodcastele.png
END:VEVENT
END:VCALENDAR