Compare commits

..

No commits in common. "main" and "v1.0.0" have entirely different histories.
main ... v1.0.0

14 changed files with 204 additions and 1114 deletions

View file

@ -1,8 +0,0 @@
# manuel.cillero.es
Código específico, hojas de estilo, recursos y *snippets* del **tema hijo**
basado en Enfold Theme (https://kriesi.at/themes/enfold-overview) desarrollado
para mi sitio personal (https://manuel.cillero.es) creado con WordPress
(https://es.wordpress.org).
Versión 1.1.1

View file

@ -1,51 +0,0 @@
<?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-archive-notes">
<?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 if( $thumbnail ) echo ' with_thumbnail'; ?>"><?php the_title(); ?></h4>
<p class="meta<?php if( $thumbnail ) echo ' with_thumbnail'; ?>"><?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;

View file

@ -1,11 +1,11 @@
<?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
* There is a new default template (default.php) that will be
* used by default if no template was specified in a widget.
*/
@ -24,19 +24,19 @@ if( $flexible_posts->have_posts() ):
<?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 );
<?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 if( $thumbnail ) echo ' with_thumbnail'; ?>"><?php the_title(); ?></h4>
<p class="meta<?php if( $thumbnail ) echo ' with_thumbnail'; ?>"><?php echo 'desde '; the_time('F \d\e Y'); ?></p>
?>
<h4 class="title"><?php the_title(); ?></h4>
<p class="meta"><?php echo 'desde '; the_time('F \d\e Y'); ?></p>
</a>
</li>
<?php endwhile; ?>
@ -45,7 +45,7 @@ if( $flexible_posts->have_posts() ):
<div class="dpe-flexible-posts no-posts">
<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
</div>
<?php
<?php
endif; // End have_posts()
echo $after_widget;

View file

@ -1,11 +1,11 @@
<?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
* There is a new default template (default.php) that will be
* used by default if no template was specified in a widget.
*/
@ -24,10 +24,10 @@ if( $flexible_posts->have_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">' : '">' );
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() ) {
@ -38,8 +38,8 @@ if( $flexible_posts->have_posts() ):
}
}
?>
<h4 class="title<?php if( $thumbnail ) echo ' with_thumbnail'; ?>"><?php the_title(); ?></h4>
<p class="meta<?php if( $thumbnail ) echo ' with_thumbnail'; ?>"><?php the_time('\d\e\l d \d\e F \d\e Y'); ?></p>
<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; ?>
@ -48,7 +48,7 @@ if( $flexible_posts->have_posts() ):
<div class="dpe-flexible-posts no-posts">
<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
</div>
<?php
<?php
endif; // End have_posts()
echo $after_widget;

View file

@ -1,11 +1,11 @@
<?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
* There is a new default template (default.php) that will be
* used by default if no template was specified in a widget.
*/
@ -24,10 +24,10 @@ if( $flexible_posts->have_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">' : '">' );
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() ) {
@ -38,8 +38,8 @@ if( $flexible_posts->have_posts() ):
}
}
?>
<h4 class="title<?php if ( $thumbnail ) echo ' with_thumbnail'; ?>"><?php the_title(); ?></h4>
<p class="meta<?php if ( $thumbnail ) echo ' with_thumbnail'; ?>"><?php the_time('\d\e\l d \d\e F \d\e Y'); ?></p>
<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; ?>
@ -48,7 +48,7 @@ if( $flexible_posts->have_posts() ):
<div class="dpe-flexible-posts no-posts">
<p><?php _e( 'No post found', 'flexible-posts-widget' ); ?></p>
</div>
<?php
<?php
endif; // End have_posts()
echo $after_widget;

View file

@ -1,54 +0,0 @@
<?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-pages">
<?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 if ( $thumbnail ) echo ' with_thumbnail'; ?>"><?php the_title(); ?></h4>
<p class="meta<?php if ( $thumbnail ) echo ' with_thumbnail'; ?>"><?php echo 'del '; 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;

View file

@ -1,11 +1,11 @@
<?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
* There is a new default template (default.php) that will be
* used by default if no template was specified in a widget.
*/
@ -23,38 +23,38 @@ 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="/quotes/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, ' &#8211; ')), '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>';
?>
<?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="/quotes/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, ' &#8211; ')), '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
<?php
endif; // End have_posts()
echo $after_widget;

View file

@ -7,16 +7,17 @@
*/
/*
* Add help text to screen in a metabox.
* See https://code.tutsplus.com/articles/customizing-the-wordpress-admin-help-text--wp-33281
*/
add_action( 'add_meta_boxes', 'help_featured_image_metabox' );
function help_featured_image_metabox() {
add_meta_box( 'help-featured-image', 'Sobre la imagen destacada', 'help_featured_image_metabox_content', 'post', 'side' );
}
function help_featured_image_metabox_content() {
echo("La mejor proporción para la imagen destacada es la que mantiene una relación de 2'5 a 1. Normalmente <tt>1200x470</tt>.</p>");
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' );
}
# }
}
}
/*
@ -27,11 +28,23 @@ add_filter( 'body_class', 'add_category_name' );
function add_category_name( $classes = '' ) {
if ( is_single() ) {
$category = get_the_category();
$classes[] = 'category-' . $category[0]->slug;
$classes[] = 'category-' . $category[0]->slug;
}
return $classes;
}
/*
* 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
@ -69,20 +82,9 @@ function fix_single_post_title( $args, $id ) {
else {
// Post categories by name:
$categories = array_values( array_column( get_the_category(), 'name' ) );
switch ($categories[0]) {
case 'Blog':
$args['title'] = 'En el blog';
break;
case 'Notas rápidas':
$args['title'] = 'En mis notas';
break;
case 'Snippets':
$args['title'] = 'Picando código';
break;
case 'Álbum de fotos':
$args['title'] = 'Foto del álbum';
break;
}
if ( in_array( $categories[0], array( 'Blog', 'Archivo de notas', 'Apuntes', 'Álbum de fotos' ) ) ) {
$args['title'] = $categories[0];
}
}
}
elseif ( is_category() || is_tag() ) {
@ -111,25 +113,19 @@ function avia_change_tag_page_layout( $layout, $context ) {
}
/*
* Register new icons as a theme icons.
* 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' );
$icons['SoloGit'] = array( 'font' =>'fontello', 'icon' => 'ue806' );
$icons['Mastodon'] = array( 'font' =>'fontello', 'icon' => 'ue804' );
$icons['Bluesky'] = array( 'font' =>'fontello', 'icon' => 'ue805' );
$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';
$icons['SoloGit'] = 'SoloGit';
$icons['Mastodon'] = 'Mastodon';
$icons['Bluesky'] = 'Bluesky';
$icons['GitHub'] = 'github';
$icons['GitLab'] = 'gitlab';
return $icons;
}
@ -150,7 +146,7 @@ function avia_same_category_filter( $settings ) {
add_filter( 'get_the_terms', 'exclude_taxonomy_terms', 10, 3 );
function exclude_taxonomy_terms( $terms, $post, $taxonomy ) {
// List of taxonomy terms (slugs) to exclude:
$exclude_slugs = array( 'portada', 'pelis-y-series', 'lecturas' );
$exclude_slugs = array( 'portada', 'pelis-y-series', 'lecturas', 'twitter', 'linkedin', 'facebook' );
if ( !is_admin() ) {
foreach( $terms as $key => $term ) {
@ -175,9 +171,6 @@ function avia_change_breadcrumb( $trail, $args ) {
elseif ( is_category() ) {
$trail = array();
}
elseif ( is_tax( 'quote_author_tag' ) ) {
array_splice( $trail, 1, 0, array( '<a href="/quotes">Libro de citas</a>' ) );
}
return $trail;
}
@ -209,7 +202,7 @@ function before_save_post( $data, $postarr ) {
}
else {
$data['post_content'] = substr( $data['post_content'], $dotpos + 2 );
}
}
}
}
else {
@ -289,14 +282,6 @@ function social_post_defautl_thumbnail( $html, $post_id, $post_thumbnail_id, $si
return $html;
} */
/*
* Remove provider previews.
*
add_filter( 'embed_oembed_html', 'wp_remove_oembed_providers', 10, 2 );
function wp_remove_oembed_providers( $html, $url ) {
return '<a href="' . esc_url( $url ) . '" rel="noopener noreferrer" target="_blank">' . esc_html( $url ) . '</a>';
} */
/*
* 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).
@ -553,7 +538,7 @@ class enfold_post_footer_widget extends WP_Widget {
* See https://wordpress.stackexchange.com/questions/107113/output-before-and-after-the-loop
*/
register_sidebar( array(
'name' => 'Displayed After Quote',
'name' => 'Displayed After Loop',
'id' => 'after-loop',
'description' => '',
'before_widget' => '<div class="quotes-after-loop">',
@ -561,32 +546,13 @@ register_sidebar( array(
'before_title' => '<h5>',
'after_title' => '</h5>',
) );
add_action( 'loop_end', 'wp_content_after_quote' );
function wp_content_after_quote( $query ) {
if ( ! $query->is_main_query() ) {
return;
}
if ( ! ( is_post_type_archive( 'quote' ) || is_singular( 'quote' ) ) ) {
return;
}
if ( is_active_sidebar( 'after-loop' ) ) {
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' );
}
}
/**
* Show all quotes by author with no pagination.
*/
add_action( 'pre_get_posts', 'wp_all_quotes_by_author' );
function wp_all_quotes_by_author( $query ) {
if ( ! $query->is_main_query() ) {
return;
}
if ( $query->is_tax( 'quote_author_tag' ) ) {
$query->set( 'posts_per_page', -1 );
}
}
/*
* 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
@ -642,17 +608,3 @@ function hide_content_antibots_shortcode( $atts, $content = null ) {
}
return antispambot( $content );
}
/*
* Ensure HTML code using Highlighting Code Block plugin with Enfold Theme.
* Use: [hcb_html]text or email[/hcb_html].
* See https://kriesi.at/support/topic/codeblock-within-editor-not-working-enfold-4-7-3/#post-1206456
*/
add_shortcode( 'html_tag', 'hcb_html_shortcode' );
add_shortcode( 'html_code', 'hcb_html_shortcode' );
add_shortcode( 'html_block', 'hcb_html_shortcode' );
function hcb_html_shortcode( $atts, $content = null ) {
$content = str_replace( '', '&lt;', $content );
$content = str_replace( '', '&gt;', $content );
return $content;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

View file

@ -1,5 +0,0 @@
/* PrismJS 1.26.0
https://prismjs.com/download.html#themes=prism-coy&languages=markup+css+clike+javascript+bash+batch+dart+diff+docker+git+json+markdown+markup-templating+perl+php+rust+sql+toml+typescript&plugins=line-highlight+line-numbers */
code[class*=language-],pre[class*=language-]{color:#000;background:0 0;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*=language-]{position:relative;margin:.5em 0;overflow:visible;padding:1px}pre[class*=language-]>code{position:relative;z-index:1;border-left:10px solid #358ccb;box-shadow:-1px 0 0 0 #358ccb,0 0 0 1px #dfdfdf;background-color:#fdfdfd;background-image:linear-gradient(transparent 50%,rgba(69,142,209,.04) 50%);background-size:3em 3em;background-origin:content-box;background-attachment:local}code[class*=language-]{max-height:inherit;height:inherit;padding:0 1em;display:block;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background-color:#fdfdfd;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin-bottom:1em}:not(pre)>code[class*=language-]{position:relative;padding:.2em;border-radius:.3em;color:#c92c2c;border:1px solid rgba(0,0,0,.1);display:inline;white-space:normal}pre[class*=language-]:after,pre[class*=language-]:before{content:'';display:block;position:absolute;bottom:.75em;left:.18em;width:40%;height:20%;max-height:13em;box-shadow:0 13px 8px #979797;-webkit-transform:rotate(-2deg);-moz-transform:rotate(-2deg);-ms-transform:rotate(-2deg);-o-transform:rotate(-2deg);transform:rotate(-2deg)}pre[class*=language-]:after{right:.75em;left:auto;-webkit-transform:rotate(2deg);-moz-transform:rotate(2deg);-ms-transform:rotate(2deg);-o-transform:rotate(2deg);transform:rotate(2deg)}.token.block-comment,.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#7d8b99}.token.punctuation{color:#5f6364}.token.boolean,.token.constant,.token.deleted,.token.function-name,.token.number,.token.property,.token.symbol,.token.tag{color:#c92c2c}.token.attr-name,.token.builtin,.token.char,.token.function,.token.inserted,.token.selector,.token.string{color:#2f9c0a}.token.entity,.token.operator,.token.url,.token.variable{color:#a67f59;background:rgba(255,255,255,.5)}.token.atrule,.token.attr-value,.token.class-name,.token.keyword{color:#1990b8}.token.important,.token.regex{color:#e90}.language-css .token.string,.style .token.string{color:#a67f59;background:rgba(255,255,255,.5)}.token.important{font-weight:400}.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}.token.namespace{opacity:.7}@media screen and (max-width:767px){pre[class*=language-]:after,pre[class*=language-]:before{bottom:14px;box-shadow:none}}pre[class*=language-].line-numbers.line-numbers{padding-left:0}pre[class*=language-].line-numbers.line-numbers code{padding-left:3.8em}pre[class*=language-].line-numbers.line-numbers .line-numbers-rows{left:0}pre[class*=language-][data-line]{padding-top:0;padding-bottom:0;padding-left:0}pre[data-line] code{position:relative;padding-left:4em}pre .line-highlight{margin-top:0}
pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:linear-gradient(to right,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}@media print{.line-highlight{-webkit-print-color-adjust:exact;color-adjust:exact}}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:#f4f1ef;font:bold 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px #fff}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:after,.line-numbers .line-highlight:before{content:none}pre[id].linkable-line-numbers span.line-numbers-rows{pointer-events:all}pre[id].linkable-line-numbers span.line-numbers-rows>span:before{cursor:pointer}pre[id].linkable-line-numbers span.line-numbers-rows>span:hover:before{background-color:rgba(128,128,128,.2)}
pre[class*=language-].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*=language-].line-numbers>code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows>span{display:block;counter-increment:linenumber}.line-numbers-rows>span:before{content:counter(linenumber);color:#999;display:block;padding-right:.8em;text-align:right}

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

View file

@ -1,90 +0,0 @@
<?php
if( ! defined( 'ABSPATH' ) ){ die(); }
global $avia_config, $more;
/**
* get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory.
*/
get_header();
echo avia_title( array( 'title' => avia_which_archive() ) );
do_action( 'ava_after_main_title' );
/**
* @since 5.6.7
* @param string $main_class
* @param string $context file name
* @return string
*/
$main_class = apply_filters( 'avf_custom_main_classes', 'av-main-' . basename( __FILE__, '.php' ), basename( __FILE__ ) );
?>
<div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'>
<div class='container template-blog '>
<main class='content <?php avia_layout_class( 'content' ); ?> units <?php echo $main_class; ?>' <?php avia_markup_helper( array( 'context' => 'content' ) );?>>
<div class="category-term-description">
<?php echo term_description(); ?>
</div>
<?php
global $wp_query, $posts;
$backup_query = $wp_query;
$sorted = array( 'post' => array() );
$post_type_obj = array();
foreach( $posts as $post )
{
$sorted[ $post->post_type ][] = $post;
if( empty( $post_type_obj[ $post->post_type] ) )
{
$post_type_obj[ $post->post_type ] = get_post_type_object( $post->post_type );
}
}
$avia_config['blog_style'] = apply_filters( 'avf_blog_style', avia_get_option( 'blog_style', 'multi-big' ), 'tag' );
foreach( $sorted as $key => $post_type )
{
if( empty( $post_type ) )
{
continue;
}
$args = array_merge( $wp_query->query_vars, array( 'post_type' => $key ) );
query_posts( $args );
$more = 0;
get_template_part( 'includes/loop', 'index' );
$wp_query = $backup_query;
}
if ( is_active_sidebar( 'after-loop' ) ) :
echo '<div class="quotes-after-loop" style="margin-top: 80px;">';
dynamic_sidebar( 'after-loop' );
echo '</div>';
endif;
?>
<!--end content-->
</main>
<?php
//get the sidebar
$avia_config['currently_viewing'] = 'blog';
get_sidebar();
?>
</div><!--end container-->
</div><!-- close default .container_wrap element -->
<?php
get_footer();