HomeHelpTrac

Changeset 15853 for trunk


Ignore:
Timestamp:
01/08/12 21:36:07 (5 months ago)
Author:
Alexander Trofimov
Message:

Menu - old code removed

Location:
trunk
Files:
1 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/developers-manual.txt

    r14657 r15853  
    3232    * Member Menu – customizable member menu. It is possible to add new items to member’s menu with custom submenus and notifications, see BxDolMemberMenu class for more information.  
    3333 
    34     * Top Menu – main site menu can be customizable via sys_menu_top table.  
    35  
    3634    * Admin menu – admin menu can be customizable via sys_menu_admin table. It is better to add own links to Modules menu item only.  
    3735 
     
    3937 
    4038    * Admin Dashboard – customizable admin dashboard page via sys_admin_dashboard table, see BxDolAdminDashboard class.  
    41  
    42     * Bottom Menu – bottom menu can be customizable via sys_menu_bottom table.  
    4339 
    4440    * Email templates – every module can have email templates which can be managed via admin panel, see BxDolEmailTemplates.  
  • trunk/inc/classes/BxDolMenu.php

    r15795 r15853  
    103103 
    104104    protected function _isVisible ($a) { 
    105         // TODO: 
    106         return true; 
     105        $oACL = BxTemplAcl::getInstance(); 
     106        $iProfileId = 0; // TODO: get current profile id 
     107        $aACL = $oACL->getMemberMembershipInfo($iProfileId); 
     108        return $a['hidden_for_levels'] & pow(2, $aACL['id'] - 1); 
    107109    } 
    108110 
  • trunk/install/sql/v70.sql

    r15834 r15853  
    66 
    77SET NAMES 'utf8'; 
    8 DROP TABLE IF EXISTS `sys_account_custom_stat_elements`, `sys_admin_ban_list`, `sys_admin_dashboard`, `sys_menu_admin`, `sys_menu_admin_top`, `sys_menu_bottom`, `sys_albums`, `sys_albums_objects`,`sys_banners`, `sys_banners_clicks`, `sys_banners_shows`, `sys_block_list`, `sys_categories`, `sys_objects_categories`, `sys_objects_cmts`, `sys_cmts_profile`, `sys_cmts_track`, `sys_color_base`, `sys_countries`, `sys_email_templates`, `sys_menu_member`, `sys_friend_list`, `sys_options`, `sys_options_cats`, `sys_fave_list`, `sys_ip_list`, `sys_ip_members_visits`, `sys_localization_categories`, `sys_localization_keys`, `sys_localization_languages`, `sys_localization_string_params`, `sys_localization_strings`, `sys_acl_actions`, `sys_acl_actions_track`, `sys_acl_matrix`, `sys_acl_level_prices`, `sys_acl_levels`, `sys_messages`, `sys_page_compose`, `sys_page_compose_pages`, `sys_page_compose_privacy`, `sys_sessions`, `sys_stat_member`, `sys_pre_values`, `sys_profile_fields`, `sys_acl_levels_members`, `sys_profile_views_track`, `sys_profiles_match`, `sys_profile_rating`, `sys_profile_voting_track`, `RayBoardCurrentUsers`, `RayBoardBoards`, `RayBoardUsers`, `RayChatCurrentUsers`, `RayChatMessages`, `RayChatProfiles`, `RayChatRooms`, `RayChatRoomsUsers`, `RayChatMembershipsSettings`, `RayChatMemberships`, `RayImContacts`, `RayImMessages`, `RayImPendings`, `RayImProfiles`, `RayMp3Files`, `RayMp3Tokens`, `RayShoutboxMessages`, `RayVideoFiles`, `RayVideoTokens`, `RayVideo_commentsFiles`, `RayVideo_commentsTokens`, `sys_objects_search`, `sys_shared_sites`, `sys_stat_site`, `sys_alerts`, `sys_alerts_handlers`, `sys_injections`, `sys_injections_admin`, `sys_modules`, `sys_modules_file_tracks`, `sys_permalinks`, `sys_privacy_actions`, `sys_privacy_defaults`, `sys_privacy_groups`, `sys_privacy_members`, `sys_tags`, `sys_objects_tag`, `sys_menu_top`, `sys_transactions`, `sys_objects_actions`, `sys_objects_auths`, `sys_greetings`, `sys_objects_vote`, `sys_objects_views`, `sys_box_download`, `sys_cron_jobs`, `sys_sbs_users`, `sys_sbs_entries`, `sys_sbs_types`, `sys_sbs_queue`, `sys_sbs_messages`, `sys_profiles_match_mails`, `sys_dnsbl_rules`, `sys_dnsbl_block_log`, `sys_dnsbluri_zones`, `sys_menu_mobile`, `sys_menu_mobile_pages`, `sys_objects_storage`, `sys_storage_user_quotas`, `sys_storage_tokens`, `sys_storage_ghosts`, `sys_storage_mime_types`, `sys_objects_transcoder_images`, `sys_transcoder_images_files`, `sys_transcoder_images_filters`,`sys_accounts`,`sys_profiles`; 
     8DROP TABLE IF EXISTS `sys_account_custom_stat_elements`, `sys_admin_ban_list`, `sys_admin_dashboard`, `sys_albums`, `sys_albums_objects`,`sys_banners`, `sys_banners_clicks`, `sys_banners_shows`, `sys_block_list`, `sys_categories`, `sys_objects_categories`, `sys_objects_cmts`, `sys_cmts_profile`, `sys_cmts_track`, `sys_color_base`, `sys_countries`, `sys_email_templates`, `sys_menu_member`, `sys_friend_list`, `sys_options`, `sys_options_cats`, `sys_fave_list`, `sys_ip_list`, `sys_ip_members_visits`, `sys_localization_categories`, `sys_localization_keys`, `sys_localization_languages`, `sys_localization_string_params`, `sys_localization_strings`, `sys_acl_actions`, `sys_acl_actions_track`, `sys_acl_matrix`, `sys_acl_level_prices`, `sys_acl_levels`, `sys_messages`, `sys_page_compose`, `sys_page_compose_pages`, `sys_page_compose_privacy`, `sys_sessions`, `sys_stat_member`, `sys_pre_values`, `sys_profile_fields`, `sys_acl_levels_members`, `sys_profile_views_track`, `sys_profiles_match`, `sys_profile_rating`, `sys_profile_voting_track`, `RayBoardCurrentUsers`, `RayBoardBoards`, `RayBoardUsers`, `RayChatCurrentUsers`, `RayChatMessages`, `RayChatProfiles`, `RayChatRooms`, `RayChatRoomsUsers`, `RayChatMembershipsSettings`, `RayChatMemberships`, `RayImContacts`, `RayImMessages`, `RayImPendings`, `RayImProfiles`, `RayMp3Files`, `RayMp3Tokens`, `RayShoutboxMessages`, `RayVideoFiles`, `RayVideoTokens`, `RayVideo_commentsFiles`, `RayVideo_commentsTokens`, `sys_objects_search`, `sys_shared_sites`, `sys_stat_site`, `sys_alerts`, `sys_alerts_handlers`, `sys_injections`, `sys_injections_admin`, `sys_modules`, `sys_modules_file_tracks`, `sys_permalinks`, `sys_privacy_actions`, `sys_privacy_defaults`, `sys_privacy_groups`, `sys_privacy_members`, `sys_tags`, `sys_objects_tag`, `sys_transactions`, `sys_objects_actions`, `sys_objects_auths`, `sys_greetings`, `sys_objects_vote`, `sys_objects_views`, `sys_box_download`, `sys_cron_jobs`, `sys_sbs_users`, `sys_sbs_entries`, `sys_sbs_types`, `sys_sbs_queue`, `sys_sbs_messages`, `sys_profiles_match_mails`, `sys_dnsbl_rules`, `sys_dnsbl_block_log`, `sys_dnsbluri_zones`, `sys_menu_mobile`, `sys_menu_mobile_pages`, `sys_objects_storage`, `sys_storage_user_quotas`, `sys_storage_tokens`, `sys_storage_ghosts`, `sys_storage_mime_types`, `sys_objects_transcoder_images`, `sys_transcoder_images_files`, `sys_transcoder_images_filters`,`sys_accounts`,`sys_profiles`; 
    99ALTER DATABASE DEFAULT CHARACTER SET 'utf8' COLLATE 'utf8_unicode_ci'; 
    1010 
     
    3939-- Dumping data for table `sys_admin_ban_list` 
    4040-- 
    41  
    42 -- -------------------------------------------------------- 
    43  
    44 -- 
    45 -- Table structure for table `sys_menu_admin_top` 
    46 -- 
    47  
    48 CREATE TABLE `sys_menu_admin_top` ( 
    49   `id` int(11) unsigned NOT NULL auto_increment, 
    50   `name` varchar(32) NOT NULL default '', 
    51   `caption` varchar(64) NOT NULL default '', 
    52   `url` varchar(255) NOT NULL default '',     
    53   `icon` varchar(128) NOT NULL default '', 
    54   `order` float NOT NULL default '0', 
    55   PRIMARY KEY  (`id`) 
    56 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8; 
    57  
    58 -- 
    59 -- Dumping data for table `sys_menu_admin_top` 
    60 -- 
    61  
    62 INSERT INTO `sys_menu_admin_top`(`name`, `caption`, `url`, `icon`, `order`) VALUES 
    63 ('dashboard', '_adm_tmi_dashboard', '{admin_url}index.php', 'tm_dashboard.png', 0), 
    64 ('menu_builder', '_adm_tmi_menu_builder', '{admin_url}menu_compose_admin.php', 'tm_menu_builder.png', 1), 
    65 ('home', '_adm_tmi_home', '{site_url}index.php', 'tm_home.png', 2), 
    66 ('boonex_news', '_adm_tmi_boonex_news', 'http://www.boonex.com/unity/blog/posts/Andrew Boon', 'tm_boonex_news.png', 3), 
    67 ('extensions', '_adm_tmi_extensions', 'http://www.boonex.com/unity/extensions/home/', 'tm_extensions.png', 4), 
    68 ('docs', '_adm_tmi_docs', 'http://www.boonex.com/trac/dolphin/wiki/Dolphin7Docs', 'tm_docs.png', 5), 
    69 ('logout', '_adm_tmi_logout', '{site_url}logout.php', 'tm_logout.png', 6); 
    70  
    71 -- -------------------------------------------------------- 
    72  
    73 -- 
    74 -- Table structure for table `sys_menu_bottom` 
    75 -- 
    76  
    77 CREATE TABLE `sys_menu_bottom` ( 
    78   `ID` int(10) unsigned NOT NULL auto_increment, 
    79   `Caption` varchar(100) NOT NULL, 
    80   `Name` varchar(200) NOT NULL, 
    81   `Icon` varchar(100) NOT NULL, 
    82   `Link` varchar(250) NOT NULL, 
    83   `Script` varchar(250) NOT NULL, 
    84   `Order` int(5) NOT NULL, 
    85   `Target` varchar(200) NOT NULL, 
    86   PRIMARY KEY  (`ID`) 
    87 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8; 
    88  
    89 -- 
    90 -- Dumping data for table `sys_menu_bottom` 
    91 -- 
    92  
    93 INSERT INTO `sys_menu_bottom` VALUES(7, '_About Us', 'About Us', '', 'about_us.php', '', 3, ''); 
    94 INSERT INTO `sys_menu_bottom` VALUES(8, '_Privacy', 'Privacy', '', 'privacy.php', '', 4, ''); 
    95 INSERT INTO `sys_menu_bottom` VALUES(9, '_Terms_of_use', 'Terms of use', '', 'terms_of_use.php', '', 5, ''); 
    96 INSERT INTO `sys_menu_bottom` VALUES(10, '_FAQ', 'FAQ', '', 'faq.php', '', 6, ''); 
    97 INSERT INTO `sys_menu_bottom` VALUES(15, '_Invite a friend', 'Invite a friend', '', 'tellfriend.php', 'return launchTellFriend();', 8, ''); 
    98 INSERT INTO `sys_menu_bottom` VALUES(16, '_contact_us', 'Contact us', '', 'contact.php', '', 9, ''); 
    99 INSERT INTO `sys_menu_bottom` VALUES(17, '_Bookmark', 'Bookmark', '', '', 'addBookmark(); return false;', 10, ''); 
    100  
    101 -- -------------------------------------------------------- 
    102  
    10341 
    10442-- -------------------------------------------------------- 
     
    28892827) ENGINE=MyISAM  DEFAULT CHARSET=utf8; 
    28902828 
    2891  
    2892 -- -------------------------------------------------------- 
    2893  
    2894 -- 
    2895 -- Table structure for table `sys_menu_top` 
    2896 -- 
    2897  
    2898 CREATE TABLE `sys_menu_top` ( 
    2899   `ID` smallint(6) unsigned NOT NULL auto_increment, 
    2900   `Parent` smallint(6) unsigned NOT NULL default '0', 
    2901   `Name` varchar(50) NOT NULL default '', 
    2902   `Caption` varchar(50) NOT NULL default '', 
    2903   `Link` varchar(255) NOT NULL default '', 
    2904   `Order` smallint(6) unsigned NOT NULL default '0', 
    2905   `Visible` set('non','memb') NOT NULL default '', 
    2906   `Target` varchar(20) NOT NULL default '', 
    2907   `Onclick` mediumtext NOT NULL, 
    2908   `Check` varchar(255) NOT NULL default '', 
    2909   `Movable` tinyint(4) NOT NULL default '3', 
    2910   `Clonable` tinyint(1) NOT NULL default '1', 
    2911   `Editable` tinyint(1) NOT NULL default '1', 
    2912   `Deletable` tinyint(1) NOT NULL default '1', 
    2913   `Active` tinyint(1) NOT NULL default '1', 
    2914   `Type` enum('system','top','custom') NOT NULL default 'top', 
    2915   `Picture` varchar(128) NOT NULL, 
    2916   `Icon` varchar(128) NOT NULL, 
    2917   `BQuickLink` tinyint(1) NOT NULL default '0', 
    2918   `Statistics` varchar(10) NOT NULL, 
    2919   PRIMARY KEY  (`ID`) 
    2920 ) ENGINE=MyISAM  DEFAULT CHARSET=utf8; 
    2921  
    2922  
    2923 -- 
    2924 -- Dumping data for table `sys_menu_top` 
    2925 -- 
    2926  
    2927 INSERT INTO `sys_menu_top` (`ID`, `Parent`, `Name`, `Caption`, `Link`, `Order`, `Visible`, `Target`, `Onclick`, `Check`, `Movable`, `Clonable`, `Editable`, `Deletable`, `Active`, `Type`, `Picture`, `Icon`, `BQuickLink`, `Statistics`) VALUES  
    2928 (4, 0, 'My Profile', '{memberNick}', '{memberLink}|{memberNick}|change_status.php', 3, 'memb', '', '', '', 1, 0, 0, 0, 1, 'top', 'bx_profile.png', 'user.png', 0, ''), 
    2929 (5, 0, 'Home', '_Home', 'index.php', 0, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'top', 'bx_home.png', 'bx_home.png', 0, ''), 
    2930 (6, 0, 'People', '_People', 'browse.php|search.php|calendar.php|tags.php?tags_mode=profile|search.php?show=match', 5, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'top', 'bx_people.png', '', 0, ''), 
    2931 (7, 6, 'All members', '_All Members', 'browse.php', 0, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', 'bx_people.png', '', 0, ''), 
    2932 (8, 6, 'Search Members', '_Search', 'search.php', 9, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2933 (9, 0, 'Profile View', '{profileNick}', '{profileNick}|pedit.php?ID={profileID}', 0, 'non,memb', '', '', '', 3, 1, 1, 0, 1, 'system', '', '', 0, ''), 
    2934 (11, 4, 'View My Profile', '_Profile', '{memberLink}|{memberNick}|profile.php?ID={memberID}', 0, 'memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2935 (12, 179, 'Compose', '_Compose', 'mail.php?mode=compose', 0, 'memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 1, ''), 
    2936 (14, 179, 'Mail Outbox', '_Outbox', 'mail.php?mode=outbox', 1, 'memb', '', '', '', 3, 1, 1, 1, 1, 'custom', 'bx_mymail.png', '', 1, ''), 
    2937 (17, 179, 'Mail Inbox', '_Inbox', 'mail.php?mode=inbox', 2, 'memb', '', '', '', 3, 1, 1, 1, 1, 'custom', 'bx_mymail.png', '', 1, 'mma'), 
    2938 (18, 179, 'Mail Trash', '_Trash', 'mail.php?mode=trash', 3, 'memb', '', '', '', 3, 1, 1, 1, 1, 'custom', 'bx_mymail.png', '', 1, ''), 
    2939 (20, 0, 'Edit My Profile', '_Customize', 'pedit.php?ID={memberID}', 0, 'memb', '', '', '', 3, 1, 1, 1, 0, 'custom', 'bx_n_pedit.png', '', 1, ''), 
    2940 (25, 6, 'Online Members', '_Online', 'search.php?online_only=1', 2, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', 'bx_people.png', '', 0, ''), 
    2941 (60, 9, 'View Profile', '_Profile', '{profileLink}|{profileNick}|profile.php?ID={profileID}', 0, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2942 (80, 4, 'My Friends', '_Friends', 'viewFriends.php?iUser={memberID}', 2, 'memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, 'mfa'), 
    2943 (82, 9, 'Info', '_profile_info', 'profile_info.php?ID={profileID}', 1, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2944 (83, 9, 'Member Friends', '_Friends', 'viewFriends.php?iUser={profileID}', 2, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2945 (90, 0, 'Tags', '_Tags', 'tags.php', 7, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'top', 'bx_n_tags.png', '', 0, ''), 
    2946 (91, 0, 'Categories', '_Categories', 'categories.php', 8, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'top', 'bx_n_categories.png', '', 0, ''), 
    2947 (98, 0, 'Join', '_Account', 'join.php', 1, 'non', '', '', '', 3, 1, 1, 1, 1, 'top', 'bx_n_join.png', '', 0, ''), 
    2948 (99, 0, 'Login', '_Login', 'member.php', 0, 'non', '', '', '', 3, 1, 0, 1, 0, 'custom', 'bx_people.png', '', 0, ''), 
    2949 (100, 0, 'Main', '_Main', 'index.php|', 0, 'non,memb', '', '', '', 3, 1, 1, 1, 0, 'custom', '', '', 0, ''), 
    2950 (101, 118, 'Account home', '_Account Home', 'member.php', 0, 'memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2951 (129, 6, 'Top Rated', '_Top Rated', 'search.php?show=top_rated', 4, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2952 (127, 6, 'Match', '_Match', 'search.php?show=match', 1, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', 'bx_people.png', '', 0, ''), 
    2953 (128, 6, 'Featured', '_Featured', 'search.php?show=featured', 3, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2954 (107, 118, 'Privacy Settings', '_ps_tmenu_privacy_settings', 'member_privacy.php', 5, 'memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2955 (109, 118, 'Unregister', '_Unregister', 'unregister.php', 8, 'memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2956 (110, 118, 'Log out', '_Log Out', 'logout.php', 9, 'memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2957 (111, 4, 'Profile Info', '_Info', 'profile_info.php', 1, 'memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2958 (118, 0, 'Dashboard', '_Dashboard', 'member.php', 2, 'memb', '', '', '', 1, 0, 1, 0, 1, 'top', 'dashboard.png', 'memeber_menu_dashboard.png', 0, ''), 
    2959 (120, 0, 'About', '_About', 'about_us.php', 13, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'top', 'bx_n_about_us.png', '', 0, ''), 
    2960 (122, 120, 'Terms of Use', '_TERMS_OF_USE_H', 'terms_of_use.php', 2, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2961 (123, 120, 'Privacy Policy', '_PRIVACY_H', 'privacy.php', 3, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2962 (126, 118, 'Activity', '_Activity', 'communicator.php', 3, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2963 (130, 6, 'Popular', '_Popular', 'search.php?show=popular', 5, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2964 (131, 6, 'Birthdays', '_Birthdays', 'search.php?show=birthdays', 6, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', 'bx_people.png', '', 0, ''), 
    2965 (132, 6, 'People Calendar', '_People_Calendar', 'calendar.php', 8, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2966 (138, 0, 'Search', '_Search', 'search_home.php', 9, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'top', 'bx_n_search_comm.png', '', 0, ''), 
    2967 (139, 138, 'Keyword Search', '_Keyword_Search', 'searchKeyword.php', 1, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', 'bx_n_search_comm.png', '', 0, ''), 
    2968 (141, 138, 'People Search', '_People_Search', 'search.php', 3, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', 'bx_n_search_comm.png', '', 0, ''), 
    2969 (159, 0, 'Help', '_help', 'help.php', 12, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'top', 'bx_n_help.png', '', 0, ''), 
    2970 (160, 159, 'FAQ', '_FAQ', 'faq.php', 1, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2971 (161, 159, 'Contact', '_Contact', 'contact.php', 2, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2972 (162, 159, 'Advice', '_Advice', 'advice.php', 3, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2973 (163, 159, 'Help', '_help', 'help.php', 0, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2974 (175, 120, 'About', '_About', 'about_us.php', 0, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2975 (176, 138, 'Search Home', '_Search_Home', 'search_home.php', 0, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', 'bx_n_search_comm.png', '', 0, ''), 
    2976 (179, 0, 'Mail', '_Mail', 'mail.php?mode=inbox', 4, 'memb', '', '', '', 3, 1, 1, 1, 1, 'top', 'bx_mymail.png', 'mails.png', 0, ''), 
    2977 (181, 90, 'Tags Home', '_tags_home', 'tags.php', 0, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2978 (182, 90, 'All Tags', '_all_tags', 'tags.php?action=all', 1, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2979 (183, 90, 'Popular Tags', '_popular_tags', 'tags.php?action=popular', 2, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2980 (184, 90, 'Calendar', '_tags_calendar', 'tags.php?action=calendar', 3, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2981 (185, 90, 'Search', '_tags_search', 'tags.php?action=search', 4, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2982 (186, 91, 'All Categories', '_categ_all', 'categories.php', 0, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2983 (187, 91, 'Common Categories', '_categ_common', 'categories.php?action=common', 1, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2984 (188, 91, 'Users Categories', '_categ_users', 'categories.php?action=users', 2, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2985 (189, 91, 'Calendar', '_categ_calendar', 'categories.php?action=calendar', 3, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2986 (190, 91, 'Search', '_categ_search', 'categories.php?action=search', 4, 'non,memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''), 
    2987 (191, 118, 'Subscriptions', '_sbs_tmenu_my_subscriptions', 'member_subscriptions.php', 7, 'memb', '', '', '', 3, 1, 1, 1, 1, 'custom', '', '', 0, ''); 
    2988  
    2989 -- -------------------------------------- 
     2829-- -------------------------------------------------------- 
    29902830 
    29912831-- 
  • trunk/templates/base/scripts/BxBaseFunctions.php

    r15840 r15853  
    530530    } 
    531531 
    532     /** 
    533      * Function will generate site's bottom menu; 
    534      * 
    535      * @return : Html presentation data; 
    536      */ 
    537     function genSiteBottomMenu() { 
    538         if (isset($GLOBALS['bx_profiler'])) $GLOBALS['bx_profiler']->beginMenu('Bottom Menu'); 
    539  
    540         bx_import('BxDolPermalinks'); 
    541  
    542         $sOutputHtml    = null; 
    543         $aLinks         = array(); 
    544         $oPermalinks    = BxDolPermalinks::getInstance(); 
    545  
    546  
    547         // read data from cache file 
    548         $oCache = BxDolDb::getInstance()->getDbCacheObject(); 
    549         $aLinks = $oCache->getData(BxDolDb::getInstance()->genDbCacheKey('sys_menu_bottom')); 
    550         if (null === $aLinks) { 
    551  
    552             $sQuery  = "SELECT * FROM `sys_menu_bottom` ORDER BY `Order`"; 
    553             $rResult = db_res($sQuery); 
    554             while($aItems = mysql_fetch_assoc($rResult)) { 
    555                 $aLinks[] = array( 
    556                     'menu_caption'         => ($aItems['Caption']), 
    557                     'menu_link'             => ( $aItems['Script'] ) ? 'javascript:void(0)' : $oPermalinks -> permalink($aItems['Link']), 
    558                     'extended_action'     => ( $aItems['Script'] ) ? 'onclick="' . $aItems['Script'] . '"' : null, 
    559                     'target'             => ( $aItems['Target'] ) ? 'target="_blank"' : null, 
    560                 ); 
    561             } 
    562  
    563             $oCache->setData (BxDolDb::getInstance()->genDbCacheKey('sys_menu_bottom'), $aLinks); 
    564         } 
    565  
    566         foreach ($aLinks as $iID => $aItem) { 
    567             $aLinks[$iID]['menu_caption'] = _t($aItem['menu_caption']); 
    568         } 
    569         $aTemplateKeys = array( 
    570             'bx_repeat:items' => $aLinks, 
    571         ); 
    572  
    573         $sOutputHtml = $this->_oTemplate->parseHtmlByName( 'menu_bottom.html', $aTemplateKeys ); 
    574  
    575         if (isset($GLOBALS['bx_profiler'])) $GLOBALS['bx_profiler']->endMenu('Bottom Menu'); 
    576  
    577         return $sOutputHtml; 
    578     } 
    579  
    580532    function genNotifyMessage($sMessage, $sDirection = 'left', $isButton = false, $sScript = '') { 
    581533        $sDirStyle = ($sDirection == 'left') ? '' : 'notify_message_none'; 
Note: See TracChangeset for help on using the changeset viewer.