Actualiza la estructura de archivos

Reorganiza el árbol de directorios y ficheros del proyecto de acuerdo a la
estructura original del sitio.
This commit is contained in:
Manuel Cillero 2019-12-18 00:22:52 +01:00
parent 4f0f2e39ba
commit abe4e79dbc
25 changed files with 1663 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Before After
Before After

View file

@ -0,0 +1,672 @@
<?php
/*
* Add your own functions here.
* You can also copy some of the theme functions into this file.
* Wordpress will use those functions instead of the original functions then.
*/
if ( !function_exists( 'write_log' ) ) {
function write_log( $log ) {
# if ( true === WP_DEBUG ) {
if ( is_array( $log ) || is_object( $log ) ) {
error_log( print_r( $log, true ), 3, '/tmp/manuel.cillero.errors.log' );
}
else {
error_log( "$log\n", 3, '/tmp/manuel.cillero.errors.log' );
}
# }
}
}
/*
* Force URLs in srcset attributes into HTTPS scheme.
* See http://wptavern.com/how-to-fix-images-not-loading-in-wordpress-4-4-while-using-ssl
*/
add_filter( 'wp_calculate_image_srcset', 'ssl_srcset' );
function ssl_srcset( $sources ) {
foreach ( $sources as &$source ) {
$source['url'] = set_url_scheme( $source['url'], 'https' );
}
return $sources;
}
/*
* Add EXIF data only in photoblog posts using a filter.
* See https://ithemes.com/2011/03/20/automatically-add-content-to-your-wordpress-posts-and-pages#Using_Filters
*/
add_filter( 'the_content', 'add_exif_data' );
function add_exif_data( $content ) {
if ( function_exists('exifography_display_exif') && is_single() && has_category( 976 ) ) {
$content .= exifography_display_exif();
}
return $content;
}
/*
* Visual consolidation of tag clouds.
* See https://codex.wordpress.org/Function_Reference/wp_tag_cloud
*/
add_filter( 'widget_tag_cloud_args', 'custom_tag_cloud_widget' );
function custom_tag_cloud_widget( $args ) {
$args['number'] = 0; // Adding a 0 will display all tags.
$args['largest'] = 26; // Largest tag.
$args['smallest'] = 11; // Smallest tag.
$args['unit'] = 'px'; // Tag font unit.
return $args;
}
add_filter( 'wp_generate_tag_cloud', 'xf_tag_cloud', 10, 3 );
function xf_tag_cloud( $tag_string ) {
return preg_replace( "/style='font-size:.+px/", "$0 !important", $tag_string );
}
/*
* Remove Pingbacks from Recent Comments Widget.
* http://ronangelo.com/remove-pingbacks-on-recent-comments-widget
*/
add_filter( 'widget_comments_args', 'remove_pingbacks_recent_comments' );
function remove_pingbacks_recent_comments( $array ) {
$array['type'] = 'comment';
return $array;
}
/*
* Force avia_post_nav() to cycling categories.
* See http://www.kriesi.at/support/topic/avia_post_nav-function-not-cycling-categories-even-when-set-to-true
*/
add_filter( 'avia_post_nav_settings', 'avia_same_category_filter', 10, 1 );
function avia_same_category_filter( $settings ) {
$settings['same_category'] = true;
return $settings;
}
/*
* By default the post single page title will be “Blog Latest News”. This
* function alter this title to reflect the post category instead.
* See http://www.kriesi.at/documentation/enfold/replace-the-default-blog-latest-news-title
*/
add_filter( 'avf_title_args', 'fix_single_post_title', 10, 2 );
function fix_single_post_title( $args, $id ) {
if (is_single()) {
$post_type = get_post_type();
$category = get_the_category();
if ( ! empty( $category ) && $post_type == 'post' ) {
// Social title for Twitter, Facebook & LinkedIn categories:
$args['title'] = in_array( $category[0]->name, array( 'Twitter', 'Facebook', 'LinkedIn' ) ) ? 'Social' : $category[0]->name;
$args['link'] = NULL;
$args['heading'] = 'h1';
}
elseif ( $post_type == 'quote' ) {
$args['title'] = 'Libro de citas';
$args['link'] = NULL;
$args['heading'] = 'h1';
}
}
return $args;
}
/*
* Tag page with excerpt and featured image.
* See http://www.kriesi.at/support/topic/archive-page-with-excerpt-and-featured-image/
*/
add_filter( 'avf_blog_style', 'avia_change_tag_page_layout', 10, 2 );
function avia_change_tag_page_layout( $layout, $context ) {
if ( is_tag() ) {
$layout = 'single-small';
}
return $layout;
}
/*
* Register new icons as a theme icons fot GitHub and GitLab.
* See https://kriesi.at/documentation/enfold/custom-social-icons/
*/
add_filter( 'avf_default_icons', 'avia_add_custom_icon', 10, 1 );
function avia_add_custom_icon( $icons ) {
$icons['github'] = array( 'font' =>'fontello', 'icon' => 'uf09b' );
$icons['gitlab'] = array( 'font' =>'fontello', 'icon' => 'uf296' );
return $icons;
}
add_filter( 'avf_social_icons_options', 'avia_add_custom_social_icon', 10, 1 );
function avia_add_custom_social_icon( $icons ) {
$icons['GitHub'] = 'github';
$icons['GitLab'] = 'gitlab';
return $icons;
}
/*
* Add new class in Links and Social, Twitter, Facebook & LinkedIn posts.
* See https://tommcfarlin.com/add-class-to-single-post/
*/
add_filter( 'post_class', 'add_simple_class' );
function add_simple_class( $classes ) {
$category = get_the_category();
if ( !empty( $category ) && in_array( $category[0]->term_id, array( 1569, 1561, 1562, 1563, 1564 ) ) ) {
$classes[] = 'post-entry-simple';
}
return $classes;
}
/*
* Breadcrumb formatting for social and categories content.
* See http://www.kriesi.at/support/topic/how-to-modify-in-child_theme-the-function-avia_breadcrumbs-finished-with-s
*/
add_filter( 'avia_breadcrumbs_trail', 'avia_change_breadcrumb', 50, 2 );
function avia_change_breadcrumb( $trail, $args ) {
if ( is_single() ) {
$category = get_the_category();
if ( !empty( $category ) ) {
// Correct breadcrumb for Blog, Bloc de notas & Fotoblog single posts:
if ( in_array( $category[0]->term_id, array( 982, 978, 976 ) ) && strpos( $trail[1], 'social' ) ) {
switch ( $category[0]->term_id ) {
case 982: // Blog
array_splice( $trail, 1, 2, array( '<a href="/blog/category/blog">Blog</a>' ) );
break;
case 978: // Bloc de notas
array_splice( $trail, 1, 2, array( '<a href="/blog/category/notebook">Bloc de notas</a>' ) );
break;
case 976: // Fotoblog
array_splice( $trail, 1, 2, array( '<a href="/blog/category/photoblog">Álbum de fotos</a>' ) );
}
}
// Social breadcrumb for Twitter, Facebook & LinkedIn content:
elseif ( in_array( $category[0]->term_id, array( 1562, 1563, 1564 ) ) ) {
unset ( $trail[2] );
}
}
}
elseif ( is_tag() || is_category( array( 982, 978, 976 ) ) ) {
// Posts breadcrumb for Blog, Bloc de notas & Fotoblog categories:
array_splice( $trail, 1, 0, array( '<a href="/posts" title="Todas las entradas">Entradas</a>' ) );
}
return $trail;
}
/*
* Auto generate the post title if it's empty and post has content. And share
* content in social networks if required.
*/
add_filter( 'wp_insert_post_data', 'before_save_post', 1, 2 );
function before_save_post( $data, $postarr ) {
// Title for Instagram captures:
if ( $data['post_title'] == 'INSTAGRAM' ) {
$dotpos = strpos( $data['post_content'], '. ' );
$title_instagram = $dotpos > 0 ? substr( $data['post_content'], 0, $dotpos ) : $data['post_content'];
$title_instagram = trim( strip_tags( preg_replace( '!\s+!', ' ', str_replace( '&nbsp;', ' ', $title_instagram ) ) ) );
$title_words = explode( ' ', $title_instagram );
if ( count( $title_words ) > 12 ) {
$title_instagram = implode( ' ', array_slice( $title_words, 0, 12 ) ) . ' …';
}
else {
$data['post_content'] = substr( $data['post_content'], $dotpos + 2 );
}
$data['post_title'] = $title_instagram;
}
$title = preg_replace( '!\s+!', ' ', str_replace( '&nbsp;', ' ', $data['post_title'] ) );
$text_title = trim( strip_tags( $title ) );
$content = preg_replace( '!\s+!', ' ', str_replace( '&nbsp;', ' ', $data['post_content'] ) );
$text_content = trim( strip_tags( $content ) );
if ( empty( $text_title ) ) {
if ( ! empty( $text_content ) ) {
$content_words = explode( ' ', $text_content );
$text_title = implode( ' ', array_slice( $content_words, 0, 4 ) );
$data['post_title'] = count( $content_words ) > 4 ? "$text_title" : $text_title;
}
}
// Retrieve the list of categories for the post:
$categories = $postarr['post_category'];
if ( is_array( $categories ) ) {
if ( $categories[0] == 0 ) {
array_shift( $categories );
}
}
else {
// For posts sent from the WordPress App:
$categories = $postarr['tax_input']['category'];
if ( ! is_array( $categories ) ) {
$categories = array();
}
}
// Count post categories:
$num_categories = count( $categories );
// Review post only for Álbum de fotos, Social, Twitter, Facebook & LinkedIn categories:
$num_social_categories = count( array_intersect( array( 976, 1561, 1562, 1563, 1564 ), $categories ) );
// Adapting content for pure social posts:
# if ( $num_categories == $num_social_categories ) {
# $post_content = trim( strip_tags( $content, '<p><a><strong><b><em><i><br />' ) );
/*
Remove html attributes except for anchor tag:
/ Start Pattern
< Match '<' at beginning of tags
( Start Capture Group $1 - Tag Name
[a-z] Match 'a' through 'z'
[a-z0-9]+ Match 'a' through 'z' or '0' through '9' one or more times
) End Capture Group
[^>]*? Match anything other than '>', Zero or More times, not-greedy (wont eat the /)
(\/?) Capture Group $2 - '/' if it is there
> Match '>'
/i End Pattern - Case Insensitive
*/
# $post_content = preg_replace( "/<([a-z][a-z0-9]+)[^>]*?(\/?)>/i", '<$1$2>', $post_content );
# $data['post_content'] = str_replace( array( '<b>', '</b>', '<i>', '</i>' ), array( '<strong>', '</strong>', '<em>', '</em>' ), $post_content );
# }
// Nothing to do if there aren't social categories:
if ( $num_social_categories > 0 ) {
// Preparing post excerpt for Twitter:
$text_excerpt = $text_content;
if ( ! empty( $text_title ) && mb_strpos( $text_content, $text_title ) !== 0 ) {
$text_excerpt = empty( $text_content ) ? $text_title : "$text_title. $text_content";
}
$text_excerpt = html_entity_decode( $text_excerpt );
// Límite máximo.
// Debería ser de 280 caracteres menos los enlaces al blog y a la imagen
// destacada; pero como el plugin SNAP sigue acortando a 140 se opta por
// no restar nada ya que hay margen suficiente hasta los 280:
$limit = 140;
/* // Se le resta el enlace al blog:
$limit -= 25;
// Se le resta el enlace a la imagen destacada (si la tiene):
if (has_post_thumbnail()) {
$limit -= 25;
}
*/
// Se prepara el texto que se puede mostrar:
if ( strlen( $text_excerpt ) > $limit ) {
preg_match_all( '#\bhttps?://[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/))#', $text_excerpt, $matches );
for ( $i = 0; $i < count( $matches[0] ); $i++ ) {
$text_excerpt = str_replace( $matches[0][$i], shorten_url( $matches[0][$i] ), $text_excerpt );
}
if ( strlen( $text_excerpt ) > $limit ) {
$text_excerpt = mb_substr( $text_excerpt, 0, $limit - 1 );
$text_excerpt = mb_substr( $text_excerpt, 0, mb_strrpos( $text_excerpt, ' ' ) ) . '…';
}
}
$data['post_excerpt'] = $text_excerpt;
}
return $data;
}
function shorten_url( $long_url ) {
$bitly_login = 'o_7sko9rcpp7';
$bitly_apikey = 'R_f414bf78d22443c6a6bad3c58921fd96';
$bitly_shorten = "http://api.bit.ly/v3/shorten?login=" . $bitly_login . "&apiKey=" . $bitly_apikey . "&longUrl=" . $long_url . "&format=json";
return json_decode( file_get_contents( $bitly_shorten ) )->data->url;
}
/*
* Default image fallback.
* See https://www.artifaktdigital.com/use-yoast-seo-ogimage-as-a-fallback-featured-image-a-tutorial/
*
# add_filter( 'post_thumbnail_html', 'social_post_defautl_thumbnail', 20, 5 );
function social_post_defautl_thumbnail( $html, $post_id, $post_thumbnail_id, $size, $attr ) {
global $wpdb;
if ( empty( $html ) ) {
// Return you Yoast SEO default image if the post thumbnail html is empty:
$opt = get_option( 'wpseo_social' );
$url = $opt['og_default_image'];
if ( $id !== '' ) {
// Retrieves the attachment ID from the file URL:
$attachment = $wpdb->get_col( $wpdb->prepare( "SELECT ID FROM $wpdb->posts WHERE guid = '%s';", $url ) );
$id = $attachment[0];
return wp_get_attachment_image( $id, $size );
}
}
return $html;
} */
/*
* Add a button to display the number of characters in Title and Content editor;
* and also add a character counter to the Excerpt box (with no limit).
* See https://premium.wpmudev.org/blog/character-counter-excerpt-box
*/
add_action( 'admin_head-post.php', 'char_counter_js' );
add_action( 'admin_head-post-new.php', 'char_counter_js' );
function char_counter_js() {
if ( get_post_type() == 'post' ) { echo '
<script>
jQuery(document).ready(function(){
var urls_regexp = new RegExp(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi);
function htmlDecode(input){
input = input.replace(/(<[a-zA-Z\/][^<>]*>|\[([^\]]+)\])/ig,"");
// https://stackoverflow.com/a/34064434
var doc = new DOMParser().parseFromString(input, "text/html");
return doc.documentElement.textContent;
}
function get_content_length(){
var title_length = htmlDecode(jQuery("#title").val()).length;
var content = "";
// Are we using visual editor?
if ((typeof tinyMCE != "undefined") && tinyMCE.activeEditor && !tinyMCE.activeEditor.isHidden()){
content = htmlDecode(tinyMCE.activeEditor.getContent());
}
// Or html editor?
else {
content = htmlDecode(jQuery("#content").val());
}
var content_length = content.length;
var tuit_length = content_length;
var urls = content.match(urls_regexp);
if (urls) for (i = 0; i < urls.length; i++) tuit_length = tuit_length - urls[i].length + 23;
var return_text = "El título tiene " + title_length.toString() + " caracteres.";
return_text += " Y el contenido " + content_length.toString();
return_text += content_length != tuit_length ? " (" + tuit_length.toString() + " en Twitter)." : ".";
return return_text;
}
jQuery("#wp-content-media-buttons").after("<button id=\"content-counter\" class=\"button\" title=\"Número de caracteres\" href=\"javascript:;\"><strong>#</strong></button>");
jQuery("#content-counter").click(function(e){ alert(get_content_length()); e.preventDefault(); });
function get_excerpt_length(){
var excerpt_length = jQuery("#excerpt").val().length;
var tuit_length = excerpt_length;
var urls = jQuery("#excerpt").val().match(urls_regexp);
if (urls) for (i = 0; i < urls.length; i++) tuit_length = tuit_length - urls[i].length + 23;
tuit_length = 140 - tuit_length;
return excerpt_length.toString() + " / " + tuit_length.toString() + " (Twitter)";
}
jQuery("#postexcerpt .handlediv").after("<div style=\"position:absolute;top:12px;right:34px;color:#666;\"><span id=\"excerpt_counter\"></span></div>");
jQuery("span#excerpt_counter").text(get_excerpt_length());
jQuery("#excerpt").keyup(function(){ jQuery("span#excerpt_counter").text(get_excerpt_length()); });
});
</script>';
}
}
/*
* Ensure that AccessPress Social Auto Post works in all cases.
*
add_action( 'publish_post', 'publish_social_post', 10, 2 );
function publish_social_post( $ID, $post ) {
$auto_post = $_POST['asap_auto_post'];
if ( $auto_post == 'yes' || $auto_post == '' ) {
$plugin_asap_dir = ABSPATH . 'wp-content/plugins/accesspress-social-auto-post/';
// Only Facebook and LinkedIn:
include_once( $plugin_asap_dir . 'api/facebook/facebook.php' );
# include_once( $plugin_asap_dir . 'api/twitter/codebird.php' );
# include_once( $plugin_asap_dir . 'api/tumblr/TumblrAPIClient.php' );
include_once( $plugin_asap_dir . 'api/linkedin/liOAuth.php' );
include( $plugin_asap_dir . 'inc/cores/auto-post.php' );
$check = update_post_meta( $post->ID, 'asap_auto_post', 'no' );
$_POST['asap_auto_post'] = 'no';
}
} */
/*
* New widget for Enfold theme. Display the single post header with the slider,
* title and meta info.
*/
add_action( 'widgets_init', function() {
register_widget( 'enfold_post_header_widget' );
});
class enfold_post_header_widget extends WP_Widget {
function __construct() {
parent::__construct(
// Base ID:
'enfold_post_header_widget',
// Widget name will appear in UI:
__( 'Enfold Cille Post Header', 'avia_framework' ),
// Widget description:
array( 'description' => __( 'Display the single post header with the slider, title and meta info', 'avia_framework' ) )
);
}
public function widget( $args, $instance ) {
global $avia_config;
echo $args['before_widget'];
$blog_style = avia_get_option( 'single_post_style', 'single-big' );
$blog_global_style = avia_get_option( 'blog_global_style', '' );
$the_id = get_the_ID();
// Get the current post id, the current post class and current post format:
$url = '';
$current_post = array();
$current_post['the_id'] = $the_id;
$current_post['post_type'] = get_post_type( $current_post['the_id'] );
$current_post['post_class'] = 'post-entry-' . $current_post['the_id'] . ' ' . $blog_style;
$current_post['post_class'] .= $current_post['post_type'] == 'post' ? '' : ' post';
$current_post['post_format'] = get_post_format() ? get_post_format() : 'standard';
$current_post['post_layout'] = avia_layout_class( 'main', false );
// Retrieve slider and title for this post...
$size = strpos( $blog_style, 'big' ) ? strpos( $current_post['post_layout'], 'sidebar' ) !== false ? 'entry_with_sidebar' : 'entry_without_sidebar' : 'square';
if ( ! empty( $avia_config['preview_mode'] ) && ! empty( $avia_config['image_size'] ) && $avia_config['preview_mode'] == 'custom' ) {
$size = $avia_config['image_size'];
}
$current_post['slider'] = get_the_post_thumbnail( $current_post['the_id'], $size );
if ( get_post_meta( $current_post['the_id'], '_avia_hide_featured_image', true ) ) {
$current_post['slider'] = '';
}
$current_post['title'] = get_the_title();
// Now apply a filter, based on the post type... (filter function is located in includes/helper-post-format.php):
$current_post = apply_filters( 'post-format-' . $current_post['post_format'], $current_post );
// Extract the variables so that $current_post['slider'] becomes $slider, $current_post['title'] becomes $title, etc...
extract( $current_post );
// Default link and preview image description:
$link = avia_image_by_id( get_post_thumbnail_id(), 'large', 'url' );
$desc = get_post( get_post_thumbnail_id() );
if ( is_object( $desc ) ) {
$desc = $desc->post_excerpt;
}
$featured_img_desc = $desc != '' ? $desc : the_title_attribute( 'echo=0' );
// Echo preview image:
if ( strpos( $blog_global_style, 'elegant-blog' ) === false ) {
if ( strpos( $blog_style, 'big' ) !== false ) {
if ( $slider ) $slider = "<a href=\"$link\" title=\"$featured_img_desc\">$slider</a>";
if ( $slider ) echo "<div class=\"big-preview $blog_style\">$slider</div>";
}
}
echo '<div class="blog-meta">';
if ( strpos( $blog_style, 'multi' ) !== false ) {
$author_name = apply_filters( 'avf_author_name', get_the_author_meta( 'display_name', $post->post_author ), $post->post_author );
$author_email = apply_filters( 'avf_author_email', get_the_author_meta( 'email', $post->post_author ), $post->post_author );
$link = get_author_posts_url( $post->post_author );
}
echo '</div>';
echo '<header class="entry-content-header">';
$taxonomies = get_object_taxonomies( get_post_type( $the_id ) );
$cats = '';
$excluded_taxonomies = array_merge( get_taxonomies( array( 'public' => false ) ), array( 'post_tag', 'post_format' ) );
$excluded_taxonomies = apply_filters( 'avf_exclude_taxonomies', $excluded_taxonomies, get_post_type( $the_id ), $the_id );
if ( ! empty( $taxonomies ) ) {
foreach ( $taxonomies as $taxonomy ) {
if ( ! in_array( $taxonomy, $excluded_taxonomies ) ) {
$cats .= get_the_term_list( $the_id, $taxonomy, '', ', ', '') . ' ';
}
}
}
if ( strpos( $blog_global_style, 'elegant-blog' ) !== false ) {
$cat_output = '';
if ( ! empty( $cats ) ) {
$cat_output .= '<span class="blog-categories minor-meta">';
$cat_output .= $cats;
$cat_output .= '</span>';
$cats = '';
}
echo strpos( $blog_global_style, 'modern-blog' ) === false ? $cat_output . $title : $title . $cat_output;
echo '<span class="av-vertical-delimiter"></span>';
if ( strpos( $blog_style, 'big' ) !== false ) {
if ( $slider ) $slider = "<a href=\"$link\" title=\"$featured_img_desc\">$slider</a>";
if ( $slider ) echo "<div class=\"big-preview $blog_style\">$slider</div>";
}
$cats = '';
$title = '';
}
echo $title;
echo '<span class="post-meta-infos">';
echo '<time class="date-container minor-meta updated">' . get_the_time( get_option( 'date_format' ) ) . '</time>';
echo '<span class="text-sep text-sep-date">/</span>';
if ( get_comments_number() != '0' || comments_open() ) {
echo '<span class="comment-container minor-meta">';
comments_popup_link( '0 ' . __( 'Comments', 'avia_framework' ),
'1 ' . __( 'Comment' , 'avia_framework' ),
'% ' . __( 'Comments', 'avia_framework' ), 'comments-link',
'' . __( 'Comments Disabled', 'avia_framework' ) );
echo '</span>';
echo '<span class="text-sep text-sep-comment">/</span>';
}
if ( ! empty( $cats ) ) {
echo '<span class="blog-categories minor-meta">' . __( 'in', 'avia_framework' ) . ' ';
echo $cats;
echo '</span><span class="text-sep text-sep-cat">/</span>';
}
echo '<span class="blog-author minor-meta">' . __( 'by', 'avia_framework' ) . ' ';
echo '<span class="entry-author-link">';
echo '<span class="vcard author"><span class="fn">';
the_author_posts_link();
echo '</span></span>';
echo '</span>';
echo '</span>';
echo '</span>';
echo '</header>';
echo $args['after_widget'];
}
}
/*
* New widget for Enfold theme. Display the single post footer with the tags,
* social share links and related posts.
* See http://www.wpbeginner.com/wp-tutorials/how-to-create-a-custom-wordpress-widget/
*/
add_action( 'widgets_init', function() {
register_widget( 'enfold_post_footer_widget' );
});
class enfold_post_footer_widget extends WP_Widget {
function __construct() {
parent::__construct(
// Base ID:
'enfold_post_footer_widget',
// Widget name will appear in UI:
__( 'Enfold Cille Post Footer', 'avia_framework' ),
// Widget description:
array( 'description' => __( 'Display the single post footer with the tags, social share links and related posts', 'avia_framework' ) )
);
}
public function widget( $args, $instance ) {
echo $args['before_widget'];
echo '<footer class="entry-footer">';
if ( has_tag() ) {
echo '<span class="blog-tags minor-meta">';
echo the_tags( '<strong>' . __( 'Tags:', 'avia_framework' ) . '</strong><span> ' );
echo '</span></span>';
}
avia_social_share_links();
echo '</footer>';
echo '<div style="margin-top: 172px;">';
echo get_template_part( '../enfold/includes/related-posts');
echo '</div>';
echo $args['after_widget'];
}
}
/*
* Enable a new widget sidebar to display widgets after the loop.
* See https://stackoverflow.com/questions/39181634/how-to-add-a-widget-after-post-content
* See https://wordpress.stackexchange.com/questions/107113/output-before-and-after-the-loop
*/
register_sidebar( array(
'name' => 'Displayed After Loop',
'id' => 'after-loop',
'description' => '',
'before_widget' => '<div class="quotes-after-loop">',
'after_widget' => '</div>',
'before_title' => '<h5>',
'after_title' => '</h5>',
) );
add_action( 'loop_end', 'wp_content_after_loop' );
function wp_content_after_loop( $query ) {
if ( $query->is_main_query() && is_active_sidebar( 'after-loop' ) ) {
dynamic_sidebar( 'after-loop' );
}
}
/*
* Restore the font size in the tag cloud widget using a copy of the entire Avia
* stylesheet "enfold/css/avia-snippet-widget.css" from Enfold 4.5, and removing
* the font size line in the tag cloud styles.
* See https://kriesi.at/support/topic/tag-cloud-widget-display/#post-684196
*/
add_action( 'wp_enqueue_scripts', 'wp_change_layoutcss', 20 );
function wp_change_layoutcss() {
wp_dequeue_style( 'avia-widget-css' );
wp_enqueue_style( 'avia-widget-css-child', get_stylesheet_directory_uri() . '/avia-snippet-widget.css' );
}
/*
* Remove Avia Framework debug information in child theme.
* See http://www.kriesi.at/support/topic/removal-of-theme-debug-info/#post-386207
*/
add_action( 'init', 'avia_remove_debug' );
function avia_remove_debug() {
remove_action( 'wp_head', 'avia_debugging_info', 1000 );
}
/*
* Disable the W3 Total Cache Footer Comment.
* See https://www.dylanbarlett.com/2014/01/disabling-w3-total-cache-footer-comment/
*/
add_filter( 'w3tc_can_print_comment', '__return_false', 10, 1 );
/*
* Adding legal information in socket using a shortcode.
* See http://www.kriesi.at/support/topic/how-do-i-add-a-dynamic-current-year-to-socket
*/
add_shortcode( 'infolegal', 'infolegal_func' );
function infolegal_func( $atts ) {
$legal = '<div id="legal">';
$legal .= '<span class="legal-notice"><a href="/legal">Aviso legal</a></span>';
$legal .= '<span class="legal-terms"> &nbsp;|&nbsp; <a href="/legal/condiciones-de-uso">Condiciones de uso</a></span>';
$legal .= '<span class="legal-privacy"> &nbsp;|&nbsp; <a href="/legal/politica-de-privacidad">Política de privacidad</a></span>';
$legal .= '<span class="legal-cookies"> &nbsp;|&nbsp; <a href="/legal/politica-de-cookies">Uso de cookies</a></span>';
$legal .= '</div> ';
$legal .= '2009-' . date( 'Y' ) . ' &copy; manuel.cillero.es';
return $legal;
}
/*
* Hide text or emails from Spam Bots using a shortcode.
* Use: [antibots]text or email[/antibots].
* See https://developer.wordpress.org/reference/functions/antispambot/#comment-756
*/
add_shortcode( 'antibots', 'hide_content_antibots_shortcode' );
function hide_content_antibots_shortcode( $atts, $content = null ) {
if ( is_email( $content ) ) {
return '<a href="' . antispambot( 'mailto:' . $content ) . '">' . esc_html( antispambot( $content ) ) . '</a>';
}
return antispambot( $content );
}

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 245 B

After

Width:  |  Height:  |  Size: 245 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 3.2 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 4.4 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 896 B

After

Width:  |  Height:  |  Size: 896 B

Before After
Before After

View file

Before

Width:  |  Height:  |  Size: 379 KiB

After

Width:  |  Height:  |  Size: 379 KiB

Before After
Before After

View file

@ -0,0 +1,991 @@
/*
Theme Name: Enfold Cille
Description: A <a href='http://codex.wordpress.org/Child_Themes'>Child Theme</a> for the Enfold Wordpress Theme.
Version: 1.4
Author: Manuel Cillero
Author URI: http://manuel.cillero.es
Template: enfold
*/
/*
* LAYOUT.
*/
.container {
padding-right: 30px;
padding-left: 30px;
}
div .av_one_fourth {
margin-left: 3%;
width: 23.5%;
}
#top .av-flex-placeholder {
width: 3%;
}
.big-preview.single-big,
.content .entry-content-wrapper,
.sidebar_right .comment_container,
.related_posts {
padding-right: 0;
margin-right: 0px !important;
border-top-width: 0;
}
body.tag .content {
padding-top: 12px;
}
body.page-child .content,
body.page-parent .content {
padding-top: 32px;
}
/*
* Main colors.
*/
strong {
color: inherit !important;
}
div.container_wrap_first {
background: #ebeae9 url(images/bg-page.png) repeat-x 0 bottom;
}
div.container_wrap_first > div.container:first-child {
background-color: #fff;
}
.main_color .av-inner-masonry-content {
opacity: .82;
filter: alpha(opacity=82); /* For IE8 and earlier */
}
/*
* Lists.
*/
.custom-list > li {
list-style: none;
position: relative;
}
.custom-list > li > span.num {
display: block;
position: absolute;
text-align: right;
width: 3em;
left: -3.225em;
cursor: default;
}
ol > li > br,
ul > li > br {
display: block; /* https://stackoverflow.com/a/31633969 */
content: "";
margin-top: 6px;
}
/*
* Home page.
*/
.av-masonry-entry .av-masonry-entry-title {
font-size: 18px;
color: inherit;
}
.av-masonry-entry .av-inner-masonry-content {
padding: 10px;
}
.av-masonry-entry.category-blog.av-masonry-item-no-image .av-inner-masonry-content {
background: url(images/av-masonry-item-no-image.jpg) no-repeat center center;
}
#dpe_fp_widget-9 {
padding-bottom: 0;
}
/*
* Cookies advice.
*/
.avia-cookie-consent p {
color: #fff;
font-size: .85em !important;
letter-spacing: 0.015em !important;
font-weight: lighter;
line-height: 1.55em;
max-width: 800px;
text-align: left;
}
.avia-cookie-consent a {
color: #aaa;
text-decoration: underline;
}
.avia-cookie-consent a:first-child {
text-decoration: none;
font-weight: bold;
}
.avia-cookie-consent a:hover {
color: #fff;
}
a.avia-cookie-consent-button:hover {
color: #000;
}
@media (max-width: 989px) {
.avia-cookie-consent p {
max-width: 100%;
text-align: justify;
}
}
/*
* Main title & breadcrumb.
*/
.title_container .main-title {
font-size: 44px;
font-weight: 600;
line-height: 1em;
display: block;
margin-bottom: 6px;
}
#top .alternate_color.title_container .main-title,
#top .alternate_color.title_container .main-title a {
color: #ff3300;
}
.title_container .breadcrumb {
margin-top: .24em;
position: relative;
left: -2px;
right: auto;
line-height: 18px;
font-size: 13px;
font-weight: bold;
max-width: 100%;
}
.breadcrumb-trail span.breadcrumb-title {
display: none;
}
.alternate_color .breadcrumb a {
color: #3c8dbc;
text-decoration: none;
}
.alternate_color .breadcrumb a:hover,
.alternate_color .breadcrumb a:focus {
color: #f70a0a;
}
/*
* MENUS.
*/
#header_main {
border-bottom: 0;
}
.av-main-nav > li > a {
font-weight: normal;
font-size: 18px;
}
.sub_menu {
font-size: 12px;
}
.sub_menu > ul > li > a,
.sub_menu > div > ul > li > a {
font-weight: normal;
}
.sub_menu > ul > li:hover > a {
text-decoration: none;
}
#top .av-main-nav ul a {
font-weight: 300;
font-size: 15px;
}
.header_color .avia-menu-fx {
background-color: #e9146c;
height: 4px;
}
#menu-item-5544 {
border-top: 1px solid #556372;
}
/*
* Navigation menu for pages.
*/
#top .widget_nav_menu {
padding-bottom: 0;
}
#top .widget_nav_menu .nested_nav {
padding-bottom: 20px !important;
}
#top .widget_nav_menu ul ul li {
line-height: 1.5em;
}
/*
* POST STYLES.
*/
.avia_textblock,
.entry-content-wrapper {
line-height: 1.42857;
}
.entry-content-header .post-title,
#top .flex_column .template-blog .post-title {
text-transform: none !important;
font-size: 41px !important;
line-height: 1em;
color: #ff3300;
}
.entry-content-wrapper h1,
.entry-content-wrapper h2 {
text-transform: none !important;
letter-spacing: 0 !important;
}
.entry-content-wrapper h1,
.entry-content-wrapper h2,
.entry-content-wrapper h3,
.entry-content-wrapper h4 {
color: #b40b51;
margin: 1rem 0;
padding: 2px 10px 1px 0;
}
.entry-content-wrapper h3 {
font-size: 22px;
}
.entry-content-wrapper h4 {
font-size: 20px;
color: #585b5a;
margin-bottom: 10px;
}
.entry-content-wrapper h5 {
font-size: 19px;
color: #6a6e71;
margin: 1rem 0 5px;
padding: 0;
}
.entry-content-wrapper h6 {
font-size: 18px;
color: #81868b;
margin: 1rem 0 5px;
padding: 0;
}
.entry-content-wrapper p {
text-align: justify;
margin: 1em 0;
}
#top .template-search.content .entry-content-wrapper {
font-size: 18px;
padding-bottom: 20px;
}
.entry-content-wrapper a {
text-overflow: ellipsis;
text-decoration: none;
-webkit-transition: color .3s;
-moz-transition: color .3s;
-o-transition: color .3s;
-ms-transition: color .3s;
transition: color .3s;
}
.entry-content-wrapper li.no-bullet {
list-style-type: none;
}
.entry-content-wrapper li li {
margin-bottom: 0;
}
.entry-content-wrapper li > h4 {
margin-top: 8px;
margin-bottom: 8px;
}
.entry-content-wrapper td {
font-size: 14px;
line-height: 18px;
}
.entry-content-wrapper td li {
margin-left: 0;
}
.entry-content-wrapper td li ul {
margin-left: 1em;
}
.entry-content-wrapper .text-underline {
border-bottom: 1px solid currentcolor;
}
/* Text styles */
span[data-avia-tooltip] {
padding-left: 2px;
padding-right: 2px;
border-bottom: 3px solid #e9146c;
cursor: help;
}
.text-highlight,
.line-highlight-green,
.line-highlight-yellow,
.line-highlight-red,
.line-highlight-blue {
padding-left: 2px;
padding-right: 2px;
border-bottom: 3px solid #d8ff3f !important;
}
.text-highlight {
border-radius: 3px;
border: 3px solid #d8ff3f !important;
background-color: #d8ff3f;
}
.line-highlight-yellow {
border-color: #fff2a8 !important;
}
.line-highlight-red {
border-color: #ffb7b7 !important;
}
.line-highlight-blue {
border-color: #a8d1ff !important;
}
/* Center and set background color for featured images */
.big-preview a {
border-radius: 5px;
background: #ffdf99; /* url(images/bg-preview.jpg) repeat center center; */
}
.post-entry .big-preview img {
margin: auto;
}
/* Links and Social posts */
article.post-entry-simple .entry-content-wrapper div.entry-content {
border-left: 7px solid #3c8dbc;
padding-left: 20px;
}
article.post-entry-simple .entry-content-wrapper p {
font-size: 1.235em;
line-height: 1.5em;
text-align: left;
color: #999999 !important;
}
/* Quotes posts */
article.type-quote .post-meta-infos > time,
article.type-quote .post-meta-infos > span {
display: none;
}
article.type-quote .post-meta-infos > span.blog-categories {
display: block;
text-indent: -1.325em;
margin-top: 1.4em;
}
article.type-quote .post-meta-infos span.blog-categories a:before {
content: "— ";
}
article.type-quote .post-meta-infos span.blog-categories a {
font-size: 1.4em;
color: #797979;
padding-left: 4px;
}
article.type-quote .entry-content-wrapper div.entry-content {
padding-left: 60px;
background: url(images/quotes.png) no-repeat 5px 0;
}
article.type-quote .entry-content-wrapper p {
font-size: 1.5em;
font-style: italic;
line-height: 1.5em;
text-align: left;
color: #999999 !important;
}
.quotes-after-loop h5 {
margin-bottom: 1em;
}
.quotes-after-loop ul {
margin: 0 0 1em;
}
.quotes-after-loop li.quote {
margin: 1.2em 0 .6em;
}
.quotes-after-loop .quote-text p {
color: #aaa;
}
.quotes-after-loop .quote-author a {
color: #797979;
}
/* EXIF info */
p.exif > span > span {
font-weight: 700;
}
p.exif > span:after {
content: ", ";
}
p.exif > span:last-child:after {
content: ".";
}
/* Post footer */
footer.entry-footer {
clear: both;
padding-top: 2em;
}
/* Post tags */
.blog-tags {
visibility: hidden;
line-height: 40px;
}
.blog-tags strong {
display: none;
}
.blog-tags a {
visibility: visible;
display: block;
float: left;
padding: 0 8px;
height: 34px;
line-height: 34px;
margin-bottom: 6px;
margin-right: 8px;
font-family: Menlo,Monaco,Consolas,"Courier New",monospace;
font-size: 14px;
white-space: nowrap;
background-color: #000;
}
.blog-tags a:hover {
color: #fff;
}
/* Bottom post delimiter */
.template-blog .post_delimiter {
margin-bottom: 30px;
}
/* Comments */
.comment_content,
#top .commentlist .children ul {
padding-right: 18px !important;
}
.children .comment_content {
padding-right: 35px !important;
}
.comment_container h3 {
color: #e9146c;
font-size: 28px;
}
#top .comment_text {
font-size: 16px;
}
#commentform p {
padding-bottom: 5px;
}
#commentform p > input[type="text"] {
margin-bottom: 5px;
}
#commentform label {
left: 230px;
font-size: 14px;
margin-top: .2em;
line-height: 1.4em;
color: #777;
}
#commentform input[type='checkbox'] {
margin-top: 1em;
}
#commentform p.comment-form-av-privatepolicy {
margin: 0 !important;
}
#commentform p.comment-form-av-privatepolicy label,
#commentform p.comment-subscription-form label {
margin-top: 0;
font-weight: normal;
}
#commentform p.comment-form-av-privatepolicy label a {
font-weight: bold;
}
#commentform input[type='checkbox'] + label {
left: 1.6em;
}
#commentform #submit {
margin-top: 2em;
font-size: 0.85em;
}
#commentform p.form-submit {
margin: 15px 0 10px;
}
#commentform p.form-submit > input[type="submit"] {
font-size: 15px;
}
/*
* EnlighterJS PLUGIN.
*/
div.EnlighterJSWrapper {
overflow-x: scroll;
}
ul.EnlighterJS {
padding: 12px 0 !important;
background-color: #fff !important;
}
ul.EnlighterJS li,
div.EnlighterJSWrapper pre {
white-space: pre;
}
span.EnlighterJS {
border: 0 !important;
background-color: #fffcd3 !important;
}
.EnlighterJS span {
font-size: 18px !important;
}
.wpcustomEnlighterJS span {
font-size: 24px !important;
}
/*
* PAGES STYLES.
*/
#tag_cloud-5 a {
display: inline;
float: none;
border: 0;
padding: 2px 3px;
}
/*
* WIDGETS.
*/
.widget {
padding-bottom: 15px;
}
.widget_nav_menu .nested_nav > li > a:before,
h3.widgettitle:before {
content: "//";
margin-left: -18px;
position: absolute;
}
.widget_nav_menu .nested_nav > li > a,
h3.widgettitle {
margin: 0 0 14px !important;
padding: 5px 5px 5px 23px !important;
color: #eee !important;
background-color: #556372;
font-weight: normal !important;
font-size: 18px;
line-height: 23px;
text-transform: none;
}
.widget_nav_menu .nested_nav > li > a {
font-family: "Lato", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
letter-spacing: 1px;
}
.widget_nav_menu .nested_nav > li {
display: none;
}
.widget_nav_menu .nested_nav > li.current_page_item,
.widget_nav_menu .nested_nav > li.current_page_ancestor {
display: block;
}
/*
* List items widgets.
*/
ul.dpe-flexible-posts li {
list-style-type: none;
list-style-image: none;
margin-left: 0 !important;
margin-bottom: 8px;
text-align: left;
}
ul.dpe-flexible-posts li img {
float: left;
margin-right: 10px;
width: 50px;
height: 50px;
/* Grayscale for image */
filter: gray; /* IE6-9 */
filter: grayscale(1); /* Microsoft Edge and Firefox 35+ */
-webkit-filter: grayscale(1); /* Google Chrome, Safari 6+ & Opera 15+ */
}
ul.dpe-flexible-posts li a:hover img,
ul.dpe-flexible-posts a.active img,
ul.dpe-flexible-photos-footer li a:hover img,
ul.dpe-flexible-photos-footer a.active img {
/* Disable grayscale on hover */
filter: none;
-webkit-filter: grayscale(0);
/* Soft transition */
-webkit-transition: .4s -webkit-filter linear;
-moz-transition: .4s -moz-filter linear;
-moz-transition: .4s filter linear;
-o-transition: .4s -o-filter linear;
-ms-transition: .4s -ms-filter linear;
transition: .4s filter linear;
}
ul.dpe-flexible-posts li p.meta {
font-weight: normal;
font-style: italic;
font-size: 12px;
color: #e58a28;
line-height: 1.2em;
text-align: left;
margin-top: 6px;
}
ul.dpe-flexible-posts li img + h4,
ul.dpe-flexible-posts li img + h4 + p.meta {
margin-left: 60px;
}
ul.dpe-flexible-posts a {
text-decoration: none;
}
ul.dpe-flexible-posts a h4 {
color: #3c8dbc;
margin-top: 0;
}
ul.dpe-flexible-posts a h4:hover,
ul.dpe-flexible-posts a h4:focus,
ul.dpe-flexible-posts a.active h4 {
color: #f70a0a;
-webkit-transition: color .3s;
-moz-transition: color .3s;
-o-transition: color .3s;
-ms-transition: color .3s;
transition: color .3s;
}
/* Notes widget */
ul.dpe-flexible-posts.list-notes li img {
width: 70px;
height: 70px;
border-radius: 5px;
}
ul.dpe-flexible-posts.list-notes li img + h4,
ul.dpe-flexible-posts.list-notes li img + h4 + p.meta {
margin-left: 80px;
}
/* Blogroll widget */
ul.dpe-flexible-posts.list-blogroll li img {
width: 60px;
height: 60px;
border-radius: 30px;
}
ul.dpe-flexible-posts.list-blogroll li img + h4,
ul.dpe-flexible-posts.list-blogroll li img + h4 + p.meta {
margin-left: 70px;
}
/*
* Photos widgets.
*/
ul.dpe-flexible-photos li {
list-style-type: none;
list-style-image: none;
width: 45%;
margin: 0 2.5%;
clear: none;
}
ul.dpe-flexible-photos li a {
display: inline-block;
width: 100%;
height: auto;
}
ul.dpe-flexible-photos li img,
ul.dpe-flexible-photos-footer li img {
display: block;
/* Grayscale for image */
filter: gray; /* IE6-9 */
filter: grayscale(.75); /* Microsoft Edge and Firefox 35+ */
-webkit-filter: grayscale(.75); /* Google Chrome, Safari 6+ & Opera 15+ */
}
#dpe_fp_widget-18 {
width: 100%;
height: 105px;
margin: 14px 0 0 !important;
}
ul.dpe-flexible-photos-footer {
width: 1400px !important;
}
ul.dpe-flexible-photos-footer li {
width: auto;
clear: none;
float: none;
display: inline-block;
margin-top: 6px;
margin-right: 15px;
}
ul.dpe-flexible-photos-footer li a {
display: block;
border: 6px solid #d0ceba;
-webkit-transition: border .3s;
-moz-transition: border .3s;
-o-transition: border .3s;
-ms-transition: border .3s;
transition: border .3s;
}
ul.dpe-flexible-photos-footer li a:hover {
border: 6px solid #fff;
}
a.dpe-flexible-photos-link {
display: block;
width: 30px;
height: 105px;
position: absolute;
right: 0;
background: transparent url(images/list-photoblog.png) no-repeat left 0;
overflow: hidden;
z-index: 10;
}
a.dpe-flexible-photos-link:hover {
background-position: -30px 0;
}
/*
* Conversations widget.
*/
.widget_recent_comments li.recentcomments {
margin-left: 0;
}
/*
* Quotes widgets.
*/
#quotes .av_one_half {
padding-top: 24px;
padding-left: 160px;
background: transparent url(images/quotes-es.png) no-repeat 14px 32px;
}
#quotes .av_one_half + .av_one_half {
background-image: url(images/quotes-en.png);
}
#quotes .av_one_half .widget {
padding: 0 !important;
}
.quote-text {
font: italic 1.2em Georgia, "Times New Roman", Times, serif;
}
.quote-text,
.quote-text p {
color: #ccc;
text-align: left;
margin: .1em 0 .4em;
}
.quote-text p {
margin: 0 !important;
}
.quote-author p {
color: #999;
text-align: left;
font-size: .88em;
font-weight: 300;
margin-bottom: .8em;
margin-left: 8px;
}
.quote-author a {
color: #fff;
}
.quote-author a:hover {
color: #f70a0a;
}
body.tax-quote_author_tag .quote-text,
body.tax-quote_author_tag .quote-text p {
color: #999;
margin-top: 1.4em;
margin-left: 1.2em;
}
body.tax-quote_author_tag .quote-author p {
margin-left: 2.8em;
}
body.tax-quote_author_tag .quote-author a {
color: #ccc;
font-weight: 400;
}
body.tax-quote_author_tag .quote-author a:hover {
color: #f70a0a;
}
/*
* Métrica 3 widget.
*/
#text-2 {
font-size: 15px;
line-height: 1.4em;
text-align: justify;
}
#text-2 a {
color: #3c8dbc;
}
#text-2 a:hover {
color: #ff3300;
text-decoration: none;
}
/*
* FOOTER.
*/
#quotes > .container {
padding-bottom: 50px;
background: transparent url(images/bg-footer.png) no-repeat 100% bottom;
}
#socket .container {
padding-top: 8px;
padding-bottom: 3.6em;
}
#legal {
position: absolute;
margin-top: 2.8em;
line-height: 1.6em;
}
#legal a {
color: #ffbf00;
font-weight: 400;
font-size: 14px;
}
/*
* MISCELANEAN.
*/
#scroll-top-link {
cursor: pointer;
color: #e1e1e1 !important;
border-color: #aaa !important;
font-size: 36px;
background: rgba(85,99,114,0.3);
transition-property: background-color;
transition-duration: .5s;
transition-timing-function: ease;
transition-delay: 0s;
opacity: 1 !important;
}
#scroll-top-link:hover {
background-color: #000;
}
.av-image-caption-overlay-center p {
text-align: center !important;
}
/* More link */
.more-link {
clear: both;
display: block;
padding: 8px 0;
width: 134px;
text-align: center;
margin: 14px 0 0;
border-radius: 4px;
border-style: solid;
border-width: 1px;
}
/* Social icons size and decoration */
.social_bookmarks li {
font-size: 20px;
}
.social_bookmarks li a {
text-decoration: none;
}
.av-share-box ul li a {
font-size: 18px;
}
#top #wrap_all .av-social-link-github:hover a,
#top #wrap_all .av-social-link-gitlab:hover a {
color: #fff;
background-color: #bd2c00;
}
/* Search box adjustment */
#top #s,
#top #searchsubmit {
height: 44px;
line-height: 44px;
}
#top #searchsubmit {
width: 44px;
}
/* Disable uppercase in icon box titles */
.iconbox .iconbox_content .iconbox_content_title {
text-transform: none;
}
/*
* RESPONSIVE MEDIA QUERIES.
*/
@media (min-width: 768px) and (max-width: 1399px) {
/* Home page list notes */
#dpe_fp_widget-9 ul.list-notes > li:last-child {
display: none;
}
}
@media (min-width: 768px) and (max-width: 1299px) {
/* Home page list notes */
#dpe_fp_widget-9 ul.list-notes > li + li + li + li {
display: none;
}
/* Quotes widgets */
#quotes > .container {
background-position: 92% bottom;
}
}
@media (min-width: 768px) and (max-width: 1099px) {
/* Home page list notes */
#dpe_fp_widget-9 ul.list-notes > li img {
display: none;
}
#dpe_fp_widget-9 ul.list-notes > li img + h4,
#dpe_fp_widget-9 ul.list-notes > li img + h4 + p.meta {
margin-left: 0 !important;
}
}
@media (min-width: 768px) and (max-width: 929px) {
/* List items widgets */
ul.dpe-flexible-posts li img {
display: none;
}
ul.dpe-flexible-posts li img + h4,
ul.dpe-flexible-posts li img + h4 + p.meta {
margin-left: 0 !important;
}
/* Home page list notes */
#dpe_fp_widget-9 ul.list-notes > li + li + li {
display: none;
}
/* Métrica 3 widget */
#text-2 {
text-align: left;
}
}
@media (max-width: 767px) {
/* LAYOUT */
.responsive #top #wrap_all .container {
width: 92%;
max-width: 92%;
}
.responsive #top #header .social_bookmarks {
display: block !important;
}
div.container_wrap_first {
background: #fff;
}
#avia2-menu {
display: none;
}
.av_icon_active_right .social_bookmarks {
padding-left: 0;
}
/* Breadcrumb */
.title_container .breadcrumb {
margin-top: .7em !important;
}
/* Responsive tables */
div .avia-table {
width: 700px;
}
div .avia-table td {
white-space: normal !important;
}
/* Photos widget */
ul.dpe-flexible-photos li {
width: 31.3%;
margin: 0 1%;
}
}
@media (max-width: 567px) {
/* LAYOUT */
.av-masonry-pagination .pagination-meta {
display: none;
}
/* Left align for small devices */
.entry-content-wrapper p {
text-align: left;
}
/* Quotes widgets */
#quotes .av_one_half {
padding-top: 80px;
padding-left: 10px;
background-position: 6px 28px;
}
/* Comments */
#commentform p.comment-form-av-privatepolicy,
#commentform p.comment-subscription-form {
margin: 10px 0 !important;
}
}
@media (max-width: 399px) {
/* Footer */
#socket .social_bookmarks {
display: none;
}
}