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:
Roman Pyrih
2025-06-02 12:27:30 +02:00
parent 7ea971ed58
commit d769033d66
4 changed files with 14 additions and 2 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -11426,6 +11426,8 @@ body#page-9 {
} }
.entry { .entry {
margin-bottom: 20px;
* { * {
color: #6e6e6e !important; color: #6e6e6e !important;
font-size: 18px; font-size: 18px;

View File

@@ -132,6 +132,16 @@ $page_template = \front\factory\Pages::get_layout_id( $this -> page_id );
echo $content; echo $content;
?> ?>
</div> </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>
</div> </div>
<?endif;?> <?endif;?>