Plugin Directory

Changeset 1247977


Ignore:
Timestamp:
09/17/2015 10:47:06 PM (11 years ago)
Author:
philbaylog
Message:

Release 1.8.0

Location:
quickiebar/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • quickiebar/trunk/admin/controllers/settings.php

    r1178641 r1247977  
    5252           
    5353            update_option('qb_archive_page_visibility', $settings['archive_page_visibility']);
     54           
     55            update_option('qb_custom_post_type_visibility', $settings['custom_post_type_visibility']);
    5456        }
    5557       
     
    132134            'device_visibility' => get_option('qb_device_visibility'),
    133135            'archive_page_visibility' => get_option('qb_archive_page_visibility'),
    134             'bar_zindex' => get_option('qb_bar_zindex')
     136            'bar_zindex' => get_option('qb_bar_zindex'),
     137            'custom_post_type_visibility' => get_option('qb_custom_post_type_visibility')
    135138        ) );
    136139    }
  • quickiebar/trunk/admin/js/settings.js

    r1163740 r1247977  
    3232            device_visibility: ko.observable(),
    3333            archive_page_visibility: ko.observable(),
    34             bar_zindex: ko.observable()
     34            bar_zindex: ko.observable(),
     35            custom_post_type_visibility: ko.observable()
    3536        }
    3637        self.settings.cache = {
     
    4950            device_visibility: ko.observable(),
    5051            archive_page_visibility: ko.observable(),
    51             bar_zindex: ko.observable()
     52            bar_zindex: ko.observable(),
     53            custom_post_type_visibility: ko.observable()
    5254        }
    5355       
     
    180182            self.settings.cache.archive_page_visibility(self.settings.archive_page_visibility());
    181183            self.settings.cache.bar_zindex(self.settings.bar_zindex());
     184            self.settings.cache.custom_post_type_visibility(self.settings.custom_post_type_visibility());
    182185           
    183186        }
     
    198201                self.settings.device_visibility() != self.settings.cache.device_visibility() ||
    199202                self.settings.archive_page_visibility() != self.settings.cache.archive_page_visibility() ||
    200                 self.settings.bar_zindex() != self.settings.cache.bar_zindex()
     203                self.settings.bar_zindex() != self.settings.cache.bar_zindex() ||
     204                self.settings.custom_post_type_visibility() != self.settings.cache.custom_post_type_visibility()
    201205            ){
    202206                return true;
     
    276280                        device_visibility: self.settings.device_visibility(),
    277281                        archive_page_visibility: self.settings.archive_page_visibility(),
    278                         bar_zindex: self.settings.bar_zindex()
     282                        bar_zindex: self.settings.bar_zindex(),
     283                        custom_post_type_visibility: self.settings.custom_post_type_visibility()
    279284                    }
    280285                },
     
    357362            self.settings.archive_page_visibility(qb_settings.archive_page_visibility);
    358363            self.settings.bar_zindex(qb_settings.bar_zindex);
     364           
     365            self.settings.custom_post_type_visibility(qb_settings.custom_post_type_visibility);
    359366           
    360367            //if page exceptions or post exceptions, toggle those menus visibility accordingly
  • quickiebar/trunk/admin/views/settings.html

    r1200438 r1247977  
    140140                            </div>
    141141                        </div><!--/.embedded-option-->
     142                       
     143                        <div class="embedded-option">
     144                            <div class="embedded-option-label">Show Bar on Custom Post Types?</div>
     145                            <div>
     146                                <div class="embedded-option-value" data-bind="click: function(){ custom_post_type_visibility('hide'); }, css: {selected: custom_post_type_visibility() == 'hide' }">HIDE</div>
     147                                <div class="embedded-option-value" data-bind="click: function(){ custom_post_type_visibility('show'); }, css: {selected: custom_post_type_visibility() == 'show' }">SHOW</div>
     148                            </div>
     149                        </div><!--/.embedded-option-->
    142150
    143151                    </div>
  • quickiebar/trunk/quickiebar.php

    r1231663 r1247977  
    44Plugin URI: https://quickiebar.com
    55Description: QuickieBar makes it easy for you to convert visitors by adding an attractive and easily customizable conversion bar to the top or bottom of your site.
    6 Version: 1.7.2
     6Version: 1.8.0
    77Author: Phil Baylog
    88Author URI: https://quickiebar.com
     
    1717
    1818global $QB_VERSION;
    19 $QB_VERSION = '1.7.2';
     19$QB_VERSION = '1.8.0';
    2020
    2121class QuickieBar{
     
    7575
    7676        //If user is activating the plugin for the first time
    77         if(!get_option('QB_VERSION') && !quickiebar()->is_ajax_call()){
     77        if(!get_option('QB_VERSION') && !quickiebar()->is_ajax_call() && is_admin()){
    7878
    7979            $settings_url = admin_url('admin.php?page=quickiebar');
     
    193193        if(!get_option('qb_bar_zindex')){
    194194            update_option('qb_bar_zindex', '100');
     195        }
     196       
     197        //New options with 1.8.0
     198        if(!get_option('qb_custom_post_type_visibility')){
     199            update_option('qb_custom_post_type_visibility', 'hide');
    195200        }
    196201
     
    390395            return true;
    391396        }
    392         else if($visibility == 'postsonly' && is_single()){
     397        else if($visibility == 'postsonly' && is_singular('post')){
    393398            return true;
    394399        }
     
    428433
    429434            }
    430             else if(is_single()){
     435            else if(is_singular('post')){
    431436
    432437                $post_id = get_the_ID();
     
    505510
    506511            }
     512            else if(is_singular() && !is_singular('post') && !is_page() && !is_attachment()){
     513                //custom post type
     514               
     515                $custom_post_type_visibility = get_option('qb_custom_post_type_visibility');
     516               
     517                if($custom_post_type_visibility == 'show'){
     518                    return true;
     519                }
     520                else{
     521                    return false;
     522                }
     523            }
    507524            else{
    508525                //no idea what kind of page/post/archive/category this is...
  • quickiebar/trunk/readme.txt

    r1231663 r1247977  
    55Donate Link: https://quickiebar.com/pricing
    66Tested up to: 4.3.0
    7 Stable tag: 1.7.2
     7Stable tag: 1.8.0
    88License: GPLv2
    99
     
    134134== Changelog ==
    135135
     136= 1.8.0 | Sep 15, 2015 =
     137* Feature: Visibility for custom post types can now be togged on or off
     138* Fix: Fixed bug which caused QuickieBar welcome message to be displayed by mistake
     139
    136140= 1.7.2 | Aug 26, 2015 =
    137141* Tweak: Added background styling to "wrap" class in QuickieBar to prevent some theme styles from affecting bar styles
Note: See TracChangeset for help on using the changeset viewer.