'menulabel', 'title' => gettext('News Articles'), 'link' => '', 'show' => 1, 'nesting' => 0),
array('type' => 'menufunction', 'title' => gettext('All news'), 'link' => 'printAllNewsCategories("All news",TRUE,"","menu-active",false);', 'show' => 1, 'include_li' => 0, 'nesting' => 1),
array('type' => 'menulabel', 'title' => gettext('Gallery'), 'link' => '', 'show' => 1, 'nesting' => 0),
array('type' => 'custompage', 'title' => gettext('Gallery index'), 'link' => 'gallery', 'show' => 1, 'nesting' => 1),
array('type' => 'menufunction', 'title' => gettext('All Albums'), 'link' => 'printAlbumMenuList("list",NULL,"","menu-active","submenu","menu-active","",false,false,false,false);', 'show' => 1, 'include_li' => 0, 'nesting' => 1),
array('type' => 'menulabel', 'title' => gettext('Pages'), 'link' => '', 'show' => 1, 'nesting' => 0),
array('type' => 'menufunction', 'title' => gettext('All pages'), 'link' => 'printPageMenu("list","","menu-active","submenu","menu-active","",0,false);', 'show' => 1, 'include_li' => 0, 'nesting' => 1),
);
createMenuIfNotExists($menuitems, 'zenpage');
}
}
function getOptionsSupported() {
return array( gettext('Allow comments') => array('key' => 'Allow_comments', 'type' => 1, 'desc' => gettext('Check to enable comment section.')),
/*gettext('News on index page') => array('key' => 'zenpage_zp_index_news', 'type' => OPTION_TYPE_CHECKBOX, 'desc' => gettext("Enable this if you want to show the news section's first page on the index.php page.")),
gettext('Allow search') => array('key' => 'Allow_search', 'type' => 1, 'desc' => gettext('Check to enable search form.')),
gettext('Display number') => array('key' => 'Display_number', 'type' => 1, 'desc' => gettext('Display the pictures numbers from an album')),
gettext('Display album') => array('key' => 'Display', 'type' => 5, 'selections' => array(gettext('Normal') => 'Normal', gettext('Simpleviewer') => 'Simpleviewer', gettext('Shadowbox') => 'Shadowbox'),
'desc' => gettext('Select display of images')),
gettext('sweetTitles') => array('key' => 'sweetTitles', 'type' => 1, 'desc' => gettext('Nice title')),*/
gettext('Language') => array('key' => 'Language', 'type' => 1, 'desc' => gettext('Display the language selector.')),
gettext('Rating') => array('key' => 'Rating', 'type' => 1, 'desc' => gettext('Display rating option')),
gettext('GoogleMap') => array('key' => 'GoogleMap', 'type' => 1, 'desc' => gettext('Display GoogleMap option')),
gettext('Paypal') => array('key' => 'Paypal', 'type' => 1, 'desc' => gettext('Display Paypal option'))
);
}
function handleOption($option, $currentValue) {
/*
if ($option == "zenpage_homepage") {
$unpublishedpages = query_full_array("SELECT titlelink FROM " . prefix('pages') . " WHERE `show` != 1 ORDER by `sort_order`");
if (empty($unpublishedpages)) {
echo gettext("No unpublished pages available");
// clear option if no unpublished pages are available or have been published meanwhile
// so that the normal gallery index appears and no page is accidentally set if set to unpublished again.
setThemeOption('zenpage_homepage', 'none', NULL, 'zpEnlighten');
} else {
echo '' . "\n";
echo '\n";
}
}*/
}
}
?>