+ {php} + $is_item_video = ($news_video_id !== '' && $news_video_id !== '0' && (string)($vo_content['category_id'] ?? '') === $news_video_id); + {/php} + {:date('Y-m-d',strtotime($create_time_str)) ?? ''} {$vo_content.title} + {if !$is_item_video} Explore more + {/if} + {if $is_item_video} + {notempty name="description"} + {$description} + {/notempty} + + + + {/if} {/if} @@ -230,7 +243,6 @@ {$hc_content|raw} {/if} - {if $is_news_video} @@ -245,7 +257,6 @@ - {/if} diff --git a/public/themes/website/1/zh/demo/news.html b/public/themes/website/1/zh/demo/news.html index 608ca8d..3c3f4b8 100644 --- a/public/themes/website/1/zh/demo/news.html +++ b/public/themes/website/1/zh/demo/news.html @@ -197,19 +197,32 @@ {$create_time_str|date='Y-m-d'} {else /} - + {php} + $is_item_video = ($news_video_id !== '' && $news_video_id !== '0' && (string)($vo_content['category_id'] ?? '') === $news_video_id); + {/php} + {:date('Y-m-d',strtotime($create_time_str)) ?? ''} {$vo_content.title} + {if !$is_item_video} 探索更多 + {/if} + {if $is_item_video} + {notempty name="description"} + {$description} + {/notempty} + + + + {/if} {/if} @@ -230,7 +243,6 @@ {$hc_content|raw} {/if} - {if $is_news_video} @@ -245,7 +257,6 @@ - {/if}
{:date('Y-m-d',strtotime($create_time_str)) ?? ''} {$vo_content.title} + {if !$is_item_video} Explore more + {/if} + {if $is_item_video} + {notempty name="description"} + {$description} + {/notempty} + + + + {/if}
+ {php} + $is_item_video = ($news_video_id !== '' && $news_video_id !== '0' && (string)($vo_content['category_id'] ?? '') === $news_video_id); + {/php} + {:date('Y-m-d',strtotime($create_time_str)) ?? ''} {$vo_content.title} + {if !$is_item_video} 探索更多 + {/if} + {if $is_item_video} + {notempty name="description"} + {$description} + {/notempty} + + + + {/if} {/if} @@ -230,7 +243,6 @@ {$hc_content|raw} {/if} - {if $is_news_video} @@ -245,7 +257,6 @@ - {/if}
{:date('Y-m-d',strtotime($create_time_str)) ?? ''} {$vo_content.title} + {if !$is_item_video} 探索更多 + {/if} + {if $is_item_video} + {notempty name="description"} + {$description} + {/notempty} + + + + {/if}