本文整理汇总了PHP中X2Html::orderedList方法的典型用法代码示例。如果您正苦于以下问题:PHP X2Html::orderedList方法的具体用法?PHP X2Html::orderedList怎么用?PHP X2Html::orderedList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类X2Html
的用法示例。
在下文中一共展示了X2Html::orderedList方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
echo CHtml::activeLabel($admin, 'googleIntegration', array('style' => 'display:inline;'));
echo '<br>';
echo '<br>';
?>
<div class='integration-description'>
<?php
echo Yii::t('app', 'Activating Google Integration enables the following features:');
echo X2Html::unorderedList(array(CHtml::encode(Yii::t('app', 'Google sign in')), CHtml::encode(Yii::t('app', 'Google Calendar sync')), CHtml::encode(Yii::t('app', 'Google Drive access'))));
?>
</div>
<?php
echo CHtml::tag('h3', array(), Yii::t('app', 'Configuring Google Integration'));
?>
<hr>
<?php
echo X2Html::orderedList(array(Yii::t('app', 'Visit {link} and create or select a Google project.', array('{link}' => '<a href="https://console.developers.google.com/">' . 'https://console.developers.google.com</a>')), CHtml::encode(Yii::t('app', 'To configure Google integration for Calendar sync, Google login, and ' . 'Google Drive access:')) . X2Html::orderedList(array(CHtml::encode(Yii::t('app', 'From the "APIs & auth" section in the left sidebar, select "APIs."')), CHtml::encode(Yii::t('app', 'Search for and enable the Calendar and Drive APIs.')), CHtml::encode(Yii::t('app', 'From the "APIs & auth" section in the left sidebar, select ' . '"Credentials."')), CHtml::encode(Yii::t('app', 'Create an OAuth 2.0 client ID.')), CHtml::encode(Yii::t('app', 'When asked for "Authorized Redirect URIs," input the following ' . 'urls:')) . CHtml::tag('textarea', array('readonly' => 'readonly', 'class' => 'authorized-js-origins'), (@$_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . Yii::app()->controller->createUrl('/calendar/calendar/syncActionsToGoogleCalendar') . "\n" . (@$_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . Yii::app()->controller->createUrl('/site/googleLogin') . "\n" . (@$_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . Yii::app()->controller->createUrl('/site/upload')), CHtml::encode(Yii::t('app', 'When asked for "Authorized JavaScript Origins," input the ' . 'following urls:')) . CHtml::tag('textarea', array('readonly' => 'readonly'), (@$_SERVER['HTTPS'] == 'on' ? 'https://' : 'http://') . $_SERVER['HTTP_HOST']), Yii::t('app', 'Copy the Client ID and Client Secret into OAuth 2.0 Credentials ' . 'section {below}.', array('{below}' => CHtml::link(Yii::t('app', 'below'), '#oauth-2.0')))), array('style' => 'list-style-type: lower-latin;'))), array('class' => 'config-instructions'));
echo X2Html::fragmentTarget('oauth-2.0');
echo CHtml::tag('h3', array('class' => 'oauth-header'), Yii::t('app', 'OAuth 2.0 Credentials'));
echo X2Html::hint2(Yii::t('app', 'Needed for Google Calendar sync, Google login, and Google Drive access.'));
echo '<hr />';
echo CHtml::activeLabel($model, 'clientId');
$model->renderProtectedInput('clientId');
echo CHtml::activeLabel($model, 'clientSecret');
$model->renderProtectedInput('clientSecret');
echo CHtml::tag('h3', array(), Yii::t('app', 'Google Analytics Integration'));
echo '<hr />';
echo CHtml::activeLabel($admin, 'gaTracking_public');
echo CHtml::activeTextField($admin, 'gaTracking_public');
echo CHtml::activeLabel($admin, 'gaTracking_internal');
echo CHtml::activeTextField($admin, 'gaTracking_internal');
echo '<br>';