function widget_chaostheory_meta($args)
{
    extract($args);
    if (empty($title)) {
        $title = __('Meta', 'chaostheory');
    }
    ?>
		<?php 
    echo $before_widget;
    ?>
			<?php 
    echo $before_title . $title . $after_title;
    ?>
			<ul>
				<?php 
    wp_register();
    ?>
				<li><?php 
    wp_loginout();
    ?>
</li>
				<?php 
    wp_meta();
    ?>
			</ul>
		<?php 
    echo $after_widget;
}
Example #2
0
function widget_thematic_meta($args)
{
    extract($args);
    if (empty($title)) {
        $title = __('Meta', 'thematic');
    }
    ?>
			<?php 
    echo $before_widget;
    ?>
				<?php 
    echo thematic_before_title() . $title . thematic_after_title();
    ?>
				<ul>
					<?php 
    wp_register();
    ?>
					<li><?php 
    wp_loginout();
    ?>
</li>
					<?php 
    wp_meta();
    ?>
				</ul>
			<?php 
    echo $after_widget;
}
Example #3
0
 function widget($args, $instance)
 {
     $title = apply_filters('widget_title', $instance['title']);
     echo $before_widget;
     if ($title) {
         echo '<h3>';
         echo $before_title . $title . $after_title;
         echo '</h3>';
     }
     echo '<div class="textwidget">';
     echo '<ul>';
     if (is_user_logged_in()) {
         echo '<li class="loggedin">';
         echo wp_loginout('/');
         echo '</li>';
         echo '<li><a href="https://bmp.saanich.ca/wp-admin/edit.php?post_type=qa_faqs">Edit or add BMPS</a></li>';
     } else {
         echo '<li class="loggedout"><a href="https://bmp.saanich.ca/wp-login.php">Log in</a></li>';
     }
     echo '<li><a href="https://bmp.saanich.ca">BMP home page</a></li>';
     echo '<li><a href="http://www.env.gov.bc.ca/wld/BMP/bmpintro.html">Ministry of Environment BMP Guidelines</a></li>';
     echo '<li><a href="http://www.env.gov.bc.ca/wld/index.htm">Ministry of Environment Ecosystems Branch</a></li>';
     echo '</ul>';
     echo '</div>';
     echo $after_widget;
 }
function wpuf_edit_users()
{
    ob_start();
    //if user is logged in
    if (is_user_logged_in()) {
        //this user can edit the users
        if (current_user_can('edit_users')) {
            $action = isset($_GET['action']) ? $_GET['action'] : 'show';
            $user_id = isset($_GET['user_id']) ? intval($_GET['user_id']) : 0;
            $userdata = get_userdata($user_id);
            switch ($action) {
                case 'edit':
                    //if user exists
                    if ($user_id && $userdata) {
                        wpuf_user_edit_profile_form($user_id);
                    } else {
                        printf(__("User doesn't exists", 'wpuf'));
                    }
                    break;
                case 'wpuf_add_user':
                    wpuf_add_user();
                    break;
                default:
                    wpuf_show_users();
            }
        } else {
            // user don't have any permission
            printf(__("You don't have permission for this purpose", 'wpuf'));
        }
    } else {
        //user is not logged in
        printf(__("This page is restricted. Please %s to view this page.", 'wpuf'), wp_loginout('', false));
    }
    return ob_get_clean();
}
function pickle_top_utility()
{
    //the utility html starts here
    ?>
    <div class="top_container">
        <div class="top_container_content">
            <div id="login">
                <span class="loginout"><?php 
    wp_loginout();
    ?>
</span>
                <span class="register"><?php 
    wp_register('| ', '');
    ?>
</span>
            </div>
            <div id="greeting">
                <p>Please tell us what pickle pleases you. <span style="color:red;">Join Here</span></p>
            </div>
            <div class="search_form_container">
                <?php 
    get_search_form();
    ?>
            </div>
        </div>
    </div>
    <?php 
    //the utility html ends here
}
Example #6
0
 function widget_simple_login($args)
 {
     extract($args);
     $options = get_option('widget_simple_login');
     $title = apply_filters('widget_title', $options['title']);
     switch ($options['redirectto']) {
         case "site":
             $redirect = "/";
             break;
         case "custom":
             $redirect = $options['customredirect'];
             break;
         case "actual":
             $redirect = $_SERVER['REQUEST_URI'];
             break;
         case "admin":
             //default setting
         //default setting
         default:
             $redirect = "";
     }
     echo $before_widget;
     echo $before_title . $title . $after_title;
     echo "\t<ul>\n\t\t";
     wp_register();
     echo "\n\t\t<li>";
     wp_loginout($redirect);
     echo "</li>\n\t</ul>\n";
     echo $after_widget;
 }
Example #7
0
function ons_display_open_header()
{
    ?>

  <div class="loginout">
    <span><?php 
    wp_loginout($redirect);
    ?>
</span>
    <span> | </span>
    <span><?php 
    wp_register('', '');
    ?>
</span>
  </div>

  <!-- header links -->
  <div style="position: absolute; top: 25px;">
    <img id="Image-Maps_7201206261231527" src="/wp-content/uploads/2012/06/transparent.png"" usemap="#Image-Maps_7201206261231527" border="0" width="1000" height="100" alt="">
    <map id="_Image-Maps_7201206261231527" name="Image-Maps_7201206261231527">
      <area shape="rect" coords="5,25,188,115" href="http://neighbourhoodstudy.ca/" alt="Ottawa Neighbourhood Study" title="Ottawa Neighbourhood Study">
      <area shape="rect" coords="197,53,348,120" href="http://ottawa.ca/en/health_safety/about/oph/index.html" alt="Ottawa Public Health" title="Ottawa Public Health">
      <area shape="rect" coords="353,53,477,120" href="http://www.uottawa.ca/" alt="University of Ottawa" title="University of Ottawa">
      <area shape="rect" coords="478,53,622,120" href="http://www.coalitionottawa.ca" alt="Coalition of Community and Health" title="Coalition of Community and Health">
      <area shape="rect" coords="622,53,715,120" href="http://www.ibm.com" alt="IBM" title="IBM">
      <area shape="rect" coords="716,53,844,120" href="http://www.champlainlhin.on.ca" alt="Champlain Local Health" title="Champlain Local Health">
      <area shape="rect" coords="847,53,991,120" href="http://www.unitedway.org" alt="United Way" title="United Way">
    </map>
  </div>

<?php 
}
function widget_itheme_meta()
{
    ?>
      <!--sidebox start -->
      <div id="meta" class="dbx-box">
        <h3 class="dbx-handle">Meta</h3>
        <div class="dbx-content">
          <ul>
              <li class="rss"><a href="<?php 
    bloginfo('rss2_url');
    ?>
">Entries (RSS)</a></li>
              <li class="rss"><a href="<?php 
    bloginfo('comments_rss2_url');
    ?>
">Comments (RSS)</a></li>
              <li class="wordpress"><a href="http://www.wordpress.org" title="Powered by WordPress">WordPress</a></li>
              <li class="login"><?php 
    wp_loginout();
    ?>
</li>
          </ul>
        </div>
      </div>
      <!--sidebox end -->

<?php 
}
Example #9
0
function suffusion_sbtab_meta()
{
    echo '<ul>';
    wp_register();
    ?>
		<li><?php 
    wp_loginout();
    ?>
</li>
		<li class="rss"><a href="<?php 
    bloginfo('rss2_url');
    ?>
" title="<?php 
    echo esc_attr(__('Syndicate this site using RSS 2.0', 'suffusion'));
    ?>
"><?php 
    _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>', 'suffusion');
    ?>
</a></li>
		<li class="rss"><a href="<?php 
    bloginfo('comments_rss2_url');
    ?>
" title="<?php 
    echo esc_attr(__('The latest comments to all posts in RSS', 'suffusion'));
    ?>
"><?php 
    _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>', 'suffusion');
    ?>
</a></li>
<?php 
    wp_meta();
    echo '</ul>';
}
Example #10
0
        function widget($args, $instance)
        {
            extract($args);
            $title = apply_filters('widget_title', $instance['title']);
            $meta = $instance['meta'];
            if (!is_user_logged_in() || is_user_logged_in() && $meta) {
                echo $before_widget;
                if ($title) {
                    echo $before_title . $title . $after_title;
                }
                if (!is_user_logged_in()) {
                    wp_connect();
                } else {
                    $url = is_singular() ? get_permalink() : '';
                    ?>
			<ul>
			<?php 
                    wp_register();
                    ?>
			<li><?php 
                    wp_loginout($url);
                    ?>
</li>
			</ul>
        <?php 
                }
                echo $after_widget;
            }
        }
    function get_sidebar($index)
    {
        if (!dynamic_sidebar($index)) {
            if (!dynamic_sidebar('Default Sidebar')) {
                ?>
					<div class="sidebarbox widget_meta">		
						
						<h3 class="sidebar-title"><span>Meta</span></h3>
							<ul>
								<?php 
                wp_register();
                ?>
								<li><?php 
                wp_loginout();
                ?>
</li>
								<?php 
                wp_meta();
                ?>
							</ul>

					</div>
				<?php 
            }
        }
    }
Example #12
0
function add_login_logout_link($items, $args)
{
    ob_start();
    wp_loginout('index.php');
    $loginoutlink = ob_get_contents();
    ob_end_clean();
    $items .= '<li>' . $loginoutlink . '</li>';
    return $items;
}
Example #13
0
    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', empty($instance['title']) ? __('Meta', 'tfuse') : $instance['title'], $instance, $this->id_base);
        $before_widget = ' <div id="meta-' . $args['widget_id'] . '" class="widget-container widget_meta">';
        $after_widget = '</div>';
        $before_title = '<h3 class="widget-title">';
        $after_title = '</h3>';
        echo $before_widget;
        $title = tfuse_qtranslate($title);
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>

			<ul>
			<?php 
        wp_register();
        ?>

			<li><?php 
        wp_loginout();
        ?>
</li>
			<li><a href="<?php 
        bloginfo('rss2_url');
        ?>
" title="<?php 
        echo esc_attr(__('Syndicate this site using RSS 2.0', 'tfuse'));
        ?>
"><?php 
        _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>');
        ?>
</a></li>
			<li><a href="<?php 
        bloginfo('comments_rss2_url');
        ?>
" title="<?php 
        echo esc_attr(__('The latest comments to all posts in RSS', 'tfuse'));
        ?>
"><?php 
        _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>');
        ?>
</a></li>
			<li><a href="http://wordpress.org/" title="<?php 
        echo esc_attr(__('Powered by WordPress, state-of-the-art semantic personal publishing platform.', 'tfuse'));
        ?>
">WordPress.org</a></li>
			<?php 
        wp_meta();
        ?>

			</ul>
<?php 
        echo $after_widget;
    }
 /**
  *
  * Display the login form with shortcode
  *
  */
 public function clp_display()
 {
     $eol = "\n";
     ob_start();
     echo '<div class="a5_custom_login_container" style="margin: 5px; padding: 20px;">' . $eol;
     if (!is_user_logged_in()) {
         $formargs['redirect'] = isset(self::$options['redirect']) && !empty(self::$options['redirect']) ? self::$options['redirect'] : home_url($_SERVER['REQUEST_URI']);
         $formargs['form_id'] = isset(self::$options['form_id']) && !empty(self::$options['form_id']) ? self::$options['form_id'] : 'loginform';
         $formargs['label_username'] = isset(self::$options['label_username']) && !empty(self::$options['label_username']) ? self::$options['label_username'] : __('Username');
         $formargs['label_password'] = isset(self::$options['label_password']) && !empty(self::$options['label_password']) ? self::$options['label_password'] : __('Password');
         $formargs['label_remember'] = isset(self::$options['label_remember']) && !empty(self::$options['label_remember']) ? self::$options['label_remember'] : __('Remember Me');
         $formargs['label_log_in'] = isset(self::$options['label_log_in']) && !empty(self::$options['label_log_in']) ? self::$options['label_log_in'] : __('Log In');
         $formargs['id_username'] = isset(self::$options['id_username']) && !empty(self::$options['id_username']) ? self::$options['id_username'] : '******';
         $formargs['id_password'] = isset(self::$options['id_password']) && !empty(self::$options['id_password']) ? self::$options['id_password'] : '******';
         $formargs['id_remember'] = isset(self::$options['id_remember']) && !empty(self::$options['id_remember']) ? self::$options['id_remember'] : 'rememberme';
         $formargs['id_submit'] = isset(self::$options['id_submit']) && !empty(self::$options['id_submit']) ? self::$options['id_submit'] : 'wp-submit';
         $formargs['remember'] = isset(self::$options['hide_remember']) && !empty(self::$options['hide_remember']) ? false : true;
         $formargs['value_username'] = isset(self::$options['value_username']) && !empty(self::$options['value_username']) ? self::$options['value_username'] : NULL;
         $formargs['value_remember'] = isset(self::$options['value_remember']) && !empty(self::$options['value_remember']) ? true : false;
         if (isset(self::$options['title']) && !empty(self::$options['title'])) {
             $title_tag = ' title="' . self::$options['title'] . '"';
         }
         if (isset(self::$options['logo']) && !empty(self::$options['logo'])) {
             $img_tag = '<img src="' . self::$options['logo'] . '"' . $title_tag . ' />';
         }
         if (isset($img_tag)) {
             echo isset(self::$options['url']) && !empty(self::$options['url']) ? '<a href="' . self::$options['url'] . '"' . $title_tag . '>' . $img_tag . '</a>' : $img_tag;
         }
         if (isset(self::$options['login_message']) && !empty(self::$options['login_message'])) {
             echo self::$options['login_message'];
         }
         wp_login_form($formargs);
         if (isset(self::$options['login_footer']) && !empty(self::$options['login_footer'])) {
             echo self::$options['login_footer'];
         }
     } else {
         wp_loginout(home_url());
         echo ' | ';
         wp_register('', '');
     }
     echo '</div>' . $eol;
     $output = ob_get_contents();
     if (!empty(self::$options['_login_form_top'])) {
         $output = str_replace(self::$options['_login_form_top'], self::$options['login_form_top'], $output);
     }
     if (!empty(self::$options['_login_form'])) {
         $output = str_replace(self::$options['_login_form'], self::$options['login_form'], $output);
     }
     if (!empty(self::$options['_login_form_bottom'])) {
         $output = str_replace(self::$options['_login_form_bottom'], self::$options['login_form_bottom'], $output);
     }
     ob_end_clean();
     return $output;
 }
Example #15
0
function add_login_logout_link($items, $args)
{
    $loginoutlink = wp_loginout('index.php', false);
    if (!is_user_logged_in()) {
        $registerlink = wp_register('', '', false);
        $items .= '<li class="menu-item login">' . $loginoutlink . '</li>' . '<li class="menu-item register">' . $registerlink . '</li>';
    } else {
        $items .= '<li class="menu-item login">' . $loginoutlink . '</li>';
    }
    return $items;
}
 function widget($args, $instance)
 {
     extract($args, EXTR_SKIP);
     echo $before_widget;
     // set widget title when logged out
     if (!is_user_logged_in()) {
         $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
         if (!empty($title)) {
             echo $before_title . $title . $after_title;
         }
     }
     // start widget display code
     if (function_exists('bp_is_active')) {
         // check is user is logged in
         if (is_user_logged_in()) {
             echo "<div id='sidebarme'>";
             echo "<a href='" . bp_loggedin_user_domain() . "'>";
             echo bp_loggedin_user_avatar('type=thumb');
             echo "</a>";
             echo "<ul class='sidebarme-quicklinks'>";
             echo "<li class='sidebarme-username'>" . bp_core_get_userlink(bp_loggedin_user_id()) . "</li>";
             echo "<li class='sidebarme-profile'>";
             echo "<a href='" . bp_loggedin_user_domain() . "profile/edit'>" . __('Edit Profile', 'boss') . "</a>";
             echo " &middot; ";
             echo wp_loginout();
             echo "</li>";
             echo "</ul>";
             echo "</div>";
             // check if user is logged out
         } else {
             echo "<form name='login-form' id='sidebar-login-form' class='standard-form' action='" . site_url('wp-login.php', 'login_post') . "' method='post'>";
             echo "<label>" . __('Username', 'boss') . "</label>";
             $return = isset($_POST['value']) ? $_POST['value'] : '';
             $return .= "<input type='text' name='log' id='sidebar-user-login' class='input' value='";
             if (isset($user_login)) {
                 $return .= esc_attr(stripslashes($user_login));
             }
             $return .= "' tabindex='97' />";
             echo $return;
             echo "<label>" . __('Password', 'boss') . "</label>";
             echo "<input type='password' name='pwd' id='sidebar-user-pass' class='input' value='' tabindex='98' />";
             echo "<p class='forgetmenot'><input name='rememberme' type='checkbox' id='sidebar-rememberme' value='forever' tabindex='99' /> " . __('Remember Me', 'boss') . "</p>";
             echo do_action('bp_sidebar_login_form');
             echo "<input type='submit' name='wp-submit' id='sidebar-wp-submit' value='" . __('Log In', 'boss') . "' tabindex='100' />";
             if (bp_get_signup_allowed()) {
                 echo " <a class='sidebar-wp-register' href='" . bp_get_signup_page() . "'>" . __('Register', 'boss') . "</a>";
             }
             echo "</form>";
         }
     }
     // end widget display code
     echo $after_widget;
 }
Example #17
0
 /**
  * Handles the edit post shortcode
  *
  * @return string generated form by the plugin
  */
 function shortcode()
 {
     ob_start();
     if (is_user_logged_in()) {
         $this->prepare_form();
     } else {
         printf(__("This page is restricted. Please %s to view this page.", 'wpuf'), wp_loginout('', false));
     }
     $content = ob_get_contents();
     ob_end_clean();
     return $content;
 }
 /**
  * Handle's user dashboard functionality
  *
  * Insert shortcode [wpuf_dashboard] in a page to
  * show the user dashboard
  *
  * @since 0.1
  */
 function shortcode($atts)
 {
     extract(shortcode_atts(array('post_type' => 'post'), $atts));
     ob_start();
     if (is_user_logged_in()) {
         $this->post_listing($post_type);
     } else {
         printf(__("This page is restricted. Please %s to view this page.", 'wpuf'), wp_loginout('', false));
     }
     $content = ob_get_contents();
     ob_end_clean();
     return $content;
 }
    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', empty($instance['title']) ? __('Meta') : $instance['title'], $instance, $this->id_base);
        echo $before_widget;
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>
			<ul>
			<?php 
        wp_register();
        ?>
			<li><?php 
        wp_loginout();
        ?>
</li>
			<li><a rel="nofollow" href="<?php 
        bloginfo('rss2_url');
        ?>
" title="<?php 
        echo esc_attr(__('Syndicate this site using RSS 2.0'));
        ?>
"><?php 
        _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>');
        ?>
</a></li>
			<li><a rel="nofollow" href="<?php 
        bloginfo('comments_rss2_url');
        ?>
" title="<?php 
        echo esc_attr(__('The latest comments to all posts in RSS'));
        ?>
"><?php 
        _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>');
        ?>
</a></li>
			<li><a rel="nofollow" href="http://wordpress.org/" title="<?php 
        echo esc_attr(__('Powered by WordPress, state-of-the-art semantic personal publishing platform.'));
        ?>
">WordPress.org</a></li>
			<?php 
        wp_meta();
        ?>
			</ul>
<?php 
        echo $after_widget;
    }
Example #20
0
function limit_access($value, $post_id, $field)
{
    if (!is_admin()) {
        $url = esc_url(get_permalink($post_id));
        //If the user is in the sales section
        $url = strpos($url, 'sales');
        if (!members_can_current_user_view_post($post_id)) {
            $value = members_get_post_error_message($post_id) . members_login_form_shortcode();
        } else {
            if (members_can_current_user_view_post($post_id) && is_user_logged_in() && $field['name'] == 'content' && $url > 0) {
                $value = '<div class="loginout">' . wp_loginout(get_permalink($post_id), false) . '</div>' . $value;
            }
        }
    }
    return $value;
}
Example #21
0
    public function widget($args, $instance)
    {
        /** This filter is documented in wp-includes/default-widgets.php */
        $title = apply_filters('widget_title', empty($instance['title']) ? __('Meta') : $instance['title'], $instance, $this->id_base);
        echo $args['before_widget'];
        if ($title) {
            echo $args['before_title'] . $title . $args['after_title'];
        }
        ?>
			<ul>
			<?php 
        wp_register();
        ?>
			<li><?php 
        wp_loginout();
        ?>
</li>
			<li><a href="<?php 
        bloginfo('rss2_url');
        ?>
"><?php 
        _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>');
        ?>
</a></li>
			<li><a href="<?php 
        bloginfo('comments_rss2_url');
        ?>
"><?php 
        _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>');
        ?>
</a></li>
<?php 
        /**
         * Filter the "Powered by WordPress" text in the Meta widget.
         *
         * @since 3.6.0
         *
         * @param string $title_text Default title text for the WordPress.org link.
         */
        echo apply_filters('widget_meta_poweredby', sprintf('<li><a href="%s" title="%s">%s</a></li>', esc_url(__('https://wordpress.org/')), esc_attr__('Powered by WordPress, state-of-the-art semantic personal publishing platform.'), _x('WordPress.org', 'meta widget link text')));
        wp_meta();
        ?>
			</ul>
<?php 
        echo $args['after_widget'];
    }
Example #22
0
 public function login_form()
 {
     if ($_REQUEST['login'] == 'failed') {
         echo " <strong>ERROR</strong>: Invalid username or incorrect password.";
     }
     if (!is_user_logged_in()) {
         // Display WordPress login form:
         $args = array('redirect' => wplfta_get_options('wplfta_after_login_link'), 'form_id' => 'loginform-wplfta', 'label_username' => __(wplfta_get_options('wplfta_user_txt')), 'label_password' => __(wplfta_get_options('wplfta_password_txt')), 'label_remember' => __(wplfta_get_options('wplfta_remember_me_text')), 'label_log_in' => __(wplfta_get_options('wplfta_submit_buton_text')), 'remember' => true);
         wp_login_form($args);
     } else {
         // If logged in:
         wp_loginout(home_url());
         // Display "Log Out" link.
         echo " | ";
         wp_register('', '');
         // Display "Site Admin" link.
     }
 }
Example #23
0
function meta_sidebar_module($args)
{
    extract($args);
    echo $before_module . $before_title . $title . $after_title;
    ?>
	<ul>
		<?php 
    wp_register();
    ?>
		<li><?php 
    wp_loginout();
    ?>
</li>
		<li><a href="<?php 
    bloginfo('rss2_url');
    ?>
" title="<?php 
    _e('Syndicate this site using RSS 2.0');
    ?>
"><?php 
    _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>');
    ?>
</a></li>
		<li><a href="<?php 
    bloginfo('comments_rss2_url');
    ?>
" title="<?php 
    _e('The latest comments to all posts in RSS');
    ?>
"><?php 
    _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>');
    ?>
</a></li>
		<li><a href="http://wordpress.org/" title="<?php 
    _e('Powered by Wordpress, state-of-the-art semantic personal publishing platform.');
    ?>
">WordPress</a></li>
		<?php 
    wp_meta();
    ?>
	</ul>
	<?php 
    echo $after_module;
}
Example #24
0
    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', empty($instance['title']) ? __('Meta', 'suffusion') : $instance['title']);
        echo $before_widget;
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>
			<ul>
			<?php 
        wp_register();
        ?>
			<li><?php 
        wp_loginout();
        ?>
</li>
			<li class="rss"><a href="<?php 
        bloginfo('rss2_url');
        ?>
" title="<?php 
        echo esc_attr(__('Syndicate this site using RSS 2.0', 'suffusion'));
        ?>
"><?php 
        _e('Entries <abbr title="Really Simple Syndication">RSS</abbr>', 'suffusion');
        ?>
</a></li>
			<li class="rss"><a href="<?php 
        bloginfo('comments_rss2_url');
        ?>
" title="<?php 
        echo esc_attr(__('The latest comments to all posts in RSS', 'suffusion'));
        ?>
"><?php 
        _e('Comments <abbr title="Really Simple Syndication">RSS</abbr>', 'suffusion');
        ?>
</a></li>
			<?php 
        wp_meta();
        ?>
			</ul>
<?php 
        echo $after_widget;
    }
 /**
  * Handle's user dashboard functionality
  *
  * Insert shortcode [wpuf_dashboard] in a page to
  * show the user dashboard
  *
  * @since 0.1
  */
 function shortcode($atts)
 {
     extract(shortcode_atts(array('post_type' => 'post'), $atts));
     ob_start();
     if (is_user_logged_in()) {
         $this->post_listing($post_type);
     } else {
         $message = wpuf_get_option('un_auth_msg', 'wpuf_dashboard');
         if (empty($message)) {
             $msg = sprintf(__("This page is restricted. Please %s to view this page.", 'wpuf'), wp_loginout('', false));
             echo apply_filters('wpuf_dashboard_unauth', $msg, $post_type);
         } else {
             echo $message;
         }
     }
     $content = ob_get_contents();
     ob_end_clean();
     return $content;
 }
 /**
  * Handle's user dashboard functionality
  *
  * Insert shortcode [wpuf_dashboard] in a page to
  * show the user dashboard
  *
  * @since 0.1
  */
 function shortcode($atts)
 {
     extract(shortcode_atts(array('post_type' => array('property', 'rental')), $atts));
     ob_start();
     if (is_user_logged_in()) {
         $this->post_listing($post_type);
     } else {
         $message = wpuf_get_option('un_auth_msg', 'wpuf_dashboard');
         if (empty($message)) {
             $msg = '<div class="wpuf-message">' . sprintf(__("This page is restricted. Please %s to view this page.", 'wpuf'), wp_loginout(get_permalink(), false)) . '</div>';
             echo apply_filters('wpuf_dashboard_unauth', $msg, $post_type);
             wp_login_form();
         } else {
             echo $message;
         }
     }
     $content = ob_get_contents();
     ob_end_clean();
     return $content;
 }
Example #27
0
 /**
  * Substitute the Shortcode with the relevant formatted output.
  * @param array $atts
  * @return string
  */
 public function run($atts)
 {
     $defaults = array('format' => 'table', 'table' => null);
     $attrs = shortcode_atts($defaults, $atts);
     if (!isset($attrs['table'])) {
         return "<div class='tabulate error'>The 'table' attribute must be set.</div>";
     }
     $table = $this->db->get_table($attrs['table']);
     if (!$table) {
         if (!is_user_logged_in()) {
             return "<div class='tabulate error'>You are not logged in. " . wp_loginout(get_the_permalink(), false) . "</div>";
         }
         return '';
     }
     $format_method = $attrs['format'] . '_format';
     if (is_callable(array($this, $format_method))) {
         return $this->{$format_method}($table, $attrs);
     } else {
         return "Format '{$attrs['format']}' not available.";
     }
 }
Example #28
0
function insert_header_wpse_51023()
{
    ?>
  
        <div class="title-section">
            <div class="section-inner">
<div class="titleContain">          
                            <div class="titleBox">
                                <h1 class="blog-title"><?php 
    echo esc_attr(get_bloginfo('title'));
    ?>
</h1>
                            </div>
                        </div>
                        <div class="optionsContain">            
                            <p><?php 
    wp_loginout();
    ?>
</p>
                        </div></div></div>     <?php 
}
 /**
  * Substitute the Shortcode with the relevant formatted output.
  * @param string[] $atts
  * @return string
  */
 public function run($atts)
 {
     $defaults = array('format' => 'table', 'table' => null);
     $attrs = shortcode_atts($defaults, $atts);
     if (!isset($attrs['table'])) {
         return $this->error("The 'table' attribute must be set.");
     }
     $table = $this->db->get_table($attrs['table']);
     if (!$table) {
         if (!is_user_logged_in()) {
             return $this->error("You are not logged in. " . wp_loginout(get_the_permalink(), false));
         }
         return $this->error();
     }
     $format_method = $attrs['format'] . '_format';
     if (is_callable(array($this, $format_method))) {
         wp_enqueue_script('tabulate-scripts');
         return $this->{$format_method}($table, $attrs, $_GET);
     } else {
         return $this->error("Format '{$attrs['format']}' not available.");
     }
 }
    function widget($args, $instance)
    {
        extract($args);
        $title = apply_filters('widget_title', empty($instance['title']) ? __('Meta Slim', 'mtt') : $instance['title'], $instance, $this->id_base);
        $link1_title = empty($instance['link1_title']) ? false : $instance['link1_title'];
        $link1_url = empty($instance['link1_url']) ? false : $instance['link1_url'];
        $link1 = '';
        if ($link1_title) {
            if ($link1_url) {
                $link1 = '<li><a href="' . $link1_url . '">' . $link1_title . '</a></li>';
            } else {
                $link1 = '<li>' . $link1_title . '</li>';
            }
        }
        echo $before_widget;
        if ($title) {
            echo $before_title . $title . $after_title;
        }
        ?>
            <ul>
                <?php 
        echo $link1;
        ?>
                <?php 
        wp_register();
        ?>
                <li><?php 
        wp_loginout();
        ?>
</li>
                <?php 
        wp_meta();
        ?>
            </ul>
        <?php 
        echo $after_widget;
    }