WordPress.org

Plugin Directory

Changeset 1640354


Ignore:
Timestamp:
04/19/17 08:08:49 (5 months ago)
Author:
anmari
Message:

vers 3.4 - trigger to make installation steps show up in new plugin directory

Location:
amr-shortcode-any-widget/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • amr-shortcode-any-widget/trunk/amr-shortcode-any-widget.php

    r1397585 r1640354  
    33Plugin Name: amr shortcode any widget 
    44Plugin URI: http://webdesign.anmari.com/shortcode-any-widget/ 
    5 Description: Include any widget in a page for any theme.  [do_widget widgetname ] or  [do_widget "widget name" ] [do_widget id=widgetnamedashed-n ]or include a whole widget area [do_widget_area]. Please read: <a href="https://wordpress.org/plugins/amr-shortcode-any-widget/installation/">Installation</a> and <a href="https://wordpress.org/plugins/amr-shortcode-any-widget/faq/">FAQ</a>. 
     5Description: Include any widget in a page for any theme.  [do_widget widgetname ] or  [do_widget "widget name" ] [do_widget id=widgetnamedashed-n ]or include a whole widget area [do_widget_area]. Please see <a href="https://wordpress.org/plugins/amr-shortcode-any-widget/faq/">FAQ</a>. 
    66Author: anmari 
    7 Version: 3.3 
     7Version: 3.4 
    88Author URI: http://webdesign.anmari.com 
    99 
     
    3636    return ($params); 
    3737} 
    38 /*-----------------------------------*/ 
     38 
    3939function amr_do_widget_area($atts) { 
    4040 
     
    8484return ($output); 
    8585} 
    86 /*-----------------------------------*/ 
     86 
    8787function amr_do_widget($atts) { 
    8888 
     
    322322    return $did_one; 
    323323} 
    324 /* ---------------------------------------------------------------------------*/ 
     324 
    325325function amr_reg_sidebar() {  // this is fired late, so hopefully any theme sidebars will have been registered already. 
    326326 
     
    352352//else {    echo '<h1>CANNOT REGISTER widgets_for_shortcodes SIDEBAR</h1>';} 
    353353} 
    354 /*-----------------------------------*/ 
     354 
    355355include ('amr-admin-form-html.php'); 
    356356include ('amr-utilities.php'); 
  • amr-shortcode-any-widget/trunk/amr-utilities.php

    r1379660 r1640354  
    2525} 
    2626 
    27 /*-----------------------------------*/ 
    2827function amr_get_widgets_sidebar($wid) {  
    2928/* walk through the registered sidebars with a name and find the id - will be something like sidebar-integer.   
     
    4342    return (false); // widget id not in any sidebar 
    4443} 
    45 /*-----------------------------------*/ 
     44 
    4645function amr_get_sidebar_id ($name) {  
    4746/* walk through the registered sidebars with a name and find the id - will be something like sidebar-integer.   
     
    5554    return (false); 
    5655} 
    57 /*-----------------------------------*/ 
     56 
    5857function amr_get_sidebar_name ($id) { /* dont need anymore ? or at least temporarily */ 
    5958/* walk through the registered sidebars with a name and find the id - will be something like sidebar-integer.  take the first one */ 
     
    6766    return (false); 
    6867} 
    69 /*-----------------------------------*/ 
     68 
    7069function amr_check_if_widget_debug() { 
    7170global $said; 
     
    9594        return false; 
    9695} 
    97 /*-----------------------------------*/ 
     96 
    9897function amr_show_widget_debug($type='', $name, $id, $sidebar) { 
    9998global $wp_registered_sidebars, $wp_registered_widgets, $_wp_sidebars_widgets, $debugcount; 
     
    114113    return ($text); 
    115114} 
    116 /*-----------------------------------*/ 
     115 
    117116function amr_save_shortcodes_sidebar() {  // when switching a theme, save the widgets we use for the shortcodes as they are getting overwritten 
    118117    $sidebars_widgets = wp_get_sidebars_widgets();  
     
    123122    }    
    124123} 
    125 /*-----------------------------------*/ 
     124 
    126125function amr_restore_shortcodes_sidebar() {  // when switching a theme, restore the widgets we use for the shortcodes as they are getting overwritten 
    127126global $_wp_sidebars_widgets; 
     
    135134     
    136135} 
    137 /*-----------------------------------*/ 
     136 
    138137function amr_upgrade_sidebar() { // added in 2014 February for compatibility.. keep for how long. till no sites running older versions.? 
    139138    $sidebars_widgets = wp_get_sidebars_widgets();  
     
    153152    <?php 
    154153} 
    155 /*-----------------------------------*/ 
     154 
    156155 
    157156?> 
  • amr-shortcode-any-widget/trunk/readme.txt

    r1485352 r1640354  
    22Contributors: anmari 
    33Tags: shortcode, widget, page, templates, page template, widget_area, sidebar 
    4 Tested up to: 4.7 alpha 
    5 Version: 3.3 
     4Tested up to: 4.8 alpha 
     5Version: 3.4 
    66Stable tag: trunk 
    77 
     
    1313 
    1414Add the do_widget shortcode to the page where you would like the widget to appear (or the do_widget_area) 
     15 
     16Please see detailed info on shortcodes and parameters under the installation tab (depending what the plugin directory developers have most recently done, this may be under the FAQ, or at the very least under the readme.) 
    1517 
    1618Using a widget more than once?  
     
    4547  
    4648*  [do_widget_area]  (will use the  "widgets in shortcodes" widget area / sidebar 
    47 *  [do_widget_area sidebarname] or [do_widget_area widget_area=sidebarname] for another sidebar or widget area - eg: to maximise likelihood of getting your theme's widget css to apply.   
     49*  [do_widget_area sidebarid] or [do_widget_area widget_area=sidebarid] for another sidebar or widget area - eg: to maximise likelihood of getting your theme's widget css to apply.   
    4850 
    4951**[do_widget ...] Parameters:** 
     
    8082== Frequently Asked Questions == 
    8183 
    82 PLEASE get your widgets working in a sidebar BEFORE activating this plugin, and PLEASE read https://wordpress.org/plugins/amr-shortcode-any-widget/installation/ and the settings page before asking any questions. 
     84PLEASE get your widgets working in a sidebar BEFORE activating this plugin, and PLEASE read the installation instructions (?is the plugin directory showing them!?) and the settings page before asking any questions. 
    8385 
    8486**Widget help, the widget is doing this, when it should do that**  
     
    157159 
    158160[do_widget_area] 
    159   
    160  
    161161 
    162162== Changelog == 
     163= Version 3.4 = 
     164*   Retested on wordpres 4.7 and 4.8 alpha and forcing update because of plugin directory needs trigger temporarily to show the installation instructions 
     165 
    163166= Version 3.3 = 
    164167*   Retested on wordpres 4.5 and 4.5.1-alpha 
    165168*   Re-instated the saving of widgets in the shortcode sidebar on theme switch and the reloading of these saved widgets when theme is reactivated (Was commented out for awhile back in 2014, but appears to be working well and very useful when you changing a theme but maybe forgotten about this page that has widget on it - yeah that could be bad ! 
    166169 
    167  
    168170= Version 3.2 = 
    169171*  tweaked some error messages and handle situation better where there are no widgets or possibly empty sidebars. 
    170  
    171172 
    172173= Version 3.1 = 
     
    257258= 1.0 = 
    258259*  Launch of the plugin 
    259  
    260  
    261  
    262260 
    263261== Screenshots == 
     
    2722707.  Shortcode parameters to remove widget-classes in theme like the twenty-fourteen theme (avoid white text on white background)  
    2732718.  Example of multiple rss widgets in twenty-fourteen theme 
    274  
    275  
    276   
     272  
Note: See TracChangeset for help on using the changeset viewer.