Esempio n. 1
0
 /**
  * Load all themes information into local properties
  * 
  * @todo only list themes which implement the scheme
  */
 protected function load_theme_data()
 {
     ICE_Loader::load_nxtadmin_lib('ms');
     ICE_Loader::load_nxtadmin_lib('theme');
     // get current theme
     $ct = current_theme_info();
     // get all themes
     $this->themes = get_allowed_themes();
     // extract current theme
     $this->theme = $this->themes[$ct->name];
 }
Esempio n. 2
0
            $post_id = (int) $_POST['post_id'];
            // attempt to trash the post
            if (nxt_trash_post($post_id) !== false) {
                ICE_Ajax::response(true, __('Item moved to trash', infinity_text_domain));
            } else {
                ICE_Ajax::response(false, __('Move item to trash failed', infinity_text_domain));
            }
        } else {
            ICE_Ajax::response(false, __('Missing item id', infinity_text_domain));
        }
    }
}
//
// Supporting Classes
//
ICE_Loader::load_nxtadmin_lib('class-nxt-list-table', 'class-nxt-posts-list-table');
/**
 * @package ICE-extensions
 * @subpackage widgets
 * @todo find a home for this
 */
class ICE_Posts_List extends nxt_Posts_List_Table
{
    /**
     * The current post being rendered
     *
     * @var stdClass
     */
    private $post;
    /**
     * The post type of the list of posts