PATH:
home
/
letacommog
/
entrepro
/
wp-content
/
plugins
/
rh-frontend
/
admin
<?php /** * This class is responsible for displaying messages in the admin area after an update. * * @since 2.0.0 * @package WPFEPP **/ class WPFEPP_Admin_Messages { /** * Plugin version. This is used in wp_enqueue_style and wp_enqueue_script to make sure that the end user doesn't get outdated scripts and styles because of browser caching. * * @access private * @var string **/ private $version; /** * Class constructor. Initializes the class attributes. **/ public function __construct($version) { $this->version = $version; } /** * Adds the actions of this class. The WPFEPP_Loader class registers this function with WordPress. **/ public function add_actions(){ //add_action( 'admin_notices', array($this, 'admin_notices') ); add_action( 'wp_ajax_wpfepp_dismiss_nag', array($this, 'dismiss_nag') ); add_action( 'admin_enqueue_scripts', array($this, 'enqueue') ); } public function enqueue($hook) { wp_register_script('wpfepp_admin_script', plugins_url( 'static/js/admin.js' , dirname(__FILE__) ), array(), $this->version); wp_enqueue_style('wpfepp-admin-stylesheet', plugins_url( 'static/css/admin.css' , dirname(__FILE__) ), false, $this->version, 'all'); if( $hook == 'rh-frontend_page_wpfepp_settings' || $hook == 'toplevel_page_wpfepp_form_manager' ) wp_enqueue_script( 'wpfepp_admin_script' ); wp_enqueue_style( 'wpfepp-form-manager-stylesheet' ); return; } public function admin_notices() { $last_nag_dismissed = get_option('wpfepp_nag_dismissed', 0); if($last_nag_dismissed >= $this->version || !current_user_can('manage_options')) return; ?> <div class="updated"> <p> <?php _e('Thank you for installing the latest version of Frontend Publishing Pro (Rehub addition).', 'wpfepp-plugin'); ?><br/> <a href="<?php echo admin_url('admin.php?page=wpfepp_form_manager'); ?>"><?php _e('Forms', 'wpfepp-plugin'); ?></a> | <a href="<?php echo admin_url('admin.php?page=wpfepp_settings') ?>"><?php _e('Settings', 'wpfepp-plugin'); ?></a> | <a href="http://rehub.wpsoul.com/documentation/docs.html#metafield" target="_blank"><?php _e('List of important theme meta fields', 'wpfepp-plugin'); ?></a> <a style="float:right;" id="wpfepp-dismiss-nag" href="#"><?php _e('Dismiss This Message', 'wpfepp-plugin'); ?></a> </p> </div> <?php } /** * Dismisses the message. **/ public function dismiss_nag() { update_option('wpfepp_nag_dismissed', $this->version); } }
[+]
..
[-] class-wpfepp-tab-settings-errors.php
[edit]
[-] class-wpfepp-tab-form-fields.php
[edit]
[-] class-wpfepp-tab-settings-data.php
[edit]
[-] class-wpfepp-tab-settings-recaptcha.php
[edit]
[-] class-wpfepp-list-table.php
[edit]
[-] class-wpfepp-tab-form-extended.php
[edit]
[-] class-wpfepp-tab-form-emails.php
[edit]
[-] class-wpfepp-field-renderer.php
[edit]
[-] class-wpfepp-tab-settings-email.php
[edit]
[-] class-wpfepp-tab-settings-copyscape.php
[edit]
[-] class-wpfepp-tab-settings-media.php
[edit]
[-] class-wpfepp-tab-settings-payment.php
[edit]
[-] class-wpfepp-form-manager.php
[edit]
[-] class-wpfepp-tab-form-settings.php
[edit]
[+]
partials
[-] class-wpfepp-tab-settings-list.php
[edit]
[-] class-wpfepp-tab.php
[edit]
[-] class-wpfepp-field-validator.php
[edit]
[-] class-wpfepp-tab-collection.php
[edit]
[-] class-wpfepp-plugin-settings.php
[edit]
[-] class-wpfepp-admin-messages.php
[edit]