-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit after some cleanup for current releases
- Loading branch information
Showing
35 changed files
with
6,867 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php include('inc-header.php'); ?> | ||
|
||
<main class="section" id="middle" role="main"> | ||
<div class="wrapper clearfix"> | ||
<section class="content full"> | ||
<div id="breadcrumbs"> | ||
<h2 id="breadcrumb-title"><?php echo gettext("404 - Page not found"); ?></h2> | ||
</div> | ||
<?php print404status(isset($album) ? $album : NULL, isset($image) ? $image : NULL, $obj); ?> | ||
</section> | ||
</div> | ||
</main> | ||
|
||
<?php include('inc-footer.php'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
# zenji | ||
**Please understand though that the ZenphotoCMS team has no resources to further develop these themes but we can help fixing bugs with newer releases that way. Contributions via pull requests are also welcome.** | ||
|
||
# zenji | ||
|
||
A customizable, responsive (mobile-first), [ZenphotoCMS](http://zenphoto.org) theme. | ||
|
||
This theme was originally written by @gjr-osweb in 2014/2015 already and never released. We had almost forgotten that he had sent it for review. The ZenphotoCMS team has roughly cleaned up some code issues so it should be generally compatible with the current release. | ||
|
||
[You view some screenshots here](https://www.zenphoto.org/theme/zenji/index.jgp.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
<?php include('inc-header.php'); ?> | ||
|
||
<main class="section" id="middle" role="main"> | ||
<div class="wrapper clearfix"> | ||
<section class="content"> | ||
|
||
<div id="breadcrumbs"> | ||
<?php printParentBreadcrumb('', ' / ', ' / '); ?> | ||
<h3 id="breadcrumb-title"><?php printAlbumTitle(); ?></h3> | ||
</div> | ||
|
||
<div id="albums"> | ||
<?php while (next_album()): ?> | ||
<article class="album"> | ||
<div class="thumb"> | ||
<a href="<?php echo html_encode(getAlbumURL()); ?>" title="<?php echo gettext('View album:'); ?> <?php printAnnotatedAlbumTitle(); ?>"> | ||
<?php | ||
// get custom sizes for landscape option | ||
$customthumbwidth = (getOption('zj_maxwidth')) / (getOption('albums_per_row')); | ||
$customthumbheight = $customthumbwidth / 2; | ||
// print album thumb based on theme option | ||
if (getOption('zj_albumthumb') == 'square') { | ||
printCustomAlbumThumbImage(getAnnotatedAlbumTitle(), null, $customthumbwidth, $customthumbwidth, $customthumbwidth, $customthumbwidth); | ||
} else if (getOption('zj_albumthumb') == 'landscape') { | ||
printCustomAlbumThumbImage(getAnnotatedAlbumTitle(), null, $customthumbwidth, $customthumbheight, $customthumbwidth, $customthumbheight); | ||
} else { | ||
printAlbumThumbImage(getAnnotatedAlbumTitle()); | ||
} | ||
?> | ||
<div class="album-title"><?php printAlbumTitle(); ?></div> | ||
<?php if (getAlbumDate()) { ?><div class="album-date"><i class="fa fa-calendar-o"></i> <?php printAlbumDate(''); ?></div><?php } ?> | ||
<div class="album-desc"><?php echo strip_tags(truncate_string(getAlbumDesc(), 120, '...')); ?></div> | ||
</a> | ||
</div> | ||
</article> | ||
<?php endwhile; ?> | ||
</div> | ||
|
||
<div id="images"> | ||
<?php while (next_image()): ?> | ||
<article class="image"> | ||
<div class="thumb"> | ||
<a href="<?php echo html_encode(getImageURL()); ?>" title="<?php printBareImageTitle(); ?>"> | ||
<?php printImageThumb(getAnnotatedImageTitle()); ?> | ||
</a> | ||
</div> | ||
</article> | ||
<?php endwhile; ?> | ||
</div> | ||
|
||
<?php printPageListWithNav('« ' . gettext('Prev'), gettext('Next') . ' »'); ?> | ||
|
||
</section> | ||
<section class="sidebar"> | ||
<div class="album-info"> | ||
<span><i class="fa fa-image"></i> | ||
<?php | ||
$albumcount = getNumAlbums(); | ||
$imagecount = getNumImages(); | ||
if ($albumcount) | ||
echo $albumcount . ' ' . gettext('Subalbums'); | ||
if (($albumcount) && ($imagecount)) | ||
echo ', '; // if both, print out divider | ||
if ($imagecount) | ||
echo $imagecount . ' ' . gettext('Images'); | ||
?> | ||
</span> | ||
<?php if (getAlbumDate()) { ?><span><i class="fa fa-calendar-o"></i> <?php printAlbumDate(); ?></span><?php } ?> | ||
<?php if (function_exists('getCommentCount')) { ?> | ||
<span><i class="fa fa-comments-o"></i> <?php echo gettext('Comments:') . ' ' . getCommentCount(); ?></span> | ||
<?php } ?> | ||
</div> | ||
|
||
<div id="description"><?php printAlbumDesc(); ?></div> | ||
<?php if (getTags()) printTags('links', '', 'taglist', ''); ?> | ||
|
||
<div class="button-group"> | ||
<?php | ||
if (function_exists('printGoogleMap')) | ||
printGoogleMap(gettext('Show Map'), 'google-map-link', 'colorbox'); | ||
if (class_exists('RSS')) | ||
printRSSLink($rss_option, '', $rss_title, '', false, 'rss-link'); | ||
@call_user_func('printSlideShowLink'); | ||
?> | ||
</div> | ||
<?php | ||
if (extensionEnabled('scriptless-socialsharing')) { | ||
scriptlessSocialsharing::printButtons(gettext('Share: ')); | ||
} | ||
if (function_exists('printAddToFavorites')) | ||
include ('inc-favorites.php'); | ||
if (function_exists('printRating')) { | ||
?><div id="rating"><?php echo printRating(); ?></div> | ||
<?php } | ||
?> | ||
<div id="album-jump"><?php if (function_exists('printAlbumMenu')) printAlbumMenu('jump', 'count'); ?></div> | ||
</section> | ||
</div> | ||
</main> | ||
|
||
<?php if ((function_exists('printRelatedItems')) || (function_exists('printCommentForm'))) { ?> | ||
<aside class="section" id="bottom" role="complementary"> | ||
<div class="wrapper clearfix"> | ||
<?php if (function_exists('printCommentForm')) { ?> | ||
<section class="content"> | ||
<?php @call_user_func('printCommentForm'); ?> | ||
</section> | ||
<?php if (function_exists('printRelatedItems')) { ?> | ||
<section class="sidebar"> | ||
<?php printRelatedItems(5, 'albums', null, null, true); ?> | ||
</section> | ||
<?php } ?> | ||
<?php } else { ?> | ||
<section class="content full"> | ||
<?php printRelatedItems(5, 'albums', null, null, true); ?> | ||
</section> | ||
<?php } ?> | ||
</div> | ||
</aside> | ||
<?php } ?> | ||
|
||
<?php include('inc-footer.php'); ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
if (getOption('zj_archive')) { | ||
include('inc-header.php'); | ||
?> | ||
|
||
<main class="section" id="middle" role="main"> | ||
<div class="wrapper clearfix"> | ||
<section class="content full"> | ||
|
||
<div id="breadcrumbs"> | ||
<?php printParentBreadcrumb('', ' / ', ' / '); ?> | ||
<h2 id="breadcrumb-title"><?php echo gettext('Gallery Archive'); ?></h2> | ||
</div> | ||
|
||
<div id="archive"><?php printAllDates('archive', 'year', 'month', 'desc'); ?></div> | ||
|
||
<?php if (ZP_NEWS_ENABLED) { ?> | ||
<h2><?php echo gettext('News Archive'); ?></h3> | ||
<?php printNewsArchive('archive'); ?> | ||
<?php } ?> | ||
|
||
<div id="tag-cloud"> | ||
<h2><?php echo gettext('Tags'); ?></h2> | ||
<?php printAllTagsAs('cloud', 'archive-cloud', null, true, true, 2, 50, 1); ?> | ||
</div> | ||
|
||
</section> | ||
</div> | ||
</main> | ||
|
||
<?php | ||
include('inc-footer.php'); | ||
} else { | ||
include(SERVERPATH . '/' . ZENFOLDER . '/404.php'); | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
if (function_exists('printContactForm')) { | ||
include('inc-header.php'); | ||
?> | ||
|
||
<main class="section" id="middle" role="main"> | ||
<div class="wrapper clearfix"> | ||
<section class="content full"> | ||
<div id="breadcrumbs"> | ||
<h2 id="breadcrumb-title"><?php echo gettext('Contact Us'); ?></h2> | ||
</div> | ||
<?php printContactForm(); ?> | ||
</section> | ||
</div> | ||
</main> | ||
|
||
<?php | ||
include('inc-footer.php'); | ||
} else { | ||
include(SERVERPATH . '/' . ZENFOLDER . '/404.php'); | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
body{background:#eee;} | ||
.wrapper{box-shadow:0 1px 3px rgba(0,0,0,0.2);border-bottom:1px solid #eee;} | ||
#top .wrapper,#footer .wrapper,#bottom .wrapper{background:#f8f8f8;} | ||
#middle .wrapper{background:#fff;} | ||
|
||
body#dark{background:#000;} | ||
#dark .wrapper{box-shadow:0 1px 3px rgba(0,0,0,0.2);border-bottom:1px solid #111;} | ||
#dark #top .wrapper,#dark #footer .wrapper,#dark #bottom .wrapper{background:#222;} | ||
#dark #middle .wrapper{background:#333;} | ||
|
||
.sidebar .button,.sidebar .button-group a,.sidebar #social-share,.sidebar #favorites-box{ | ||
display: inline-block; | ||
text-decoration: none; | ||
font-weight:bold; | ||
line-height:2; | ||
padding: 3px 11px; | ||
margin-bottom:10px; | ||
color: #555; | ||
border: 1px solid #dedede; | ||
border-radius: 3px; | ||
background: #f5f5f5; | ||
text-shadow: 0 1px 0 #fff; | ||
} | ||
.sidebar .button:hover,.sidebar .button-group a:hover{ | ||
background: #f4f4f4; | ||
border-color: #c7c7c7; | ||
text-shadow: 0 1px 0 #fdfdfd; | ||
} | ||
#dark .sidebar .button,#dark .sidebar .button-group a,#dark .sidebar #social-share,#dark .sidebar #favorites-box{ | ||
font-weight:normal; | ||
border-color:#333; | ||
background: #272727; | ||
color: #fff; | ||
text-shadow: 0 1px 0 #000; | ||
} | ||
#dark .sidebar .button:hover,#dark .sidebar .button-group a:hover{ | ||
background: #171717; | ||
border-color: #222; | ||
text-shadow: 0 1px 0 #111; | ||
color:#fff; | ||
} | ||
|
||
@media (min-width: 900px) { | ||
.content{border-right:1px solid #ddd;} | ||
#dark .content{border-color:#111;} | ||
.content.full{border:0;} | ||
} |
Oops, something went wrong.