WordPress.org

Plugin Directory

Changeset 786234


Ignore:
Timestamp:
10/11/13 04:04:38 (6 months ago)
Author:
greenshady
Message:

Updating Sliding Panel to 0.2.0.

Location:
sliding-panel
Files:
28 added
8 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • sliding-panel/trunk/readme.txt

    r129594 r786234  
    11=== Sliding Panel === 
     2 
    23Contributors: greenshady 
    3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3687060 
    4 Tags: widget, jquery, javascript 
    5 Requires at least: 2.8 
    6 Tested up to: 2.8 
    7 Stable tag: 0.1 
     4Donate link: http://themehybrid.com/donate 
     5Tags: widget, sidebar, slider, jquery, javascript, html5 
     6Requires at least: 3.6 
     7Tested up to: 3.7 
     8Stable tag: 0.2.0 
     9License: GPLv2 or later 
     10License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    811 
    9 Adds a jQuery-based, fully-widgetized sliding panel to your WordPress-powered site. 
     12Adds a responsive sliding panel to the top of your WordPress-powered site. 
    1013 
    1114== Description == 
    1215 
    13 The *Sliding Panel* plugin adds a panel that opens and closes to the top of your WordPress-powered blog. If you're in need of an area to house more content yet not get in the way, this is the ideal plugin. 
     16The Sliding Panel plugin creates a new sidebar for your site that allows you to add widgets.  These widgets appear within a responsive sliding panel at the top of your site on the front end. 
    1417 
    15 The plugin is built off the wonderful jQuery library and is fully widgetized, so you can add any content you want. If you want a login form. Add it. If you want welcome text. No problem. Category list? You're covered. 
     18### Features 
    1619 
    17 **This plugin is for WordPress 2.8+ only.** 
     20* It's a jQuery-powered sliding panel.  That's a feature in-and-of itself, right? 
     21* Uses widgets, so you can add pretty much anything you can add to any other sidebar. 
     22* Uses the WordPress-packaged jQuery. 
     23* Will automatically display with any correctly-coded theme. 
     24* Supports HTML5 and Schema.org microdata. 
     25* It's responsive, so it'll look good on any device. 
    1826 
    19 **Features** 
     27### Professional Support 
    2028 
    21 * Uses widgets, so you can add pretty much anything. 
    22 * Uses the WordPress-packaged jQuery. 
    23 * Will auto-insert itself into the <a href="http://themehybrid.com/themes/hybrid" title="Hybrid WordPress theme framework">Hybrid</a>, <a href="http://themeshaper.com/thematic" title="Thematic WordPress theme">Thematic</a>, and Prodigy WordPress themes. 
    24 * Easy style-override system. 
     29If you need professional plugin support from me, the plugin author, you can access the support forums at [Theme Hybrid](http://themehybrid.com/support), which is a professional WordPress help/support site where I handle support for all my plugins and themes for a community of 40,000+ users (and growing). 
    2530 
    26 Full instructions for use can be found in the plugin's `readme.html` file, which is included with the plugin download. 
     31### Plugin Development 
     32 
     33If you're a theme author, plugin author, or just a code hobbyist, you can follow the development of this plugin on it's [GitHub repository](https://github.com/justintadlock/sliding-panel).  
     34 
     35### Donations 
     36 
     37Yes, I do accept donations.  If you want to buy me a beer or whatever, you can do so from my [donations page](http://themehybrid.com/donate).  I appreciate all donations, no matter the size.  Further development of this plugin is not contingent on donations, but they are always a nice incentive. 
    2738 
    2839== Installation == 
    2940 
    30 1. Upload `sliding-panel.zip` to the `/wp-content/plugins/` directory. 
    31 2. Activate the plugin through the *Plugins* menu in WordPress. 
    32 3. Add widgets to the *Sliding Panel* widget area from the *Widgets* panel. 
    33  
    34 More detailed instructions can be found in the plugin's `readme.html` file. 
     411. Unzip the `sliding-panel.zip` folder. 
     422. Upload the `sliding-panel` folder to your `/wp-content/plugins` directory. 
     433. In your WordPress admin, head over to the "Plugins" screen. 
     444. Activate the "Sliding Panel" plugin. 
     455. Go to your "Widgets" screen in the admin and add widgets to the "Sliding Panel" sidebar. 
    3546 
    3647== Frequently Asked Questions == 
    3748 
    38 = Why create this plugin? = 
     49### Why create this plugin? 
    3950 
    40 I added a sliding panel to my site at <a href="http://themehybrid.com" title="Theme Hybrid">Theme Hybrid</a>.  After numerous requests for the code, I thought it'd be best to package it up as a plugin and share with the community. 
     51When I originally launched my theme and plugin site, [Theme Hybrid](http://themehybrid.com), I had a sliding panel at the top of the site (no longer in use this on the site).  After numerous requests for the code, I thought it'd be best to package it up as a plugin and share with the community. 
    4152 
    42 = What does this plugin do, exactly? = 
     53### What does this plugin do, exactly? 
    4354 
    44 It adds a panel that opens and closes at the top of the site.  This allows users to easily add additional information without crowding the rest of their theme. 
     55The plugin adds a panel that opens and closes at the top of the site.  It creates a new "sidebar" that you can add widgets to, which will fill the sliding panel. 
    4556 
    46 = How do I use it? = 
     57### How do I use it? 
    4758 
    48 If you're using the <a href="http://themehybrid.com/themes/hybrid" title="Hybrid WordPress theme framework">Hybrid</a>, <a href="http://themeshaper.com/thematic" title="Thematic WordPress theme">Thematic</a>, or Prodigy WordPress theme, you only need to add widgets to the *Sliding Panel* widget area. 
     59After activating the plugin, go to the "Widgets" screen in your WordPress admin.  On that page, there will be a new sidebar called "Sliding Panel".  You can add any widget to that sidebar. 
    4960 
    50 If not using one of those themes, you need to add this code after the opening `<body>` tag in your theme's `header.php` file: 
     61This panel is optimized for displaying three widgets.  You might need to make custom CSS adjustments for any other number of widgets. 
    5162 
    52 ` 
    53 <?php if ( function_exists( 'get_sliding_panel' ) ) get_sliding_panel(); ?> 
    54 ` 
     63### Is it responsive? 
    5564 
    56 Full instructions are located in the plugin's `readme.html` file. 
     65Yes, it is responsive.  However, you need to keep in mind that different designs have different breakpoints (the points where the design changes based on screen size).  This plugin's breakpoints are merely based on common desktop, tablet, and phone screen sizes, which may or may not flow well with your theme's design. 
     66 
     67### Is it HTML5? 
     68 
     69Yes, absolutely.  It uses the most current HTML5 *standard* elements available? 
     70 
     71### Does it support microdata? 
     72 
     73Yes, the plugin supports [Schema.org's](http://schema.org) microdata vocabulary.  Of course, it's up to your theme to fully support microdata. 
     74 
     75### Does it work with the toolbar (admin bar)? 
     76 
     77Yes, this plugin has been tested with the default WordPress toolbar both on and off.  For [MP6 plugin](http://wordpress.org/plugins/mp6) users, I've also tested with its toolbar design. 
     78 
     79### How do I change the "Open" and "Close" labels? 
     80 
     81Under the "Appearance" menu in the WordPress admin, look for the "Sliding Panel" menu item.  Clicking on that will take you to the settings page for the plugin and allow you to change the labels. 
     82 
     83### Why does it look weird with my theme? 
     84 
     85It's impossible for a plugin like this to be designed to appear correctly with every theme on the planet.  I've done some testing with various themes to make the design work to a degree.  However, you might need to write some custom CSS in your theme (or child theme) to make it look better. 
     86 
     87### I can't click my theme's menu links at the very top of the page. How do I fix that? 
     88 
     89This is because the sliding panel is technically sitting on top of your menu.  Even if you can see the links but not click them, the panel is still there.  The only way to really fix this is to adjust the CSS in your theme to move your theme's menu down. 
     90 
     91Keep in mind that something like a sliding panel at the top of the page simply won't be a good feature with every theme on every site.  Something like this needs to really fit in with your design to be worth using on your site. 
     92 
     93### When I click open/close, nothing happens. What gives? 
     94 
     9599.9% of the time, this is because of a JavaScript conflict.  Often, it's because your theme or another plugin is doing something incorrectly.  There's not really anything I can do to "fix" that.  You'll need to figure out the theme/plugin causing the conflict and deactivate it. 
     96 
     97### The sliding panel doesn't appear on my site. Where is it? 
     98 
     99Did you add widgets (as described above) to the "Sliding Panel" sidebar.  You'll need to do that.  If you did, there's other potential issues as follows. 
     100 
     101#### Your theme doesn't use the wp_footer hook. 
     102 
     103Most often, this will be the problem.  Your theme's `footer.php` should look like this at the very bottom of the file: 
     104 
     105        <?php wp_footer(); ?> 
     106    </body> 
     107    </html> 
     108 
     109If you don't see that `wp_footer` code, you'll either need to add it or have your theme author add it. 
     110 
     111#### Your theme has conflicting CSS rules. 
     112 
     113Sometimes, themes just overwrite a lot of stuff globally.  You can talk to your theme author about it or stop by my support forums and see if we can figure it out together. 
     114 
     115### How do I add custom styles? 
     116 
     117All you need to do is open your theme's `style.css` file and add them in (I recommend  at the bottom of the file).  Here's some basic CSS to get you started. 
     118 
     119    /* Container */ 
     120    #sidebar-sliding-panel {} 
     121 
     122        /* Inside wrapper. */ 
     123        .sp-wrap {} 
     124     
     125            /* Container for widgets. */ 
     126            .sp-content {} 
     127     
     128                /* Inside wrapper for widgets. */ 
     129                .sp-content-wrap {} 
     130     
     131                    /* Individual widgets. */ 
     132                    .sp-content .widget {} 
     133                    .sp-content .widget-title {} 
     134     
     135            /* Toggle button. */ 
     136            .sp-toggle {} 
     137     
     138                /* Toggle button link. */ 
     139                .sp-toggle a {} 
     140 
     141### Are there plans for more features? 
     142 
     143Yes.  One thing I'd like to do in the next major version is to allow you to add custom colors and other design-related features, which should be easier than mucking about in CSS code. 
     144 
     145But, I'd really love to hear from you.  What features would you like to see in the next version? 
     146 
     147== Upgrade Notice == 
     148 
     149As of version 0.2.0, this plugin will automatically display with all themes. Users of older versions should remove the `get_sliding_panel()` function from their themes. 
    57150 
    58151== Screenshots == 
    59152 
    60 1. Sliding panel in its closed state. 
    61 2. Sliding pane in its open state. 
     1531. Sliding panel in its open view with widgets. 
    62154 
    63155== Changelog == 
    64156 
    65 **Version 0.1** 
     157### Version 0.2.0 
     158 
     159* Recoded the entire plugin from the ground up. 
     160* Plugin now displays with all correctly-coded themes. 
     161* Added an admin settings page to customize the open/close labels. 
     162 
     163### Version 0.1.0 
    66164 
    67165* Plugin launch.  Everything's new! 
  • sliding-panel/trunk/sliding-panel.php

    r129594 r786234  
    22/** 
    33 * Plugin Name: Sliding Panel 
    4  * Plugin URI: http://justintadlock.com/archives/2009/06/25/sliding-panel-wordpress-plugin 
    5  * Description: Creates a jQuery-based, fully-widgetized sliding panel. 
    6  * Version: 0.1 
     4 * Plugin URI: http://themehybrid.com/plugins/sliding-panel 
     5 * Description: A fully-widgetized and responsive sliding panel for your site. 
     6 * Version: 0.2.0 
    77 * Author: Justin Tadlock 
    88 * Author URI: http://justintadlock.com 
    99 * 
    10  * Creates a sliding panel for use on any WordPress site. This has been tested 
    11  * and auto-inserts itself for a few themes.  Other themes need to manually 
    12  * call the sliding panel within the content. 
    13  * @link http://themehybrid.com/themes/hybrid 
    14  * @link http://themeshaper.com/thematic 
    15  * 
    16  * The original idea for this plugin came from Web Kreation, but the plugin has been  
    17  * coded from the ground up to work with many themes, handle widgets, and work  
    18  * along with the version of jQuery packaged with WordPress. 
    19  * @link http://web-kreation.com/index.php/wordpress/implement-a-nice-clean-jquery-sliding-panel-in-wordpress-27 
    20  * 
    21  * @copyright 2009 
    22  * @version 0.1 
    23  * @author Justin Tadlock 
    24  * @link http://justintadlock.com/archives/2009/06/25/sliding-panel-wordpress-plugin 
    25  * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
    26  * 
    27  * This program is distributed in the hope that it will be useful, 
    28  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
    29  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
    30  * 
    31  * @package SlidingPanel 
    32  */ 
    33  
    34 /** 
    35  * Yes, we're localizing the plugin.  This partly makes sure non-English 
    36  * users can use it too.  To translate into your language use the 
    37  * en_EN.po file as as guide.  Poedit is a good tool to for translating. 
    38  * @link http://poedit.net 
    39  * 
    40  * @since 0.1 
    41  */ 
    42 load_plugin_textdomain( 'sliding-panel', false, '/sliding-panel' ); 
    43  
    44 /** 
    45  * Make sure we get the correct directory. 
    46  * @since 0.1 
    47  */ 
    48 if ( !defined('WP_CONTENT_URL' ) ) 
    49     define( 'WP_CONTENT_URL', get_option( 'siteurl' ) . '/wp-content' ); 
    50 if ( !defined( 'WP_CONTENT_DIR' ) ) 
    51     define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); 
    52 if ( !defined( 'WP_PLUGIN_URL' ) ) 
    53     define( 'WP_PLUGIN_URL', WP_CONTENT_URL. '/plugins' ); 
    54 if ( !defined( 'WP_PLUGIN_DIR' ) ) 
    55     define( 'WP_PLUGIN_DIR', WP_CONTENT_DIR . '/plugins' ); 
    56  
    57 /** 
    58  * Define constant paths to the plugin folder. 
    59  * @since 0.1 
    60  */ 
    61 define( SLIDING_PANEL, WP_PLUGIN_DIR . '/sliding-panel' ); 
    62 define( SLIDING_PANEL_URL, WP_PLUGIN_URL . '/sliding-panel' ); 
    63  
    64 /** 
    65  * Add actions 
    66  * @since 0.1 
    67  */ 
    68 add_action( 'init', 'sliding_panel_register_sidebars' ); 
    69 add_action( 'template_redirect', 'load_sliding_panel' ); 
    70  
    71 /** 
    72  * Loads JS and CSS if the sidebar is active and not in admin. 
    73  * @since 0.1 
    74  */ 
    75 if ( !is_admin() && is_active_sidebar( 'sliding-panel' ) ) : 
    76     wp_enqueue_style( 'sliding-panel', SLIDING_PANEL_URL . '/panel.css', false, 0.1, 'screen' ); 
    77     wp_enqueue_script( 'sliding-panel-js', SLIDING_PANEL_URL . '/panel.js', array( 'jquery' ), '0.1', true ); 
    78 endif; 
    79  
    80 /** 
    81  * Registers the sliding panel widget area. 
    82  * @uses register_sidebar() 
    83  * 
    84  * @since 0.1 
     10 * This program is free software; you can redistribute it and/or modify it under the terms of the GNU  
     11 * General Public License as published by the Free Software Foundation; either version 2 of the License,  
     12 * or (at your option) any later version. 
     13 * 
     14 * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without  
     15 * even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
     16 * 
     17 * You should have received a copy of the GNU General Public License along with this program; if not, write  
     18 * to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 
     19 * 
     20 * @package   SlidingPanel 
     21 * @version   0.2.0 
     22 * @since     0.1.0 
     23 * @author    Justin Tadlock <justin@justintadlock.com> 
     24 * @copyright Copyright (c) 2009 - 2013, Justin Tadlock 
     25 * @link      http://themehybrid.com/plugins/sliding-panel 
     26 * @license   http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 
     27 */ 
     28 
     29final class Sliding_Panel_Plugin { 
     30 
     31    /** 
     32     * Holds the instance of this class. 
     33     * 
     34     * @since  0.2.0 
     35     * @access private 
     36     * @var    object 
     37     */ 
     38    private static $instance; 
     39 
     40    /** 
     41     * Stores the directory path for this plugin. 
     42     * 
     43     * @since  0.2.0 
     44     * @access private 
     45     * @var    string 
     46     */ 
     47    private $directory_path; 
     48 
     49    /** 
     50     * Stores the directory URI for this plugin. 
     51     * 
     52     * @since  0.2.0 
     53     * @access private 
     54     * @var    string 
     55     */ 
     56    private $directory_uri; 
     57 
     58    /** 
     59     * Plugin setup. 
     60     * 
     61     * @since  0.2.0 
     62     * @access public 
     63     * @return void 
     64     */ 
     65    public function __construct() { 
     66 
     67        /* Set the properties needed by the plugin. */ 
     68        add_action( 'plugins_loaded', array( $this, 'setup' ), 1 ); 
     69 
     70        /* Internationalize the text strings used. */ 
     71        add_action( 'plugins_loaded', array( $this, 'i18n' ), 2 ); 
     72 
     73        /* Load the admin files. */ 
     74        add_action( 'plugins_loaded', array( $this, 'admin' ), 4 ); 
     75 
     76        /* Register sidebars late so ours come after theme sidebars. */ 
     77        add_action( 'widgets_init', array( $this, 'register_sidebars' ), 95 ); 
     78 
     79        /* Load scripts and styles. */ 
     80        add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ), 5 ); 
     81 
     82        /* Load the sliding panel sidebar in the footer. */ 
     83        add_action( 'wp_footer', array( $this, 'sliding_panel' ), 0 ); 
     84    } 
     85 
     86    /** 
     87     * Defines the directory path and URI for the plugin. 
     88     * 
     89     * @since  0.2.0 
     90     * @access public 
     91     * @return void 
     92     */ 
     93    public function setup() { 
     94 
     95        $this->directory_path = trailingslashit( plugin_dir_path( __FILE__ ) ); 
     96        $this->directory_uri  = trailingslashit( plugin_dir_url(  __FILE__ ) ); 
     97    } 
     98 
     99    /** 
     100     * Loads the translation files. 
     101     * 
     102     * @since  0.2.0 
     103     * @access public 
     104     * @return void 
     105     */ 
     106    public function i18n() { 
     107 
     108        /* Load the translation of the plugin. */ 
     109        load_plugin_textdomain( 'sliding-panel', false, 'sliding-panel/languages' ); 
     110    } 
     111 
     112    /** 
     113     * Loads the admin functions and files. 
     114     * 
     115     * @since  0.2.0 
     116     * @access public 
     117     * @return void 
     118     */ 
     119    public function admin() { 
     120 
     121        if ( is_admin() ) 
     122            require_once( "{$this->directory_path}admin/admin.php" ); 
     123    } 
     124 
     125    /** 
     126     * Registers sidebars. 
     127     * 
     128     * @since  0.2.0 
     129     * @access public 
     130     * @return void 
     131     */ 
     132    public function register_sidebars() { 
     133 
     134        register_sidebar(  
     135            array( 
     136                'id'            => 'sliding-panel', 
     137                'name'          => __( 'Sliding Panel', 'sliding-panel' ), 
     138                'before_widget' => '<section id="%1$s" class="widget %2$s widget-%2$s">', 
     139                'after_widget'  => '</section>', 
     140                'before_title'  => '<h3 class="widget-title">', 
     141                'after_title'   => '</h3>' 
     142            ) 
     143        ); 
     144    } 
     145 
     146    /** 
     147     * Loads scripts and styles. 
     148     * 
     149     * @since  0.2.0 
     150     * @access public 
     151     * @return void 
     152     */ 
     153    public function enqueue_scripts() { 
     154 
     155        /* Only load scripts if the sliding panel sidebar is active. */ 
     156        if ( is_active_sidebar( 'sliding-panel' ) ) { 
     157 
     158            /* Register the sliding panel script. */ 
     159            wp_register_script( 'sliding-panel', "{$this->directory_uri}js/sliding-panel.js", array( 'jquery' ), '', true ); 
     160 
     161            /* Get the plugin options. */ 
     162            $settings = get_option( 
     163                'plugin_sliding_panel',  
     164                array( 
     165                    'label_open'  => __( 'Open',  'sliding-panel' ), 
     166                    'label_close' => __( 'Close', 'sliding-panel' ) 
     167                ) 
     168            ); 
     169 
     170            /* Localize the text strings to pass to the script. */ 
     171            wp_localize_script( 
     172                'sliding-panel', 
     173                'sp_l10n', 
     174                array( 
     175                    'open'  => esc_js( $settings['label_open']  ), 
     176                    'close' => esc_js( $settings['label_close'] ) 
     177                ) 
     178            ); 
     179 
     180            /* Enqueue the sliding panel script. */ 
     181            wp_enqueue_script( 'sliding-panel' ); 
     182 
     183            /* Enqueue the sliding panel stylesheet. */ 
     184            wp_enqueue_style( 'sliding-panel', "{$this->directory_uri}css/sliding-panel.css" ); 
     185        } 
     186    } 
     187 
     188    /** 
     189     * Loads the sliding panel sidebar. 
     190     * 
     191     * @since  0.2.0 
     192     * @access public 
     193     * @return void 
     194     */ 
     195    public function sliding_panel() { 
     196        require_once( "{$this->directory_path}inc/sidebar-sliding-panel.php" ); 
     197    } 
     198 
     199    /** 
     200     * Returns the instance. 
     201     * 
     202     * @since  0.2.0 
     203     * @access public 
     204     * @return object 
     205     */ 
     206    public static function get_instance() { 
     207 
     208        if ( !self::$instance ) 
     209            self::$instance = new self; 
     210 
     211        return self::$instance; 
     212    } 
     213} 
     214 
     215Sliding_Panel_Plugin::get_instance(); 
     216 
     217/** 
     218 * @since      0.1.0 
     219 * @deprecated 0.2.0 
    85220 */ 
    86221function sliding_panel_register_sidebars() { 
    87     register_sidebar( array( 'name' => __('Sliding Panel', 'sliding-panel'), 'id' => 'sliding-panel', 'before_widget' => '<div id="%1$s" class="widget %2$s widget-%2$s"><div class="widget-inside">', 'after_widget' => '</div></div>', 'before_title' => '<h3 class="widget-title">', 'after_title' => '</h3>' ) ); 
    88 } 
    89  
    90 /** 
    91  * Hooks the sliding panel into one of the available action hooks. 
    92  * This works with the Hybrid, Thematic, and Prodigy theme. 
    93  * @uses hybrid_before_html() 
    94  * @uses thematic_before() 
    95  * @uses prodigy_before() 
    96  * 
    97  * @since 0.1 
     222    _deprecated_function( __FUNCTION__, '0.2.0', 'Sliding_Panel_Plugin::register_sidebars()' ); 
     223} 
     224 
     225/** 
     226 * @since      0.1.0 
     227 * @deprecated 0.2.0 
    98228 */ 
    99229function load_sliding_panel() { 
    100     if ( is_admin() ) 
    101         return ''; 
    102  
    103     add_action( 'hybrid_before_html', 'get_sliding_panel' ); 
    104     add_action( 'thematic_before', 'get_sliding_panel' ); 
    105     add_action( 'prodigy_before', 'get_sliding_panel' ); 
    106 } 
    107  
    108 /** 
    109  * Displays the sliding panel if the widget area is active. 
    110  * This can be manually called in the templates with: 
    111  *  <?php if ( function_exists( 'sliding_panel' ) ) sliding_panel(); ?> 
    112  * 
    113  * @uses is_active_sidebar() 
    114  * @since 0.1 
     230    _deprecated_function( __FUNCTION__, '0.2.0', '' ); 
     231} 
     232 
     233/** 
     234 * @since      0.1.0 
     235 * @deprecated 0.2.0 
    115236 */ 
    116237function get_sliding_panel() { 
    117  
    118     if ( is_active_sidebar( 'sliding-panel' ) ) : ?> 
    119  
    120     <div id="sliding-panel-container"><div id="sliding-panel"> 
    121  
    122         <div class="panel"> 
    123             <div class="panel-content"> 
    124                 <?php dynamic_sidebar( 'sliding-panel' ); ?> 
    125             </div> 
    126         </div> 
    127  
    128         <div class="tab"> 
    129             <div class="toggle"> 
    130                 <a class="open" title="<?php _e('Open panel', 'sliding-panel'); ?>"><?php _e('Open <span class="arrow">&darr;</span>', 'sliding-panel'); ?></a> 
    131                 <a class="close" title="<?php _e('Close panel', 'sliding-panel'); ?>" style="display: none;"><?php _e('Close <span class="arrow">&uarr;</span>', 'sliding-panel'); ?></a> 
    132             </div> 
    133         </div> 
    134  
    135     </div></div> 
    136  
    137     <?php endif; 
     238    _deprecated_function( __FUNCTION__, '0.2.0', 'Sliding_Panel_Plugin::sliding_panel()' ); 
    138239} 
    139240 
Note: See TracChangeset for help on using the changeset viewer.