From 5820b34f313c674b985b87d35c556f716cd12049 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Wed, 23 Nov 2022 20:15:33 +0100 Subject: [PATCH 1/7] =?UTF-8?q?=F0=9F=92=84=20A=C3=B1ade=20icono=20para=20?= =?UTF-8?q?enlazar=20a=20Mastodon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/wp-content/themes/enfold-cille/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/wp-content/themes/enfold-cille/functions.php b/www/wp-content/themes/enfold-cille/functions.php index d0eaece..1ebc34b 100644 --- a/www/wp-content/themes/enfold-cille/functions.php +++ b/www/wp-content/themes/enfold-cille/functions.php @@ -111,19 +111,21 @@ function avia_change_tag_page_layout( $layout, $context ) { } /* - * Register new icons as a theme icons fot GitHub and GitLab. + * Register new icons as a theme icons fot GitHub, GitLab and Mastodon. * 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['mastodon'] = array( 'font' =>'fontello', 'icon' => 'ue804' ); 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['Mastodon'] = 'mastodon'; return $icons; } From 13d5e0581a397b82d8b7ff8328ad7939b550945c Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Mon, 16 Dec 2024 01:22:11 +0100 Subject: [PATCH 2/7] =?UTF-8?q?=F0=9F=92=84=20A=C3=B1ade=20icono=20para=20?= =?UTF-8?q?enlazar=20a=20Bluesky?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/wp-content/themes/enfold-cille/functions.php | 2 ++ www/wp-content/themes/enfold-cille/style.css | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/www/wp-content/themes/enfold-cille/functions.php b/www/wp-content/themes/enfold-cille/functions.php index 1ebc34b..6caf684 100644 --- a/www/wp-content/themes/enfold-cille/functions.php +++ b/www/wp-content/themes/enfold-cille/functions.php @@ -119,6 +119,7 @@ function avia_add_custom_icon( $icons ) { $icons['github'] = array( 'font' =>'fontello', 'icon' => 'uf09b' ); $icons['gitlab'] = array( 'font' =>'fontello', 'icon' => 'uf296' ); $icons['mastodon'] = array( 'font' =>'fontello', 'icon' => 'ue804' ); + $icons['bluesky'] = array( 'font' =>'fontello', 'icon' => 'ue805' ); return $icons; } add_filter( 'avf_social_icons_options', 'avia_add_custom_social_icon', 10, 1 ); @@ -126,6 +127,7 @@ function avia_add_custom_social_icon( $icons ) { $icons['GitHub'] = 'github'; $icons['GitLab'] = 'gitlab'; $icons['Mastodon'] = 'mastodon'; + $icons['Bluesky'] = 'bluesky'; return $icons; } diff --git a/www/wp-content/themes/enfold-cille/style.css b/www/wp-content/themes/enfold-cille/style.css index ae7cf9e..27d1c67 100644 --- a/www/wp-content/themes/enfold-cille/style.css +++ b/www/wp-content/themes/enfold-cille/style.css @@ -1258,6 +1258,11 @@ body.home .quote-text p { .av-share-box ul li a { font-size: 18px; } +#top #wrap_all .av-social-link-bluesky:hover a, +#top #wrap_all .av-social-link-bluesky:hover a { + color: #fff; + background-color: #1185fe; +} #top #wrap_all .av-social-link-github:hover a, #top #wrap_all .av-social-link-gitlab:hover a { color: #fff; From 537e4b0b2b49dc5e897cfc1e455fd91373df730c Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Mon, 3 Mar 2025 16:12:31 +0100 Subject: [PATCH 3/7] =?UTF-8?q?=F0=9F=92=84=20Recupera=20icono=20para=20en?= =?UTF-8?q?lazar=20a=20Mastodon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/wp-content/themes/enfold-cille/style.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/wp-content/themes/enfold-cille/style.css b/www/wp-content/themes/enfold-cille/style.css index 27d1c67..ee4edf9 100644 --- a/www/wp-content/themes/enfold-cille/style.css +++ b/www/wp-content/themes/enfold-cille/style.css @@ -1258,6 +1258,11 @@ body.home .quote-text p { .av-share-box ul li a { font-size: 18px; } +#top #wrap_all .av-social-link-mastodon:hover a, +#top #wrap_all .av-social-link-mastodon:hover a { + color: #fff; + background-color: #563acc; +} #top #wrap_all .av-social-link-bluesky:hover a, #top #wrap_all .av-social-link-bluesky:hover a { color: #fff; From 1239e8f93520fbc99e14abdc3e7a7965e92d4549 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Sat, 21 Jun 2025 10:51:03 +0200 Subject: [PATCH 4/7] =?UTF-8?q?=F0=9F=A9=B9=20Corrige=20la=20visualizaci?= =?UTF-8?q?=C3=B3n=20de=20las=20citas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../themes/enfold-cille/functions.php | 38 +++++++- www/wp-content/themes/enfold-cille/style.css | 4 + .../taxonomy-quote_author_tag.php | 90 +++++++++++++++++++ 3 files changed, 128 insertions(+), 4 deletions(-) create mode 100644 www/wp-content/themes/enfold-cille/taxonomy-quote_author_tag.php diff --git a/www/wp-content/themes/enfold-cille/functions.php b/www/wp-content/themes/enfold-cille/functions.php index 6caf684..c6ed314 100644 --- a/www/wp-content/themes/enfold-cille/functions.php +++ b/www/wp-content/themes/enfold-cille/functions.php @@ -173,6 +173,9 @@ function avia_change_breadcrumb( $trail, $args ) { elseif ( is_category() ) { $trail = array(); } + elseif ( is_tax( 'quote_author_tag' ) ) { + array_splice( $trail, 1, 0, array( 'Libro de citas' ) ); + } return $trail; } @@ -284,6 +287,14 @@ function social_post_defautl_thumbnail( $html, $post_id, $post_thumbnail_id, $si return $html; } */ +/** + * Remove Reddit as oEmbed provider. + */ +add_filter( 'embed_oembed_html', 'wp_remove_oembed_providers', 10, 2 ); +function wp_remove_oembed_providers( $html, $url ) { + return '' . esc_html( $url ) . ''; +}; + /* * 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). @@ -540,7 +551,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 Loop', + 'name' => 'Displayed After Quote', 'id' => 'after-loop', 'description' => '', 'before_widget' => '
', @@ -548,13 +559,32 @@ register_sidebar( array( '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' ) ) { +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' ) ) { 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 diff --git a/www/wp-content/themes/enfold-cille/style.css b/www/wp-content/themes/enfold-cille/style.css index ee4edf9..d451dc7 100644 --- a/www/wp-content/themes/enfold-cille/style.css +++ b/www/wp-content/themes/enfold-cille/style.css @@ -1208,6 +1208,10 @@ body.home .quote-text p { transition-delay: 0s; opacity: 1 !important; } +#scroll-top-link.avia-svg-icon svg:first-child { + height: 35px; + margin-top: 6px; +} #scroll-top-link:hover { background-color: #000; } diff --git a/www/wp-content/themes/enfold-cille/taxonomy-quote_author_tag.php b/www/wp-content/themes/enfold-cille/taxonomy-quote_author_tag.php new file mode 100644 index 0000000..b486b99 --- /dev/null +++ b/www/wp-content/themes/enfold-cille/taxonomy-quote_author_tag.php @@ -0,0 +1,90 @@ + 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__ ) ); +?> + +
'> + +
+ +
units ' 'content' ) );?>> + +
+ +
+ + 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 '
'; + dynamic_sidebar( 'after-loop' ); + echo '
'; + endif; + ?> + + +
+ + + +
+ +
+ + Date: Sat, 21 Jun 2025 18:11:44 +0200 Subject: [PATCH 5/7] =?UTF-8?q?=F0=9F=92=84=20A=C3=B1ade=20icono=20para=20?= =?UTF-8?q?enlazar=20a=20SoloGit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../themes/enfold-cille/functions.php | 20 ++++++++++--------- www/wp-content/themes/enfold-cille/style.css | 13 ++++++------ 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/www/wp-content/themes/enfold-cille/functions.php b/www/wp-content/themes/enfold-cille/functions.php index c6ed314..149c8f1 100644 --- a/www/wp-content/themes/enfold-cille/functions.php +++ b/www/wp-content/themes/enfold-cille/functions.php @@ -111,23 +111,25 @@ function avia_change_tag_page_layout( $layout, $context ) { } /* - * Register new icons as a theme icons fot GitHub, GitLab and Mastodon. + * Register new icons as a theme icons. * 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['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' ); + $icons['SoloGit'] = array( 'font' =>'fontello', 'icon' => 'ue806' ); + $icons['Mastodon'] = array( 'font' =>'fontello', 'icon' => 'ue804' ); + $icons['Bluesky'] = array( 'font' =>'fontello', 'icon' => 'ue805' ); 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['Mastodon'] = 'mastodon'; - $icons['Bluesky'] = 'bluesky'; + $icons['GitHub'] = 'GitHub'; + $icons['GitLab'] = 'GitLab'; + $icons['SoloGit'] = 'SoloGit'; + $icons['Mastodon'] = 'Mastodon'; + $icons['Bluesky'] = 'Bluesky'; return $icons; } diff --git a/www/wp-content/themes/enfold-cille/style.css b/www/wp-content/themes/enfold-cille/style.css index d451dc7..298506f 100644 --- a/www/wp-content/themes/enfold-cille/style.css +++ b/www/wp-content/themes/enfold-cille/style.css @@ -1262,18 +1262,19 @@ body.home .quote-text p { .av-share-box ul li a { font-size: 18px; } -#top #wrap_all .av-social-link-mastodon:hover a, -#top #wrap_all .av-social-link-mastodon:hover a { +#top #wrap_all .av-social-link-Mastodon:hover a, +#top #wrap_all .av-social-link-Mastodon:hover a { color: #fff; background-color: #563acc; } -#top #wrap_all .av-social-link-bluesky:hover a, -#top #wrap_all .av-social-link-bluesky:hover a { +#top #wrap_all .av-social-link-Bluesky:hover a, +#top #wrap_all .av-social-link-Bluesky:hover a { color: #fff; background-color: #1185fe; } -#top #wrap_all .av-social-link-github:hover a, -#top #wrap_all .av-social-link-gitlab:hover a { +#top #wrap_all .av-social-link-GitHub:hover a, +#top #wrap_all .av-social-link-GitLab:hover a, +#top #wrap_all .av-social-link-SoloGit:hover a { color: #fff; background-color: #bd2c00; } From 585a95fac3cc3fbcac7bf26850309431310e2887 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Sat, 28 Jun 2025 07:25:19 +0200 Subject: [PATCH 6/7] =?UTF-8?q?=E2=8F=AA=20Revierte=20previsualizaci=C3=B3?= =?UTF-8?q?n=20de=20contenidos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/wp-content/themes/enfold-cille/functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/wp-content/themes/enfold-cille/functions.php b/www/wp-content/themes/enfold-cille/functions.php index 149c8f1..2692841 100644 --- a/www/wp-content/themes/enfold-cille/functions.php +++ b/www/wp-content/themes/enfold-cille/functions.php @@ -289,13 +289,13 @@ function social_post_defautl_thumbnail( $html, $post_id, $post_thumbnail_id, $si return $html; } */ -/** - * Remove Reddit as oEmbed provider. - */ +/* + * Remove provider previews. + * add_filter( 'embed_oembed_html', 'wp_remove_oembed_providers', 10, 2 ); function wp_remove_oembed_providers( $html, $url ) { return '' . esc_html( $url ) . ''; -}; +} */ /* * Add a button to display the number of characters in Title and Content editor; From e08ba95a3881dbbc1b93b8bf39d662a938e3ffe7 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Sat, 28 Jun 2025 07:33:38 +0200 Subject: [PATCH 7/7] =?UTF-8?q?=F0=9F=92=84=20Muestra=20bot=C3=B3n=20de=20?= =?UTF-8?q?scroll=20hacia=20arriba=20siempre?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- www/wp-content/themes/enfold-cille/style.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/wp-content/themes/enfold-cille/style.css b/www/wp-content/themes/enfold-cille/style.css index 298506f..1fc1549 100644 --- a/www/wp-content/themes/enfold-cille/style.css +++ b/www/wp-content/themes/enfold-cille/style.css @@ -1215,6 +1215,11 @@ body.home .quote-text p { #scroll-top-link:hover { background-color: #000; } +@media only screen and (max-width: 767px) { + .responsive #scroll-top-link { + display: block; + } +} #top .av_inherit_color a { text-decoration: none;