1-
21<?php
2+
33/**
44 * @package Astroid Framework
55 * @author JoomDev https://www.joomdev.com
3838 if (is_string ($ image ) && !empty ($ image )) {
3939 $ astroidArticle ->template ->loadLayout ('blog.modules.image ' , true , ['image ' => $ image , 'title ' => $ this ->item ->title ]);
4040 }
41-
42- $ menulevel_article_badge = $ this ->params ->get ('astroid_articlebadge ' , 1 );
43- $ astroidArticle ->article ->params ->get ('astroid_article_badge ' , 1 );
44- $ astroid_article_badge = $ template ->params ->get ('astroid_article_badge ' , 1 ) ? ($ astroidArticle ->article ->params ->get ('astroid_article_badge ' , 0 ) ? 1 : 0 ) : 0 ;
45- $ astroidlevel_article_badge = $ template ->params ->get ('astroid_badge ' , 1 );
4641 ?>
47- <div class="card-body<?php echo $ tpl_params ->get ('show_post_format ' ) ? ' has-post-format ' : '' ; ?> <?php echo $ astroid_article_badge ? ' has-badge ' : '' ; ?> <?php echo (!empty ($ image ) ? ' has-image ' : '' ); ?> ">
48- <?php if ($ astroidArticle ->article ->params ->get ('astroid_article_badge ' , 1 )){ ?>
49- <?php switch ($ menulevel_article_badge ) {
50- case "2 " :
51- if (($ astroidlevel_article_badge == 3 ) || ($ astroidlevel_article_badge ==1 )) {
52-
53- if ($ astroidArticle ->article ->params ->get ('astroid_article_badge ' , 0 )) { ?>
54- <?php
55- if ($ astroidArticle ->article ->params ->get ('astroid_article_badge_type ' , 2 ) == 1 ) {
56- $ style = '.article-badge.article-badge-custom.article-id- ' .$ this ->item ->id .':after{ border-left-color: ' . $ astroidArticle ->article ->params ->get ('astroid_article_badge_color ' , '#000 ' ). '} .article-badge.article-badge-custom.article-id- ' .$ this ->item ->id .':before{ border-bottom-color: ' . $ astroidArticle ->article ->params ->get ('astroid_article_badge_color ' , '#000 ' ). '; } ' ;
57- $ document ->addStyleDeclaration ($ style );
58- ?>
59- <div style="background: <?php echo $ astroidArticle ->article ->params ->get ('astroid_article_badge_color ' , '#000 ' ); ?> ; color: <?php echo $ astroidArticle ->article ->params ->get ('astroid_article_badge_text_color ' , '#000 ' ); ?> " class="article-badge article-badge-<?php
60- if ($ astroidArticle ->article ->params ->get ('astroid_article_badge_type ' , 2 ) == 1 ) {
61- echo 'custom article-id- ' .$ this ->item ->id ;
62- } else {
63- echo $ astroidArticle ->article ->params ->get ('astroid_article_badge_type ' , 2 );
64- }
65- ?> "><?php echo JText::_ ($ astroidArticle ->article ->params ->get ('astroid_article_badge_text ' , '' )); ?> </div>
66- <?php } else { ?>
67- <div class="article-badge article-badge-<?php echo $ astroidArticle ->article ->params ->get ('astroid_article_badge_type ' , 2 ); ?> ">
68- <?php $ astroidArticle ->renderArticleBadge (); ?>
69- <?php echo JText::_ ('ASTROID_ARTICLE_OPTIONS_BADGE_ ' . ($ astroidArticle ->article ->params ->get ('astroid_article_badge_type ' , 2 )) . '_LBL ' ); ?> </div>
70- <?php } ?>
71- <?php } ?>
72- <?php
73- }
74- break ;
75- case 1 :
76-
77- if ($ astroidArticle ->article ->params ->get ('astroid_article_badge_type ' , 2 ) == 1 ) {
78- $ style = '.article-badge.article-badge-custom.article-id- ' .$ this ->item ->id .':after{ border-left-color: ' . $ astroidArticle ->article ->params ->get ('astroid_article_badge_color ' , '#000 ' ). '} .article-badge.article-badge-custom.article-id- ' .$ this ->item ->id .':before{ border-bottom-color: ' . $ astroidArticle ->article ->params ->get ('astroid_article_badge_color ' , '#000 ' ). '; } ' ;
79- $ document ->addStyleDeclaration ($ style );
80- ?>
81- <div style="background: <?php echo $ astroidArticle ->article ->params ->get ('astroid_article_badge_color ' , '#000 ' ); ?> ; color: <?php echo $ astroidArticle ->article ->params ->get ('astroid_article_badge_text_color ' , '#000 ' ); ?> " class="article-badge article-badge-<?php
82- if ($ astroidArticle ->article ->params ->get ('astroid_article_badge_type ' , 2 ) == 1 ) {
83- echo 'custom article-id- ' .$ this ->item ->id ;
84- } else {
85- echo $ astroidArticle ->article ->params ->get ('astroid_article_badge_type ' , 2 );
86- }
87- ?> "><?php echo JText::_ ($ astroidArticle ->article ->params ->get ('astroid_article_badge_text ' , '' )); ?> </div>
88- <?php } else { ?>
89- <div class="article-badge article-badge-<?php echo $ astroidArticle ->article ->params ->get ('astroid_article_badge_type ' , 2 ); ?> ">
90- <?php $ astroidArticle ->renderArticleBadge (); ?>
91- <?php echo JText::_ ('ASTROID_ARTICLE_OPTIONS_BADGE_ ' . ($ astroidArticle ->article ->params ->get ('astroid_article_badge_type ' , 2 )) . '_LBL ' ); ?> </div>
92- <?php } ?>
93-
94- <?php
95- break ;
96- }
97- }
98- ?>
42+ <div class="card-body<?php echo $ tpl_params ->get ('show_post_format ' ) ? ' has-post-format ' : '' ; ?> <?php echo (!empty ($ image ) ? ' has-image ' : '' ); ?> ">
43+ <?php $ astroidArticle ->renderArticleBadge (); ?>
9944 <div class="article-title item-title">
10045 <?php echo JLayoutHelper::render ('joomla.content.blog_style_default_item_title ' , $ this ->item ); ?>
10146 </div>
10651 <div class="article-intro-text"><?php echo $ this ->item ->introtext ; ?> </div>
10752 <?php if ($ info == 1 || $ info == 2 ) : ?>
10853 <?php if ($ useDefList ) : ?>
109- <?php // Todo: for Joomla4 joomla.content.info_block.block can be changed to joomla.content.info_block ?>
54+ <?php // Todo: for Joomla4 joomla.content.info_block.block can be changed to joomla.content.info_block
55+ ?>
11056 <?php echo JLayoutHelper::render ('joomla.content.info_block.block ' , array ('item ' => $ this ->item , 'params ' => $ params , 'astroidArticle ' => $ astroidArticle , 'position ' => 'below ' )); ?>
11157 <?php endif ; ?>
11258 <?php endif ; ?>
13884<?php if ($ params ->get ('show_tags ' ) && !empty ($ this ->item ->tags ->itemTags )) : ?>
13985 <?php echo JLayoutHelper::render ('joomla.content.tags ' , $ this ->item ->tags ->itemTags ); ?>
14086<?php endif ; ?>
141- <?php echo $ this ->item ->event ->afterDisplayContent ; ?>
87+ <?php echo $ this ->item ->event ->afterDisplayContent ; ?>
0 commit comments