コード例 #1
0
/**
 * Prints a list of all albums context sensitive.
 * Since 1.4.3 this is a wrapper function for the separate functions printAlbumMenuList() and printAlbumMenuJump().
 * that was included to remain compatiblility with older installs of this menu.
 *
 * Usage: add the following to the php page where you wish to use these menus:
 * enable this extension on the zenphoto admin plugins tab.
 * Call the function printAlbumMenu() at the point where you want the menu to appear.
 *
 * @param string $option
 * 									"list" for html list,
 * 									"list-top" for only the top level albums,
 * 									"omit-top" same as list, but the first level of albums is omitted
 * 									"list-sub" lists the offspring level of subalbums for the current album
 * 									"jump" dropdown menu of all albums(not context sensitive)
 *
 * @param bool $showcount true for a image counter or subalbum count in brackets behind the album name, false for no image numbers or leave blank
 * @param string $css_id insert css id for the main album list, leave empty if you don't use (only list mode)
 * @param string $css_class_topactive insert css class for the active link in the main album list (only list mode)
 * @param string $css_class insert css class for the sub album lists (only list mode)
 * @param string $css_class_active insert css class for the active link in the sub album lists (only list mode)
 * @param string $indexname insert the name how you want to call the link to the gallery index (insert "" if you don't use it, it is not printed then)
 * @param int C Set to depth of sublevels that should be shown always. 0 by default. To show all, set to a true! Only valid if option=="list".
 * @param int $showsubs Set to depth of sublevels that should be shown always. 0 by default. To show all, set to a true! Only valid if option=="list".
 * @param bool $firstimagelink If set to TRUE and if the album has images the link will point to page of the first image instead the album thumbnail page
 * @param bool $keeptopactive If set to TRUE the toplevel album entry will stay marked as active if within its subalbums ("list" only)
 * @param int $limit truncation of display text
 * @since 1.2
 */
function printAlbumMenu($option, $showcount = NULL, $css_id = '', $css_class_topactive = '', $css_class = '', $css_class_active = '', $indexname = "Gallery Index", $showsubs = NULL, $firstimagelink = false, $keeptopactive = false)
{
    if ($option == "jump") {
        printAlbumMenuJump($showcount, $indexname, $firstimagelink, $showsubs);
    } else {
        printAlbumMenuList($option, $showcount, $css_id, $css_class_topactive, $css_class, $css_class_active, $indexname, $showsubs, $firstimagelink, $keeptopactive);
    }
}
コード例 #2
0
ファイル: navbar.php プロジェクト: bgenere/negpos
          </ul>
        </li>
        <li class="dropdown">
            <a class="dropdown-toggle" data-toggle="dropdown"
               href="<?php 
echo html_encode(getCustomPageURL('gallery'));
?>
" >
               <?php 
echo gettext("Gallery");
?>
               <span class="caret"></span>
            </a>
            <ul class="dropdown-menu">
            <?php 
printAlbumMenuList("list", FALSE, "", "", "", "", "", 0, FALSE, FALSE, FALSE);
?>
          </ul>
        </li>
       <li class="dropdown">
          <a class="dropdown-toggle" data-toggle="dropdown" href="#">
            Informations
           <span class="caret"></span>
          </a>
          <ul class="dropdown-menu">
               <?php 
printPageMenu("list", "", "", "", "", "", 0, FALSE);
?>
           </ul>
        </li>
      </ul>
コード例 #3
0
ファイル: inc-header.php プロジェクト: kokyandrei/Unsupported
        ?>
				<li><a class="placeholder"><?php 
        echo gettext('Gallery');
        ?>
</a>
				<?php 
    } else {
        ?>
				<li><?php 
        printCustomPageURL(gettext('Gallery'), "gallery");
        ?>
				<?php 
    }
    ?>
					<?php 
    printAlbumMenuList('list', false, '', 'active', '', 'active', '', null, false, true, true, null);
    ?>
				</li>
				<?php 
}
?>
				<?php 
if (function_exists("printNestedMenu")) {
    ?>
				<li><a class="placeholder"><?php 
    echo gettext('Pages');
    ?>
</a>
					<?php 
    printNestedMenu('list', 'pages', false, null, 'active', null, 'active', null, true, true, 30);
    ?>
コード例 #4
0
ファイル: inc-header.php プロジェクト: ckfreeman/libratus
    ?>
			<li <?php 
    if ($_zp_gallery_page == "contact.php") {
        ?>
class="active" <?php 
    }
    ?>
>
				<?php 
    printCustomPageURL(gettext('Contact'), "contact");
    ?>
			</li>
			<?php 
}
?>
			<li><span class="gallery-menu-divider"><?php 
echo gettext('Gallery');
?>
</span>
				<?php 
printAlbumMenuList('list', false, '', 'active', 'sub', 'active', '', true);
?>
			</li>
		</ul>
	</nav>

	<!-- Site Overlay -->
	<div class="site-overlay"></div>

	<!-- Content, closed in inc-footer.php-->
	<div id="container">
コード例 #5
0
/**
 * Prints a list of all albums context sensitive up to the 4th subalbum level.
 * Since 1.4.3 this is a wrapper function for the separate functions printAlbumMenuList() and printAlbumMenuJump().
 * that was included to remain compatiblility with older installs of this menu.
 *
 * Usage: add the following to the php page where you wish to use these menus:
 * enable this extension on the zenphoto admin plugins tab.
 * Call the function printAlbumMenu() at the point where you want the menu to appear.
 *
 * @param string $option "list" for html list, "list-top" for only the top level albums, "list-sub" for only the subalbums if in one of theme or their toplevel album
 * @param string $option2 "count" for a image counter in brackets behind the album name, "" = for no image numbers or leave blank
 * @param string $css_id insert css id for the main album list, leave blank if you don't use (only list mode)
 * @param string $css_class_topactive insert css class for the active link in the main album list (only list mode)
 * @param string $css_class insert css class for the sub album lists (only list mode)
 * @param string $css_class_active insert css class for the active link in the sub album lists (only list mode)
 * @param string $indexname insert the name how you want to call the link to the gallery index (insert "" if you don't use it, it is not printed then)
 * @param string $showsubs 'true' to always show the subalbums, 'false' for normal context sensitive behaviour (only list mode)
 * @return html list or drop down jump menu of the albums
 * @since 1.2
 */
function printAlbumMenu($option, $option2, $css_id = '', $css_class_topactive = '', $css_class = '', $css_class_active = '', $indexname = "Gallery Index", $showsubs = false)
{
    if ($option === "list" or $option === "list-top" or $option === "list-sub") {
        printAlbumMenuList($option, $option2, $css_id, $css_class_topactive, $css_class, $css_class_active, $indexname, $showsubs);
    } else {
        if ($option === "jump") {
            printAlbumMenuJump($option, $indexname);
        }
    }
}