Plugin Directory

Changeset 872334


Ignore:
Timestamp:
03/09/2014 06:45:24 PM (12 years ago)
Author:
noticesoftware
Message:

Version 2.0.3 Release

Location:
roost-for-bloggers
Files:
21 added
6 edited

Legend:

Unmodified
Added
Removed
  • roost-for-bloggers/trunk/layout/admin.php

    r857237 r872334  
    1919                            <?php if ($roostServerSettings['hasLogo'] == true) { ?>   
    2020                                <img src="http://get.roost.me/api/device/logo?appKey=<?php echo($roostSettings['appKey']); ?>" />
     21                            <?php } else { ?>
     22                                <img src="<?php echo ROOST_URL; ?>layout/images/roost-icon-25.png" />
    2123                            <?php } ?>
     24                            <span class="roostTip">This is your Roost account logo. It will be shown to your users at the time of registration and when notifications are sent. You can set it by visiting the Roost dashboard.</span>
     25
    2226                        </span>
    2327                        <?php echo $roostSettings['username'] ?>
     
    4448                    <div class="roost-primary-heading">
    4549                        <span class="roost-primary-cta">Welcome! Log in to your Roost account below.</span>
    46                         <span class="roost-secondary-cta">If you don’t have a Roost account <a href="https://get.roost.me/signup?returnURL=<?php echo admin_url('admin.php?page=roost-for-bloggers/roost.php'); ?>&websiteURL=<?php echo site_url(); ?>" target="_blank">sign up for free!</a></span>
     50                        <span class="roost-secondary-cta">If you don’t have a Roost account <a href="https://get.roost.me/signup?returnURL=<?php echo admin_url('admin.php?page=roost-for-bloggers/roost.php'); ?>&websiteURL=<?php echo site_url(); ?>&source=wpplugin" target="_blank">sign up for free!</a></span>
    4751                    </div>
    4852                    <div class="roost-section-content">
     
    171175                                        <div class="roost-label">Notification text:</div>
    172176                                        <div class="roost-input-wrapper">
    173                                             <input name="manualtext" type="text" class="type-text roost-control-secondary" value="" size="50" />
     177                                            <span id="roostManualNoteCount">70</span>
     178                                            <input name="manualtext" type="text" class="type-text roost-control-secondary" id="roostManualNote" value="" size="50" />
    174179                                            <span class="roost-input-caption">Enter the text for the notification you would like to send your subscribers.</span>
    175180                                        </div>
     
    228233                <!--END SETTINGS SECTION-->
    229234            </form>
    230         </div>     
     235            <div id="roostSupportTag">Have Questions, Comments, or Need a Hand? Hit us up at <a href="mailto:[email protected]" target="_blank">[email protected]</a> We're Here to Help.</div>
     236        </div>
    231237    <script>
    232238        <?php if(isset($roostSites)){ ?>
  • roost-for-bloggers/trunk/layout/css/rooststyle.css

    r857237 r872334  
    505505#roostUserLogo img {
    506506    border-radius: 3px;
     507    cursor: pointer;
    507508}
    508509
     
    545546    font-size: 30px;
    546547}
     548
     549#roostManualNoteCount {
     550    display: block;
     551    position: absolute;
     552    right: 11px;
     553    top: 5px;
     554    font-weight: 700;
     555    color: #CCCCCC;
     556}
     557
     558#roostManualNoteCount.roostWarning {
     559    color: #D54E21;
     560}
     561.roostTip {
     562    position: absolute;
     563    background-color: #ffffff;
     564    width: 250px;
     565    padding: 10px;
     566    color: #666666;
     567    font-size: 11px;
     568    font-family: 'Open Sans', sans-serif;
     569    font-weight: 300;
     570    text-align: left;
     571    z-index: 10;
     572    left: -100px;
     573    top: 35px;
     574    display: none;
     575}
     576
     577#roostUserLogo img:hover + .roostTip {
     578    display: block;
     579}
     580
     581#roostSupportTag {
     582    text-align: center;
     583    text-decoration: underline;
     584}
  • roost-for-bloggers/trunk/layout/js/roostjs.js

    r803517 r872334  
    11    var _roost = _roost || [];
    2     _roost.push(['appkey', roostjsParams.appkey]);
     2    _roost.push(['appkey', pushNotificationsByRoostMe.appkey]);
    33
    44    !function(d,s,id){
  • roost-for-bloggers/trunk/layout/js/roostscript.js

    r843358 r872334  
    11jQuery(document).ready(function($) {
    2     $('.roost-section-expansion').on('click', function() {
     2    $('.roost-section-expansion').on('click', function() {
    33        $(this).toggleClass('collapsed');
    44        $(this).parent().find('.roost-section-content').slideToggle(200);
     
    77        $('#rooster-status').css('display', 'none');
    88    })
     9
     10    var roostInput = $('#roostManualNote');
     11    var roostCount = $('#roostManualNoteCount');
     12    var roostLimit = 70;
     13
     14    roostInput.keyup(function() {
     15        var n = this.value.replace(/{.*?}/g, '').length;
     16        if ( n > roostLimit ) {
     17            this.value = this.value.substr(0, this.value.length + roostLimit - n);
     18            n = roostLimit;
     19        }
     20        if ( n > ( roostLimit - 11 ) ){
     21            if(!roostCount.hasClass('roostWarning')){
     22                roostCount.addClass('roostWarning');   
     23            }
     24        } else if ( n < roostLimit - 10 ) {
     25            if(roostCount.hasClass('roostWarning')){
     26                roostCount.removeClass('roostWarning');   
     27            }
     28        }
     29        roostCount.text( 70 - n );
     30    }).triggerHandler('keyup');   
    931});
  • roost-for-bloggers/trunk/readme.txt

    r857237 r872334  
    11=== Roost Web Push ===
    22Contributors: noticesoftware
    3 Tags: push, safari push, osx, notifications, push notifications, alerts, website notifications, web alerts, roost, alert rocket, web push, mobile website push notification, safari web push, desktop push notification, OS X Mavericks, desktop push, safari, OS X, Mavericks, mac, apple
     3Tags: push, safari push, osx, notifications, push notifications, alerts, website notifications, web alerts, roost, alert rocket, web push, mobile website push notification, safari web push, desktop push notification, OS X Mavericks, desktop push, safari, OS X, Mavericks, mac, apple, news, services
    44Requires at least: 3.0
    55Tested up to: 3.8.1
    6 Stable tag: 2.0.2
     6Stable tag: 2.0.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1616Push Plugin Features:
    1717
    18 * *NEW* Safari Web Push (Desktop Push Notifications) on OS X Mavericks
    19 * Detailed analytics provided through the Roost dashboard
    20 * Auto notifications when creating a new post
    21 * Optional mobile push solution
     18* **Safari Web Push** - Take advantage of web push (Desktop Push Notifications) on OS X Mavericks.
     19* **Detailed Analytics** - Real-Time stats straight within your WordPress dashboard.
     20* **Auto Notifications** - We take the work out of it. Automatically send notifications to your readers when creating a new post.
     21* **Scheduled Post Notifications** - Not posting now? Don't worry. Your alerts will go out when your content posts.
     22* **Optional mobile push solution** - Fully supported solution to send push not only to desktop, but mobile devices.
    2223
    23 Free Roost For Bloggers account included.
     24**Free** Roost account included. No setup fees, no surprises, and no limititations on your site visitors.
    2425
    2526== Installation ==
     
    5556
    5657**Mobile Push Support**
    57 To enable mobile push support, check the box. The Roost Header bar, will be inserted onto your page. You can also insert the Roost Bar onto your theme pages with this shortcode:
    58 [RoostBar]
    59 
    60 **Roost Buttons**
    61 Two button types are available, a social-style button and a mobile-style button. These need to be manually put into your theme templates or used on individual posts. We tried to make it as easy as possible...
    62 
    63 To use the Roost social button, simply place this shortcode into your content:
    64 [Roost]
    65 
    66 The mobile style button is generated by using this shortcode:
    67 [RoostMobile]
    68 
    69 **Notes**
    70 The Roost JS is inserted into the footer via the *wp_footer()* function. If your theme does not use this function, you will need to manually copy / paste the Roost JS code snippet.
     58To enable mobile push support, check the box. The Roost Header bar, will be inserted onto your page.
    7159
    7260== Frequently Asked Questions ==
     61
     62= What does Roost For Bloggers cost? =
     63**It's free!** No setup fees, no surprises, no limititations on your site visitors or subscribers.
     64
     65= Free? Really? What's the catch? =
     66No catch! We believe in providing a great service and making it accessible to everyone. So... It's free. (Up to 1,000,000 messages. If you hit that... We'll need to talk.)
    7367
    7468= Is it really this easy to use Safari Web Push on my site? =
     
    8781Nope. We have a patent-pending *zero-configuration* installation process for the Roost app. When a person hits your subscription link, the are sent to the Roost page on their device's app store, and prompted for install. Once installed and opened, a person is sent directly back to the page they were viewing on your site.
    8882
    89 = Is Roost only for iOS (or only for Android) =
    90 Roost is available for both Apple iOS and Google Android.
    91 
    92 = What does Roost For Bloggers cost? =
    93 It's free!
    94 
    95 = Free? Really? What's the catch? =
    96 No catch! We believe in providing a great service and making it accessible to everyone. So... It's free. (Up to 1,000,000 messages. If you hit that... We'll need to talk.)
    97 
    9883
    9984== Screenshots ==
     
    10388
    10489== Changelog ==
     90
     91= 2.0.3 =
     92* Scheduled Notifications can now Trigger Alerts
     93* Fixed Stats Error on First Login
     94* Character Count on Manual Notifications
    10595
    10696= 2.0.2 =
     
    134124== Upgrade Notice ==
    135125
     126= 2.0.3 =
     127* Now with support for Scheduled Notifications! Bam! Oh, and some bugfixes and other cool stuff.
     128
    136129= 2.0.2 =
    137130* Corrected Total Time On Site calculation
  • roost-for-bloggers/trunk/roost.php

    r857237 r872334  
    44Plugin URI: http://www.roost.me/
    55Description: Drive traffic to your website with Safari Mavericks push notifications and Roost.
    6 Version: 2.0.2
     6Version: 2.0.3
    77Author: Roost.me
    88Author URI: http://www.roost.me/
     
    2929    define('ROOST_URL', plugin_dir_url(__FILE__));
    3030    global $roostVersion;
    31     $roostVersion = "2.0.2";
     31    $roostVersion = "2.0.3";
    3232
    3333    register_activation_hook(__FILE__, 'roostInit');
     
    3838    add_action('wp_enqueue_scripts', 'roostLoadScripts');       
    3939    add_action('publish_post', 'roostMe');
     40    add_action('future_to_publish', 'roostMeScheduled');
    4041    add_action('post_submitbox_misc_actions', 'roostOverride');
    4142    add_action('wp_head', 'roostByLine', 1);
    42 
    43     add_shortcode('RoostBar', 'roostBar');
     43    add_action( 'save_post', 'roostSavePost' );
     44
     45    add_shortcode('RoostBar', 'roostBar');
    4446    add_shortcode('Roost', 'roostBtn');
    4547    add_shortcode('RoostMobile', 'roostmBtn');
     
    134136    function roostUninstall(){
    135137        delete_option('roost_settings');
     138        delete_post_meta_by_key( 'roostOverride' );
    136139    }
    137140   
     
    153156    }
    154157    function roostAdminSS() {
    155         wp_enqueue_style( 'rooststyle', ROOST_URL . 'layout/css/rooststyle.css', '', '2.0' );
    156         wp_enqueue_script( 'roostscript', ROOST_URL . 'layout/js/roostscript.js', array('jquery') );
     158        global $roostVersion;
     159        wp_enqueue_style( 'rooststyle', ROOST_URL . 'layout/css/rooststyle.css', '', $roostVersion );
     160        wp_enqueue_script( 'roostscript', ROOST_URL . 'layout/js/roostscript.js', array('jquery'), $roostVersion );
    157161    }
    158162   
     
    192196            'remoteContent' => json_encode($remoteContent)
    193197        );
    194         return roostRemoteRequest($remoteData);     
     198        $loggedIntoRoost = roostDecodeData($remoteData);
     199        return $loggedIntoRoost;       
    195200    }
    196201   
     
    214219    }
    215220
     221    function roostSavePost( $post_ID ) {
     222        if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) {
     223            return false;
     224        } elseif (isset($_POST['post_status'])) {
     225            $roostNoNote = get_post_meta($post_ID, 'roostOverride', true);
     226            if (isset($_POST['roostOverride']) && !$roostNoNote) {
     227                $roostOverrideSetting = $_POST['roostOverride'];
     228                add_post_meta($post_ID, 'roostOverride', $roostOverrideSetting, true);
     229            } elseif (!isset($_POST['roostOverride']) && $roostNoNote) {
     230                delete_post_meta($post_ID, 'roostOverride');
     231            }
     232        }
     233    }
     234
    216235    function roostFilterString($string) {
    217          $string = str_replace('&#8220;', '&quot;', $string);
    218          $string = str_replace('&#8221;', '&quot;', $string);
    219          $string = str_replace('&#8216;', '&#39;', $string);
    220          $string = str_replace('&#8217;', '&#39;', $string);
    221          $string = str_replace('&#8211;', '-', $string);
    222          $string = str_replace('&#8212;', '-', $string);
    223          return html_entity_decode($string, ENT_QUOTES);
    224     }
    225 
    226     function roostMe($post_ID){
     236        $string = str_replace('&#8220;', '&quot;', $string);
     237        $string = str_replace('&#8221;', '&quot;', $string);
     238        $string = str_replace('&#8216;', '&#39;', $string);
     239        $string = str_replace('&#8217;', '&#39;', $string);
     240        $string = str_replace('&#8211;', '-', $string);
     241        $string = str_replace('&#8212;', '-', $string);
     242        $string = str_replace('&#8242;', '&#39', $string);
     243        $string = str_replace('&#8230;', '...', $string);
     244        return html_entity_decode($string, ENT_QUOTES);
     245    }
     246
     247    function roostMe($post_ID){
    227248        $roostSettings = get_option('roost_settings');
    228249        $appKey = $roostSettings['appKey'];
    229250        $appSecret = $roostSettings['appSecret'];
    230251        $autoPush = $roostSettings['autoPush'];
     252        $roostNoNote = get_post_meta($post_ID, 'roostOverride', true);
    231253        if (isset($_POST['roostOverride'])) {
    232254            $roostOverride = $_POST['roostOverride'];
     
    235257            if( ( $_POST['post_status'] == 'publish' ) && ( $_POST['original_post_status'] != 'publish' ) ) {
    236258                $siteurl = get_option('siteurl');
    237                 $alert = roostFilterString(get_the_title($post_ID));
     259                $alert = get_the_title($post_ID);
    238260                $url = $siteurl . "/?p=" . $post_ID;
    239261                if ( has_post_thumbnail($post_ID)) {
     
    247269        }
    248270    }
    249    
    250     function roostOverride(){
     271
     272    function roostMeScheduled($post){
     273        $post_ID = $post->ID;
     274        $roostSettings = get_option('roost_settings');
     275        $appKey = $roostSettings['appKey'];
     276        $appSecret = $roostSettings['appSecret'];
     277        $autoPush = $roostSettings['autoPush'];
     278        $roostOverride = get_post_meta($post_ID, 'roostOverride', true);
     279        if ($autoPush == 1 && strlen($appKey) > 0 && empty($roostOverride)) {
     280            $siteurl = get_option('siteurl');
     281            $alert = get_the_title($post_ID);
     282            $url = $siteurl . "/?p=" . $post_ID;
     283            if ( has_post_thumbnail($post_ID)) {
     284                $rawImage = wp_get_attachment_image_src(get_post_thumbnail_id($post_ID));
     285                $imageURL = $rawImage[0];
     286            } else {
     287                $imageURL = false;
     288            }
     289            roostSendNotification($alert, $url, $imageURL, $appKey, $appSecret);
     290        }
     291    }
     292
     293    function roostOverride($post){
     294        global $post;
     295        if ( 'publish' == $post->post_status ) {
     296            $roostCheckHide = true;   
     297        }
    251298        $roostSettings = get_option('roost_settings');
    252299        $appKey = $roostSettings['appKey'];
    253300        $autoPush = $roostSettings['autoPush'];
    254         $roost_page_status = get_post_status(get_the_ID());
    255         if((strlen($appKey) > 1) && ($autoPush == 1) && ($roost_page_status == 'auto-draft') || ($roost_page_status == 'draft')){
    256             echo '<div class="misc-pub-section misc-pub-section-last" id="roost-override">'
    257                  . '<label><input type="checkbox" value="1" id="roostOverrideCheckbox" name="roostOverride" /> <strong>Do NOT</strong> send notification with <strong>Roost</strong></label>'
    258             .'</div>'
    259             ."<script>jQuery('.save-timestamp').on('click', function() {setTimeout(function(){var text = jQuery('#timestamp').text(); text = text.slice(0, text.indexOf(' ')); if(text === 'Schedule') { jQuery('#roost-override').hide(); jQuery('#roostOverrideCheckbox').prop('checked', true);} else { jQuery('#roost-override').show(); jQuery('#roostOverrideCheckbox').prop('checked', false);}}, 250);});</script>";
     301        $pid = get_the_ID();
     302        $roostOverrideChecked = get_post_meta($pid, 'roostOverride', true);
     303        if(strlen($appKey) > 1 && $autoPush == 1){
     304            printf('<div class="misc-pub-section misc-pub-section-last" id="roost-override" %s >', (isset($roostCheckHide)) ? "style='display:none;'":"");
     305            printf('<label><input type="checkbox" value="1" id="roostOverrideCheckbox" name="roostOverride" %s />', (!empty($roostOverrideChecked)) ? "checked":"");
     306            echo '<strong>Do NOT</strong> send notification with <strong>Roost</strong></label>';
     307            echo '</div>';
    260308        }
    261309    }
    262310   
    263311    function roostSendNotification($alert, $url, $imageURL, $appKey, $appSecret) {
    264         $remoteContent = array(
     312        $alert = roostFilterString($alert);
     313        $remoteContent = array(
    265314            'alert' => $alert   
    266315        );
     
    278327            'remoteContent' => json_encode($remoteContent)
    279328        );
    280         return roostRemoteRequest($remoteData);
     329        $response = roostDecodeData($remoteData);
     330        return $response;
    281331    }
    282332
     
    314364    }
    315365   
     366    function roostDecodeData($remoteData) {
     367        $xfer = roostRemoteRequest($remoteData);
     368        $nxfer = wp_remote_retrieve_body($xfer);
     369        $lxfer = json_decode($nxfer, true);
     370        return $lxfer;
     371    }
     372
    316373    function getRoostServerSettings($appKey, $appSecret) {
    317374        $remoteData = array(
     
    322379            'remoteContent' => ''
    323380        );
    324         return json_decode(wp_remote_retrieve_body(roostRemoteRequest($remoteData)), true);
     381        $roostServerSettings = roostDecodeData($remoteData);
     382        return $roostServerSettings;   
    325383    }
    326384
     
    333391            'remoteContent' => ''
    334392        );
    335         return json_decode(wp_remote_retrieve_body(roostRemoteRequest($remoteData)), true);
    336     }
    337    
     393        $roostServerStats = roostDecodeData($remoteData);
     394        return $roostServerStats;
     395    }
     396
     397    function roostCompleteLogin($formKeys) {
     398        roostUpdateKeys($formKeys);
     399        $status = '<span class="roost-os-bold">Welcome to Roost!</span> The plugin is up and running and visitors to your site using Safari on OS X Mavericks are currently being prompted to subscribe for push notifications. Once you have subscribers you\'ll be able see recent activity, all-time stats, and send manual push notifications. If you have questions or need support, just email us at <a href="mailto:[email protected]" target="_blank">[email protected]</a>.';
     400        return $status;
     401    }
     402
    338403    function roostAdminMenuList() {
    339404        $roostSettings = get_option('roost_settings');
     
    351416            $roostUser = $_POST['roostuserlogin'];
    352417            $roostPass = $_POST['roostpasslogin'];
    353             $logginIntoRoost = json_decode(wp_remote_retrieve_body(roostLogin($roostUser, $roostPass)), true);
     418            $logginIntoRoost = roostLogin($roostUser, $roostPass);
    354419            if ($logginIntoRoost['success'] === true) {
    355420                roostSaveUsername($roostUser);
     
    361426                        "appSecret" => $logginIntoRoost['apps'][0]['secret']
    362427                    );
    363                     roostUpdateKeys($formKeys);             
    364                     $status = '<span class="roost-os-bold">Welcome to Roost!</span> The plugin is up and running and visitors to your site using Safari on OSX Mavericks are currently being prompted to subscribe for push notifications. Once you have subscribers you\'ll be able see recent activity, all-time stats about your subscribers, and send manual push notifications to your subscribers.';
     428                   
     429                    $appKey = $formKeys['appKey'];
     430                    $appSecret = $formKeys['appSecret'];
     431                   
     432                    $roostServerSettings = getRoostServerSettings($appKey, $appSecret);
     433                    $roostStats = getRoostStats($appKey, $appSecret);
     434                    $status = roostCompleteLogin($formKeys);
    365435                }
    366436            } else {           
     
    368438            }   
    369439        }
    370        
     440
    371441        if (isset($_POST['roostconfigselect'])) {
    372442            $roostSelectedSite = $_POST['roostsites'];
     
    378448                "appSecret" => $roostSiteSecret
    379449            );
    380             roostUpdateKeys($formKeys);
    381                     $status = '<span class="roost-os-bold">Welcome to Roost!</span> The plugin is up and running and visitors to your site using Safari on OSX Mavericks are currently being prompted to subscribe for push notifications. Once you have subscribers you\'ll be able see recent activity, all-time stats about your subscribers, and send manual push notifications to your subscribers.';
    382         }
    383        
     450
     451            $appKey = $formKeys['appKey'];
     452            $appSecret = $formKeys['appSecret'];
     453           
     454            $roostServerSettings = getRoostServerSettings($appKey, $appSecret);
     455            $roostStats = getRoostStats($appKey, $appSecret);
     456            $status = roostCompleteLogin($formKeys);
     457        }
     458       
    384459        if (isset($_POST['clearkey'])) {
    385460            $formKeys = array(
     
    393468        }
    394469       
    395         if (isset($_POST['savesettings'])) {
    396             $formData = array(
    397                 "autoPush" => $_POST['autoPush']
    398             );
    399             roostUpdateSettings($formData);
    400    
     470        if (isset($_POST['savesettings'])) {   
     471            if (isset($_POST['autoPush'])) {
     472                $formData = array(
     473                    "autoPush" => $_POST['autoPush']
     474                );
     475                roostUpdateSettings($formData);
     476            } else {
     477                $formData = array(
     478                    "autoPush" => false
     479                );
     480                roostUpdateSettings($formData);
     481            }
     482
    401483            if (isset($_POST['mobilePush'])) {
    402484                if ($roostServerSettings['roostBarSetting'] != "TOP" || $roostServerSettings['roostBarSetting'] != "BOTTOM") {
     
    448530                    $manualLink = 'http://' . $manualLink;
    449531                }
    450                 $msgStatus = json_decode(wp_remote_retrieve_body(roostSendNotification($manualText, $manualLink, false, $appKey, $appSecret)), true);
     532                $msgStatus = roostSendNotification($manualText, $manualLink, false, $appKey, $appSecret);
    451533                if ($msgStatus['success'] === true) {
    452534                    $status = 'Message Sent.';
     
    461543               
    462544    function roostLoadScripts() {
    463         $roostSettings = get_option('roost_settings');
     545        global $roostVersion;
     546        $roostSettings = get_option('roost_settings');
    464547        $appKey = $roostSettings['appKey'];
    465548        if ($appKey && !is_admin()) {
    466             wp_enqueue_script( 'roostjs', ROOST_URL . 'layout/js/roostjs.js', array('jquery'), false, true );
    467             wp_localize_script( 'roostjs', 'roostjsParams', array( 'appkey' => $appKey) );
     549            wp_enqueue_script( 'roostjs', ROOST_URL . 'layout/js/roostjs.js', array('jquery'), $roostVersion, false );
     550            wp_localize_script( 'roostjs', 'pushNotificationsByRoostMe', array( 'appkey' => $appKey) );
    468551        }
    469552        if(is_admin()){
    470             wp_enqueue_script( 'roostGoogleFont', ROOST_URL . 'layout/js/roostGoogleFont.js', '', false, false );       
     553            wp_enqueue_script( 'roostGoogleFont', ROOST_URL . 'layout/js/roostGoogleFont.js', '', $roostVersion, false );       
    471554        }
    472555    }
Note: See TracChangeset for help on using the changeset viewer.