WordPress.org

Plugin Directory

Changeset 1310635


Ignore:
Timestamp:
12/17/15 06:37:28 (2 years ago)
Author:
mauryaratan
Message:

Version 1.1

Location:
stag-custom-sidebars/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • stag-custom-sidebars/trunk/assets/css/stag-custom-sidebars-wp38plus.css

    r930071 r1310635  
    4747} 
    4848 
    49 .scs-area-delete{ 
     49.scs-area-delete { 
     50    cursor: pointer; 
     51 
    5052    position: absolute; 
    51     cursor: pointer; 
    52     width: 15px; 
    53     height: 15px; 
     53    width: 25px; 
     54    height: 25px; 
    5455    z-index: 50; 
    55     right: 45px; 
    56     top: 13px; 
     56    right: 37px; 
     57    top: 50%; 
     58    -moz-transform: translateY(-50%); 
     59    -ms-transform: translateY(-50%); 
     60    -webkit-transform: translateY(-50%); 
     61    transform: translateY(-50%); 
     62 
    5763    font-size: 1.5em; 
    5864    color: #cecece; 
     65} 
     66 
     67.scs-area-delete .dashicons-no { 
     68    font-size: 25px; 
     69    width: 25px; 
     70    height: 25px; 
    5971} 
    6072 
  • stag-custom-sidebars/trunk/assets/js/stag-custom-sidebars.coffee

    r930071 r1310635  
    1717 
    1818    add_elements: -> 
    19         @widget_area.find('.sidebar-stag-custom').append('<span class="scs-area-delete">&#10006;</span>') 
     19        @widget_area.find('.sidebar-stag-custom').append('<span class="scs-area-delete"><span class="dashicons dashicons-no"></span></span>') 
    2020        @widget_area.find('.sidebar-stag-custom').each -> 
    2121            where_to_add = $(this).find('.widgets-sortables') 
     
    3434    delete_sidebar: (e) -> 
    3535        widget = $(e.currentTarget).parents '.widgets-holder-wrap:eq(0)' 
    36         title = widget.find '.sidebar-name h3' 
    37         spinner = title.find '.spinner' 
    38         widget_name = $.trim title.text() 
     36        title = widget.find '.sidebar-name h2' 
     37        spinner = widget.find '.spinner' 
     38        widget_name = widget.children().first().attr('id') 
    3939        obj = this 
    4040 
  • stag-custom-sidebars/trunk/assets/js/stag-custom-sidebars.js

    r930071 r1310635  
    1 (function(){var e,t;e=jQuery,t=function(){function t(){this.widget_wrap=e(".widget-liquid-right"),this.widget_area=e("#widgets-right"),this.widget_add=e("#tmpl-stag-add-widget"),this.create_form(),this.add_elements(),this.events()}return t.prototype.create_form=function(){this.widget_wrap.append(this.widget_add.html()),this.widget_name=this.widget_wrap.find('input[name="stag-add-widget"]'),this.nonce=this.widget_wrap.find('input[name="scs-delete-nonce"]').val()},t.prototype.add_elements=function(){this.widget_area.find(".sidebar-stag-custom").append('<span class="scs-area-delete">&#10006;</span>'),this.widget_area.find(".sidebar-stag-custom").each(function(){var t,i;i=e(this).find(".widgets-sortables"),t=i.attr("id").replace("sidebar-",""),i.find(".sidebar-description").length>0?i.find(".sidebar-description").append("<p class='description'>"+objectL10n.shortcode+": <code>[stag_sidebar id='"+t+"']</code></p>"):i.append("<div class='sidebar-description'><p class='description'>"+objectL10n.shortcode+": <code>[stag_sidebar id='"+t+"']</code></p></div>")})},t.prototype.events=function(){this.widget_wrap.on("click",".scs-area-delete",e.proxy(this.delete_sidebar,this))},t.prototype.delete_sidebar=function(t){var i,d,a,s,n;s=e(t.currentTarget).parents(".widgets-holder-wrap:eq(0)"),a=s.find(".sidebar-name h3"),d=a.find(".spinner"),n=e.trim(a.text()),i=this,confirm(objectL10n.delete_sidebar_area)&&e.ajax({type:"POST",url:window.ajaxurl,data:{action:"stag_ajax_delete_custom_sidebar",name:n,_wpnonce:i.nonce},beforeSend:function(){d.addClass("activate")},success:function(t){"sidebar-deleted"===t&&s.slideUp(200,function(){e(".widget-control-remove",s).trigger("click"),s.remove(),wpWidgets.saveOrder()})}})},t}(),e(function(){var e;return e=new t})}).call(this); 
     1(function(){var $,e;$=jQuery,e=function(){function e(){this.widget_wrap=$(".widget-liquid-right"),this.widget_area=$("#widgets-right"),this.widget_add=$("#tmpl-stag-add-widget"),this.create_form(),this.add_elements(),this.events()}return e.prototype.create_form=function(){this.widget_wrap.append(this.widget_add.html()),this.widget_name=this.widget_wrap.find('input[name="stag-add-widget"]'),this.nonce=this.widget_wrap.find('input[name="scs-delete-nonce"]').val()},e.prototype.add_elements=function(){this.widget_area.find(".sidebar-stag-custom").append('<span class="scs-area-delete"><span class="dashicons dashicons-no"></span></span>'),this.widget_area.find(".sidebar-stag-custom").each(function(){var e,t;t=$(this).find(".widgets-sortables"),e=t.attr("id").replace("sidebar-",""),t.find(".sidebar-description").length>0?t.find(".sidebar-description").append("<p class='description'>"+objectL10n.shortcode+": <code>[stag_sidebar id='"+e+"']</code></p>"):t.append("<div class='sidebar-description'><p class='description'>"+objectL10n.shortcode+": <code>[stag_sidebar id='"+e+"']</code></p></div>")})},e.prototype.events=function(){this.widget_wrap.on("click",".scs-area-delete",$.proxy(this.delete_sidebar,this))},e.prototype.delete_sidebar=function(e){var t,i,d,s,a;s=$(e.currentTarget).parents(".widgets-holder-wrap:eq(0)"),d=s.find(".sidebar-name h2"),i=s.find(".spinner"),a=s.children().first().attr("id"),t=this,confirm(objectL10n.delete_sidebar_area)&&$.ajax({type:"POST",url:window.ajaxurl,data:{action:"stag_ajax_delete_custom_sidebar",name:a,_wpnonce:t.nonce},beforeSend:function(){i.addClass("activate")},success:function(e){"sidebar-deleted"===e&&s.slideUp(200,function(){$(".widget-control-remove",s).trigger("click"),s.remove(),wpWidgets.saveOrder()})}})},e}(),$(function(){var t;return t=new e})}).call(this); 
  • stag-custom-sidebars/trunk/readme.txt

    r1149849 r1310635  
    44Tags: sidebars, custom-sidebars, mauryaratan, codestag, shortcodes, widgets 
    55Requires at least: 3.3 
    6 Stable tag: 1.0.11 
    7 Tested up to: 4.2.1 
     6Stable tag: 1.1 
     7Tested up to: 4.4 
    88License: GPLv2 or later 
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html 
     
    6363== Changelog == 
    6464 
     65= 1.1 - Dec 17, 2015 = 
     66* Fixed an issue where sidebar wouldn't delete 
     67* Tweaked the delete icon 
     68 
    6569= 1.0.11 - Oct 20, 2014 = 
    6670* Fix issue with undefined variables breaking the sidebars 
  • stag-custom-sidebars/trunk/stag-custom-sidebars.php

    r1010307 r1310635  
    44 * Plugin URI: https://wordpress.org/plugins/stag-custom-sidebars 
    55 * Description: Create custom dynamic sidebars and use anywhere with shortcodes. 
    6  * Version: 1.0.11 
     6 * Version: 1.1 
    77 * Author: Ram Ratan Maurya 
    88 * Author URI: https://mauryaratan.me 
    99 * Requires at least: 3.3 
    10  * Tested up to: 4.0 
     10 * Tested up to: 4.4 
    1111 * License: GPLv2 or later 
    1212 * 
     
    2222 * @package Stag_Custom_Sidebars 
    2323 * @author Ram Ratan Maurya 
    24  * @version 1.0.11 
    25  * @copyright 2014 Ram Ratan Maurya 
     24 * @version 1.1 
     25 * @copyright 2015 Ram Ratan Maurya 
    2626 */ 
    2727final class Stag_Custom_Sidebars { 
     
    3636     * @var string 
    3737     */ 
    38     public $version = '1.0.11'; 
     38    public $version = '1.1'; 
    3939 
    4040    /** 
Note: See TracChangeset for help on using the changeset viewer.