Add margin to article entries and conditional links for specific pages
- Updated the SCSS file to add a bottom margin to article entries for better spacing. - Modified the article-entry template to include conditional links for pages with IDs 12 and 94, providing localized "Read more" and "Download now" options.
This commit is contained in:
@@ -132,6 +132,16 @@ $page_template = \front\factory\Pages::get_layout_id( $this -> page_id );
|
||||
echo $content;
|
||||
?>
|
||||
</div>
|
||||
<? if($page[ 'id' ] == 12 ): ?>
|
||||
<a class="more" href="/<? if ( \S::get_session( 'current-lang' ) != \front\factory\Languages::default_language( \S::get_domain( $_SERVER['HTTP_HOST'] ) ) ) echo \S::get_session( 'current-lang' ) . '/';?><?= $url;?>">
|
||||
<span>Przeczytaj całość</span>
|
||||
</a>
|
||||
<? endif; ?>
|
||||
<? if($page[ 'id' ] == 94 ): ?>
|
||||
<a class="more" href="/<? if ( \S::get_session( 'current-lang' ) != \front\factory\Languages::default_language( \S::get_domain( $_SERVER['HTTP_HOST'] ) ) ) echo \S::get_session( 'current-lang' ) . '/';?><?= $url;?>">
|
||||
<span>Pobierz teraz</span>
|
||||
</a>
|
||||
<? endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?endif;?>
|
||||
|
||||
Reference in New Issue
Block a user