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:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -11426,6 +11426,8 @@ body#page-9 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.entry {
|
.entry {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
|
||||||
* {
|
* {
|
||||||
color: #6e6e6e !important;
|
color: #6e6e6e !important;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
|||||||
@@ -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;?>
|
||||||
|
|||||||
Reference in New Issue
Block a user