Changeset 1358988
- Timestamp:
- 02/26/2016 04:11:52 PM (10 years ago)
- Location:
- appreciators/trunk
- Files:
-
- 4 edited
-
admin/class-appreciators-admin.php (modified) (2 diffs)
-
appreciators.php (modified) (1 diff)
-
public/class-appreciators.php (modified) (8 diffs)
-
readme.txt (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
appreciators/trunk/admin/class-appreciators-admin.php
r1340718 r1358988 88 88 89 89 90 'custom_css' => array(90 /*'custom_css' => array( 91 91 'title' => __( 'Custom CSS', $this->plugin_slug ), 92 92 'type' => 'section', … … 137 137 'description' => __( 'Paste your custom CSS for SMARTPHONES 0 - 767px here', $this->plugin_slug ), 138 138 'menu' => 'appreciators_settings' 139 ), 139 ),*/ 140 140 ); 141 141 -
appreciators/trunk/appreciators.php
r1348268 r1358988 11 11 * Plugin Name: Appreciators WP Plugin 12 12 * Description: A WordPress plugin that allows viewers to appreciate and tip content creators 13 * Version: 1. 0.113 * Version: 1.1.0 14 14 * Author: Appreciators Clique 15 15 * Author URI: https://appreciators.org -
appreciators/trunk/public/class-appreciators.php
r1344142 r1358988 114 114 public static function activate( $network_wide ) { 115 115 116 $settings = get_option( 'appreciators_settings' ); 117 118 if($settings === NULL || $settings['display'] === NULL) 119 $settings = reset_settings(); 120 116 121 if ( function_exists( 'is_multisite' ) && is_multisite() ) { 117 122 … … 229 234 */ 230 235 private static function single_activate() { 236 reset_settings(); 237 } 238 239 /** 240 * Fired for each blog when the plugin is deactivated. 241 * 242 * @since 1.0.0 243 * 244 * @return void 245 */ 246 private static function single_deactivate() { 247 //delete_option( 'appreciators_settings' ); 248 } 249 250 private static function reset_settings() { 231 251 $options = array( 232 252 'display' => 'posts', … … 272 292 273 293 add_option( 'appreciators_settings', $options ); 274 } 275 276 /** 277 * Fired for each blog when the plugin is deactivated. 278 * 279 * @since 1.0.0 280 * 281 * @return void 282 */ 283 private static function single_deactivate() { 284 //delete_option( 'appreciators_settings' ); 294 295 return $options; 285 296 } 286 297 … … 299 310 load_plugin_textdomain( $domain, FALSE, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' ); 300 311 } 301 302 303 312 304 313 /** … … 340 349 */ 341 350 protected function is_display( $settings ) { 351 342 352 switch( $settings['display'] ) { 343 353 case 'posts': … … 400 410 } 401 411 } 402 403 /**412 413 /** 404 414 * Insert the box in the content. 405 415 * … … 411 421 */ 412 422 public function display( $content ) { 423 413 424 // Get the settings. 414 425 $settings = get_option( 'appreciators_settings' ); 415 426 427 if($settings === NULL || $settings['display'] === NULL) 428 $settings = Appreciators::reset_settings(); 429 416 430 if ( $this->is_display( $settings ) ) { 417 431 return $content . self::view( $settings ); … … 420 434 return $content; 421 435 } 422 423 public function hook_css() {424 425 //wp_enqueue_style( 'appreciators-styles', plugins_url( '/Widgets/css/appreciators.css', __FILE__ ), array(), self::VERSION, 'all' );426 427 /*$output = '<style id="appreciators-css" type="text/css" media="screen">428 .post-author-appeal {429 display: table;430 width: 100%;431 }432 .post-author-img {433 position: relative;434 display: table-cell;435 vertical-align: bottom;436 width: 80px;437 height: 80px;438 padding-bottom: 12px;439 }440 .post-appreciation {441 position: relative;442 display: table-cell;443 vertical-align: bottom;444 }445 iframe{446 margin-bottom: 0px;447 }448 @media (max-width: 400px) {449 .hide-xs{450 display:none !important;451 }452 .mt-15-xs{453 margin-top: 15px;454 }455 }456 </style>';457 echo $output;*/458 }459 460 436 } -
appreciators/trunk/readme.txt
r1350483 r1358988 2 2 Contributors: appreciators 3 3 Tags: appreciators, appreciation, appreciate, thanks, recognition, kudos, tips, tipping, donation, microdonation, payment, donations, microdonations, payments, author, profile 4 Requires at least: 4.34 Requires at least: 3.4.2 5 5 Tested up to: 4.4.2 6 Stable tag: 1. 0.16 Stable tag: 1.1.0 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 15 15 16 16 The Appreciators Clique is a community and engagement platform that helps reward and acknowledge great work that is offered freely to the world. 17 Through this plugin, our community of Appreciators can easily send you messages of appreciation that includes a micro-donation to individual authors .17 Through this plugin, our community of Appreciators can easily send you messages of appreciation that includes a micro-donation to individual authors and/or website owners. 18 18 19 19 Wether you earn truck loads of money or just a few dollars, supporting the cause is important to the community of content creators. 20 You can also forward your earnings to a registered charity of your choice. 20 21 Please give it a try and support those that support the community. 21 22 … … 39 40 > There's no fiddling around or settings to tweak. Just install, enable authors, and you're all set in under 5 minutes! 40 41 41 > Don't let yourself or your fellow writers miss out on the appreciation they deserve.42 > Don't let yourself or your fellow writers miss out on the appreciation and support they deserve, and help a great cause. 42 43 43 44 … … 48 49 = Live Demo = 49 50 50 * You can view a live demo of Appreciators WP Plugin on a blog article here: http://www.seishindigital.com/2016/01/31/discover-hug-there-is-no-distance-between-us/ 51 You can view a live demo of Appreciators WP Plugin on a blog article here: 52 * http://shapeshftr.com/we-are-the-walrus-abstract-walrus 53 * http://www.seishindigital.com/2016/01/31/discover-hug-there-is-no-distance-between-us/ 51 54 52 55 = Appreciate Author Widget Shortcode = … … 92 95 This change log only records versions of significance such as those that include feature changes. 93 96 97 = 1.1.0 27-Feb-2016 = 98 99 * Creators can now edit and customize their message to visitors and members 100 94 101 = 1.0.0 07-Feb-2016 = 95 102
Note: See TracChangeset
for help on using the changeset viewer.