Beispiel #1
0
 /**
  * Constructor 
  */
 public function __construct()
 {
     global $pf;
     $this->feed_type = 'opml';
     parent::start();
     add_action('admin_init', array($this, 'register_settings'));
 }
Beispiel #2
0
 function __construct()
 {
     parent::start();
     add_action('pf_modal_comments', array($this, 'the_comment_box'));
     //add_action( 'admin_enqueue_scripts', array( $this, 'add_admin_scripts' ) );
     add_action('wp_ajax_editflow_ajax_insert_comment', array($this, 'ajax_insert_comment'));
     add_action('pf_comment_action_button', array($this, 'show_comment_count_button'));
     add_action('pf_comment_action_modal', array($this, 'show_comment_modal'));
     add_filter('pf_setup_admin_rights', array($this, 'control_menu_access'));
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     $this->feed_type = 'rss';
     parent::start();
     //self::check_nonce = wp_create_nonce('retrieve-pressforward');
     add_action('admin_init', array($this, 'register_settings'));
     if (is_admin()) {
         add_action('wp_ajax_nopriv_remove_a_feed', array($this, 'remove_a_feed'));
         add_action('wp_ajax_remove_a_feed', array($this, 'remove_a_feed'));
     }
 }
Beispiel #4
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::start();
     add_action('init', array($this, 'request_feed'));
     //self::check_nonce = wp_create_nonce('retrieve-pressforward');
 }
Beispiel #5
0
 /**
  * Register the admin menu items
  *
  * The parent class will take care of registering them
  */
 function setup_admin_menus($admin_menus)
 {
     $admin_menus = array();
     $admin_menus[] = array('page_title' => __('View Log', 'pf'), 'menu_title' => __('View Log', 'pf'), 'cap' => get_option('pf_menu_log_access', pf_get_defining_capability_by_role('administrator')), 'slug' => 'pf-debugger', 'callback' => array($this, 'admin_menu_callback'));
     parent::setup_admin_menus($admin_menus);
 }
Beispiel #6
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::start();
     add_action('wp_ajax_refresh_ab_feeds', array($this, 'refresh_ab_feeds_callback'));
     add_action('wp_ajax_finish_ab_feeds', array($this, 'finish_ab_feeds_callback'));
 }
Beispiel #7
0
 /**
  * Register the admin menu items
  *
  * The parent class will take care of registering them
  */
 function setup_admin_menus($admin_menus)
 {
     $admin_menus = array();
     $admin_menus[] = array('page_title' => __('Foo', 'pf'), 'menu_title' => __('Foo', 'pf'), 'cap' => 'edit_posts', 'slug' => 'pf-foo', 'callback' => array($this, 'admin_menu_callback'));
     parent::setup_admin_menus($admin_menus);
 }
Beispiel #8
0
 /**
  * Register the admin menu items
  *
  * The parent class will take care of registering them
  */
 function setup_admin_menus($admin_menus)
 {
     $admin_menus = array();
     $admin_menus[] = array('page_title' => __('Internal Commenting', 'pf'), 'menu_title' => __('Internal Commenting', 'pf'), 'cap' => 'manage_options', 'slug' => 'pf-comments', 'callback' => array($this, 'admin_menu_callback'));
     parent::setup_admin_menus($admin_menus);
 }