????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.135.63.86 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/www.astacus.se/wp-content/plugins/cornerstone/includes/classes/app/ |
Upload File : |
<?php class Cornerstone_App_Choices extends Cornerstone_Plugin_Component { public function setup() { add_filter('cornerstone_app_choices_menus', array( $this, '_menus' ) ); add_filter('cornerstone_app_choices_sidebars', array( $this, '_sidebars' ) ); } public function __call( $name, $args ) { return apply_filters("cornerstone_app_choices_$name", array() ); } public function _menus() { $locations = get_registered_nav_menus(); $menus = get_terms('nav_menu'); $choices = array(); foreach ( $menus as $menu ) { $choices[] = array( 'value' => 'menu:' . $menu->term_id, 'label' => sprintf( csi18n('app.choices.menu-named'), $menu->name ) ); } foreach ( $locations as $location => $label ) { $choices[] = array( 'value' => 'location:' . $location, 'label' => sprintf( csi18n('app.choices.menu-location'), $label ) ); } return apply_filters('cornerstone_menu_choices', $choices); } public function _sidebars() { global $wp_registered_sidebars; $choices = array(); foreach ($wp_registered_sidebars as $sidebar) { $choices[] = array( 'label' => $sidebar['name'], 'value' => $sidebar['id'], ); } return $choices; } }