@@ -151,29 +151,22 @@ static function install($update = false) {
151151 update_option ('chained_user_subject ' , __ ('Your results on {{quiz-name}} ' , 'chained ' ));
152152 }
153153
154- update_option ('chainedquiz_version ' , "0.8 " );
154+ update_option ('chainedquiz_version ' , "2.0.1 " );
155155 // exit;
156156 }
157157
158158 // main menu
159159 static function menu () {
160160 $ chained_caps = current_user_can ('manage_options ' ) ? 'manage_options ' : 'chained_manage ' ;
161161
162- add_menu_page (__ ('Triage Algorithm ' , 'chained ' ), __ ('Triage Algorithm ' , 'chained ' ), $ chained_caps , "chained_quizzes " ,
163- array ('ChainedQuizQuizzes ' , "manage " ));
164- add_submenu_page ('chained_quizzes ' , __ ('Quizzes ' , 'chained ' ), __ ('Quizzes ' , 'chained ' ), $ chained_caps ,
165- 'chained_quizzes ' , array ('ChainedQuizQuizzes ' , "manage " ));
166- add_submenu_page ('chained_quizzes ' , __ ('Settings ' , 'chained ' ), __ ('Settings ' , 'chained ' ), 'manage_options ' ,
167- 'chainedquiz_options ' , array ('ChainedQuiz ' ,'options ' ));
168- add_submenu_page ('chained_quizzes ' , __ ('Social Sharing ' , 'chained ' ), __ ('Social Sharing ' , 'chained ' ), $ chained_caps ,
169- 'chainedquiz_social_sharing ' , array ('ChainedSharing ' ,'options ' ));
162+ add_menu_page (__ ('Triage Algorithm ' , 'chained ' ), __ ('Triage Algorithm ' , 'chained ' ), $ chained_caps , "chained_quizzes " , array ('ChainedQuizQuizzes ' , "manage " ));
163+ add_submenu_page ('chained_quizzes ' , __ ('Algorithms ' , 'chained ' ), __ ('Algorithms ' , 'chained ' ), $ chained_caps , 'chained_quizzes ' , array ('ChainedQuizQuizzes ' , "manage " ));
164+ add_submenu_page ('chained_quizzes ' , __ ('Settings ' , 'chained ' ), __ ('Settings ' , 'chained ' ), 'manage_options ' , 'chainedquiz_options ' , array ('ChainedQuiz ' ,'options ' ));
165+ add_submenu_page ('chained_quizzes ' , __ ('Social Sharing ' , 'chained ' ), __ ('Social Sharing ' , 'chained ' ), $ chained_caps , 'chainedquiz_social_sharing ' , array ('ChainedSharing ' ,'options ' ));
170166
171- add_submenu_page (NULL , __ ('Chained Quiz Results ' , 'chained ' ), __ ('Chained Quiz Results ' , 'chained ' ), $ chained_caps ,
172- 'chainedquiz_results ' , array ('ChainedQuizResults ' ,'manage ' ));
173- add_submenu_page (NULL , __ ('Chained Quiz Questions ' , 'chained ' ), __ ('Chained Quiz Questions ' , 'chained ' ), $ chained_caps ,
174- 'chainedquiz_questions ' , array ('ChainedQuizQuestions ' ,'manage ' ));
175- add_submenu_page (NULL , __ ('Users Completed Quiz ' , 'chained ' ), __ ('Users Completed Quiz ' , 'chained ' ), $ chained_caps ,
176- 'chainedquiz_list ' , array ('ChainedQuizCompleted ' ,'manage ' ));
167+ add_submenu_page (NULL , __ ('Chained Quiz Results ' , 'chained ' ), __ ('Chained Quiz Results ' , 'chained ' ), $ chained_caps , 'chainedquiz_results ' , array ('ChainedQuizResults ' ,'manage ' ));
168+ add_submenu_page (NULL , __ ('Chained Quiz Questions ' , 'chained ' ), __ ('Chained Quiz Questions ' , 'chained ' ), $ chained_caps , 'chainedquiz_questions ' , array ('ChainedQuizQuestions ' ,'manage ' ));
169+ add_submenu_page (NULL , __ ('Users Completed Quiz ' , 'chained ' ), __ ('Users Completed Quiz ' , 'chained ' ), $ chained_caps , 'chainedquiz_list ' , array ('ChainedQuizCompleted ' ,'manage ' ));
177170
178171 }
179172
@@ -190,7 +183,7 @@ static function scripts() {
190183 'chained-common ' ,
191184 CHAINED_URL .'js/common.js ' ,
192185 false ,
193- '2.0.0 ' ,
186+ '2.0.1 ' ,
194187 false
195188 );
196189 wp_enqueue_script ("chained-common " );
@@ -217,7 +210,7 @@ static function init() {
217210
218211 // shortcodes
219212 add_shortcode ('triage-algorithm ' , array ("TriageShortcodes " , "algorithmShortcodeHandler " ));
220- add_shortcode ('triage-responses ' , array ("TriageShortcodes " , "responsesShortcodeHandler " ));
213+ add_shortcode ('triage-submissions ' , array ("TriageShortcodes " , "responsesShortcodeHandler " ));
221214 add_shortcode ('chained-share ' , array ("ChainedSharing " , "display " ));
222215
223216 // once daily delete empty records older than 1 day
0 commit comments