当前位置: 首页>>代码示例>>PHP>>正文


PHP _wsl_e函数代码示例

本文整理汇总了PHP中_wsl_e函数的典型用法代码示例。如果您正苦于以下问题:PHP _wsl_e函数的具体用法?PHP _wsl_e怎么用?PHP _wsl_e使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了_wsl_e函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: wsl_component_buddypress_sidebar_what_is_this

function wsl_component_buddypress_sidebar_what_is_this()
{
    ?>
<div class="postbox">
	<div class="inside">
		<h3><?php 
    _wsl_e("BuddyPress integration", 'wordpress-social-login');
    ?>
</h3>

		<div style="padding:0 20px;">
			<p>
				<?php 
    _wsl_e('WSL can be now fully integrated with your <a href="https://buddypress.org" target="_blank">BuddyPress</a> installation. When enabled, user avatars display should work right out of the box with most WordPress themes and your BuddyPress installation', 'wordpress-social-login');
    ?>
.
			</p> 

			<p>
				<?php 
    _wsl_e('WSL also comes with BuddyPress xProfiles mappings. When this feature is enabled, WSL will try to automatically fill in Buddypress users profiles from their social networks profiles', 'wordpress-social-login');
    ?>
.
			</p> 
		</div>
	</div>
</div>
<?php 
}
开发者ID:designwall,项目名称:dw-social-login,代码行数:29,代码来源:wsl.components.buddypress.sidebar.php

示例2: wsl_component_tools_sidebar_what_is_this

function wsl_component_tools_sidebar_what_is_this()
{
    ?>
<div class="postbox">
	<div class="inside">
		<h3><?php 
    _wsl_e("WordPress Social Login Tools", 'wordpress-social-login');
    ?>
</h3>

		<div style="padding:0 20px;">
			<p>
				<?php 
    _wsl_e('Here you can found a set of tools to help you find and hopefully fix any issue you may encounter', 'wordpress-social-login');
    ?>
.
			</p>
			<p>
				<?php 
    _wsl_e('You can also delete all Wordpress Social Login tables and stored options from the <b>Uninstall</b> section down below', 'wordpress-social-login');
    ?>
.
			</p>
		</div> 
	</div>
</div>
<?php 
}
开发者ID:sdh100shaun,项目名称:pantheon,代码行数:28,代码来源:wsl.components.tools.sidebar.php

示例3: wsl_component_help_sidebar

function wsl_component_help_sidebar()
{
    // HOOKABLE:
    do_action("wsl_component_help_sidebar_start");
    ?>
<div class="postbox">
	<div class="inside">
		<h3><?php 
    _wsl_e("About WordPress Social Login", 'wordpress-social-login');
    ?>
 <?php 
    echo wsl_get_version();
    ?>
</h3>

		<div style="padding:0 20px;">
			<p>
				<?php 
    _wsl_e('WordPress Social Login is a free and open source plugin made by the community, for the community', 'wordpress-social-login');
    ?>
.
			</p> 
			<p>
				<?php 
    _wsl_e('Basically, WordPress Social Login allow your website visitors and customers to register and login via social networks such as twitter, facebook and google but it has much more to offer', 'wordpress-social-login');
    ?>
.
			</p> 
			<p>
				<?php 
    _wsl_e('For more information about WordPress Social Login, refer to our online user guide', 'wordpress-social-login');
    ?>
.
			</p> 
		</div> 
	</div> 
</div> 
<div class="postbox">
	<div class="inside">
		<h3><?php 
    _wsl_e("Thanks", 'wordpress-social-login');
    ?>
</h3>

		<div style="padding:0 20px;">
			<p>
				<?php 
    _wsl_e('Big thanks to everyone who have contributed to WordPress Social Login by submitting Patches, Ideas, Reviews and by Helping in the support forum', 'wordpress-social-login');
    ?>
.
			</p> 
		</div> 
	</div> 
</div>
<?php 
    // HOOKABLE:
    do_action("wsl_component_help_sidebar_end");
}
开发者ID:sdh100shaun,项目名称:pantheon,代码行数:58,代码来源:wsl.components.help.sidebar.php

示例4: wsl_component_networks_addmore

function wsl_component_networks_addmore()
{
    // HOOKABLE:
    do_action("wsl_component_networks_addmore_start");
    global $WORDPRESS_SOCIAL_LOGIN_PROVIDERS_CONFIG;
    ?>
<table width="100%" border="0"> 
  <tr> 
    <td align="left">
		<p><?php 
    _wsl_e("And you could add even more of them, <b>Just Click</b> and we will guide you through", 'wordpress-social-login');
    ?>
 :</p>
		<?php 
    $assets_base_url = WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL . '/assets/img/32x32/icondock/';
    $nb_used = count($WORDPRESS_SOCIAL_LOGIN_PROVIDERS_CONFIG);
    foreach ($WORDPRESS_SOCIAL_LOGIN_PROVIDERS_CONFIG as $item) {
        $provider_id = @$item["provider_id"];
        $provider_name = @$item["provider_name"];
        $provider_cat = @$item["cat"];
        if (isset($item["default_network"]) && $item["default_network"]) {
            continue;
        }
        if (!get_option('wsl_settings_' . $provider_id . '_enabled')) {
            ?>
						<a href="options-general.php?page=wordpress-social-login&wslp=networks&enable=<?php 
            echo $provider_id;
            ?>
#setup<?php 
            echo strtolower($provider_id);
            ?>
"><img src="<?php 
            echo $assets_base_url . strtolower($provider_id) . '.png';
            ?>
" alt="<?php 
            echo $provider_name;
            ?>
" title="<?php 
            echo $provider_name;
            ?>
" /></a>
					<?php 
            $nb_used--;
        }
    }
    if ($nb_used == count($WORDPRESS_SOCIAL_LOGIN_PROVIDERS_CONFIG)) {
        _wsl_e("Well! none left.", 'wordpress-social-login');
    }
    ?>
 
	</td>
  </tr> 
</table>
<?php 
    // HOOKABLE:
    do_action("wsl_component_networks_addmore_end");
}
开发者ID:adisonc,项目名称:MaineLearning,代码行数:57,代码来源:wsl.components.networks.addmore.php

示例5: wsl_component_contacts_settings_sidebar_what_is_this

function wsl_component_contacts_settings_sidebar_what_is_this()
{
    ?>
<div class="postbox">
	<div class="inside">
		<h3><?php 
    _wsl_e("User contacts import", 'wordpress-social-login');
    ?>
</h3>

		<div style="padding:0 20px;">
			<p>
				<?php 
    _wsl_e('WordPress Social Login also allow you to import users contact list from Google Gmail, Facebook, Windows Live, LinkedIn  and Vkontakte', 'wordpress-social-login');
    ?>
.
			</p> 

			<p>
				<?php 
    _wsl_e('When enabled, users authenticating through WordPress Social Login will be asked for the authorisation to import their contact list. Note that some social networks do not provide certain of their users information like contacts emails, photos and or profile urls', 'wordpress-social-login');
    ?>
.
			</p> 
			<hr />
			<p>
				<b><?php 
    _wsl_e("Notes", 'wordpress-social-login');
    ?>
:</b> 
			</p> 
			
			<ul style="margin-left:15px;margin-top:0px;">
				<li><?php 
    _wsl_e('To enable contacts import from these social network, you need first to enabled them on the <a href="options-general.php?page=wordpress-social-login&wslp=networks"><b>Networks</b></a> tab and register the required application', 'wordpress-social-login');
    ?>
.</li> 
				<li><?php 
    _wsl_e("<b>WSL</b> will try to import as much information about a user contacts as he was able to pull from the social networks APIs.", 'wordpress-social-login');
    ?>
</li> 
				<li><?php 
    _wsl_e('All contacts data are sotred into your database on the table: <code>`wsluserscontacts`</code>', 'wordpress-social-login');
    ?>
.</li> 
			</ul> 
		</div> 
	</div>
</div>
<?php 
}
开发者ID:designwall,项目名称:dw-social-login,代码行数:51,代码来源:wsl.components.contacts.settings.sidebar.php

示例6: wsl_component_bouncer_sidebar_what_is_this

function wsl_component_bouncer_sidebar_what_is_this()
{
    ?>
<div class="postbox">
	<div class="inside">
		<h3><?php 
    _wsl_e("What's This?", 'wordpress-social-login');
    ?>
</h3>

		<div style="padding:0 20px;">
			<h4 style="cursor: default;border-bottom:1px solid #ccc;font-size: 13px;"><?php 
    _wsl_e("Hey, meet our friend, the Bouncer", 'wordpress-social-login');
    ?>
</h4>

			<p style="margin:10px;font-size: 13px;">
			<?php 
    _wsl_e('Ever been in trouble with one of <a href="http://www.flickr.com/search/?q=bouncer+doorman&z=e" target="_blank">these guys</a>? Well, this module have more or less the same role, and he will try his best to piss your users off until they meet your requirements.', 'wordpress-social-login');
    ?>
			</p>

			<p style="margin:10px;font-size: 13px;">
			<?php 
    _wsl_e("This feature is most suited for small businesses and folks running a closed-door blog between friends or coworkers.", 'wordpress-social-login');
    ?>
			</p>

			<h4 style="cursor: default;border-bottom:1px solid #ccc;"><?php 
    _wsl_e("IMPORTANT!", 'wordpress-social-login');
    ?>
</h4>

			<p style="margin:10px;">
				<?php 
    _wsl_e("All the settings on this page without exception are only valid for users authenticating through <b>WordPress Social Login Widget", 'wordpress-social-login');
    ?>
</b>.
			</p> 
			<p style="margin:10px;">
			<?php 
    _wsl_e("Users authenticating through the regulars Wordpress Login and Register pages with their usernames and passwords WILL NOT be affected.", 'wordpress-social-login');
    ?>
			</p>
		</div> 
	</div> 
</div> 
<?php 
}
开发者ID:sdh100shaun,项目名称:pantheon,代码行数:49,代码来源:wsl.components.bouncer.sidebar.php

示例7: wsl_component_networks_whyhello

function wsl_component_networks_whyhello()
{
    // HOOKABLE:
    do_action("wsl_component_networks_whyhello_start");
    ?>
<div class="postbox " id="linksubmitdiv"> 
	<div class="inside">
		<div id="submitlink" class="submitbox"> <h3 style="cursor: default;"><?php 
    _wsl_e("Why, hello there", 'wordpress-social-login');
    ?>
</h3>
			<div id="minor-publishing"> 

				<div style="display:none;"><input type="submit" value="Save" class="button" id="save" name="save"></div>

				<div id="misc-publishing-actions">
					<div class="misc-pub-section"> 
						<p style="line-height: 19px;font-size: 13px;" align="justify">
							<?php 
    _wsl_e('If you are still new to things, we recommend that you read the <b><a href="http://hybridauth.sourceforge.net/wsl/index.html" target="_blank">Plugin User Guide</a></b> and to make sure your server settings meet this <b><a href="options-general.php?page=wordpress-social-login&amp;wslp=diagnostics">Plugin Requirements</a></b>', 'wordpress-social-login');
    ?>
.
						</p>
						<p style="line-height: 19px;" align="justify">
							<?php 
    _wsl_e('If you run into any issue then refer to <b><a href="options-general.php?page=wordpress-social-login&wslp=help">Help & Support</a></b> to konw how to reach me', 'wordpress-social-login');
    ?>
.
						</p> 
					</div>
				</div> 
			</div>

			<div id="major-publishing-actions"> 
				<div id="publishing-action">
					<input type="submit" value="<?php 
    _wsl_e('Save Settings', 'wordpress-social-login');
    ?>
" class="button-large button-primary" name="save" >
				</div>
				<div class="clear"></div>
			</div> 
		</div>
	</div>
</div>
<?php 
    // HOOKABLE:
    do_action("wsl_component_networks_whyhello_end");
}
开发者ID:adisonc,项目名称:MaineLearning,代码行数:49,代码来源:wsl.components.networks.whyhello.php

示例8: wsl_component_tools

function wsl_component_tools()
{
    // HOOKABLE:
    do_action("wsl_component_tools_start");
    include "wsl.components.tools.actions.php";
    include "wsl.components.tools.sidebar.php";
    $action = isset($_REQUEST['do']) ? $_REQUEST['do'] : null;
    if (in_array($action, array('diagnostics', 'sysinfo', 'uninstall', 'repair'))) {
        if (isset($_REQUEST['_wpnonce']) && wp_verify_nonce($_REQUEST['_wpnonce'])) {
            include "wsl.components.tools.actions.job.php";
            do_action('wsl_component_tools_do_' . $action);
        } else {
            ?>
				<div style="margin: 4px 0 20px;" class="fade error wsl-error-db-tables">
					<p>
						<?php 
            _wsl_e('The URL nonce is not valid', 'wordpress-social-login');
            ?>
! 
					</p>
				</div>	
			<?php 
        }
    } else {
        ?>
 
			<div class="metabox-holder columns-2" id="post-body">
				<table width="100%"> 
					<tr valign="top">
						<td> 
							<?php 
        wsl_component_tools_sections();
        ?>
						</td>
						<td width="10"></td>
						<td width="400">
							<?php 
        wsl_component_tools_sidebar();
        ?>
						</td>
					</tr>
				</table>
			</div>
		<?php 
    }
    // HOOKABLE:
    do_action("wsl_component_tools_end");
}
开发者ID:sdh100shaun,项目名称:pantheon,代码行数:48,代码来源:index.php

示例9: wsl_component_users_profiles

function wsl_component_users_profiles($user_id)
{
    // HOOKABLE:
    do_action("wsl_component_users_profiles_start");
    $assets_base_url = WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL . 'assets/img/16x16/';
    $linked_accounts = wsl_get_stored_hybridauth_user_profiles_by_user_id($user_id);
    // is it a WSL user?
    if (!$linked_accounts) {
        ?>
<div style="padding: 15px; margin-bottom: 8px; border: 1px solid #ddd; background-color: #fff;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);">
	<?php 
        _wsl_e("This's not a WSL user!", 'wordpress-social-login');
        ?>
.
</div>
<?php 
        return;
    }
    # http://hybridauth.sourceforge.net/userguide/Profile_Data_User_Profile.html
    $ha_profile_fields = array(array('field' => 'identifier', 'label' => _wsl__("Provider user ID", 'wordpress-social-login'), 'description' => _wsl__("The Unique user's ID on the connected provider. Depending on the provider, this field can be an number, Email, URL, etc", 'wordpress-social-login')), array('field' => 'profileURL', 'label' => _wsl__("Profile URL", 'wordpress-social-login'), 'description' => _wsl__("Link to the user profile on the provider web site", 'wordpress-social-login')), array('field' => 'webSiteURL', 'label' => _wsl__("Website URL", 'wordpress-social-login'), 'description' => _wsl__("User website, blog or web page", 'wordpress-social-login')), array('field' => 'photoURL', 'label' => _wsl__("Photo URL", 'wordpress-social-login'), 'description' => _wsl__("Link to user picture or avatar on the provider web site", 'wordpress-social-login')), array('field' => 'displayName', 'label' => _wsl__("Display name", 'wordpress-social-login'), 'description' => _wsl__("User Display name. If not provided by social network, WSL will return a concatenation of the user first and last name", 'wordpress-social-login')), array('field' => 'description', 'label' => _wsl__("Description", 'wordpress-social-login'), 'description' => _wsl__("A short about me", 'wordpress-social-login')), array('field' => 'firstName', 'label' => _wsl__("First name", 'wordpress-social-login'), 'description' => _wsl__("User's first name", 'wordpress-social-login')), array('field' => 'lastName', 'label' => _wsl__("Last name", 'wordpress-social-login'), 'description' => _wsl__("User's last name", 'wordpress-social-login')), array('field' => 'gender', 'label' => _wsl__("Gender", 'wordpress-social-login'), 'description' => _wsl__("User's gender. Values are 'female', 'male' or blank", 'wordpress-social-login')), array('field' => 'language', 'label' => _wsl__("Language", 'wordpress-social-login'), 'description' => _wsl__("User's language", 'wordpress-social-login')), array('field' => 'age', 'label' => _wsl__("Age", 'wordpress-social-login'), 'description' => _wsl__("User' age. Note that WSL do not calculate this field. We return it as it was provided", 'wordpress-social-login')), array('field' => 'birthDay', 'label' => _wsl__("Birth day", 'wordpress-social-login'), 'description' => _wsl__("The day in the month in which the person was born. Not to confuse it with 'Birth date'", 'wordpress-social-login')), array('field' => 'birthMonth', 'label' => _wsl__("Birth month", 'wordpress-social-login'), 'description' => _wsl__("The month in which the person was born", 'wordpress-social-login')), array('field' => 'birthYear', 'label' => _wsl__("Birth year", 'wordpress-social-login'), 'description' => _wsl__("The year in which the person was born", 'wordpress-social-login')), array('field' => 'email', 'label' => _wsl__("Email", 'wordpress-social-login'), 'description' => _wsl__("User's email address. Note: some providers like Facebook and Google can provide verified emails. Users with the same verified email will be automatically linked", 'wordpress-social-login')), array('field' => 'phone', 'label' => _wsl__("Phone", 'wordpress-social-login'), 'description' => _wsl__("User's phone number", 'wordpress-social-login')), array('field' => 'address', 'label' => _wsl__("Address", 'wordpress-social-login'), 'description' => _wsl__("User's address", 'wordpress-social-login')), array('field' => 'country', 'label' => _wsl__("Country", 'wordpress-social-login'), 'description' => _wsl__("User's country", 'wordpress-social-login')), array('field' => 'region', 'label' => _wsl__("Region", 'wordpress-social-login'), 'description' => _wsl__("User's state or region", 'wordpress-social-login')), array('field' => 'city', 'label' => _wsl__("City", 'wordpress-social-login'), 'description' => _wsl__("User's city", 'wordpress-social-login')), array('field' => 'zip', 'label' => _wsl__("Zip", 'wordpress-social-login'), 'description' => _wsl__("User's zipcode", 'wordpress-social-login')));
    $user_data = get_userdata($user_id);
    add_thickbox();
    $actions = array('edit_details' => '<a class="button button-secondary thickbox" href="' . admin_url('user-edit.php?user_id=' . $user_id . '&TB_iframe=true&width=1150&height=550') . '">' . _wsl__('Edit user details', 'wordpress-social-login') . '</a>', 'show_contacts' => '<a class="button button-secondary" href="' . admin_url('options-general.php?page=wordpress-social-login&wslp=contacts&uid=' . $user_id) . '">' . _wsl__('Show user contacts list', 'wordpress-social-login') . '</a>');
    // HOOKABLE:
    $actions = apply_filters('wsl_component_users_profiles_alter_actions_list', $actions, $user_id);
    ?>
<style>
	table td, table th { border: 1px solid #DDDDDD; }
	table th label { font-weight: bold; }
	.form-table th { width:120px; text-align:right; }
	p.description { font-size: 11px ! important; margin:0 ! important;}
</style>

<script>
	function confirmDeleteWSLUser()
	{
		return confirm( <?php 
    echo json_encode(_wsl__("Are you sure you want to delete the user's social profiles and contacts?\n\nNote: The associated WordPress user won't be deleted.", 'wordpress-social-login'));
    ?>
 );
	}
</script>

<div style="margin-top: 15px;padding: 15px; margin-bottom: 8px; border: 1px solid #ddd; background-color: #fff;box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);">
 	<h3 style="margin:0;"><?php 
    echo sprintf(_wsl__("%s's social profiles", 'wordpress-social-login'), $user_data->display_name);
    ?>
</h3>

	<p style="float: <?php 
    if (is_rtl()) {
        echo 'left';
    } else {
        echo 'right';
    }
    ?>
;margin-top:-23px">
		<?php 
    echo implode(' ', $actions);
    ?>
	</p>
</div>

<div style="padding: 20px; border: 1px solid #ddd; background-color: #fff;">
	<table class="wp-list-table widefat">
		<tr><th width="200"><label><?php 
    _wsl_e("Wordpress User ID", 'wordpress-social-login');
    ?>
</label></th><td><?php 
    echo $user_data->ID;
    ?>
</td></tr>
		<tr><th width="200"><label><?php 
    _wsl_e("Username", 'wordpress-social-login');
    ?>
</label></th><td><?php 
    echo $user_data->user_login;
    ?>
</td></tr>
		<tr><th><label><?php 
    _wsl_e("Display name", 'wordpress-social-login');
    ?>
</label></th><td><?php 
    echo $user_data->display_name;
    ?>
</td></tr>
		<tr><th><label><?php 
    _wsl_e("E-mail", 'wordpress-social-login');
    ?>
</label></th><td><a href="mailto:<?php 
    echo $user_data->user_email;
    ?>
" target="_blank"><?php 
    echo $user_data->user_email;
    ?>
</a></td></tr>
		<tr><th><label><?php 
    _wsl_e("Website", 'wordpress-social-login');
    ?>
</label></th><td><a href="<?php 
//.........这里部分代码省略.........
开发者ID:designwall,项目名称:dw-social-login,代码行数:101,代码来源:wsl.components.users.profiles.php

示例10: wsl_component_tools_uninstall

function wsl_component_tools_uninstall()
{
    ?>
<div class="stuffbox">
	<h3>
		<label><?php 
    _wsl_e("Uninstall", 'wordpress-social-login');
    ?>
</label>
	</h3>
	<div class="inside"> 
		<p>
			<?php 
    _wsl_e('This will permanently delete all Wordpress Social Login tables and stored options from your WordPress database', 'wordpress-social-login');
    ?>
. 
			<?php 
    _wsl_e('Once you delete WSL database tables and stored options, there is NO going back. Please be certain', 'wordpress-social-login');
    ?>
. 
		</p>

		<a class="button-danger" href="<?php 
    echo wp_nonce_url('options-general.php?page=wordpress-social-login&wslp=tools&do=uninstall');
    ?>
" onClick="return confirm('Do you really want to Delete all Wordpress Social Login tables and options?\n\nPlease confirm that you have read and understood the abovementioned by clicking OK.');"><?php 
    _wsl_e("Delete all Wordpress Social Login tables and options", 'wordpress-social-login');
    ?>
</a>
	</div>
</div>
<?php 
}
开发者ID:sdh100shaun,项目名称:pantheon,代码行数:33,代码来源:wsl.components.tools.actions.php

示例11: wsl_component_networks_setup

function wsl_component_networks_setup()
{
    // HOOKABLE:
    do_action("wsl_component_networks_setup_start");
    global $wpdb;
    global $WORDPRESS_SOCIAL_LOGIN_PROVIDERS_CONFIG;
    if (isset($_REQUEST["enable"]) && $_REQUEST["enable"]) {
        $provider_id = $_REQUEST["enable"];
        update_option('wsl_settings_' . $provider_id . '_enabled', 1);
    }
    ?>
 
<script>
	function toggleproviderkeys(idp){
		if(typeof jQuery=="undefined"){
			alert( "Error: WordPress Social Login require jQuery to be installed on your wordpress in order to work!" );

			return;
		}

		if(jQuery('#wsl_settings_' + idp + '_enabled').val()==1){
			jQuery('.wsl_tr_settings_' + idp).show();
		}
		else{
			jQuery('.wsl_tr_settings_' + idp).hide();
			jQuery('.wsl_div_settings_help_' + idp).hide();
		}
		
		return false;
	}

	function toggleproviderhelp(idp){
		if(typeof jQuery=="undefined"){
			alert( "Error: WordPress Social Login require jQuery to be installed on your wordpress in order to work!" );

			return false;
		}

		jQuery('.wsl_div_settings_help_' + idp).show();
		
		return false;
	}
</script>
<?php 
    $nbprovider = 0;
    $assets_base_url = WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL . '/assets/img/16x16/';
    foreach ($WORDPRESS_SOCIAL_LOGIN_PROVIDERS_CONFIG as $item) {
        $provider_id = @$item["provider_id"];
        $provider_name = @$item["provider_name"];
        $require_client_id = @$item["require_client_id"];
        $provide_email = @$item["provide_email"];
        $provider_new_app_link = @$item["new_app_link"];
        $provider_userguide_section = @$item["userguide_section"];
        $provider_callback_url = "";
        if (!(isset($item["default_network"]) && $item["default_network"] || get_option('wsl_settings_' . $provider_id . '_enabled'))) {
            continue;
        }
        // default endpoint_url
        $endpoint_url = WORDPRESS_SOCIAL_LOGIN_HYBRIDAUTH_ENDPOINT_URL;
        // overwrite endpoint_url if need'd
        if (get_option('wsl_settings_base_url')) {
            $endpoint_url = strtolower(get_option('wsl_settings_base_url') . '/hybridauth/');
        }
        if (isset($item["callback"]) && $item["callback"]) {
            $provider_callback_url = '<span style="color:green">' . $endpoint_url . '?hauth.done=' . $provider_id . '</span>';
        }
        $setupsteps = 0;
        ?>
  
		<a name="setup<?php 
        echo strtolower($provider_id);
        ?>
"></a> 
		<div class="stuffbox" id="namediv">
			<h3>
				<label for="name" class="wp-neworks-label">
					<img alt="<?php 
        echo $provider_name;
        ?>
" title="<?php 
        echo $provider_name;
        ?>
" src="<?php 
        echo $assets_base_url . strtolower($provider_id) . '.png';
        ?>
" style="vertical-align: top;width:16px;height:16px;" /> <?php 
        echo $provider_name;
        ?>
				</label>
			</h3>
			<div class="inside">
				<table class="form-table editcomment">
					<tbody>
						<tr>
							<td style="width:110px"><?php 
        _wsl_e("Enabled", 'wordpress-social-login');
        ?>
:</td>
							<td>
								<select 
//.........这里部分代码省略.........
开发者ID:novichkovv,项目名称:candoweightloss,代码行数:101,代码来源:wsl.components.networks.setup.php

示例12: wsl_render_login_form_admin_head_user_profile_generate_html

function wsl_render_login_form_admin_head_user_profile_generate_html()
{
    if (!is_user_logged_in()) {
        return;
    }
    // HOOKABLE: allow users to generate their own
    if (apply_filters('wsl_hook_profile_widget', null)) {
        return;
    }
    # if ob_start()/ob_end_clean() dont work for you then i can do nothing for you
    ob_start();
    global $current_user;
    global $WORDPRESS_SOCIAL_LOGIN_PROVIDERS_CONFIG;
    get_currentuserinfo();
    $user_id = $current_user->ID;
    $linked_accounts = wsl_get_user_linked_accounts_by_user_id($user_id);
    // if not WSL user, then nothing to show, yet
    if (!$linked_accounts) {
        return;
    }
    if (empty($social_icon_set)) {
        $social_icon_set = "wpzoom/";
    } else {
        $social_icon_set .= "/";
    }
    $assets_base_url = WORDPRESS_SOCIAL_LOGIN_PLUGIN_URL . '/assets/img/32x32/' . $social_icon_set;
    ?>
 
<h3><?php 
    _wsl_e("Social networks", 'wordpress-social-login');
    ?>
</h3> 
<table class="form-table">  
	<tr>  
		<td valign="top">
			<table id="wsl-user-profile-injected-table-b">
				<tr>
					<th width="80"><?php 
    _wsl_e("Provider", 'wordpress-social-login');
    ?>
</th>
					<th><?php 
    _wsl_e("Identity", 'wordpress-social-login');
    ?>
</th> 
				</tr>
				<?php 
    foreach ($linked_accounts as $item) {
        $identity = $item->profileurl;
        $photourl = $item->photourl;
        if (!$identity) {
            $identity = $item->identifier;
        }
        ?>
					<tr>
						<td>
							<?php 
        if ($photourl) {
            ?>
								<img src="<?php 
            echo $photourl;
            ?>
" style="vertical-align: top;width:16px;height:16px;" > 
							<?php 
        } else {
            ?>
								<img src="<?php 
            echo $assets_base_url . strtolower($item->provider) . '.png';
            ?>
" style="vertical-align: top;width:16px;height:16px;" />
							<?php 
        }
        ?>
 
							<?php 
        echo ucfirst($item->provider);
        ?>
						</td>
						<td><?php 
        echo $identity;
        ?>
</td> 
					</tr>
				<?php 
    }
    ?>
			</table>
		</td> 
	</tr> 
	</tr> 
<?php 
    // Bouncer :: Allow authentication && Linking accounts is enabled
    if (get_option('wsl_settings_bouncer_authentication_enabled') == 1 && get_option('wsl_settings_bouncer_linking_accounts_enabled') == 1) {
        $list_connected_providers = wsl_get_list_connected_providers();
        ?>
	
	<tr>    
		<td valign="top">
			<b><?php 
        _wsl_e("Add more identities", 'wordpress-social-login');
//.........这里部分代码省略.........
开发者ID:novichkovv,项目名称:candoweightloss,代码行数:101,代码来源:wsl.auth.widget.php

示例13: wsl_component_bouncer_setup

function wsl_component_bouncer_setup()
{
    // HOOKABLE:
    do_action("wsl_component_bouncer_setup_start");
    ?>
<div  id="post-body-content"> 
 
	<div id="namediv" class="stuffbox">
		<h3>
			<label for="name"><?php 
    _wsl_e("WSL Widget", 'wordpress-social-login');
    ?>
</label>
		</h3>
		<div class="inside"> 
			<p> 
				<?php 
    _wsl_e("Here you can tell Bouncer if you are accepting new users registration and authentication into your website or not any more. Note that Bouncer only works for WSL and will not interfere with users authenticating through the regulars wordpress Login and Register pages with their usernames and passwords (to to achieve that kind of restrictions, you may need to use another plugin(s) in combination with WSL).", 'wordpress-social-login');
    ?>
			</p> 
			<table width="100%" border="0" cellpadding="5" cellspacing="2" style="border-top:1px solid #ccc;">  
			  <tr>
				<td width="200" align="right"><strong><?php 
    _wsl_e("Accept new registration", 'wordpress-social-login');
    ?>
 :</strong></td>
				<td> 
					<select name="wsl_settings_bouncer_registration_enabled">
						<option <?php 
    if (get_option('wsl_settings_bouncer_registration_enabled') == 1) {
        echo "selected";
    }
    ?>
 value="1"><?php 
    _wsl_e("Yes", 'wordpress-social-login');
    ?>
</option>
						<option <?php 
    if (get_option('wsl_settings_bouncer_registration_enabled') == 2) {
        echo "selected";
    }
    ?>
 value="2"><?php 
    _wsl_e("No", 'wordpress-social-login');
    ?>
</option> 
					</select>
				</td>
			  </tr> 
			  <tr>
				<td width="200" align="right"><strong><?php 
    _wsl_e("Allow authentication", 'wordpress-social-login');
    ?>
 :</strong></td>
				<td> 
					<select name="wsl_settings_bouncer_authentication_enabled">
						<option <?php 
    if (get_option('wsl_settings_bouncer_authentication_enabled') == 1) {
        echo "selected";
    }
    ?>
 value="1"><?php 
    _wsl_e("Yes", 'wordpress-social-login');
    ?>
</option>
						<option <?php 
    if (get_option('wsl_settings_bouncer_authentication_enabled') == 2) {
        echo "selected";
    }
    ?>
 value="2"><?php 
    _wsl_e("No", 'wordpress-social-login');
    ?>
</option> 
					</select>
				</td>
			  </tr> 
			</table>
		</div>
	</div>

	<div id="namediv" class="stuffbox">
		<h3>
			<label for="name"><?php 
    _wsl_e("Profile Completion", 'wordpress-social-login');
    ?>
</label>
		</h3>
		<div class="inside hideinside"> 
			<p>
				<?php 
    _wsl_e("Select required fields. If a social network doesn't return them, Bouncer will then ask your visitors to fill additional form to provide them when registering.", 'wordpress-social-login');
    ?>
 
			</p>
			<p class="description">
				<?php 
    _wsl_e("You may activate <b>Profile Completion</b> for both <b>E-mail</b> and <b>Username</b>, but keep in mind, the idea behind <b>social login</b> is to avoid forms and remove all the hassle of registration", 'wordpress-social-login');
    ?>
.
//.........这里部分代码省略.........
开发者ID:adisonc,项目名称:MaineLearning,代码行数:101,代码来源:wsl.components.bouncer.setup.php

示例14: wsl_render_auth_widget


//.........这里部分代码省略.........
            $authenticate_url = $authenticate_base_url . "provider=" . $provider_id . "&redirect_to=" . urlencode($redirect_to);
            // http://codex.wordpress.org/Function_Reference/esc_url
            $authenticate_url = esc_url($authenticate_url);
            // in case, Widget::Authentication display is set to 'popup', then we overwrite 'authenticate_url'
            // > /assets/js/connect.js will take care of the rest
            if ($wsl_settings_use_popup == 1 && $auth_mode != 'test') {
                $authenticate_url = "javascript:void(0);";
            }
            // HOOKABLE: allow user to rebuilt the auth url
            $authenticate_url = apply_filters('wsl_render_auth_widget_alter_authenticate_url', $authenticate_url, $provider_id, $auth_mode, $redirect_to, $wsl_settings_use_popup);
            // HOOKABLE: allow use of other icon sets
            $provider_icon_markup = apply_filters('wsl_render_auth_widget_alter_provider_icon_markup', $provider_id, $provider_name, $authenticate_url);
            if ($provider_icon_markup != $provider_id) {
                echo $provider_icon_markup;
            } else {
                ?>

		<a rel="nofollow" href="<?php 
                echo $authenticate_url;
                ?>
" title="<?php 
                echo sprintf(_wsl__("%s", 'wordpress-social-login'), $provider_name);
                ?>
" class="wp-social-login-provider wp-social-login-provider-<?php 
                echo strtolower($provider_id);
                ?>
" data-provider="<?php 
                echo $provider_id;
                ?>
">
			<?php 
                if ($social_icon_set == 'none') {
                    echo apply_filters('wsl_render_auth_widget_alter_provider_name', '' . $provider_name);
                } else {
                    ?>
<img alt="<?php 
                    echo $provider_name;
                    ?>
" title="<?php 
                    echo sprintf(_wsl__("%s", 'wordpress-social-login'), $provider_name);
                    ?>
" src="<?php 
                    echo $assets_base_url . strtolower($provider_id) . '.png';
                    ?>
" /><?php 
                }
                ?>
		</a>
<?php 
            }
            $no_idp_used = false;
        }
    }
    ?>
	<?php 
    // no provider enabled?
    if ($no_idp_used) {
        ?>
		<p style="background-color: #FFFFE0;border:1px solid #E6DB55;padding:5px;">
			<?php 
        _wsl_e('<strong>WordPress Social Login is not configured yet</strong>.<br />Please navigate to <strong>Settings &gt; WP Social Login</strong> to configure this plugin.<br />For more information, refer to the <a rel="nofollow" href="http://miled.github.io/wordpress-social-login">online user guide</a>.', 'wordpress-social-login');
        ?>
.
		</p>
		<style>#wp-social-login-connect-with{display:none;}</style>
<?php 
    }
    ?>

	</div>

	<div class="wp-social-login-widget-clearing"></div>

</div>

<?php 
    // provide popup url for hybridauth callback
    if ($wsl_settings_use_popup == 1) {
        ?>
<input type="hidden" id="wsl_popup_base_url" value="<?php 
        echo esc_url($authenticate_base_url);
        ?>
" />
<input type="hidden" id="wsl_login_form_uri" value="<?php 
        echo esc_url(site_url('wp-login.php', 'login_post'));
        ?>
" />

<?php 
    }
    // HOOKABLE: This action runs just after generating the WSL Widget.
    do_action('wsl_render_auth_widget_end');
    ?>
<!-- wsl_render_auth_widget -->

<?php 
    // Display WSL debugging area bellow the widget.
    // wsl_display_dev_mode_debugging_area(); // ! keep this line commented unless you know what you are doing :)
    return ob_get_clean();
}
开发者ID:designwall,项目名称:dw-social-login,代码行数:101,代码来源:wsl.auth.widgets.php

示例15: wsl_component_tools_do_uninstall

function wsl_component_tools_do_uninstall()
{
    wsl_database_uninstall();
    ?>
<div class="metabox-holder columns-2" id="post-body">
	<div class="stuffbox">
		<h3>
			<label><?php 
    _wsl_e("Uninstall", 'wordpress-social-login');
    ?>
</label>
		</h3>
		<div class="inside"> 
			<p>
				<?php 
    _wsl_e("All Wordpress Social Login tables and stored options are permanently deleted from your WordPress database", 'wordpress-social-login');
    ?>
.
			</p>
			<p>
				<?php 
    _wsl_e("To delete Wordpress Social Login files from your WordPress website, you may deactivate and uninstall it through the 'Plugins' menu in WordPress", 'wordpress-social-login');
    ?>
.
			</p>
			<p>
				<?php 
    _wsl_e("Thank you for using Wordpress Social Login", 'wordpress-social-login');
    ?>
.
			</p>
			<p>
				<?php 
    _wsl_e("Good bye", 'wordpress-social-login');
    ?>
.
			</p>
			<hr />
			<a class="button-secondary" href="options-general.php?page=wordpress-social-login&wslp=tools">&larr; <?php 
    _wsl_e("Back to Tools", 'wordpress-social-login');
    ?>
</a>
		</div>
	</div>
</div>
<?php 
}
开发者ID:sdh100shaun,项目名称:pantheon,代码行数:47,代码来源:wsl.components.tools.actions.job.php


注:本文中的_wsl_e函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。