Changeset 2114335
- Timestamp:
- 06/28/2019 04:38:05 PM (5 years ago)
- Location:
- steeplyref-affiliate-referral/trunk
- Files:
-
- 1 added
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
steeplyref-affiliate-referral/trunk/README.txt
r2114195 r2114335 35 35 == Changelog == 36 36 37 38 39 37 40 = 1.1.0 = 38 41 * New Design Features -
steeplyref-affiliate-referral/trunk/admin/class-steeply-ref-admin.php
r2114195 r2114335 133 133 } 134 134 135 136 137 138 135 139 public function add_plugin_pages() { 136 140 … … 142 146 143 147 add_submenu_page( 'steeply-ref-general-settings', 'SteeplyRef - FAQ', 'FAQ', 'manage_options', 'steeply-ref-faq', array( $this, 'render_page_faq' ) ); 148 149 144 150 145 151 } -
steeplyref-affiliate-referral/trunk/admin/js/steeply-ref-admin.js
r2114195 r2114335 1 (function ( $) {2 1 (function) { 2 'use strict'; 3 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 4 /** 5 * All of the code for your admin-facing JavaScript source 6 * should reside in this file. 7 * 8 * Note: It has been assumed you will write jQuery code here, so the 9 * $ function reference has been prepared for usage within the scope 10 * of this function. 11 * 12 * This enables you to define handlers, for when the DOM is ready: 13 * 14 * $(function() { 15 * 16 * }); 17 * 18 * When the window is loaded: 19 * 20 * $( window ).load(function() { 21 * 22 * }); 23 * 24 * ...and/or other possibilities. 25 * 26 * Ideally, it is not considered best practise to attach more than a 27 * single DOM-ready or window-load handler for a particular page. 28 * Although scripts in the WordPress core, Plugins and Themes may be 29 * practising this, we should strive to set a better example in our own work. 30 */ 31 31 32 })( jQuery);32 })(); -
steeplyref-affiliate-referral/trunk/admin/partials/dashboard-widget.php
r2114195 r2114335 11 11 ?> 12 12 <div class="no-ref-activity"> 13 14 13 <p class="dashicons dashicons-nametag no-ref-activity__icon" aria-hidden="true"></p> 14 <p class="no-ref-activity__text">За последние 30 дней активности пока не было.</p> 15 15 </div> 16 16 <!--<div class="ref-activity"></div>--> 17 17 <div class="st-widget-links"> 18 <a href="/wp-admin/admin.php?page=steeply-ref-general-settings" class="button button-primary st-widget-links__link">General Settings</a> 19 <a href="/wp-admin/admin.php?page=steeply-ref-faq" class="button button-primary st-widget-links__link">FAQ</a> 20 <a href="/wp-admin/admin.php?page=steeply-ref-analytics" class="button button-primary st-widget-links__link">Detailed Analytics</a> 18 <a href="/wp-admin/admin.php?page=steeply-ref-general-settings" class="button button-primary st-widget-links__link">General 19 Settings</a> 20 <a href="/wp-admin/admin.php?page=steeply-ref-faq" class="button button-primary st-widget-links__link">FAQ</a> 21 <a href="/wp-admin/admin.php?page=steeply-ref-analytics" class="button button-primary st-widget-links__link">Detailed 22 Analytics</a> 21 23 </div> -
steeplyref-affiliate-referral/trunk/admin/partials/page-analytics.php
r2114195 r2114335 33 33 <div class="wrap"> 34 34 35 <h1><?php _e('SteeplyRef - Analytics', 'steeply-ref'); ?></h1>35 ); ?></h1> 36 36 37 37 <div class="st-flex"> -
steeplyref-affiliate-referral/trunk/admin/partials/page-faq.php
r2114195 r2114335 12 12 <div class="wrap"> 13 13 14 <h1><?php _e('SteeplyRef - FAQ', 'steeply-ref'); ?></h1>14 ); ?></h1> 15 15 16 16 <div class="st-flex"> -
steeplyref-affiliate-referral/trunk/admin/partials/page-general-settings.php
r2114195 r2114335 61 61 <div class="wrap"> 62 62 63 <h1><?php _e('SteeplyRef - General Settings', 'steeply-ref'); ?></h1>63 ); ?></h1> 64 64 65 65 <div class="st-flex"> -
steeplyref-affiliate-referral/trunk/includes/class-steeply-ref-i18n.php
r2114195 r2114335 36 36 37 37 load_plugin_textdomain( 38 'steeply -ref',38 'steeply', 39 39 false, 40 40 dirname( dirname( plugin_basename( __FILE__ ) ) ) . '/languages/' -
steeplyref-affiliate-referral/trunk/includes/class-steeply-ref-loader.php
r2114195 r2114335 29 29 * @since 1.0.0 30 30 * @access protected 31 * @var array $actionsThe actions registered with WordPress to fire when the plugin loads.31 * @var array The actions registered with WordPress to fire when the plugin loads. 32 32 */ 33 33 protected $actions; … … 38 38 * @since 1.0.0 39 39 * @access protected 40 * @var array $filtersThe filters registered with WordPress to fire when the plugin loads.40 * @var array The filters registered with WordPress to fire when the plugin loads. 41 41 */ 42 42 protected $filters; … … 47 47 * @since 1.0.6 48 48 * @access protected 49 * @var array $shortcodesThe shortcodes registered with WordPress to fire when the plugin loads.49 * @var array The shortcodes registered with WordPress to fire when the plugin loads. 50 50 */ 51 51 protected $shortcodes; … … 58 58 public function __construct() { 59 59 60 $this->actions = array();61 $this->filters = array();60 $this->actions = array(); 61 $this->filters = array(); 62 62 $this->shortcodes = array(); 63 63 … … 67 67 * Add a new action to the collection to be registered with WordPress. 68 68 * 69 70 71 72 73 74 69 75 * @since 1.0.0 70 * @param string $hook The name of the WordPress action that is being registered.71 * @param object $component A reference to the instance of the object on which the action is defined.72 * @param string $callback The name of the function definition on the $component.73 * @param int $priority Optional. The priority at which the function should be fired. Default is 10.74 * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 1.75 76 */ 76 77 public function add_action( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) { … … 79 80 80 81 /** 81 * Add a new filter to the collection to be registered with WordPress.82 *83 * @since 1.0.084 * @param string $hook The name of the WordPress filter that is being registered.85 * @param object $component A reference to the instance of the object on which the filter is defined.86 * @param string $callback The name of the function definition on the $component.87 * @param int $priority Optional. The priority at which the function should be fired. Default is 10.88 * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 189 */90 public function add_filter( $hook, $component, $callback, $priority = 10, $accepted_args = 1 ) {91 $this->filters = $this->add( $this->filters, $hook, $component, $callback, $priority, $accepted_args );92 }93 94 /**95 * Add a new shortcode to the collection to be registered with WordPress96 *97 * @since 1.0.698 * @param string $tag The name of the new shortcode.99 * @param object $component A reference to the instance of the object on which the shortcode is defined.100 * @param string $callback The name of the function that defines the shortcode.101 * @param int $priority Optional. The priority at which the function should be fired. Default is 10.102 * @param int $accepted_args Optional. The number of arguments that should be passed to the $callback. Default is 1103 */104 public function add_shortcode( $tag, $component, $callback, $priority = 10, $accepted_args = 2 ) {105 $this->shortcodes = $this->add( $this->shortcodes, $tag, $component, $callback, $priority, $accepted_args );106 }107 108 /**109 82 * A utility function that is used to register the actions and hooks into a single 110 83 * collection. 111 84 * 85 86 87 88 89 90 91 92 112 93 * @since 1.0.0 113 94 * @access private 114 * @param array $hooks The collection of hooks that is being registered (that is, actions or filters).115 * @param string $hook The name of the WordPress filter that is being registered.116 * @param object $component A reference to the instance of the object on which the filter is defined.117 * @param string $callback The name of the function definition on the $component.118 * @param int $priority The priority at which the function should be fired.119 * @param int $accepted_args The number of arguments that should be passed to the $callback.120 * @return array The collection of actions and filters registered with WordPress.121 95 */ 122 96 private function add( $hooks, $hook, $component, $callback, $priority, $accepted_args ) { … … 135 109 136 110 /** 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 137 141 * Register the filters and actions with WordPress. 138 142 * … … 142 146 143 147 foreach ( $this->filters as $hook ) { 144 add_filter( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); 148 add_filter( $hook['hook'], array( 149 $hook['component'], 150 $hook['callback'] 151 ), $hook['priority'], $hook['accepted_args'] ); 145 152 } 146 153 147 154 foreach ( $this->actions as $hook ) { 148 add_action( $hook['hook'], array( $hook['component'], $hook['callback'] ), $hook['priority'], $hook['accepted_args'] ); 155 add_action( $hook['hook'], array( 156 $hook['component'], 157 $hook['callback'] 158 ), $hook['priority'], $hook['accepted_args'] ); 149 159 } 150 160 151 161 foreach ( $this->shortcodes as $hook ) { 152 add_shortcode( $hook['hook'], array( $hook['component'], $hook['callback'] ));162 add_shortcode( ); 153 163 } 154 164 -
steeplyref-affiliate-referral/trunk/includes/class-steeply-ref.php
r2114195 r2114335 73 73 $this->version = '1.0.0'; 74 74 } 75 $this->plugin_name = 'steeply -ref';75 $this->plugin_name = 'steeply'; 76 76 77 77 $this->define_static(); -
steeplyref-affiliate-referral/trunk/public/js/steeply-ref-public.js
r2114195 r2114335 1 (function ( $) {2 1 (function) { 2 'use strict'; 3 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 4 /** 5 * All of the code for your public-facing JavaScript source 6 * should reside in this file. 7 * 8 * Note: It has been assumed you will write jQuery code here, so the 9 * $ function reference has been prepared for usage within the scope 10 * of this function. 11 * 12 * This enables you to define handlers, for when the DOM is ready: 13 * 14 * $(function() { 15 * 16 * }); 17 * 18 * When the window is loaded: 19 * 20 * $( window ).load(function() { 21 * 22 * }); 23 * 24 * ...and/or other possibilities. 25 * 26 * Ideally, it is not considered best practise to attach more than a 27 * single DOM-ready or window-load handler for a particular page. 28 * Although scripts in the WordPress core, Plugins and Themes may be 29 * practising this, we should strive to set a better example in our own work. 30 */ 31 31 32 })( jQuery);32 })(); -
steeplyref-affiliate-referral/trunk/steeply-ref.php
r2114195 r2114335 11 11 * Plugin Name: SteeplyRef - Affiliate & Referral 12 12 * Description: Affiliate & Referral System for easy integration into your website. 13 * Version: 1.1. 013 * Version: 1.1. 14 14 * Author: Artur Khylskyi 15 15 * Author URI: https://allsteeply.com 16 16 * License: GPL-2.0+ 17 17 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt 18 * Text Domain: steeply -ref18 * Text Domain: steeply 19 19 * Domain Path: /languages 20 20 */ … … 28 28 * Currently plugin version. 29 29 */ 30 define( 'STEEPLY_REF_VERSION', '1.1. 0' );30 define( 'STEEPLY_REF_VERSION', '1.1.' ); 31 31 32 32 /**
Note: See TracChangeset
for help on using the changeset viewer.