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


PHP XWB_plugin::getPluginUrl方法代码示例

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


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

示例1: isset

                    <?php 
}
?>
                </div>
                
                <?php 
if (!empty($owbUserRs)) {
    ?>
                <div class="attention">
                    <h4>分享后再关注一下,是一种美德</h4>
                    <dl>
                    <dt><a href="<?php 
    echo XWB_plugin::getWeiboProfileLink($owbUserRs['id']);
    ?>
" target="_blank"><img src="<?php 
    echo isset($owbUserRs['local_image_url']) ? $owbUserRs['local_image_url'] : XWB_plugin::getPluginUrl('images/bgimg/0.gif');
    ?>
"  /></a></dt>
                    <dd class="info">
                    	<h5><?php 
    echo $owbUserRs['screen_name'];
    ?>
</h5>
                        <p class="adr"><span><a target="_blank" href="<?php 
    echo XWB_plugin::getEntryURL('xwbSiteInterface.attention', "att_id={$owbUserRs['id']}&" . XWB_TOKEN_NAME . "=" . FORMHASH);
    ?>
">加关注</a></span></p>
                    </dd>
                    </dl>
                </div>
                <?php 
开发者ID:Jaedeok-seol,项目名称:discuz_template,代码行数:31,代码来源:share_msg.tpl.php

示例2: die

if (!defined('IS_IN_XWB_PLUGIN')) {
    die('access deny!');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>绑定插件 - 新浪微博插件</title>
<link href="<?php 
echo XWB_plugin::getPluginUrl('images/xwb_admin.css');
?>
" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php 
echo XWB_plugin::getPluginUrl('images/xwb.js');
?>
"></script>
<style>
body{ background:#FFF;}
#unbound	{ padding-left:6px; padding-top:21px;}
#unbound .kaiser_sina_main					{ width:799px; padding:0;}
#unbound .kaiser_sina_con-l					{ width:64px; height:64px; margin-right:0; overflow:hidden; float:left;}
#unbound .kaiser_sina_con-l .binding		{ width:64px; height:64px; padding:0; background:url(/template/we54/images/kiaser_space_bangding_sina.png) no-repeat; overflow:hidden; float:left;}
#unbound .kaiser_sina_con-r					{ width:80%; padding:4px 0 0 19px; font-family:"微软雅黑"; overflow:hidden; float:left;}
#unbound .kaiser_sina_con-r h4				{ padding:0 16px 0 0; font-size:12px; font-weight:normal; color:#999; line-height:24px; overflow:hidden; float:left;}
#unbound .kaiser_sina_con-r a				{ width:131px; height:24px; background:none; overflow:hidden; float:left;}
#unbound .kaiser_sina_con-r p				{ width:700px; margin-left:0; margin-top:10px; display:inline; font-size:12px; font-weight:normal; color:#999; line-height:16px; overflow:hidden; float:left;}
</style>
</head>
<body>
开发者ID:Jaedeok-seol,项目名称:discuz_template,代码行数:30,代码来源:xwb_ubind.tpl.php

示例3: _createContent

 /**
  * 根据发送过来的数据,组装出已经转码的、要插入对应数据库的回帖内容
  *
  * @param array $data API发送过来的数据
  * @return string 要插入的回帖内容(已经转码)
  */
 function _createContent($data)
 {
     //转换为论坛所需要的字符集
     if (empty($data['nick'])) {
         $data['nick'] = '回推';
     }
     $nickname = XWB_plugin::convertEncoding((string) $data['nick'], 'UTF-8', XWB_S_CHARSET);
     $content = XWB_plugin::convertEncoding((string) $data['text'], 'UTF-8', XWB_S_CHARSET);
     //DZ函数
     $content = dhtmlspecialchars($content);
     $content = $this->_replaceSinaUrlToUBB($content);
     $content = $this->_filterContent($content);
     if (empty($content)) {
         return '';
     }
     if (isset($data['pic']) && !empty($data['pic'])) {
         $content .= "\n\n" . '[img]http://ww3.sinaimg.cn/large/' . $data['pic'] . '.jpg[/img]';
     }
     $content = $content . "\n\n" . '[img]' . XWB_plugin::getPluginUrl('images/bgimg/icon_logo.png') . '[/img] ' . '[size=2][color=gray]' . '[url=' . XWB_plugin::getWeiboProfileLink($data['uid']) . ']' . XWB_plugin::L('xwb_reply_from_2', $nickname) . '[/url][/color][/size]';
     return $content;
 }
开发者ID:Jaedeok-seol,项目名称:discuz_template,代码行数:27,代码来源:sitePushback2thread.class.php

示例4: die

if (!defined('IS_IN_XWB_PLUGIN')) {
    die('access deny!');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>绑定错误提示</title>
<link type="text/css" rel="stylesheet" href="<?php 
echo XWB_plugin::getPluginUrl('images/xwb_' . XWB_S_VERSION . '.css');
?>
" />
<link href="<?php 
echo XWB_plugin::getPluginUrl('images/xwb_admin.css');
?>
" rel="stylesheet" type="text/css" />
<script language="javascript" language="javascript">
	function xwb_unbind(){
		if(window.confirm('解除绑定?')){
			document.getElementById('unbindFrm').submit();
			setTimeout("window.location.reload();", 500);
		}
	}
</script>

</head>

<body>
<div class="bind-setting xwb-plugin">
开发者ID:chibimiku,项目名称:xweibo_for_discuz_x2_php7,代码行数:30,代码来源:xwb_bind_error.tpl.php

示例5:

                            <!--a href="#">修改</a-->
                            <div class="link">
                                <a href="<?php 
    echo 'http://weibo.com/u/' . $domain;
    ?>
" target="_blank"><?php 
    echo 'http://weibo.com/u/' . $domain;
    ?>
</a>
                            </div>
                        </div>
                        <?php 
} else {
    ?>
                        <div class="user-pic"><a href="javascript:void(0)"><img alt="微博默认头像" src="<?php 
    echo XWB_plugin::getPluginUrl('images/bgimg/0.gif');
    ?>
" /></a></div>
                        <div class="info">未设置官方微博账号</div>
                        <?php 
}
?>
                    </div>
                </div>
                
                <div class="serch-results">
                    <ul id="serchResultsUl"></ul>
                </div>
                
            </div>
            
开发者ID:Jaedeok-seol,项目名称:discuz_template,代码行数:30,代码来源:plugin_cfg4oc.tpl.php

示例6: die

<?php

if (!defined('IS_IN_XWB_PLUGIN')) {
    die('access deny!');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Xweibo错误提示</title>
<link type="text/css" rel="stylesheet" href="<?php 
echo XWB_plugin::getPluginUrl('images/xwb_' . XWB_S_VERSION . '.css');
?>
" />
</head>

<body>
<div class="bind-setting xwb-plugin">
	<p class="alert-tips">出错啦!</p>
	<div class="bing-text">
		<p><?php 
echo $info;
?>
</p>
    </div>
    
    <div class="setting-box">
		<p><a href="<?php 
echo XWB_plugin::siteUrl();
?>
开发者ID:chibimiku,项目名称:xweibo_for_discuz_x2_php7,代码行数:31,代码来源:xwb_show_error.tpl.php

示例7: die

if (!defined('IS_IN_XWB_PLUGIN')) {
    die('access deny!');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>注册页面</title>
<link type="text/css" rel="stylesheet" href="<?php 
echo XWB_plugin::getPluginUrl('images/xwb_' . XWB_S_VERSION . '.css');
?>
" />
<link type="text/css" rel="stylesheet" href="<?php 
echo XWB_plugin::getPluginUrl('images/xwb_regbox.css');
?>
" />
<script language="javascript">
	document.onkeydown = function (e){
			var ev =  e || window.event ;
			if(ev.keyCode==13 && parent.XWBcontrol.isEndReg){
				parent.XWBcontrol.close('reg');
				window.top.location='index.php';
			}
	}

	function $id (id) {return document.getElementById(id);}

	function xwbSetTips(msg){
		/// 注册成功
开发者ID:Jaedeok-seol,项目名称:discuz_template,代码行数:30,代码来源:register.tpl.php

示例8: articleSync

 /**
  * 门户文章同步到微博
  * @param int $id 文章id
  * @param int $subject 门户主题
  */
 function articleSync($id, $subject)
 {
     global $_G;
     if (empty($subject)) {
         $subject = XWB_plugin::L('xwb_article_no_subject');
     }
     $message = XWB_plugin::L('xwb_article_publish_message', $subject);
     $message = $this->_convert($message);
     $link = ' ' . $_G['siteurl'] . "portal.php?mod=view&aid={$id}";
     if (1 == XWB_plugin::pcfg('link_visit_promotion')) {
         $link .= '&fromuid=' . $_G['uid'];
     }
     $length = 140 - ceil(strlen(urlencode($link)) * 0.5);
     //2个字母为1个字
     $message = $this->_substr($message, $length);
     $message .= $link;
     $db = XWB_plugin::getDB();
     $wb = XWB_plugin::getWB();
     $ret = array();
     // 同步到微博
     $ret = $wb->update($message, false);
     //同步微博后的ID
     if (!empty($ret['id'])) {
         //@todo json_decode可能存在解析超过int最大数的错误(#47644)问题
         $mid = $ret['id'];
         $this->insertSyncId($id, $ret['id'], 'article');
         //日志同步统计上报
         $sess = XWB_plugin::getUser();
         $sess->appendStat('ryz', array('uid' => XWB_plugin::getBindInfo("sina_uid"), 'mid' => $mid, 'type' => 5));
         //插入“已同步到......”到指定id中。
         if (XWB_plugin::pCfg('wb_addr_display')) {
             $redirectURL = XWB_plugin::pCfg('switch_to_xweibo') && XWB_plugin::pCfg('baseurl_to_xweibo') ? rtrim(XWB_plugin::pCfg('baseurl_to_xweibo'), '/') . "/index.php?m=show&id={$mid}" : XWB_API_URL . $ret['user']['id'] . '/statuses/' . $mid;
             $insertSyncHTML = "\n\r" . '<DIV><FONT color="#808080" size=2><IMG src="' . XWB_plugin::getPluginUrl('images/bgimg/icon_logo.png') . '">&nbsp;' . XWB_plugin::L('xwb_topic_has_sycn_to') . '&nbsp;<a href="' . $redirectURL . '" target="_blank">' . $_G['username'] . XWB_plugin::L('xwb_topic_has_sycn_to_new_end') . '</A></FONT></DIV>';
             $insertSyncHTML = mysql_real_escape_string($insertSyncHTML);
             $db->query('UPDATE ' . DB::table('portal_article_content') . ' SET `content` = CONCAT(`content`, \'' . $insertSyncHTML . '\') WHERE `aid` = \'' . $id . '\'');
         }
     }
 }
开发者ID:Jaedeok-seol,项目名称:discuz_template,代码行数:43,代码来源:xwb_plugins_publish.class.php

示例9: _createContent

 /**
  * 根据发送过来的数据,组装出已经转码的、要插入对应数据库的回帖内容
  *
  * @param array $data API发送过来的数据
  * @return string 要插入的回帖内容(已经转码)
  */
 function _createContent($data)
 {
     //转换为论坛所需要的字符集
     if (empty($data['nick'])) {
         $data['nick'] = '回推';
     }
     $nickname = XWB_plugin::convertEncoding((string) $data['nick'], 'UTF-8', XWB_S_CHARSET);
     $content = XWB_plugin::convertEncoding((string) $data['text'], 'UTF-8', XWB_S_CHARSET);
     //DZ函数
     $content = dhtmlspecialchars($content);
     $content = $this->_replaceSinaUrlToHTML($content);
     $content = $this->_filterContent($content);
     if (empty($content)) {
         return '';
     }
     if (isset($data['pic']) && !empty($data['pic'])) {
         $content .= "<br />" . '<img src="chttp://ww3.sinaimg.cn/large/' . $data['pic'] . '.jpg" />';
     }
     $content = '<img src="' . XWB_plugin::getPluginUrl('images/bgimg/icon_logo.png') . '" />' . $nickname . '(<a href="' . XWB_plugin::getWeiboProfileLink($data['uid']) . '" target="_blank">' . XWB_plugin::L('xwb_weibo') . '</a>): ' . $content;
     return $content;
 }
开发者ID:chibimiku,项目名称:xweibo_for_discuz_x2_php7,代码行数:27,代码来源:sitePushback2blog.class.php

示例10: space_profile_baseinfo_top_output

 /**
  * 家园-个人资料页面:显示“是否已经绑定到新浪微博”
  * @return string
  */
 function space_profile_baseinfo_top_output()
 {
     global $_G;
     if (empty($GLOBALS['space']) || true != $this->_start_xweibo(true)) {
         return $return;
     }
     if (isset($GLOBALS['space']['uid'])) {
         $uid = (int) $GLOBALS['space']['uid'];
     } elseif (isset($_G['gp_uid'])) {
         $uid = (int) $_G['gp_uid'];
     } else {
         $uid = 0;
     }
     if ($uid < 1) {
         return $return;
     }
     require XWB_plugin::hackFile('space');
     $setting['is_wbx_display'] = 0;
     $PluginUrl['icon_on'] = XWB_plugin::getPluginUrl('images/bgimg/icon_on.gif');
     $PluginUrl['icon_off'] = XWB_plugin::getPluginUrl('images/bgimg/icon_off.gif');
     $lang['xwb_off_bind_sinamblog'] = XWB_plugin::L('xwb_off_bind_sinamblog');
     $lang['xwb_have_bind_sinamblog'] = XWB_plugin::L('xwb_his_sina_mblog', $GLOBALS['space']['username']);
     $lang['xwb_bind_my_sina_mblog'] = XWB_plugin::L('xwb_bind_my_sina_mblog');
     $weibo_profile_link = '';
     if (isset($sina_uid[$uid])) {
         $weibo_profile_link = tpl_sina_xweibo_x2::getWeiboProfileLink($sina_uid[$uid]);
     }
     include template($this->pluginid . ':home_space_profile');
     return $return;
 }
开发者ID:chibimiku,项目名称:xweibo_for_discuz_x2_php7,代码行数:34,代码来源:hook.class.php

示例11: popShow

}

function popShow(msg, type){
    var popMsg = $id('popMsg');
    var msgImg = $id('msgImg');
    $id('msgSpan').innerHTML = msg;
    if('error' ==  type) msgImg.className = 'error';
    else if('success' == type) msgImg.className = 'success';
    popMsg.className = 'pop-win win-w fixed-pop';
    popMsg.style.display = '';
}

function xwbSetPushbackAuthKey()
{
    $id('loading').innerHTML = '<img src="<?php 
echo XWB_plugin::getPluginUrl('images/bgimg/xwb_loading.gif');
?>
" />';
    XWBcontrol.util.connect('<?php 
echo XWB_plugin::getEntryURL("pushbackInterface.doCfg4setAuthKey");
?>
', {
        method : 'POST',
        data : '',
        success : function(rst) {
            $id('loading').innerHTML = '';
            if (rst[0] != 1) {
            	popShow(rst[1], 'error');
            } else {
                parent.document.getElementById("frame_content").height = document.documentElement.scrollHeight;
            	popShow(rst[1], 'success');
开发者ID:chibimiku,项目名称:xweibo_for_discuz_x2_php7,代码行数:31,代码来源:plugin_cfg_pushback.tpl.php

示例12: time

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>转发到新浪微博</title>
<script type="text/javascript">
	var scope = {
		$lang		  : "zh",
		$severtime    : "<?php 
echo time();
?>
",
		$PRODUCT_NAME : "miniblogplatform",
		$pageid       : "shareSucess",
		$setDomain    : false,
		$devMode	  : 99,
        $localUrl     : '<?php 
echo XWB_plugin::getPluginUrl('images');
?>
'
	};
</script>
<script type="text/javascript" src="<?php 
echo $GLOBALS['_J']['site_url'] . '/images/xwb/boot.js';
?>
"></script>
<script type="text/javascript">loadResource();renderPage();</script>
<link href="<?php 
echo $GLOBALS['_J']['site_url'] . '/images/xwb/public.css';
?>
" rel="stylesheet" type="text/css" />
<link href="<?php 
echo $GLOBALS['_J']['site_url'] . '/images/xwb/shareout.css';
开发者ID:YouthAndra,项目名称:huaitaoo2o,代码行数:31,代码来源:share_msg.tpl.php

示例13: htmlspecialchars

                	<div class="login-btn">
               	    	<img src="<?php 
echo XWB_plugin::getPluginUrl('images/bgimg/sina_login_btn.png');
?>
" />
                    	<span>(该按钮默认显示在导航条的最右端,你也可以把代码放在需要的地方)</span>
                    </div>
                    <table width="100%" border="0" cellpadding="0" cellspacing="0" class="code-t">
  						<tr>
    						<th class="code-left">
                            	<p>登录按钮代码</p>
                        		<a class="conmon-btn copy-code" href="#" onclick="copyCode($id('xwb-login-btn-code'));">复制代码</a>
                            </th>
    						<th class="code-right" id="xwb-login-btn-code">
                                <?php 
echo htmlspecialchars('<a href="xwb.php?m=xwbAuth.login"><img src="' . XWB_plugin::getPluginUrl('images/bgimg/sina_login_btn.png') . '" /></a>');
?>
                            </th>
  						</tr>
					</table>
                </div>
                <p><label for="two">
                    <input class="chk" id="two" name="pluginCfg[bind_btn_usernav]" type="checkbox" value="1" <?php 
echo XWB_plugin::pCfg('bind_btn_usernav') ? 'checked="checked"' : '';
?>
 />2、在header显示绑定微博的提示按钮
                </label></p>
                <p><label for="three">
                    <input class="chk" id="three" name="pluginCfg[is_sync_face]" type="checkbox" value="1" <?php 
echo XWB_plugin::pCfg('is_sync_face') ? 'checked="checked"' : '';
?>
开发者ID:chibimiku,项目名称:xweibo_for_discuz_x2_php7,代码行数:31,代码来源:plugin_cfg_app_set.tpl.php

示例14: die

if (!defined('IS_IN_XWB_PLUGIN')) {
    die('access deny!');
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link type="text/css" rel="stylesheet" href="<?php 
echo XWB_plugin::getPluginUrl('images/xwb_' . XWB_S_VERSION . '.css');
?>
" />
<link type="text/css" rel="stylesheet" href="<?php 
echo XWB_plugin::getPluginUrl('images/xwb_base.css');
?>
" />
</head>

<body class="xwb-plugin">
	<div class="inner-window">
    	<h3>皮肤主题</h3>
    	<div class="sign-skin-setting" id="skin-list" onclick="checkSkin(event, this)">
        	<a href="javascript:void(0)"><span class="skin-01"></span></a>
            <a href="javascript:void(0)"><span class="skin-02"></span></a>
            <a href="javascript:void(0)"><span class="skin-03"></span></a>
            <a href="javascript:void(0)"><span class="skin-04"></span></a>
            <a href="javascript:void(0)"><span class="skin-05"></span></a>
            <a href="javascript:void(0)"><span class="skin-06 sign-setting-bg"></span></a>
            <a href="javascript:void(0)"><span class="skin-07 sign-setting-bg"></span></a>
开发者ID:chibimiku,项目名称:xweibo_for_discuz_x2_php7,代码行数:30,代码来源:signer.tpl.php


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