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


PHP UsersHelperRoute::getRegistrationRoute方法代码示例

本文整理汇总了PHP中UsersHelperRoute::getRegistrationRoute方法的典型用法代码示例。如果您正苦于以下问题:PHP UsersHelperRoute::getRegistrationRoute方法的具体用法?PHP UsersHelperRoute::getRegistrationRoute怎么用?PHP UsersHelperRoute::getRegistrationRoute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UsersHelperRoute的用法示例。


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

示例1: getRegistrationURL

 public function getRegistrationURL()
 {
     $usersConfig = JComponentHelper::getParams('com_users');
     if ($usersConfig->get('allowUserRegistration')) {
         $Itemid = UsersHelperRoute::getRegistrationRoute();
         return JRoute::_('index.php?option=com_users&view=registration' . ($Itemid ? "&Itemid={$Itemid}" : ''));
     }
 }
开发者ID:laiello,项目名称:senluonirvana,代码行数:8,代码来源:login.php

示例2: getLogin

 public static function getLogin($params)
 {
     $login = new stdClass();
     $login->passwordFieldName = 'password';
     $login->resetLink = JRoute::_('index.php?option=com_users&view=reset&Itemid=' . UsersHelperRoute::getResetRoute());
     $login->remindLink = JRoute::_('index.php?option=com_users&view=remind&Itemid=' . UsersHelperRoute::getRemindRoute());
     $login->registrationLink = JRoute::_('index.php?option=com_users&view=registration&Itemid=' . UsersHelperRoute::getRegistrationRoute());
     $login->option = 'com_users';
     $login->task = 'user.login';
     $login->allowRegistration = JComponentHelper::getParams('com_users')->get('allowUserRegistration');
     $login->return = self::getReturnURL($params, 'login');
     return $login;
 }
开发者ID:Naldo100,项目名称:k2-v3-dev-build,代码行数:13,代码来源:helper.php

示例3:

		<div id="form-login-submit" class="form-group">
			<button type="submit" tabindex="0" name="Submit" class="btn btn-primary"><?php 
echo JText::_('JLOGIN');
?>
</button>
		</div>
		<?php 
$usersConfig = JComponentHelper::getParams('com_users');
?>
			<ul class="list-unstyled">
			<?php 
if ($usersConfig->get('allowUserRegistration')) {
    ?>
				<li>
					<a href="<?php 
    echo JRoute::_('index.php?option=com_users&view=registration&Itemid=' . UsersHelperRoute::getRegistrationRoute());
    ?>
">
					<?php 
    echo JText::_('MOD_LOGIN_REGISTER');
    ?>
 <span class="icon-arrow-right"></span></a>
				</li>
			<?php 
}
?>
				<li>
					<a href="<?php 
echo JRoute::_('index.php?option=com_users&view=remind&Itemid=' . UsersHelperRoute::getRemindRoute());
?>
">
开发者ID:sankam-nikolya,项目名称:H5BPTB,代码行数:31,代码来源:default.php

示例4:

        $langScript = '
			var JLanguage = {};
			JLanguage.WHAT_IS_OPENID = \'' . JText::_('K2_WHAT_IS_OPENID') . '\';
			JLanguage.LOGIN_WITH_OPENID = \'' . JText::_('K2_LOGIN_WITH_OPENID') . '\';
			JLanguage.NORMAL_LOGIN = \'' . JText::_('K2_NORMAL_LOGIN') . '\';
			var modlogin = 1;
		';
        $document = JFactory::getDocument();
        $document->addScriptDeclaration($langScript);
        JHTML::_('script', 'openid.js');
    }
    // Get user stuff (do not edit)
    $usersConfig = JComponentHelper::getParams('com_users');
    // Define some variables depending on Joomla! version
    $passwordFieldName = K2_JVERSION != '15' ? 'password' : 'passwd';
    $resetLink = JRoute::_(K2_JVERSION != '15' ? 'index.php?option=com_users&view=reset&Itemid=' . UsersHelperRoute::getResetRoute() : 'index.php?option=com_user&view=reset');
    $remindLink = JRoute::_(K2_JVERSION != '15' ? 'index.php?option=com_users&view=remind&Itemid=' . UsersHelperRoute::getRemindRoute() : 'index.php?option=com_user&view=remind');
    $registrationLink = JRoute::_(K2_JVERSION != '15' ? 'index.php?option=com_users&view=registration&Itemid=' . UsersHelperRoute::getRegistrationRoute() : 'index.php?option=com_user&view=register');
    $option = K2_JVERSION != '15' ? 'com_users' : 'com_user';
    $task = K2_JVERSION != '15' ? 'user.login' : 'login';
    require JModuleHelper::getLayoutPath('mod_k2_user', 'login');
} else {
    JHTML::_('behavior.modal');
    $user->profile = modK2UserHelper::getProfile($params);
    $user->numOfComments = modK2UserHelper::countUserComments($user->id);
    $menu = modK2UserHelper::getMenu($params);
    $profileLink = JRoute::_(K2_JVERSION != '15' ? 'index.php?option=com_users&view=profile&layout=edit&Itemid=' . UsersHelperRoute::getProfileRoute() : 'index.php?option=com_user&view=user&task=edit');
    $option = K2_JVERSION != '15' ? 'com_users' : 'com_user';
    $task = K2_JVERSION != '15' ? 'user.logout' : 'logout';
    require JModuleHelper::getLayoutPath('mod_k2_user', 'userblock');
}
开发者ID:emavro,项目名称:k2,代码行数:31,代码来源:mod_k2_user.php

示例5: if

				<input type="hidden" name="task" value="user.login" />
				<input type="hidden" name="return" value="<?php echo $return; ?>" />
				<?php echo JHtml::_('form.token'); ?>
			</div>
			<?php if ($params->get('posttext')) : ?>
				<div class="posttext">
					<p><?php echo $params->get('posttext'); ?></p>
				</div>
			<?php endif; ?>

			</form>
	</div>

	<?php if ($usersConfig->get('allowUserRegistration')) : ?>
		<div class="mdl-card__actions mdl-card--border">
			<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect"  href="<?php echo JRoute::_('index.php?option=com_users&view=registration&Itemid=' . UsersHelperRoute::getRegistrationRoute()); ?>">
			<?php echo JText::_('MOD_LOGIN_REGISTER'); ?> <span class="icon-arrow-right"></span></a>
	    <div class="mdl-layout-spacer"></div>
	    <i class="material-icons">event</i>
	  </div>
	<?php endif; ?>
  <div class="mdl-card__actions mdl-card--border">
		<a class="mdl-button mdl-button--colored mdl-js-button mdl-js-ripple-effect" href="<?php echo JRoute::_('index.php?option=com_users&view=remind&Itemid=' . UsersHelperRoute::getRemindRoute()); ?>">
		<?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_USERNAME'); ?></a>
    <div class="mdl-layout-spacer"></div>
    <i class="material-icons">event</i>
  </div>
  <div class="mdl-card__actions mdl-card--border">
		<a href="<?php echo JRoute::_('index.php?option=com_users&view=reset&Itemid=' . UsersHelperRoute::getResetRoute()); ?>">
		<?php echo JText::_('MOD_LOGIN_FORGOT_YOUR_PASSWORD'); ?></a>
    <div class="mdl-layout-spacer"></div>
开发者ID:jandredias,项目名称:CoderDojo-Tecnico,代码行数:31,代码来源:default.php

示例6: onUserBeforeSave

 public function onUserBeforeSave($user, $isNew)
 {
     // Get application
     $application = JFactory::getApplication();
     // Get params
     $params = JComponentHelper::getParams('com_k2');
     // Get input
     $isK2UserForm = $application->input->get('K2UserForm', 0, 'int');
     // Process only in front-end. Check all conditions
     if ($params->get('K2UserProfile') && $isNew && $params->get('recaptchaOnRegistration') && $application->isSite() && $isK2UserForm) {
         $data = array();
         $data['privatekey'] = $params->get('recaptcha_private_key');
         $data['remoteip'] = $_SERVER["REMOTE_ADDR"];
         $data['challenge'] = $application->input->post->get('recaptcha_challenge_field', '', 'raw');
         $data['response'] = $application->input->post->get('recaptcha_response_field', '', 'raw');
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_URL, 'http://www.google.com/recaptcha/api/verify');
         curl_setopt($ch, CURLOPT_POST, 1);
         curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
         curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
         $response = curl_exec($ch);
         $error = curl_error($ch);
         curl_close($ch);
         require_once JPATH_SITE . '/components/com_users/helpers/route.php';
         $url = JRoute::_('index.php?option=com_users&view=registration&Itemid=' . UsersHelperRoute::getRegistrationRoute());
         if ($response === false) {
             $application->enqueueMessage($error, 'error');
             $application->redirect($url);
             return false;
         }
         $lines = explode("\n", $response);
         if (trim($lines[0]) != 'true') {
             $application->enqueueMessage(JText::_('K2_WE_COULD_NOT_VERIFY_THAT_YOU_ARE_HUMAN'), 'error');
             $application->redirect($url);
             return false;
         }
     }
 }
开发者ID:Naldo100,项目名称:k2-v3-dev-build,代码行数:38,代码来源:k2.php

示例7: getRegistrationLink

 public function getRegistrationLink($options = array())
 {
     return JRoute::_('index.php?option=com_users&view=registration&Itemid=' . UsersHelperRoute::getRegistrationRoute());
 }
开发者ID:BetterBetterBetter,项目名称:B3App,代码行数:4,代码来源:alphauserpoints.php

示例8: renders


//.........这里部分代码省略.........
															  <input type="checkbox" name="remember" > <?php 
                echo JText::_('REMEMBER_ME');
                ?>
															</label>
														</div>
													</div>
												</div>
												<?php 
            }
            ?>
												
												 <div class="form-group">
												<div class="col-sm-offset-2 col-sm-10">
												  <input type="hidden" name="option" value="com_users" />
													<input type="hidden" name="task" value="user.login" />
													<input type="hidden" name="return" value="<?php 
            echo base64_encode(JRoute::_('index.php', true));
            ?>
" />
													<?php 
            echo JHtml::_('form.token');
            ?>
													<button type="submit" class="btn btn-default"><?php 
            echo JText::_('JLOGIN');
            ?>
</button>
													
													  <?php 
            require_once JPATH_SITE . '/components/com_users/helpers/route.php';
            $usersConfig = JComponentHelper::getParams('com_users');
            if ($usersConfig->get('allowUserRegistration')) {
                ?>
														<a class="btn btn-default" href="<?php 
                echo JRoute::_('index.php?option=com_users&view=registration&Itemid=' . UsersHelperRoute::getRegistrationRoute());
                ?>
">
															<?php 
                echo JText::_('JREGISTER');
                ?>
 <span class="fa fa-arrow-right"></span></a>
												<?php 
            }
            ?>
											
													
													
												</div>
											  </div>
											</form>
										</div>
										<div class="modal-footer">
											<button type="button" class="btn btn-default" data-dismiss="modal"><?php 
            echo JText::_('JCLOSE');
            ?>
</button>
										</div>
									</div>
								</div>
							</div>
							
							<div class="modal fade" id="canvasWidgetlogout" tabindex="-1" role="dialog" aria-labelledby="canvasWidget<?php 
            echo $type;
            ?>
Label" aria-hidden="true">
								<div class="modal-dialog">
									<div class="modal-content">
开发者ID:shamsbd71,项目名称:canvas-framework,代码行数:67,代码来源:login.php

示例9: renders

    public function renders()
    {
        JHtml::_('bootstrap.tooltip');
        $CANVASTemplate = new CANVASTemplate();
        $path = CANVASPath::getPath('tpls/widgets/' . $this->name . '.php');
        ob_start();
        if ($path) {
            include $path;
        } else {
            ?>

				<!-- MAIN NAVIGATION -->
				<div id="canvas-mainnav" class="wrap navbar navbar-default <?php 
            echo $this->getParam('navigation_fixed_top', '0') ? 'navbar-fixed-top' : '';
            ?>
 canvas-mainnav">
					
					<?php 
            if ($this->getParam('navigation_fixed_top', '0')) {
                ?>
					<div class="container">
					<?php 
            }
            ?>
					
					<!-- NAVBAR HEADER -->
					<div class="navbar-header">
						
						<?php 
            if ($this->getParam('load_head_logo_nav', 1)) {
                // get params
                $sitename = $this->params->get('sitename');
                $slogan = $this->params->get('slogan', '');
                $logotype = $this->params->get('logotype', 'text');
                $logoimage = $logotype == 'image' ? $this->params->get('logoimage', 'templates/' . CANVAS_TEMPLATE . '/images/logo.png') : '';
                $logoimgsm = $logotype == 'image' && $this->params->get('enable_logoimage_sm', 0) ? $this->params->get('logoimage_sm', '') : false;
                if (!$sitename) {
                    $sitename = JFactory::getConfig()->get('sitename');
                }
                ?>
						<!-- LOGO IN NAVBAR -->
							<!-- LOGO -->
							<div class="logo logo-<?php 
                echo $logotype;
                ?>
">
								<div class="logo-<?php 
                echo $logotype, $logoimgsm ? ' logo-control' : '';
                ?>
">
									<a href="<?php 
                echo JURI::base(true);
                ?>
" title="<?php 
                echo strip_tags($sitename);
                ?>
">
										<?php 
                if ($logotype == 'image') {
                    ?>
											<img class="logo-img" src="<?php 
                    echo JURI::base(true) . '/' . $logoimage;
                    ?>
" alt="<?php 
                    echo strip_tags($sitename);
                    ?>
" />
										<?php 
                }
                ?>
										
										<?php 
                if ($logoimgsm) {
                    ?>
											<img class="logo-img-sm" src="<?php 
                    echo JURI::base(true) . '/' . $logoimgsm;
                    ?>
" alt="<?php 
                    echo strip_tags($sitename);
                    ?>
" />
										<?php 
                }
                ?>
										<?php 
                if ($logotype == 'image') {
                    echo '<span class="hide-text">';
                }
                ?>
										
										<?php 
                if (strpos($sitename, '::') !== false) {
                    $sitenameTitle = explode('::', $sitename);
                    $sitenameTitle = $sitenameTitle[0] . "<span>" . $sitenameTitle[1] . "</span>";
                } else {
                    $sitenameTitle = $sitename;
                }
                ?>
										<?php 
                echo $sitenameTitle;
//.........这里部分代码省略.........
开发者ID:shamsbd71,项目名称:canvas-framework,代码行数:101,代码来源:mainnav.php


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