Exemple #1
0
 case 'breadcrumb':
     // Added breadcrumb as a separate listable block from config
     if (($breadcrumb != '' || count($cat_data) > 0) && $cat != 0) {
         theme_display_breadcrumb($breadcrumb, $cat_data);
     }
     break;
 case 'catlist':
     if ($breadcrumb != '' || count($cat_data) > 0) {
         theme_display_cat_list($breadcrumb, $cat_data, $statistics);
     }
     if (isset($cat) && $cat == USER_GAL_CAT) {
         list_users();
     }
     break;
 case 'alblist':
     list_albums();
     break;
 case 'anycontent':
     if ($cat == 0) {
         ob_start();
         /**
          * Any php code or HTML can be put in this file and will be displayed
          */
         include 'anycontent.php';
         $anycontent = CPGPluginAPI::filter('anycontent', ob_get_contents());
         ob_end_clean();
         echo $anycontent;
     }
     break;
 default:
     // all meta albums caught here
function main_page()
{
    list_albums();
    form_head('Add Album');
    javascript_focus('album', 'Atitle');
    hidden('a', 'add_album');
    button('add_album', ' Add Album ');
    page('main');
}