Skip to content

Commit ecb12d4

Browse files
committed
Fixes for Zenphoto 1.6.3
Update class form & feature image plugin
1 parent 41ffd2f commit ecb12d4

8 files changed

Lines changed: 32 additions & 6 deletions

File tree

collections/_inc/inc-header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@
6060
<?php zp_apply_filter('theme_head'); ?>
6161
<?php printHeadTitle(); ?>
6262
<?php if (class_exists('RSS')) printRSSHeaderLink('Gallery', gettext('Gallery RSS')); ?>
63-
<link rel="stylesheet" href="<?php echo $_zp_themeroot; ?>/styles.css?v=240506" type="text/css" />
63+
<link rel="stylesheet" href="<?php echo $_zp_themeroot; ?>/styles.css?v=240606" type="text/css" />
6464
</head>

collections/_inc/inc-sidebar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class="sidebar_site_title">
7777
else {echo "<li>",printCustomPageURL($archivelinktext, "archive"),"</li>";}
7878
?>
7979

80-
<?php if (extensionEnabled('contact_form')) {
80+
<?php if (function_exists('printContactForm')) {
8181
// This loop enable a "menu-active" class to keep conconsistency styling with printAlbumMenu function.
8282
if ($_zp_gallery_page != 'contact.php') { echo '<li>',printCustomPageURL(gettext('Contact us'), 'contact', '', ''),'</li>';}
8383
else { echo '<li class="menu-active">',printCustomPageURL(gettext('Contact us'), 'contact', '', ''),'</li>';} } ?>

collections/_inc/inc-topbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class="navbar_title">
6060
// }
6161
// echo '</li>';
6262
// Contact Page
63-
if (extensionEnabled('contact_form')) {
63+
if (function_exists('printContactForm')) {
6464
echo '<li>';
6565
if ($_zp_gallery_page == "contact.php") {
6666
printCustomPageURL(gettext('Contact us'), 'contact', '', '','','menu-active');

collections/contact.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<main class="<?=$active_template ?>">
1111
<h1 class="page_title"><?php echo gettext('Contact us'); ?></h1>
12-
<?php printContactForm(); ?>
12+
<?php contactForm::printContactForm(); ?>
1313

1414
</main>
1515

collections/news.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
<?php }
1919
if (getPrevNewsURL() OR getNextNewsURL()) { ?><?php }
2020
?>
21+
<?php
22+
# Display the Feature Image
23+
if (function_exists('printSizedFeaturedImage')) {
24+
printSizedFeaturedImage(null,'', 1200, 580, null, null, null, null, null, 'featuredimage_singlenews', null, false, null, true); } ?>
2125
<h1><?php printNewsTitle(); ?></h1>
2226
<div class="article_infos">
2327
<?php printNewsDate(); if (function_exists('getCommentCount')) { ?> | <?php echo gettext("Comments:"); ?>
@@ -80,6 +84,14 @@
8084
<div class="article_side">
8185
<h1 class="page_title"><?php echo gettext("News"); ?></h1>
8286

87+
88+
<?php
89+
if (function_exists('printSizedFeaturedImage') && is_NewsCategory()) { // category featured image
90+
printSizedFeaturedImage($_zp_current_category,'', null, 900, null, null, null, null, null, 'featuredimage_singlecategory', null, false, null, true);
91+
}
92+
?>
93+
94+
8395
<?php # Showing Categories
8496
printAllNewsCategories(gettext("All Categories"),false,"categories_list","categories_list_active");
8597
?>

collections/pages.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
<main class="pages-layout">
1111

1212
<article>
13+
<figure aria-hidden="true">
14+
<?php
15+
if (function_exists('printSizedFeaturedImage')) {
16+
printSizedFeaturedImage(null,'', null, 1200, null, null, null, null, null, 'featuredimage_singlepage', null, false, null, true);} ?>
17+
</figure>
18+
1319
<h1><?php printPageTitle(); ?></h1>
1420

1521
<?php

collections/styles.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,6 +1726,13 @@ a.relateditems_thumb {
17261726
clear: both;
17271727
padding-bottom: 2px;
17281728
}
1729+
/* Featured Image Plugin */
1730+
1731+
.featuredimage_singlenews,
1732+
.featuredimage_singlepage {
1733+
margin-bottom: 2rem;
1734+
}
1735+
17291736

17301737
@media (min-width:700px) {
17311738

@@ -1902,6 +1909,7 @@ a.relateditems_thumb {
19021909
border-top: 1px solid #333;
19031910
}
19041911

1912+
19051913
@media (min-width:700px) {
19061914
.article_side {
19071915
order: 1;

collections/theme_description.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
$theme_description['name'] = 'Collections';
33
$theme_description['author'] = 'Roland Ti - <a href="https://github.com/RolandTi/collections">GitHub</a>';
4-
$theme_description['version'] = '2.1';
5-
$theme_description['date'] = '07/05/24';
4+
$theme_description['version'] = '2.2';
5+
$theme_description['date'] = '06/06/24';
66
$theme_description['desc'] = 'Collections is a responsive theme for ZenphotoCMS.';
77
?>

0 commit comments

Comments
 (0)