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


PHP CKunenaLink::GetHrefLink方法代码示例

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


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

示例1: getInboxLink

 public function getInboxLink($text)
 {
     if (!$text) {
         $text = JText::_('COM_KUNENA_PMS_INBOX');
     }
     return CKunenaLink::GetHrefLink(CRoute::_('index.php?option=com_community&view=inbox'), $text, '', 'follow');
 }
开发者ID:redigy,项目名称:Kunena-1.6,代码行数:7,代码来源:private.php

示例2: getInboxLink

 public function getInboxLink($text)
 {
     if (!$text) {
         $text = JText::_('COM_KUNENA_PMS_INBOX');
     }
     return CKunenaLink::GetHrefLink(JRoute::_($this->uddeim->getLinkToBox('inbox', false)), $text, '', 'follow');
 }
开发者ID:laiello,项目名称:senluonirvana,代码行数:7,代码来源:private.php

示例3: getInboxLink

	public function getInboxLink ($text) {
		if (!$text) $text = JText::_('COM_KUNENA_PMS_INBOX');
		global $_CB_framework;

		$cbpath = JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php';
		if (file_exists($cbpath)) require_once($cbpath);
		else return;

		$userid = $_CB_framework->myId();

		$cbUser =& CBuser::getInstance( (int) $userid );
		if($cbUser === null) return;

		$itemid = getCBprofileItemid();

		return CKunenaLink::GetHrefLink ( cbSef ('index.php?option=com_comprofiler&task=userProfile&user=' .$userid. $itemid), $text, '', 'follow');
	}
开发者ID:rich20,项目名称:Kunena,代码行数:17,代码来源:private.php

示例4: GetThreadPageLink

	function GetThreadPageLink($view, $catid, $id, $limitstart, $limit, $name, $anker = '', $rel = 'follow', $class = '') {
		$kunena_config = KunenaFactory::getConfig ();
		$pagelink = CKunenaLink::GetHrefLink ( self::GetThreadPageURL($view, $catid, $id, $limitstart, $limit, $anker), $name, '', $rel, $class );
		return $pagelink;
	}
开发者ID:rich20,项目名称:Kunena,代码行数:5,代码来源:kunena.link.class.php

示例5: if

							<input type="checkbox" name="remember" alt="" value="yes" />
							<?php endif; ?>
							<input type="submit" name="submit" class="kbutton" value="<?php echo JText::_('COM_KUNENA_PROFILEBOX_LOGIN'); ?>" />
						</span>
					</div>
					<div class="klink-block">
						<span class="kprofilebox-pass">
							<?php echo CKunenaLink::GetHrefLink($this->lostpassword, JText::_('COM_KUNENA_PROFILEBOX_FORGOT_PASSWORD')) ?>
						</span>
						<span class="kprofilebox-user">
							<?php echo CKunenaLink::GetHrefLink($this->lostusername, JText::_('COM_KUNENA_PROFILEBOX_FORGOT_USERNAME')) ?>
						</span>
						<?php
						if ($this->register) : ?>
						<span class="kprofilebox-register">
							<?php echo CKunenaLink::GetHrefLink($this->register, JText::_('COM_KUNENA_PROFILEBOX_CREATE_ACCOUNT')) ?>
						</span>
						<?php endif; ?>
					</div>
				</form>
				<?php endif; ?>
			</td>
			<?php if ($this->moduleHtml) : ?>
			<td class = "kprofilebox-right">
				<div class="kprofilebox-modul">
					<?php $this->moduleHtml; ?>
				</div>
			</td>
			<?php endif; ?>
		</tr>
	</tbody>
开发者ID:GoremanX,项目名称:Kunena-2.0,代码行数:31,代码来源:login.php

示例6: GetProfileLink

 function GetProfileLink($fbConfig, $userid, $name, $rel = 'nofollow', $class = '')
 {
     if ($userid > 0) {
         $link = CKunenaLink::GetProfileURL($userid);
         if (!empty($link)) {
             return CKunenaLink::GetHrefLink($link, $name, '', $rel, $class);
         }
     }
     return $name;
 }
开发者ID:kaantunc,项目名称:MYK-BOR,代码行数:10,代码来源:kunena.link.class.php

示例7: GetProfileLink

 function GetProfileLink($userid, $name = null, $title = '', $rel = 'nofollow', $class = '')
 {
     if (!$name) {
         $profile = KunenaFactory::getUser($userid);
         $name = htmlspecialchars($profile->getName(), ENT_COMPAT, 'UTF-8');
     }
     if ($userid == 0) {
         $uclass = 'kwho-guest';
     } else {
         if (CKunenaTools::isAdmin($userid)) {
             $uclass = 'kwho-admin';
         } else {
             if (CKunenaTools::isModerator($userid, false)) {
                 $uclass = 'kwho-globalmoderator';
             } else {
                 if (CKunenaTools::isModerator($userid)) {
                     $uclass = 'kwho-moderator';
                 } else {
                     $uclass = 'kwho-user';
                 }
             }
         }
     }
     if ($userid > 0) {
         $link = CKunenaLink::GetProfileURL($userid);
         if (!empty($link)) {
             return CKunenaLink::GetHrefLink($link, $name, $title, $rel, $uclass);
         }
     }
     return "<span class=\"{$uclass}\">{$name}</span>";
 }
开发者ID:vuchannguyen,项目名称:hoctap,代码行数:31,代码来源:kunena.link.class.php

示例8: if

							<legend class="klegend"><?php echo JText::_('COM_KUNENA_PROFILEBOX_LOGIN'); ?></legend>
							<label for="kusername"><?php echo JText::_('COM_KUNENA_LOGIN_USERNAME') ?></label>
							<input type="text" name="<?php echo $this->login['field_username']; ?>" id="kusername" class="kinputbox" />
							<label for="kpassword"><?php echo JText::_('COM_KUNENA_LOGIN_PASSWORD') ?></label>
							<input type="password" name="<?php echo $this->login['field_password']; ?>" id="kpassword" class="kinputbox" />
							<label for="kremember"><?php echo JText::_('COM_KUNENA_LOGIN_REMEMBER_ME') ?></label>
							<input type="checkbox" id="kremember" class="kcheckbox" name="remember" value="yes" />
							<button type="submit" value="Log in" class="kbutton"><?php echo JText::_('COM_KUNENA_PROFILEBOX_LOGIN'); ?></button>
							<input type="hidden" name="option" value="<?php echo $this->login['option']; ?>" />
							<?php if (!empty($this->login['view'])) : ?>
							<input type="hidden" name="view" value="<?php echo $this->login['view']; ?>" />
							<?php endif; ?>
							<input type="hidden" name="task" value="<?php echo $this->login['task']; ?>" />
							<input type="hidden" name="<?php echo $this->login['field_return']; ?>" value="[K=RETURN_URL]" />
							[K=TOKEN]
						</fieldset>
					</form>
				</li>
				<li class="klogin-user">
					<ul>
						<li class="klogin-password"><?php echo CKunenaLink::GetHrefLink($this->lostpassword, JText::_('COM_KUNENA_PROFILEBOX_FORGOT_PASSWORD')) ?></li>
						<li class="klogin-username"><?php echo CKunenaLink::GetHrefLink($this->lostusername, JText::_('COM_KUNENA_PROFILEBOX_FORGOT_USERNAME')) ?></li>
						<?php if ($this->register) : ?>
						<li class="klogin-register"><?php echo CKunenaLink::GetHrefLink($this->register, JText::_('COM_KUNENA_PROFILEBOX_CREATE_ACCOUNT')) ?></li>
						<?php endif ?>
					</ul>
				</li>
				<?php endif ?>
			</ul>
		</div>
开发者ID:rich20,项目名称:Kunena,代码行数:30,代码来源:login.php

示例9: getLostUserLink

 function getLostUserLink()
 {
     $login = KunenaFactory::getLogin();
     if (!$login) {
         return '';
     }
     $url = $login->getRemindURL();
     if (!$url) {
         return '';
     }
     return CKunenaLink::GetHrefLink($url, JText::_('COM_KUNENA_PROFILEBOX_FORGOT_USERNAME'));
 }
开发者ID:redigy,项目名称:Kunena-1.6,代码行数:12,代码来源:kunena.login.php

示例10: getCreditsLink

	function getCreditsLink() {
		return CKunenaLink::GetHrefLink ( 'http://www.kunena.org', 'Kunena', 'Kunena', 'follow', NULL, NULL, 'target="_blank"' );
	}
开发者ID:GoremanX,项目名称:Kunena-2.0,代码行数:3,代码来源:view.html.php

示例11: if

								</li>
								<li>
							<?php if(JPluginHelper::isEnabled('system', 'remember')) : ?>
							<input type="checkbox" name="remember" alt="" value="yes" />
							<?php echo JText::_('COM_KUNENA_LOGIN_REMEMBER_ME');  ?>
							<?php endif; ?><input type="submit" name="submit" class="tk-login-button" value="<?php echo JText::_('COM_KUNENA_PROFILEBOX_LOGIN'); ?>" />
								</li>
							</ul>
						</dd>
						<dd class="tk-loginform">
							<ul>
								<li class="tk-lostpwdlink">
									<?php echo CKunenaLink::GetHrefLink($this->lostpassword, JText::_('COM_KUNENA_PROFILEBOX_FORGOT_PASSWORD')) ?>
								</li>
								<li class="tk-lostuserlink">
									<?php echo CKunenaLink::GetHrefLink($this->lostusername, JText::_('COM_KUNENA_PROFILEBOX_FORGOT_USERNAME')) ?>
								</li>
							</ul>
						</dd>
					</dl>
				</li>
			</ul>
		</form>
	</div>
</div>

<?php include dirname ( __FILE__ ) . '/rules.php'; ?>
<?php include dirname ( __FILE__ ) . '/register.php'; ?>

<script type="text/javascript">
//<![CDATA[
开发者ID:GoremanX,项目名称:Kunena-2.0,代码行数:31,代码来源:login.php


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