Changeset 1831571
- Timestamp:
- 03/01/2018 02:32:18 PM (8 years ago)
- Location:
- admin-in-menu/trunk
- Files:
-
- 1 added
- 6 edited
-
README.txt (modified) (1 diff)
-
admin-in-menu.php (modified) (2 diffs)
-
includes/class-admin-in-menu-loader.php (modified) (1 diff)
-
includes/class-admin-in-menu.php (modified) (3 diffs)
-
profile/form_edit.php (modified) (2 diffs)
-
public/css/edit_form.css (added)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
admin-in-menu/trunk/README.txt
r1831482 r1831571 44 44 * Изменена структура кода плагина. 45 45 46 = 1.2 = 47 * Изменена переадресация при авторизации и регистрации. 48 46 49 `<?php code(); // goes in backticks ?>` -
admin-in-menu/trunk/admin-in-menu.php
r1831433 r1831571 12 12 * 13 13 * @link https://vk.com/npa98 14 * @since 1. 1.014 * @since 1.2 15 15 * @package Admin_In_Menu 16 16 * … … 47 47 die; 48 48 } 49 50 /*function admin_in_menu_load_scripts(){ 51 wp_enqueue_style( 'edit_form', plugin_dir_path( dirname( __FILE__ ) ) . "public/css/edit_form.css"); 52 } 53 54 add_action("wp_enqueue_scripts", "admin_in_menu_load_scripts"); 55 */ 49 56 50 57 -
admin-in-menu/trunk/includes/class-admin-in-menu-loader.php
r1831433 r1831571 55 55 $this->actions = array(); 56 56 $this->filters = array(); 57 $this->shortcodes = array(); 57 58 58 59 } -
admin-in-menu/trunk/includes/class-admin-in-menu.php
r1831433 r1831571 175 175 } 176 176 177 /*public static function admin_in_menu_load_scripts_edit_form_func(){ 178 wp_enqueue_style( 'edit_form', plugin_dir_path( dirname( __FILE__ ) ) . "public/css/edit_form.css"); 179 } */ 180 177 181 public static function admin_in_menu_profile_func(){ 178 182 $logged = is_user_logged_in(); … … 181 185 return; 182 186 } 187 188 //$loader = new Admin_In_Menu_Loader(); 189 //$loader->add_action("wp_enqueue_scripts", "Admin_In_Menu", "admin_in_menu_load_scripts_edit_form_func"); 190 191 //$path = plugin_dir_path( dirname( __FILE__ ) ) . "public/css/edit_form.css"; 192 183 193 require plugin_dir_path( dirname( __FILE__ ) ) . "profile/data.php"; 184 194 require plugin_dir_path( dirname( __FILE__ ) ) . "profile/form_edit.php"; … … 190 200 * @since 1.0.0 191 201 */ 202 203 public static function admin_in_menu_redirect($redirect_to){ 204 return home_url(); 205 } 206 207 208 public static function admin_in_menu_(){ 209 if (current_user_can('subscriber')): 210 show_admin_bar(false); 211 endif; 212 } 213 192 214 public function run() { 215 // $this->loader->add_action(); 216 $this->loader->add_action("init", "Admin_In_Menu", "admin_in_menu_"); 217 $this->loader->add_filter("registration_redirect", "Admin_In_Menu", "admin_in_menu_redirect"); 218 $this->loader->add_filter("login_redirect", "Admin_In_Menu", "admin_in_menu_redirect"); 193 219 $this->loader->add_shortcode("admin_in_menu_profile", "Admin_In_Menu", "admin_in_menu_profile_func"); 194 220 $this->loader->run(); -
admin-in-menu/trunk/profile/form_edit.php
r1831482 r1831571 8 8 9 9 $return = PROFILE_DIR . "successfully.php"; 10 11 //print $path; 10 12 11 13 $lables = array( … … 100 102 101 103 <style type="text/css"> 102 input {103 max-width: 40%;104 }104 input { 105 max-width: 40%; 106 } 105 107 </style> 108 106 109 </html> -
admin-in-menu/trunk/readme.txt
r1831482 r1831571 44 44 * Изменена структура кода плагина. 45 45 46 = 1.2 = 47 * Изменена переадресация при авторизации и регистрации. 48 46 49 `<?php code(); // goes in backticks ?>`
Note: See TracChangeset
for help on using the changeset viewer.