Punto de partida
BIN
bg-footer.png
Normal file
After Width: | Height: | Size: 18 KiB |
51
enfold-cille/flexible-posts-widget/list-blogroll.php
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Flexible Posts Widget: Old Default widget template
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*
|
||||||
|
* This is the ORIGINAL default template used by the plugin.
|
||||||
|
* There is a new default template (default.php) that will be
|
||||||
|
* used by default if no template was specified in a widget.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Block direct requests
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
echo $before_widget;
|
||||||
|
|
||||||
|
if ( !empty($title) )
|
||||||
|
echo $before_title . $title . $after_title;
|
||||||
|
|
||||||
|
if( $flexible_posts->have_posts() ):
|
||||||
|
?>
|
||||||
|
<ul class="dpe-flexible-posts list-blogroll">
|
||||||
|
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
|
||||||
|
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
|
<a href="<?php echo the_permalink(); ?>">
|
||||||
|
<?php
|
||||||
|
if( $thumbnail == true ) {
|
||||||
|
// If the post has a feature image, show it
|
||||||
|
if( has_post_thumbnail() ) {
|
||||||
|
the_post_thumbnail( $thumbsize );
|
||||||
|
// Else if the post has a mime type that starts with "image/" then show the image directly.
|
||||||
|
} elseif( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) {
|
||||||
|
echo wp_get_attachment_image( $post->ID, $thumbsize );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<h4 class="title"><?php the_title(); ?></h4>
|
||||||
|
<p class="meta"><?php echo 'desde '; the_time('F \d\e Y'); ?></p>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
</ul><!-- .dpe-flexible-posts -->
|
||||||
|
<?php else: // We have no posts ?>
|
||||||
|
<div class="dpe-flexible-posts no-posts">
|
||||||
|
<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
endif; // End have_posts()
|
||||||
|
|
||||||
|
echo $after_widget;
|
54
enfold-cille/flexible-posts-widget/list-items.php
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Flexible Posts Widget: Old Default widget template
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*
|
||||||
|
* This is the ORIGINAL default template used by the plugin.
|
||||||
|
* There is a new default template (default.php) that will be
|
||||||
|
* used by default if no template was specified in a widget.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Block direct requests
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
echo $before_widget;
|
||||||
|
|
||||||
|
if ( !empty($title) )
|
||||||
|
echo $before_title . $title . $after_title;
|
||||||
|
|
||||||
|
if( $flexible_posts->have_posts() ):
|
||||||
|
?>
|
||||||
|
<ul class="dpe-flexible-posts">
|
||||||
|
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
|
||||||
|
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
|
<?php
|
||||||
|
global $wp;
|
||||||
|
$permalink = get_permalink();
|
||||||
|
$current_url = home_url( add_query_arg( array(), $wp->request ) );
|
||||||
|
echo '<a href="' . $permalink . ( trim( $permalink, '/' ) == $current_url ? '" class="active">' : '">' );
|
||||||
|
if( $thumbnail == true ) {
|
||||||
|
// If the post has a feature image, show it
|
||||||
|
if( has_post_thumbnail() ) {
|
||||||
|
the_post_thumbnail( $thumbsize );
|
||||||
|
// Else if the post has a mime type that starts with "image/" then show the image directly.
|
||||||
|
} elseif( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) {
|
||||||
|
echo wp_get_attachment_image( $post->ID, $thumbsize );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<h4 class="title"><?php the_title(); ?></h4>
|
||||||
|
<p class="meta"><?php the_time('\d\e\l d \d\e F \d\e Y'); ?></p>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
</ul><!-- .dpe-flexible-posts -->
|
||||||
|
<?php else: // We have no posts ?>
|
||||||
|
<div class="dpe-flexible-posts no-posts">
|
||||||
|
<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
endif; // End have_posts()
|
||||||
|
|
||||||
|
echo $after_widget;
|
54
enfold-cille/flexible-posts-widget/list-notes.php
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Flexible Posts Widget: Old Default widget template
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*
|
||||||
|
* This is the ORIGINAL default template used by the plugin.
|
||||||
|
* There is a new default template (default.php) that will be
|
||||||
|
* used by default if no template was specified in a widget.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Block direct requests
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
echo $before_widget;
|
||||||
|
|
||||||
|
if ( !empty($title) )
|
||||||
|
echo $before_title . $title . $after_title;
|
||||||
|
|
||||||
|
if( $flexible_posts->have_posts() ):
|
||||||
|
?>
|
||||||
|
<ul class="dpe-flexible-posts list-notes">
|
||||||
|
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
|
||||||
|
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
|
<?php
|
||||||
|
global $wp;
|
||||||
|
$permalink = get_permalink();
|
||||||
|
$current_url = home_url( add_query_arg( array(), $wp->request ) );
|
||||||
|
echo '<a href="' . $permalink . ( trim( $permalink, '/' ) == $current_url ? '" class="active">' : '">' );
|
||||||
|
if( $thumbnail == true ) {
|
||||||
|
// If the post has a feature image, show it
|
||||||
|
if( has_post_thumbnail() ) {
|
||||||
|
the_post_thumbnail( $thumbsize );
|
||||||
|
// Else if the post has a mime type that starts with "image/" then show the image directly.
|
||||||
|
} elseif( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) {
|
||||||
|
echo wp_get_attachment_image( $post->ID, $thumbsize );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<h4 class="title"><?php the_title(); ?></h4>
|
||||||
|
<p class="meta"><?php the_time('\d\e\l d \d\e F \d\e Y'); ?></p>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
</ul><!-- .dpe-flexible-posts -->
|
||||||
|
<?php else: // We have no posts ?>
|
||||||
|
<div class="dpe-flexible-posts no-posts">
|
||||||
|
<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
endif; // End have_posts()
|
||||||
|
|
||||||
|
echo $after_widget;
|
46
enfold-cille/flexible-posts-widget/list-photos-footer.php
Normal file
|
@ -0,0 +1,46 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Flexible Posts Widget: Old Default widget template
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*
|
||||||
|
* This is the ORIGINAL default template used by the plugin.
|
||||||
|
* There is a new default template (default.php) that will be
|
||||||
|
* used by default if no template was specified in a widget.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Block direct requests
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
echo $before_widget;
|
||||||
|
|
||||||
|
if ( !empty($title) )
|
||||||
|
echo $before_title . $title . $after_title;
|
||||||
|
|
||||||
|
if( $flexible_posts->have_posts() ):
|
||||||
|
?>
|
||||||
|
<a class="dpe-flexible-photos-link" href="/photoblog" title="Fotoblog"></a>
|
||||||
|
<ul class="dpe-flexible-photos-footer">
|
||||||
|
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
|
||||||
|
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
|
<a href="<?php echo the_permalink(); ?>" title="<?php echo the_title(); ?>">
|
||||||
|
<?php
|
||||||
|
if( $thumbnail == true ) {
|
||||||
|
// If the post has a feature image, show it
|
||||||
|
if( has_post_thumbnail() ) {
|
||||||
|
the_post_thumbnail( $thumbsize );
|
||||||
|
// Else if the post has a mime type that starts with "image/" then show the image directly.
|
||||||
|
} elseif( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) {
|
||||||
|
echo wp_get_attachment_image( $post->ID, $thumbsize );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
</ul><!-- .dpe-flexible-posts -->
|
||||||
|
<?php
|
||||||
|
endif; // End have_posts()
|
||||||
|
|
||||||
|
echo $after_widget;
|
49
enfold-cille/flexible-posts-widget/list-photos.php
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Flexible Posts Widget: Old Default widget template
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*
|
||||||
|
* This is the ORIGINAL default template used by the plugin.
|
||||||
|
* There is a new default template (default.php) that will be
|
||||||
|
* used by default if no template was specified in a widget.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Block direct requests
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
echo $before_widget;
|
||||||
|
|
||||||
|
if ( !empty($title) )
|
||||||
|
echo $before_title . $title . $after_title;
|
||||||
|
|
||||||
|
if( $flexible_posts->have_posts() ):
|
||||||
|
?>
|
||||||
|
<ul class="dpe-flexible-photos">
|
||||||
|
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
|
||||||
|
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
|
<a href="<?php echo the_permalink(); ?>" title="<?php echo the_title(); ?>">
|
||||||
|
<?php
|
||||||
|
if( $thumbnail == true ) {
|
||||||
|
// If the post has a feature image, show it
|
||||||
|
if( has_post_thumbnail() ) {
|
||||||
|
the_post_thumbnail( $thumbsize );
|
||||||
|
// Else if the post has a mime type that starts with "image/" then show the image directly.
|
||||||
|
} elseif( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) {
|
||||||
|
echo wp_get_attachment_image( $post->ID, $thumbsize );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
</ul><!-- .dpe-flexible-posts -->
|
||||||
|
<?php else: // We have no posts ?>
|
||||||
|
<div class="dpe-flexible-posts no-posts">
|
||||||
|
<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
endif; // End have_posts()
|
||||||
|
|
||||||
|
echo $after_widget;
|
63
enfold-cille/flexible-posts-widget/list-recents.php
Normal file
|
@ -0,0 +1,63 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Flexible Posts Widget: Old Default widget template
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*
|
||||||
|
* This is the ORIGINAL default template used by the plugin.
|
||||||
|
* There is a new default template (default.php) that will be
|
||||||
|
* used by default if no template was specified in a widget.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Block direct requests
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
echo $before_widget;
|
||||||
|
|
||||||
|
if ( !empty($title) )
|
||||||
|
echo $before_title . $title . $after_title;
|
||||||
|
|
||||||
|
if( $flexible_posts->have_posts() ):
|
||||||
|
?>
|
||||||
|
<ul class="dpe-flexible-posts list-recents">
|
||||||
|
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
|
||||||
|
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
|
<?php
|
||||||
|
global $wp;
|
||||||
|
$permalink = get_permalink();
|
||||||
|
$current_url = home_url( add_query_arg( array(), $wp->request ) );
|
||||||
|
echo '<a href="' . $permalink . ( trim( $permalink, '/' ) == $current_url ? '" class="active">' : '">' );
|
||||||
|
if( $thumbnail == true ) {
|
||||||
|
// If the post has a feature image, show it
|
||||||
|
if( has_post_thumbnail() ) {
|
||||||
|
the_post_thumbnail( $thumbsize );
|
||||||
|
// Else if the post has a mime type that starts with "image/" then show the image directly.
|
||||||
|
} elseif( 'image/' == substr( $post->post_mime_type, 0, 6 ) ) {
|
||||||
|
echo wp_get_attachment_image( $post->ID, $thumbsize );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<h4 class="title"><?php the_title(); ?></h4>
|
||||||
|
<p class="meta"><?php
|
||||||
|
if ($post->post_type == 'post') {
|
||||||
|
$categories = get_the_category();
|
||||||
|
$type = $categories[0]->name;
|
||||||
|
} else {
|
||||||
|
static $types = array("page" => "Página", "quote" => "Cita");
|
||||||
|
$type = $types[get_post_type()];
|
||||||
|
}
|
||||||
|
echo !empty($type) ? $type . ', el ' : 'El '; the_modified_time('d \d\e F \d\e Y');
|
||||||
|
?></p>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
</ul><!-- .dpe-flexible-posts -->
|
||||||
|
<?php else: // We have no posts ?>
|
||||||
|
<div class="dpe-flexible-posts no-posts">
|
||||||
|
<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
endif; // End have_posts()
|
||||||
|
|
||||||
|
echo $after_widget;
|
60
enfold-cille/flexible-posts-widget/quote.php
Normal file
|
@ -0,0 +1,60 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Flexible Posts Widget: Old Default widget template
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*
|
||||||
|
* This is the ORIGINAL default template used by the plugin.
|
||||||
|
* There is a new default template (default.php) that will be
|
||||||
|
* used by default if no template was specified in a widget.
|
||||||
|
*/
|
||||||
|
|
||||||
|
// Block direct requests
|
||||||
|
if ( !defined('ABSPATH') )
|
||||||
|
die('-1');
|
||||||
|
|
||||||
|
echo $before_widget;
|
||||||
|
|
||||||
|
if ( !empty($title) )
|
||||||
|
echo $before_title . $title . $after_title;
|
||||||
|
|
||||||
|
if( $flexible_posts->have_posts() ):
|
||||||
|
?>
|
||||||
|
<ul class="dpe-flexible-posts">
|
||||||
|
<?php while( $flexible_posts->have_posts() ) : $flexible_posts->the_post(); global $post; ?>
|
||||||
|
<li id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
||||||
|
<?php
|
||||||
|
if ($post->post_type == 'quote') {
|
||||||
|
$quote_text = get_the_content();
|
||||||
|
$author = wp_get_post_terms($post->ID, 'quote_author_tag', array("fields" => "all"));
|
||||||
|
$quote_author = '<p>— <a href="/quote-author/' . $author[0]->slug . '">' . $author[0]->name . '</a></p>';
|
||||||
|
} else {
|
||||||
|
$quote_text = get_the_content();
|
||||||
|
$quote_author = get_the_title();
|
||||||
|
$provider = wp_get_post_terms($post->ID, 'quote_provider_tag', array("fields" => "all"));
|
||||||
|
switch ($provider[0]->name) {
|
||||||
|
case 'Proverbia.net':
|
||||||
|
$quote_text = mb_convert_encoding($quote_text, 'ISO-8859-15', 'UTF-8');
|
||||||
|
$quote_author = mb_convert_encoding(substr($quote_author, 0, strpos($quote_author, ' – ')), 'ISO-8859-15', 'UTF-8');
|
||||||
|
$quote_provider = '<a href="http://es.proverbia.net" target="_blank">' . $provider[0]->name . '</a>';
|
||||||
|
break;
|
||||||
|
case 'BrainyQuote':
|
||||||
|
$quote_provider = '<a href="http://www.brainyquote.com" target="_blank">' . $provider[0]->name . '</a>';
|
||||||
|
break;
|
||||||
|
case 'The Quotations Page':
|
||||||
|
$quote_provider = '<a href="http://www.quotationspage.com" target="_blank">' . $provider[0]->name . '</a>';
|
||||||
|
}
|
||||||
|
$quote_text = '<p>' . trim($quote_text, '"') . '</p>';
|
||||||
|
$quote_author = '<p>— ' . $quote_author . ' (' . $quote_provider . ')</p>';
|
||||||
|
}
|
||||||
|
|
||||||
|
echo '<div class="quote-text">' . $quote_text . '</div>';
|
||||||
|
echo '<div class="quote-author">' . $quote_author . '</div>';
|
||||||
|
?>
|
||||||
|
</li>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
</ul><!-- .dpe-flexible-posts -->
|
||||||
|
<?php
|
||||||
|
endif; // End have_posts()
|
||||||
|
|
||||||
|
echo $after_widget;
|
323
enfold-cille/functions.php
Normal file
|
@ -0,0 +1,323 @@
|
||||||
|
<?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 ) {
|
||||||
|
$category = get_the_category();
|
||||||
|
if ( $args['title'] == __( 'Blog - Latest News', 'avia_framework' ) && !empty( $category ) ) {
|
||||||
|
// Social title for Twitter, Facebook & LinkedIn categories:
|
||||||
|
$args['title'] = in_array( $category[0]->term_id, array( 1562, 1563, 1564 ) ) ? 'Social' : $category[0]->name;
|
||||||
|
$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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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( '<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">Fotoblog</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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Adapting content for social networks; and auto generate title if it is empty.
|
||||||
|
*/
|
||||||
|
add_filter( 'wp_insert_post_data', 'review_social_post', 5, 2 );
|
||||||
|
function review_social_post( $data, $postarr ) {
|
||||||
|
// Count post categories:
|
||||||
|
$categories = array();
|
||||||
|
if ( !empty( $postarr['post_category'] ) ) {
|
||||||
|
$categories = $postarr['post_category'];
|
||||||
|
}
|
||||||
|
elseif ( !empty( $postarr['tax_input']['category'] ) ) {
|
||||||
|
$categories = $postarr['tax_input']['category'];
|
||||||
|
}
|
||||||
|
$categories = is_array( $categories ) ? array_filter( $categories ) : array( $categories );
|
||||||
|
$num_categories = count( $categories );
|
||||||
|
|
||||||
|
// Review post only for Social, Twitter, Facebook & LinkedIn categories:
|
||||||
|
$num_social_categories = count( array_intersect( array( 1561, 1562, 1563, 1564 ), $categories ) );
|
||||||
|
|
||||||
|
if ( $num_social_categories > 0 ) {
|
||||||
|
// Get clean post title:
|
||||||
|
$post_title = trim( str_replace( ' ', ' ', strip_tags( $data['post_title'] ) ) );
|
||||||
|
|
||||||
|
// Get clean post content:
|
||||||
|
$post_content = trim( str_replace( ' ', ' ', strip_tags( $data['post_content'] ) ) );
|
||||||
|
|
||||||
|
// Auto generate title if it is empty:
|
||||||
|
$isfull_title = false;
|
||||||
|
$title_maxchar = 140 - 28;
|
||||||
|
if ( empty( $post_title ) ) {
|
||||||
|
if ( empty( $post_content ) ) {
|
||||||
|
$post_title = 'Sin título en el morral, sea añejo o fugaz, lo mismo da';
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$post_title = substr( $post_content, 0, $title_maxchar );
|
||||||
|
$post_title = substr( $post_title, 0, strrpos( $post_title, ' ' ) );
|
||||||
|
$isfull_title = strlen( $post_title ) > strlen( $post_content );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif ( strlen( $post_title ) > $title_maxchar ) {
|
||||||
|
if ( strpos( $post_content, $post_title ) !== 0 ) {
|
||||||
|
$data['post_content'] = $post_title . '. ' . $data['post_content'];
|
||||||
|
}
|
||||||
|
$post_title = substr( $post_title, 0, $title_maxchar );
|
||||||
|
$post_title = substr( $post_title, 0, strrpos( $post_title, ' ' ) );
|
||||||
|
$isfull_title = true;
|
||||||
|
}
|
||||||
|
$data['post_title'] = $isfull_title ? $post_title . '…' : $post_title;
|
||||||
|
|
||||||
|
// Adapting content for pure social posts:
|
||||||
|
if ( $num_categories == $num_social_categories ) {
|
||||||
|
$content = trim( str_replace( ' ', ' ', strip_tags( $data['post_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
|
||||||
|
*/
|
||||||
|
$content = preg_replace( "/<([a-z][a-z0-9]+)[^>]*?(\/?)>/i", '<$1$2>', $content );
|
||||||
|
$content = str_replace( array( '<b>', '</b>', '<i>', '</i>' ), array( '<strong>', '</strong>', '<em>', '</em>' ), $content );
|
||||||
|
$data['post_content'] = $content;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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 Character Counter to the WordPress Excerpt Box (with no limit).
|
||||||
|
* See https://premium.wpmudev.org/blog/character-counter-excerpt-box
|
||||||
|
*/
|
||||||
|
add_action( 'admin_head-post.php', 'excerpt_count_js' );
|
||||||
|
add_action( 'admin_head-post-new.php', 'excerpt_count_js' );
|
||||||
|
function excerpt_count_js() {
|
||||||
|
if ( get_post_type() == 'post' ) { echo '
|
||||||
|
<script>jQuery(document).ready(function(){
|
||||||
|
jQuery("#postexcerpt .handlediv").after("<div style=\"position:absolute;top:12px;right:34px;color:#666;\"><span id=\"excerpt_counter\"></span></div>");
|
||||||
|
var urls_regexp = new RegExp(/https?:\/\/(www\.)?[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?/gi);
|
||||||
|
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("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';
|
||||||
|
}
|
||||||
|
} */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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 a dynamic current year to socket.
|
||||||
|
* See http://www.kriesi.at/support/topic/how-do-i-add-a-dynamic-current-year-to-socket
|
||||||
|
*/
|
||||||
|
add_shortcode( 'y', 'current_year_func' );
|
||||||
|
function current_year_func( $atts ) {
|
||||||
|
return date( 'Y' );
|
||||||
|
}
|
BIN
enfold-cille/images/av-masonry-item-no-image.jpg
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
enfold-cille/images/bg-footer.png
Normal file
After Width: | Height: | Size: 18 KiB |
BIN
enfold-cille/images/bg-page.png
Normal file
After Width: | Height: | Size: 245 B |
BIN
enfold-cille/images/bg-preview.jpg
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
enfold-cille/images/list-photoblog.png
Normal file
After Width: | Height: | Size: 3.2 KiB |
BIN
enfold-cille/images/quotes-en.png
Normal file
After Width: | Height: | Size: 4.4 KiB |
BIN
enfold-cille/images/quotes-es.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
enfold-cille/screenshot.png
Normal file
After Width: | Height: | Size: 379 KiB |
98
enfold-cille/sidebar.original
Normal file
|
@ -0,0 +1,98 @@
|
||||||
|
<?php
|
||||||
|
if ( !defined('ABSPATH') ){ die(); }
|
||||||
|
|
||||||
|
global $avia_config;
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
# Display the sidebar
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
$default_sidebar = true;
|
||||||
|
$sidebar_pos = avia_layout_class('main', false);
|
||||||
|
|
||||||
|
$sidebar_smartphone = avia_get_option('smartphones_sidebar') == 'smartphones_sidebar' ? 'smartphones_sidebar_active' : "";
|
||||||
|
$sidebar = "";
|
||||||
|
|
||||||
|
if(strpos($sidebar_pos, 'sidebar_left') !== false) $sidebar = 'left';
|
||||||
|
if(strpos($sidebar_pos, 'sidebar_right') !== false) $sidebar = 'right';
|
||||||
|
|
||||||
|
//filter the sidebar position (eg woocommerce single product pages always want the same sidebar pos)
|
||||||
|
$sidebar = apply_filters('avf_sidebar_position', $sidebar);
|
||||||
|
|
||||||
|
//if the layout hasnt the sidebar keyword defined we dont need to display one
|
||||||
|
if(empty($sidebar)) return;
|
||||||
|
if(!empty($avia_config['overload_sidebar'])) $avia_config['currently_viewing'] = $avia_config['overload_sidebar'];
|
||||||
|
|
||||||
|
|
||||||
|
echo "<aside class='sidebar sidebar_".$sidebar." ".$sidebar_smartphone." ".avia_layout_class( 'sidebar', false )." units' ".avia_markup_helper(array('context' => 'sidebar', 'echo' => false)).">";
|
||||||
|
echo "<div class='inner_sidebar extralight-border'>";
|
||||||
|
|
||||||
|
//Display a subnavigation for pages that is automatically generated, so the users do not need to work with widgets
|
||||||
|
$av_sidebar_menu = avia_sidebar_menu(false);
|
||||||
|
if($av_sidebar_menu)
|
||||||
|
{
|
||||||
|
echo $av_sidebar_menu;
|
||||||
|
$default_sidebar = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$the_id = @get_the_ID();
|
||||||
|
$custom_sidebar = "";
|
||||||
|
if(!empty($the_id) && is_singular())
|
||||||
|
{
|
||||||
|
$custom_sidebar = get_post_meta($the_id, 'sidebar', true);
|
||||||
|
}
|
||||||
|
|
||||||
|
$custom_sidebar = apply_filters('avf_custom_sidebar', $custom_sidebar);
|
||||||
|
|
||||||
|
if($custom_sidebar)
|
||||||
|
{
|
||||||
|
dynamic_sidebar($custom_sidebar);
|
||||||
|
$default_sidebar = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(empty($avia_config['currently_viewing'])) $avia_config['currently_viewing'] = 'page';
|
||||||
|
|
||||||
|
// general shop sidebars
|
||||||
|
if ($avia_config['currently_viewing'] == 'shop' && dynamic_sidebar('Shop Overview Page') ) : $default_sidebar = false; endif;
|
||||||
|
|
||||||
|
// single shop sidebars
|
||||||
|
if ($avia_config['currently_viewing'] == 'shop_single') $default_sidebar = false;
|
||||||
|
if ($avia_config['currently_viewing'] == 'shop_single' && dynamic_sidebar('Single Product Pages') ) : $default_sidebar = false; endif;
|
||||||
|
|
||||||
|
// general blog sidebars
|
||||||
|
if ($avia_config['currently_viewing'] == 'blog' && dynamic_sidebar('Sidebar Blog') ) : $default_sidebar = false; endif;
|
||||||
|
|
||||||
|
// general pages sidebars
|
||||||
|
if ($avia_config['currently_viewing'] == 'page' && dynamic_sidebar('Sidebar Pages') ) : $default_sidebar = false; endif;
|
||||||
|
|
||||||
|
// forum pages sidebars
|
||||||
|
if ($avia_config['currently_viewing'] == 'forum' && dynamic_sidebar('Forum') ) : $default_sidebar = false; endif;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//global sidebar
|
||||||
|
if (dynamic_sidebar('Displayed Everywhere')) : $default_sidebar = false; endif;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//default dummy sidebar
|
||||||
|
if (apply_filters('avf_show_default_sidebars', $default_sidebar))
|
||||||
|
{
|
||||||
|
if(apply_filters('avf_show_default_sidebar_pages', true)) {avia_dummy_widget(2);}
|
||||||
|
if(apply_filters('avf_show_default_sidebar_categories', true)) {avia_dummy_widget(3);}
|
||||||
|
if(apply_filters('avf_show_default_sidebar_archiv', true)) {avia_dummy_widget(4);}
|
||||||
|
|
||||||
|
// customize default sidebar and add your sidebars
|
||||||
|
do_action ('ava_add_custom_default_sidebars');
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "</div>";
|
||||||
|
echo "</aside>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
99
enfold-cille/sidebar.php
Normal file
|
@ -0,0 +1,99 @@
|
||||||
|
<?php
|
||||||
|
if ( !defined('ABSPATH') ){ die(); }
|
||||||
|
|
||||||
|
global $avia_config;
|
||||||
|
|
||||||
|
##############################################################################
|
||||||
|
# Display the sidebar
|
||||||
|
##############################################################################
|
||||||
|
|
||||||
|
$default_sidebar = true;
|
||||||
|
$sidebar_pos = avia_layout_class('main', false);
|
||||||
|
|
||||||
|
$sidebar_smartphone = avia_get_option('smartphones_sidebar') == 'smartphones_sidebar' ? 'smartphones_sidebar_active' : "";
|
||||||
|
$sidebar = "";
|
||||||
|
|
||||||
|
if(strpos($sidebar_pos, 'sidebar_left') !== false) $sidebar = 'left';
|
||||||
|
if(strpos($sidebar_pos, 'sidebar_right') !== false) $sidebar = 'right';
|
||||||
|
|
||||||
|
//filter the sidebar position (eg woocommerce single product pages always want the same sidebar pos)
|
||||||
|
$sidebar = apply_filters('avf_sidebar_position', $sidebar);
|
||||||
|
|
||||||
|
//if the layout hasnt the sidebar keyword defined we dont need to display one
|
||||||
|
if(empty($sidebar)) return;
|
||||||
|
if(!empty($avia_config['overload_sidebar'])) $avia_config['currently_viewing'] = $avia_config['overload_sidebar'];
|
||||||
|
|
||||||
|
|
||||||
|
echo "<aside class='sidebar sidebar_".$sidebar." ".$sidebar_smartphone." ".avia_layout_class( 'sidebar', false )." units' ".avia_markup_helper(array('context' => 'sidebar', 'echo' => false)).">";
|
||||||
|
echo "<div class='inner_sidebar extralight-border'>";
|
||||||
|
|
||||||
|
//global sidebar
|
||||||
|
if (dynamic_sidebar('Displayed Everywhere')) : $default_sidebar = false; endif;
|
||||||
|
|
||||||
|
|
||||||
|
//Display a subnavigation for pages that is automatically generated, so the users do not need to work with widgets
|
||||||
|
$av_sidebar_menu = avia_sidebar_menu(false);
|
||||||
|
if($av_sidebar_menu)
|
||||||
|
{
|
||||||
|
echo $av_sidebar_menu;
|
||||||
|
$default_sidebar = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$the_id = @get_the_ID();
|
||||||
|
$custom_sidebar = "";
|
||||||
|
if(!empty($the_id) && is_singular())
|
||||||
|
{
|
||||||
|
$custom_sidebar = get_post_meta($the_id, 'sidebar', true);
|
||||||
|
}
|
||||||
|
|
||||||
|
$custom_sidebar = apply_filters('avf_custom_sidebar', $custom_sidebar);
|
||||||
|
|
||||||
|
if($custom_sidebar)
|
||||||
|
{
|
||||||
|
dynamic_sidebar($custom_sidebar);
|
||||||
|
$default_sidebar = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(empty($avia_config['currently_viewing'])) $avia_config['currently_viewing'] = 'page';
|
||||||
|
|
||||||
|
// general shop sidebars
|
||||||
|
if ($avia_config['currently_viewing'] == 'shop' && dynamic_sidebar('Shop Overview Page') ) : $default_sidebar = false; endif;
|
||||||
|
|
||||||
|
// single shop sidebars
|
||||||
|
if ($avia_config['currently_viewing'] == 'shop_single') $default_sidebar = false;
|
||||||
|
if ($avia_config['currently_viewing'] == 'shop_single' && dynamic_sidebar('Single Product Pages') ) : $default_sidebar = false; endif;
|
||||||
|
|
||||||
|
// general blog sidebars
|
||||||
|
if ($avia_config['currently_viewing'] == 'blog' && dynamic_sidebar('Sidebar Blog') ) : $default_sidebar = false; endif;
|
||||||
|
|
||||||
|
// general pages sidebars
|
||||||
|
if ($avia_config['currently_viewing'] == 'page' && dynamic_sidebar('Sidebar Pages') ) : $default_sidebar = false; endif;
|
||||||
|
|
||||||
|
// forum pages sidebars
|
||||||
|
if ($avia_config['currently_viewing'] == 'forum' && dynamic_sidebar('Forum') ) : $default_sidebar = false; endif;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//default dummy sidebar
|
||||||
|
if (apply_filters('avf_show_default_sidebars', $default_sidebar))
|
||||||
|
{
|
||||||
|
if(apply_filters('avf_show_default_sidebar_pages', true)) {avia_dummy_widget(2);}
|
||||||
|
if(apply_filters('avf_show_default_sidebar_categories', true)) {avia_dummy_widget(3);}
|
||||||
|
if(apply_filters('avf_show_default_sidebar_archiv', true)) {avia_dummy_widget(4);}
|
||||||
|
|
||||||
|
// customize default sidebar and add your sidebars
|
||||||
|
do_action ('ava_add_custom_default_sidebars');
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "</div>";
|
||||||
|
echo "</aside>";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
736
enfold-cille/style.css
Normal file
|
@ -0,0 +1,736 @@
|
||||||
|
/*
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
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 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Home page.
|
||||||
|
*/ /*
|
||||||
|
body.home .content {
|
||||||
|
padding-bottom: 0;
|
||||||
|
} */
|
||||||
|
.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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Navigation menu for pages.
|
||||||
|
*/
|
||||||
|
#top .widget_nav_menu {
|
||||||
|
padding-bottom: 0;
|
||||||
|
} /*
|
||||||
|
#top .widget_nav_menu ul ul {
|
||||||
|
font-size: 0.98em;
|
||||||
|
} */
|
||||||
|
#top .widget_nav_menu ul ul li:before {
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
#top .widget_nav_menu ul ul li {
|
||||||
|
line-height: 1.5em;
|
||||||
|
}
|
||||||
|
#top .widget_nav_menu ul ul li a {
|
||||||
|
padding: 0 0 0 12px;
|
||||||
|
}
|
||||||
|
#top .widget_nav_menu li {
|
||||||
|
box-shadow: none;
|
||||||
|
font-size: 17px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* POST STYLES.
|
||||||
|
*/
|
||||||
|
.avia_textblock,
|
||||||
|
.entry-content-wrapper {
|
||||||
|
line-height: 1.42857;
|
||||||
|
}
|
||||||
|
.entry-content-wrapper .post-title,
|
||||||
|
#top .flex_column .template-blog .post-title {
|
||||||
|
color: #ff3300;
|
||||||
|
font-size: 41px !important;
|
||||||
|
line-height: 1em;
|
||||||
|
}
|
||||||
|
.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 {
|
||||||
|
/*
|
||||||
|
list-style-type: circle;
|
||||||
|
*/
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
/* 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;
|
||||||
|
}
|
||||||
|
/* 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 */
|
||||||
|
#top .comment_text {
|
||||||
|
font-size: 16px;
|
||||||
|
} /*
|
||||||
|
#commentform label {
|
||||||
|
left: 224px;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.2em;
|
||||||
|
padding-top: 6px;
|
||||||
|
}
|
||||||
|
#commentform label.subscribe-label,
|
||||||
|
#commentform label.subscribe-blog-label {
|
||||||
|
left: 25px;
|
||||||
|
}
|
||||||
|
#commentform input#submit {
|
||||||
|
font-size: 16px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
} */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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-author p {
|
||||||
|
color: #999;
|
||||||
|
text-align: left;
|
||||||
|
font-size: .88em;
|
||||||
|
font-weight: 300;
|
||||||
|
margin-bottom: .4em;
|
||||||
|
margin-left: 8px;
|
||||||
|
}
|
||||||
|
.quote-author a {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.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: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 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;
|
||||||
|
}
|
||||||
|
/* 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%;
|
||||||
|
}
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
BIN
favicon.ico
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
logo.png
Normal file
After Width: | Height: | Size: 13 KiB |