本文整理汇总了PHP中AuxLib::getIEVer方法的典型用法代码示例。如果您正苦于以下问题:PHP AuxLib::getIEVer方法的具体用法?PHP AuxLib::getIEVer怎么用?PHP AuxLib::getIEVer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AuxLib
的用法示例。
在下文中一共展示了AuxLib::getIEVer方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getIEDefaultPackages
public function getIEDefaultPackages()
{
if (AuxLib::getIEVer() >= 9) {
return array();
}
return array();
// return array(
// 'aight' => array(
// 'baseUrl' => Yii::app()->request->baseUrl,
// 'js' => array(
// 'js/lib/aight/aight.js',
// ),
// 'depends' => array('jquery'),
// ),
// );
}
示例2: array
?>
<div class='row'>
<?php
if (AuxLib::getIEVer() < 10) {
echo $form->label($model, 'username', array('style' => $profile ? 'display: none;' : ''));
}
if ($profile) {
echo $form->hiddenField($model, 'username');
} else {
echo $form->textField($model, 'username', array('placeholder' => Yii::t('app', 'Username'), 'value' => $_GET['username']));
}
?>
</div>
<div class='row'>
<?php
if (AuxLib::getIEVer() < 10) {
echo $form->label($model, 'password', array('style' => 'margin-top:5px;'));
}
echo $form->passwordField($model, 'password', array('placeholder' => Yii::t('app', 'Password'), 'value' => $_GET['username']));
echo $form->error($model, 'password');
?>
</div>
<?php
if ($model->useCaptcha && CCaptcha::checkRequirements()) {
?>
<div class="row captcha-row">
<?php
echo '<div id="captcha-container">';
$this->widget('CCaptcha', array('clickableImage' => true, 'showRefreshButton' => false, 'imageOptions' => array('id' => 'captcha-image', 'style' => 'display:block;cursor:pointer;', 'title' => Yii::t('app', 'Click to get a new image'))));
echo '</div>';
echo '<p class="hint">' . Yii::t('app', 'Please enter the letters in the image above.') . '</p>';
示例3: array
?>
<div id='full-name'><?php
echo $fullName;
?>
</div>
<?php
}
if (AuxLib::isIE() && AuxLib::getIEVer() < 10) {
echo $form->label($model, 'username', array('style' => $hasProfile ? 'display: none;' : ''));
}
if ($hasProfile) {
echo $form->hiddenField($model, 'username');
} else {
echo $form->textField($model, 'username', array('placeholder' => Yii::t('app', 'Username')));
}
if (AuxLib::isIE() && AuxLib::getIEVer() < 10) {
echo $form->label($model, 'password', array('style' => 'margin-top:5px;'));
}
echo $form->passwordField($model, 'password', array('placeholder' => Yii::t('app', 'Password')));
echo $form->error($model, 'password');
if ($model->useCaptcha && CCaptcha::checkRequirements()) {
?>
<div class="row captcha-row">
<?php
echo '<div id="captcha-container">';
$this->widget('CCaptcha', array('clickableImage' => true, 'showRefreshButton' => false, 'imageOptions' => array('id' => 'captcha-image', 'style' => 'display:block;cursor:pointer;', 'title' => Yii::t('app', 'Click to get a new image'))));
echo '</div>';
echo '<p class="hint">' . Yii::t('app', 'Please enter the letters in the image above.') . '</p>';
echo $form->textField($model, 'verifyCode');
?>
</div><?php
示例4: mb_internal_encoding
* technical reasons, the Appropriate Legal Notices must display the words
* "Powered by X2Engine".
*****************************************************************************************/
mb_internal_encoding('UTF-8');
mb_regex_encoding('UTF-8');
Yii::app()->params->profile = Profile::model()->findByPk(1);
// use the admin's profile since the user hasn't logged in
$jsVersion = '?' . Yii::app()->params->buildDate;
// blueprint CSS framework
$themeURL = Yii::app()->theme->getBaseUrl();
Yii::app()->clientScript->registerCssFile($themeURL . '/css/screen.css' . $jsVersion, 'screen, projection');
Yii::app()->clientScript->registerCssFile($themeURL . '/css/print.css' . $jsVersion, 'print');
Yii::app()->clientScript->registerCssFile($themeURL . '/css/main.css' . $jsVersion, 'screen, projection');
Yii::app()->clientScript->registerCssFile($themeURL . '/css/form.css' . $jsVersion, 'screen, projection');
Yii::app()->clientScript->registerCssFile($themeURL . '/css/ui-elements.css' . $jsVersion, 'screen, projection');
if (AuxLib::getIEVer() < 9) {
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/lib/aight/aight.js');
}
Yii::app()->clientScript->registerScriptFile(Yii::app()->baseUrl . '/js/lib/jquery-migrate-1.2.1.js');
$backgroundImg = '';
$defaultOpacity = 1;
$themeCss = '';
$checkResult = false;
$checkFiles = array('themes/x2engine/images/x2footer.png' => '1393e4af54ababdcf76fac7f075b555b', 'themes/x2engine/images/x2-mini-icon.png' => '153d66b514bf9fb0d82a7521a3c64f36');
foreach ($checkFiles as $key => $value) {
if (!file_exists($key) || hash_file('md5', $key) != $value) {
$checkResult = true;
}
}
$theme2Css = '';
if ($checkResult) {
示例5: IEBanner
public static function IEBanner($ver = 9, $echo = true)
{
if (AuxLib::getIEVer() >= $ver) {
return false;
}
$htmlOptions = array('class' => 'ie-banner');
$message = Yii::t('app', 'This feature does not support your version of Internet Explorer');
if ($echo) {
echo self::tag('h2', $htmlOptions, Yii::t('app', $message));
return true;
} else {
return self::tag('h2', $htmlOptions, Yii::t('app', $message));
}
}