diff --git a/enfold-cille/functions.php b/enfold-cille/functions.php deleted file mode 100644 index c171da6..0000000 --- a/enfold-cille/functions.php +++ /dev/null @@ -1,647 +0,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 Social, Twitter, Facebook & LinkedIn posts. - * See https://tommcfarlin.com/add-class-to-single-post/ - */ -add_filter( 'post_class', 'add_social_class' ); -function add_social_class( $classes ) { - $category = get_the_category(); - if ( !empty( $category ) && in_array( $category[0]->term_id, array( 1561, 1562, 1563, 1564 ) ) ) { - $classes[] = 'post-entry-social'; - } - 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( 'Blog' ) ); - break; - case 978: // Bloc de notas - array_splice( $trail, 1, 2, array( 'Bloc de notas' ) ); - break; - case 976: // Fotoblog - array_splice( $trail, 1, 2, array( 'Fotoblog' ) ); - } - } - // 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( 'Entradas' ) ); - } - return $trail; -} - -/* - * Auto generate the post title if it's empty and post has content. - */ -add_filter( 'wp_insert_post_data', 'autogenerate_title', 1, 2 ); -function autogenerate_title( $data, $postarr ) { - $title = preg_replace( '!\s+!', ' ', str_replace( ' ', ' ', $data['post_title'] ) ); - $text_title = trim( strip_tags( $title ) ); - - if ( empty( $text_title ) ) { - $content = preg_replace( '!\s+!', ' ', str_replace( ' ', ' ', $data['post_content'] ) ); - $text_content = trim( strip_tags( $content ) ); - - 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; - } - } - - return $data; -} - -/* - * Sharing content in social networks if required. - */ -add_action( 'save_post', 'share_post', 1, 2 ); -function share_post( $post_id, $post ) { - // Count post categories: - $post_categories = get_the_category( $post_id ); - $categories = array_values( array_column( $post_categories, 'name' ) ); - $num_categories = count( $categories ); - - // Review post only for Social, Twitter, Facebook & LinkedIn categories: - $num_social_categories = count( array_intersect( array( 'Social', 'Twitter', 'Facebook', 'LinkedIn' ), $categories ) ); - - // Nothing to do if there aren't social categories: - if ( $num_social_categories > 0 ) { - // Get cleaned post title: - $title = preg_replace( '!\s+!', ' ', str_replace( ' ', ' ', $post->post_title ) ); - $text_title = trim( strip_tags( $title ) ); - if ( mb_strrpos( $text_title, ' …' ) == mb_strlen( $text_title ) - 2 ) { - $text_title = mb_substr( $text_title, 0, mb_strlen( $text_title ) - 2 ); - } - - // Get cleaned post content: - $content = preg_replace( '!\s+!', ' ', str_replace( ' ', ' ', $post->post_content ) ); - $text_content = trim( strip_tags( $content ) ); - - // Adapting content for pure social posts: - if ( $num_categories == $num_social_categories ) { - $post_content = trim( strip_tags( $content, '


' ) ); - /* - 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 ); - $post->post_content = str_replace( array( '', '', '', '' ), array( '', '', '', '' ), $post_content ); - } - - // Preparing post excerpt for Twitter: - $text_excerpt = $text_content; - if ( mb_strpos( $text_content, $text_title ) !== 0 ) { - $post_excerpt = $text_title; - $post_excerpt .= empty( $text_content ) ? '.' : ". $text_content"; - } - $post_excerpt = html_entity_decode( $text_excerpt ); - $limit = has_post_thumbnail( $post ) ? 280 - 25 : 280; - if ( mb_strlen( $post_excerpt ) > $limit ) { - preg_match_all( '#\bhttps?://[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/))#', $post_excerpt, $matches ); - for ( $i = 0; $i < count( $matches[0] ); $i++ ) { - $post_excerpt = str_replace( $matches[0][$i], shorten_url( $matches[0][$i] ), $post_excerpt ); - } - if ( mb_strlen( $post_excerpt ) > $limit ) { - $post_excerpt = mb_substr( $post_excerpt, 0, $limit - 25 ); - $post_excerpt = mb_substr( $post_excerpt, 0, mb_strrpos( $post_excerpt, ' ' ) ) . '… '; - $permalink = get_permalink( $post ); - $post_excerpt .= ( mb_strlen( $post_excerpt ) + mb_strlen( $permalink ) ) <= $limit ? $permalink : shorten_url( $permalink ); - } - } - $post->post_excerpt = $post_excerpt; - - // Unhook this function so it doesn't loop infinitely: - remove_action( 'save_post', 'share_post', 1, 2 ); - - // Update the post, which calls save_post again: - wp_update_post( $post ); - - // Re-hook this function: - add_action( 'save_post', 'share_post', 1, 2 ); - } -} - -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 ' -'; - } -} - -/* - * 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 = "
$slider"; - if ( $slider ) echo "

$slider
"; - } - } - - echo '
'; - 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 '
'; - - echo '
'; - - $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 .= ''; - $cat_output .= $cats; - $cat_output .= ''; - $cats = ''; - } - echo strpos( $blog_global_style, 'modern-blog' ) === false ? $cat_output . $title : $title . $cat_output; - - echo ''; - - if ( strpos( $blog_style, 'big' ) !== false ) { - if ( $slider ) $slider = "$slider"; - if ( $slider ) echo "
$slider
"; - } - - $cats = ''; - $title = ''; - } - - echo $title; - - echo ''; - - echo '
'; - - 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 '
'; - if ( has_tag() ) { - echo ''; - echo the_tags( '' . __( 'Tags:', 'avia_framework' ) . ' ' ); - echo ''; - } - avia_social_share_links(); - echo '
'; - echo '
'; - echo get_template_part( '../enfold/includes/related-posts'); - echo '
'; - 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' => '
', - 'after_widget' => '
', - 'before_title' => '
', - 'after_title' => '
', -) ); -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 = ' '; - $legal .= '2009-' . date( 'Y' ) . ' © manuel.cillero.es'; - return $legal; -} diff --git a/enfold-cille/style.css b/enfold-cille/style.css deleted file mode 100644 index 3086769..0000000 --- a/enfold-cille/style.css +++ /dev/null @@ -1,932 +0,0 @@ -/* -Theme Name: Enfold Cille -Description: A Child Theme 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; - font-weight: lighter; - line-height: 1.55em; - margin-bottom: 1em; - max-width: 800px; - text-align: left; - letter-spacing: 0.015em; -} -.avia-cookie-consent a { - color: #aaa; - text-decoration: underline; -} -.avia-cookie-consent a:hover { - color: #fff; -} -@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 h2, -.entry-content-wrapper h3, -.entry-content-wrapper h4 { - color: #e9146c; -} -.entry-content-wrapper h3 { - font-size: 28px; -} -.entry-content-wrapper h3 + h3, -.entry-content-wrapper h3 + h4, -.entry-content-wrapper h4 + h5, -.entry-content-wrapper h4 + h3 { - margin-top: 20px; -} -.entry-content-wrapper p { - text-align: justify; -} -#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; -} -/* Social posts */ -article.post-entry-social .entry-content-wrapper div.entry-content { - border-left: 7px solid #3c8dbc; - padding-left: 20px; -} -article.post-entry-social .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: 12px; - margin-top: .2em; - line-height: 1.2em; - color: #777; -} -#commentform input[type='checkbox'] + label { - left: 1.8em; -} -#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; -} - - -/* - * 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; -} -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; -} - -/* 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; -} - - -/* - * 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; - } -} -@media (max-width: 399px) { - /* Footer */ - #socket .social_bookmarks { - display: none; - } -}