/*
* This theme styles the visual editor to resemble the theme style,
* specifically font, colors, icons, and column width.
*/
/**
* Visual functions and definitions
*
* @package Visual
* @since Visual 0.1
*/
/**
* Set the content width based on the theme's design and stylesheet.
*
* @since Visual 0.1
*/
if ( ! isset( $content_width ) )
$content_width = 670; /* pixels */
function visual_content_width() {
global $content_width;
if ( is_home() || is_search() || is_archive() )
$content_width = 326;
if ( is_page_template( 'page-fullwidth.php' ) )
$content_width = 990;
}
add_action( 'template_redirect', 'visual_content_width' );
/*
* Load Jetpack compatibility file.
*/
require( get_template_directory() . '/inc/jetpack.php' );
if ( ! function_exists( 'visual_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 post thumbnails.
*
* @since Visual 0.1
*/
function visual_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' );
/**
* Functions to enable the options
*/
require( get_template_directory() . '/inc/options-functions.php' );
/**
* Customizer additions
*/
require( get_template_directory() . '/inc/customizer.php' );
/**
* Make theme available for translation
* Translations can be filed in the /languages/ directory
* If you're building a theme based on Visual, use a find and replace
* to change 'visual' to the name of your theme in all the template files
*/
load_theme_textdomain( 'visual', get_template_directory() . '/languages' );
/**
* Add default posts and comments RSS feed links to head
*/
add_theme_support( 'automatic-feed-links' );
/**
* Enable support for Post Thumbnails
*/
add_theme_support( 'post-thumbnails' );
add_image_size( 'visual-thumbnail', 326, 999 );
add_image_size( 'visual-post', 700, 9999 );
/**
* This theme uses wp_nav_menu() in one location.
*/
register_nav_menus( array(
'primary' => __( 'Primary Menu', 'visual' ),
) );
/**
* Enable support for Post Formats
*/
add_theme_support( 'post-formats', array( 'image', 'gallery' ) );
}
endif; // visual_setup
add_action( 'after_setup_theme', 'visual_setup' );
/**
* Register widgetized area and update sidebar with default widgets
*
* @since Visual 0.1
*/
function visual_widgets_init() {
register_sidebar( array(
'name' => __( 'Sidebar', 'visual' ),
'id' => 'sidebar-1',
'before_widget' => '',
'before_title' => '
',
'after_title' => '
',
) );
}
add_action( 'widgets_init', 'visual_widgets_init' );
/**
* Enqueue scripts and styles
*
* @since Visual 0.1
*/
function visual_scripts() {
wp_enqueue_style( 'style', get_stylesheet_uri() );
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
wp_enqueue_script( 'comment-reply' );
}
if ( is_singular() && wp_attachment_is_image() ) {
wp_enqueue_script( 'keyboard-image-navigation', get_template_directory_uri() . '/js/keyboard-image-navigation.js', array( 'jquery' ), '20130220' );
}
if ( !is_singular() && !is_404() && !is_author() ) {
wp_enqueue_script( 'visual-masonry', get_template_directory_uri() . '/js/jquery.masonry.min.js', array( 'jquery' ), '20130220', true );
}
wp_enqueue_script( 'visual-scripts', get_template_directory_uri() . '/js/visual-scripts.js', array( 'jquery' ), '20130220', true );
}
add_action( 'wp_enqueue_scripts', 'visual_scripts' );
/**
* Enqueue fonts
*
* @since Visual 0.1
*/
function visual_fonts() {
$font_families = array();
$font_families[] = 'Raleway:400,700';
$protocol = is_ssl() ? 'https' : 'http';
$query_args = array(
'family' => implode( '|', $font_families ),
'subset' => 'latin,latin-ext',
);
wp_enqueue_style( 'visual-fonts', add_query_arg( $query_args, "$protocol://fonts.googleapis.com/css" ), array(), null );
}
add_action( 'wp_enqueue_scripts', 'visual_fonts' );
/**
* Adds a body class for masonry layouts
*
* @since Visual 0.1
*/
function visual_body_class( $classes ) {
if ( !is_singular() && !is_404() && !is_author() )
$classes[] = 'masonry';
return $classes;
}
add_filter('body_class','visual_body_class');
Comentarios en: Contacto.
http://www.conocimientoenlinea.com
Tue, 28 Oct 2014 21:08:36 +0000hourly1https://wordpress.org/?v=4.7.29Por: susana lopez
http://www.conocimientoenlinea.com/?page_id=2#comment-195
Tue, 28 Oct 2014 21:08:36 +0000http://micongreso.org/conocimiento/?page_id=2#comment-195hola necesitaría encontrar la revista donde sale un reportaje a la Dra. Magali lingenfelder que es cordobesa y vivió en la localidad de Huerta Grande, su mama actualmente es mi inquilina vivos en la localidad valga la redundancia de Huerta Grande y me presto la revista para leer el reportaje que le hicieron a su hija, esta desgraciadamente se me a extraviado no recuerdo el numero la Dra. sale en otros números pero esta es una nota exclusiva a ella, que actualmente vive y trabaja como científica en suiza. muchas gracias.
]]>Por: Sandra Alanis
http://www.conocimientoenlinea.com/?page_id=2#comment-193
Tue, 28 Oct 2014 21:05:52 +0000http://micongreso.org/conocimiento/?page_id=2#comment-193Hola, me interesan varios de sus ejemplares, como o donde puedo adquirirlos en el D.F.?, también me interesa la suscripción.
Felicitaciones por su revista
Saludos!!
]]>Por: Adriana Arredondo Cárdenas
http://www.conocimientoenlinea.com/?page_id=2#comment-47
Tue, 05 Aug 2014 17:39:50 +0000http://micongreso.org/conocimiento/?page_id=2#comment-47Como puedo recibir la revista, me puedo suscribir? o donde la puedo conseguir si no vivo en NL.
Gracias
Me encanta su revista
]]>Por: Rocío Enríquez
http://www.conocimientoenlinea.com/?page_id=2#comment-6
Wed, 04 Jun 2014 16:37:05 +0000http://micongreso.org/conocimiento/?page_id=2#comment-6Por favor necesito el ejemplar 129, dónde lo puedo conseguir?
También me gustaría tener una suscripción o bien, donación a la biblioteca de la UPN.
Tel. 56309700 ext 1136
]]>