Skip to content

Commit

Permalink
atualiza versao para 1.1.50
Browse files Browse the repository at this point in the history
  • Loading branch information
Thayná Zacharias committed Sep 10, 2024
2 parents de088e3 + 3d3cb8f commit c23eb5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ document.addEventListener("DOMContentLoaded", function() {
slidesToShow: 1
})
})
})
})
4 changes: 2 additions & 2 deletions themes/midia-ninja-theme/library/utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -776,11 +776,11 @@ function ethos_theme_setup() {
*/
function limit_title_length_on_home($title) {
if (is_front_page()) {
$size = 21; // Número inicial de palavras
$size = 22; // Número inicial de palavras
$title = wp_trim_words($title, $size); // Limita inicialmente a 21 palavras

// Enquanto o título tiver mais que 100 caracteres e o número de palavras for maior que 1
while (mb_strlen($title) > 103 && $size > 1) {
while (mb_strlen($title) > 110 && $size > 1) {
$size--; // Diminui o número de palavras
$title = wp_trim_words($title, $size); // Limita o título a esse novo número de palavras
}
Expand Down
2 changes: 1 addition & 1 deletion themes/midia-ninja-theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Theme URI: https://hacklab.com.br/
Author: Hacklab
Author URI: https://hacklab.com.br/
Description: Tema base para desenvolvimento de novos sites.
Version: 1.1.48
Version: 1.1.50
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, brown, orange, tan, white, yellow, light, one-column, two-columns, right-sidebar, flexible-width, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, translation-ready
Expand Down

0 comments on commit c23eb5f

Please sign in to comment.