Skip to content

Commit

Permalink
truncate titles for theme layout
Browse files Browse the repository at this point in the history
  • Loading branch information
sbillard committed Nov 3, 2014
1 parent 05f296a commit d9174b9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
2 changes: 1 addition & 1 deletion themes/effervescence+/album.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
}
printParentBreadcrumb();
?></span>
<?php printAlbumTitle(); ?>
<?php printBareAlbumTitle(25); ?>
</div>
</div> <!-- wrapnav -->

Expand Down
2 changes: 1 addition & 1 deletion themes/effervescence+/gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<?php printCustomAlbumThumbImage($annotate, null, ALBUM_THMB_WIDTH, null, ALBUM_THMB_WIDTH, ALBUM_THUMB_HEIGHT); ?>
</a>
</div>
<h4><a href="<?php echo html_encode(getAlbumURL()); ?>" title="<?php echo $annotate; ?>"><?php printAlbumTitle(); ?></a></h4>
<h4><a href="<?php echo html_encode(getAlbumURL()); ?>" title="<?php echo $annotate; ?>"><?php printBareAlbumTitle(25); ?></a></h4>
</li>
<?php } ?>
</ul>
Expand Down
6 changes: 3 additions & 3 deletions themes/garland/gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<!DOCTYPE html>
<html>
<head>

<?php zp_apply_filter('theme_head'); ?>

<link rel="stylesheet" href="<?php echo $_zp_themeroot ?>/zen.css" type="text/css" />
<?php if (class_exists('RSS')) printRSSHeaderLink('Gallery', gettext('Gallery RSS')); ?>
</head>
Expand Down Expand Up @@ -48,7 +48,7 @@
<div class="albumdesc">
<h3>
<a href="<?php echo getAlbumURL(); ?>" title="<?php printf(gettext('View album: %s'), getBareAlbumTitle()); ?>">
<?php printAlbumTitle(); ?>
<?php printBareAlbumTitle(25); ?>
</a>
</h3>
<br />
Expand Down
14 changes: 6 additions & 8 deletions themes/garland/sidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,12 @@
?>
<div class="menu">
<?php
if (extensionEnabled('zenpage')) {
if ($_zp_gallery_page == 'index.php' || $_zp_gallery_page != 'gallery.php') {
?>
<h3>
<a href="<?php echo html_encode(getCustomPageURL('gallery')); ?>" title="<?php echo gettext('Album index'); ?>"><?php echo gettext("Gallery"); ?></a>
</h3>
<?php
}
if (extensionEnabled('zenpage') && $_zp_gallery_page != 'gallery.php') {
?>
<h3>
<a href="<?php echo html_encode(getCustomPageURL('gallery')); ?>" title="<?php echo gettext('Album index'); ?>"><?php echo gettext("Gallery"); ?></a>
</h3>
<?php
} else {
?>
<h3><?php echo gettext("Gallery"); ?></h3>
Expand Down

0 comments on commit d9174b9

Please sign in to comment.