/**
  * Displays the WP-Members login widget.
  *
  * @param array $args
  * @param array $instance
  */
 function widget($args, $instance)
 {
     extract($args);
     // Get the Widget Title
     $title = array_key_exists('title', $instance) ? $instance['title'] : __('Login Status', 'wp-members');
     echo $before_widget;
     /**
      * Filter the widget ID.
      *
      * @since ?.?
      *
      * @param string The ID for the sidebar widget.
      */
     echo '<div id="' . apply_filters('wpmem_widget_id', 'wp-members') . '">';
     /**
      * Filter the widget title.
      *
      * @since ?.?
      *
      * @param string $title The widget title.
      */
     echo $before_title . apply_filters('wpmem_widget_title', $title) . $after_title;
     // The Widget
     if (function_exists('wpmem')) {
         wpmem_do_sidebar();
     }
     echo '</div>';
     echo $after_widget;
 }
 /**
  * Displays the sidebar
  *
  * @since 2.0
  *
  * @uses wpmem_do_sidebar()
  */
 function wpmem_inc_sidebar()
 {
     include_once 'wp-members-sidebar.php';
     wpmem_do_sidebar();
 }
Example #3
0
File: core.php Project: pab44/pab44
 /**
  * Displays the sidebar.
  *
  * This function is a wrapper for wpmem_do_sidebar().
  *
  * @since 2.0.0
  * @deprecated Unknown
  */
 function wpmem_inc_sidebar()
 {
     wpmem_write_log("WP-Members function wpmem_inc_sidebar() is deprecated. No alternative function exists");
     /**
      * Load the sidebar functions.
      */
     include_once WPMEM_PATH . 'inc/sidebar.php';
     // Render the sidebar.
     wpmem_do_sidebar();
 }
Example #4
0
 /**
  * Displays the sidebar.
  *
  * This function is a wrapper for wpmem_do_sidebar().
  *
  * @since 2.0
  *
  * @uses wpmem_do_sidebar()
  */
 function wpmem_inc_sidebar()
 {
     include_once WPMEM_PATH . 'inc/sidebar.php';
     wpmem_do_sidebar();
 }
Example #5
0
 /**
  * Displays the sidebar.
  *
  * This function is a wrapper for wpmem_do_sidebar().
  *
  * @since 2.0.0
  *
  * @todo This function may be deprecated.
  */
 function wpmem_inc_sidebar()
 {
     /**
      * Load the sidebar functions.
      */
     include_once WPMEM_PATH . 'inc/sidebar.php';
     // Render the sidebar.
     wpmem_do_sidebar();
 }
Example #6
0
 /**
  * Displays the WP-Members login widget.
  *
  * @param array $args
  * @param array $instance
  */
 function widget($args, $instance)
 {
     extract($args);
     // Get the Widget Title
     if (array_key_exists('title', $instance)) {
         $title = apply_filters('widget_title', $instance['title']);
     } else {
         $title = __('Login Status', 'wp-members');
     }
     echo $before_widget;
     echo '<div id="wp-members">';
     // The Widget Title
     echo $before_title . $title . $after_title;
     // The Widget
     if (function_exists('wpmem')) {
         wpmem_do_sidebar();
     }
     echo '</div>';
     echo $after_widget;
 }
Example #7
0
 /**
  * Displays the WP-Members login widget.
  *
  * @param array $args
  * @param array $instance
  */
 function widget($args, $instance)
 {
     // Get the Widget Title
     $title = array_key_exists('title', $instance) ? $instance['title'] : __('Login Status', 'wp-members');
     $redirect_to = array_key_exists('redirect_to', $instance) ? $instance['redirect_to'] : '';
     echo $args['before_widget'];
     /**
      * Filter the widget ID.
      *
      * @since ?.?
      *
      * @param string The ID for the sidebar widget.
      */
     echo '<div id="' . apply_filters('wpmem_widget_id', 'wp-members') . '">';
     /**
      * Filter the widget title.
      *
      * @since ?.?
      *
      * @param string $title The widget title.
      */
     echo $args['before_title'] . apply_filters('wpmem_widget_title', $title) . $args['after_title'];
     // The Widget
     if (function_exists('wpmem_do_sidebar')) {
         wpmem_do_sidebar($redirect_to);
     }
     echo '</div>';
     echo $args['after_widget'];
 }