Twig 到 tpl 的转换 {{ ' | '~作者}}

Twig to tpl conversion of {{ ' | ' ~ author }}

{% if theme_option_status[store_id] %}
{% if header_tag[store_id].font_family == header_tag[store_id].font_family %}
{{ a_tag[store_id].color ? 'a { color: #' ~ a_tag[store_id].color ~ '; }' : '' }}
{{ a_tag[store_id].hover_color ? 'a:hover { color: #' ~ a_tag[store_id].hover_color ~ '; }' : '' }}

    {{ total.title ~ " :" }}


    {{ article.date_added_d ~ ' ' ~ article.date_added_m ~ ' ' ~ article.date_added_y }} 
{% if (count % rows == 0) or (count == articles|length ) %}

    {{ (i % 2 == 0) ? 'even' : 'odd' }}
{{ " | " ~ article.author }}

    {{ ' | ' ~ author }}

这是树枝文件代码。我们如何在 tpl 文件中编写这段代码?我正在将 OpenCart 3.0.2.0 主题转换为 OpenCart 2.3.0.2。我面临将这些困难的行转换为 tpl PHP 行的问题。其他所有代码我都做得很好,但我无法完成这些代码行。我怎样才能准确地转换 tpl 中的这一行?

if ($theme_option_status['store_id']) {
    if ($header_tag['store_id']['font_family'] == $header_tag['store_id']['font_family']){
            echo $a_tag['store_id']['color'] ?  'a { color: #' . $a_tag['store_id']['color'] . '; }' : '';
            echo $a_tag['store_id']['hover_color'] ? 'a:hover { color: #' . $a_tag['store_id']['hover_color'] . '; }' : '';

            echo  $total['title'] . " :" ;

            echo $article['date_added_d'] . ' ' . $article['date_added_m'] . ' ' . $article['date_added_y'];  
            if (($count % $rows == 0) || $count == strlen($articles)) {

            echo ($i % 2 == 0) ? 'even' : 'odd' ;
            echo " | " . $article['author'];
            echo ' | ' . $author;