Plugin Directory

Changeset 1358988


Ignore:
Timestamp:
02/26/2016 04:11:52 PM (10 years ago)
Author:
appreciators
Message:

'added creator message customisation'

Location:
appreciators/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • appreciators/trunk/admin/class-appreciators-admin.php

    r1340718 r1358988  
    8888
    8989           
    90             'custom_css' => array(
     90            /*'custom_css' => array(
    9191                'title' => __( 'Custom CSS', $this->plugin_slug ),
    9292                'type' => 'section',
     
    137137                'description' => __( 'Paste your custom CSS for SMARTPHONES 0 - 767px here', $this->plugin_slug ),
    138138                'menu' => 'appreciators_settings'
    139             ),
     139            ),*/
    140140        );
    141141
  • appreciators/trunk/appreciators.php

    r1348268 r1358988  
    1111 * Plugin Name:       Appreciators WP Plugin
    1212 * Description:       A WordPress plugin that allows viewers to appreciate and tip content creators
    13  * Version:           1.0.1
     13 * Version:           1.1.0
    1414 * Author:            Appreciators Clique
    1515 * Author URI:        https://appreciators.org
  • appreciators/trunk/public/class-appreciators.php

    r1344142 r1358988  
    114114    public static function activate( $network_wide ) {
    115115
     116    $settings = get_option( 'appreciators_settings' );
     117
     118    if($settings === NULL || $settings['display'] === NULL)
     119        $settings = reset_settings();
     120
    116121        if ( function_exists( 'is_multisite' ) && is_multisite() ) {
    117122
     
    229234     */
    230235    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() {
    231251        $options = array(
    232252            'display' => 'posts',
     
    272292
    273293        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;
    285296    }
    286297
     
    299310        load_plugin_textdomain( $domain, FALSE, basename( plugin_dir_path( dirname( __FILE__ ) ) ) . '/languages/' );
    300311    }
    301 
    302 
    303312
    304313    /**
     
    340349     */
    341350    protected function is_display( $settings ) {
     351   
    342352        switch( $settings['display'] ) {
    343353            case 'posts':
     
    400410        }
    401411    }
    402 
    403     /**
     412   
     413    /**
    404414     * Insert the box in the content.
    405415     *
     
    411421     */
    412422    public function display( $content ) {
     423
    413424        // Get the settings.
    414425        $settings = get_option( 'appreciators_settings' );
    415426
     427        if($settings === NULL || $settings['display'] === NULL)
     428            $settings = Appreciators::reset_settings();
     429
    416430        if ( $this->is_display( $settings ) ) {
    417431            return $content . self::view( $settings );
     
    420434        return $content;
    421435    }
    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 
    460436}
  • appreciators/trunk/readme.txt

    r1350483 r1358988  
    22Contributors: appreciators
    33Tags: appreciators, appreciation, appreciate, thanks, recognition, kudos, tips, tipping, donation, microdonation, payment, donations, microdonations, payments, author, profile
    4 Requires at least: 4.3
     4Requires at least: 3.4.2
    55Tested up to: 4.4.2
    6 Stable tag: 1.0.1
     6Stable tag: 1.1.0
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1515
    1616The 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.
     17Through 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.
    1818
    1919Wether you earn truck loads of money or just a few dollars, supporting the cause is important to the community of content creators.
     20You can also forward your earnings to a registered charity of your choice.
    2021Please give it a try and support those that support the community.
    2122
     
    3940> There's no fiddling around or settings to tweak. Just install, enable authors, and you're all set in under 5 minutes!
    4041
    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.
    4243
    4344
     
    4849= Live Demo =
    4950
    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/
     51You 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/
    5154
    5255= Appreciate Author Widget Shortcode =
     
    9295This change log only records versions of significance such as those that include feature changes.
    9396
     97= 1.1.0 27-Feb-2016 =
     98
     99* Creators can now edit and customize their message to visitors and members
     100
    94101= 1.0.0 07-Feb-2016 =
    95102
Note: See TracChangeset for help on using the changeset viewer.