Skip to content

Commit

Permalink
各カードのスニペット最大文字数の統一
Browse files Browse the repository at this point in the history
  • Loading branch information
yhira committed Nov 24, 2023
1 parent 9fa26ed commit 592178f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/blogcard-out.php
Expand Up @@ -239,7 +239,7 @@ function url_to_external_ogp_blogcard_tag($url){

$image = strip_tags($image);

$snippet = get_content_excerpt( $snippet, 160 );
$snippet = get_content_excerpt($snippet, get_entry_card_excerpt_max_length());
$snippet = strip_tags($snippet);
if ($user_snippet) {
$snippet = $user_snippet;
Expand Down
2 changes: 1 addition & 1 deletion lib/shortcodes.php
Expand Up @@ -811,7 +811,7 @@ function get_rss_feed_tag( $atts ) {
$feed_url = $item->get_permalink();
$feed_title = str_replace(["\r\n", "\r", "\n"], '', $item->get_title());
$feed_date = $item->get_date(get_site_date_format());
$feed_text = mb_substr(strip_tags($item->get_content()), 0, 110);
$feed_text = get_content_excerpt(strip_tags($item->get_content()), get_entry_card_excerpt_max_length());

$feed_content .= '<a href="' . esc_url($feed_url) . '" title="' . esc_attr($feed_title) . '" class="rss-entry-card-link widget-entry-card-link a-wrap" target="'.esc_attr($target).'"'.get_rel_by_target($target).'>';
$feed_content .= '<div class="rss-entry-card widget-entry-card e-card cf">';
Expand Down

0 comments on commit 592178f

Please sign in to comment.