Пример #1
0
 /**
  * Creates the Nav Menu Markup class
  * @param My_Plugin_Settings_Public $settings
  */
 function __construct(My_Plugin_Settings_Public $settings)
 {
     $this->settings = $settings;
     $this->site_title = get_bloginfo('name');
     $this->home_url = esc_url(home_url('/'));
     $this->current_url = esc_url(get_permalink());
     $this->login_url = wp_login_url($this->current_url);
     $this->logout_url = wp_logout_url($this->current_url);
     $this->register_url = wp_registration_url();
     $this->unique_menu_id = 'menu_' . $settings->get_option_settings_db_name();
 }
Пример #2
0
 function __construct(My_Plugin_Settings_Public $settings)
 {
     $this->settings = $settings;
     $this->unique_menu_id = 'menu_' . $settings->get_option_settings_db_name();
 }