本文整理汇总了PHP中Loader::element方法的典型用法代码示例。如果您正苦于以下问题:PHP Loader::element方法的具体用法?PHP Loader::element怎么用?PHP Loader::element使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Loader
的用法示例。
在下文中一共展示了Loader::element方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: form
public function form() {
$this->load();
if (is_object($this->attributeValue)) {
$value = $this->getAttributeValue()->getValue();
}
$this->addHeaderItem(Loader::helper('html')->javascript('tiny_mce/tiny_mce.js'));
// switch display type here
if ($this->akTextareaDisplayMode == 'text' || $this->akTextareaDisplayMode == '') {
print Loader::helper('form')->textarea($this->field('value'), $value);
} else {
$this->addHeaderItem(Loader::helper('html')->css('ccm.dialog.css'));
$this->addHeaderItem(Loader::helper('html')->css('ccm.forms.css'));
$this->addHeaderItem(Loader::helper('html')->css('ccm.filemanager.css'));
$this->addHeaderItem(Loader::helper('html')->css('ccm.search.css'));
$this->addHeaderItem(Loader::helper('html')->css('ccm.menus.css'));
$this->addHeaderItem(Loader::helper('html')->javascript('ccm.filemanager.js'));
$this->addHeaderItem(Loader::helper('html')->javascript('ccm.dialog.js'));
$this->addHeaderItem(Loader::helper('html')->javascript('ccm.ui.js'));
$this->addHeaderItem(Loader::helper('html')->javascript('jquery.form.js'));
$this->addHeaderItem(Loader::helper('html')->javascript('jquery.liveupdate.js'));
$this->addHeaderItem(Loader::helper('html')->javascript('ccm.search.js'));
$this->addHeaderItem('<script type="text/javascript" src="' . REL_DIR_FILES_TOOLS_REQUIRED . '/i18n_js"></script>');
Loader::element('editor_init');
$editor_mode = strtoupper(str_replace('rich_text_', '', $this->akTextareaDisplayMode));
Loader::element('editor_config', array('editor_mode' => $editor_mode, 'editor_selector' => 'ccm-advanced-editor-' . $this->attributeKey->getAttributeKeyID()));
if (in_array($this->akTextareaDisplayMode, array('rich_text', 'rich_text_advanced', 'rich_text_office', 'rich_text_custom'))) {
Loader::element('editor_controls', array('mode'=>'full'));
}
print Loader::helper('form')->textarea($this->field('value'), $value, array('class' => 'ccm-advanced-editor-' . $this->attributeKey->getAttributeKeyID()));
}
}
示例2: preProcess
public function preProcess()
{
Loader::element('editor_init');
Loader::element('editor_config', array('editor_mode' => 'CUSTOM'));
foreach ($this->getHiddenFields() as $hField) {
echo $hField->getField();
}
}
示例3: initialize
public function initialize()
{
parent::initialize();
$this->fieldAttrs['class'] .= ' ccm-advanced-editor';
$form = Loader::helper('form');
$this->field = $template = file_get_contents(dirname(__FILE__) . '/../../../assets/templates/editor_controls.html');
$this->field .= $form->textarea($this->getDisplayFieldName(), $this->default, $this->fieldAttrs);
if (!$_GLOBALS['mce_conf']) {
Loader::element('editor_init');
Loader::element('editor_config', array('editor_mode' => 'ADVANCED'));
$_GLOBALS['mce_conf'] = 1;
}
}
示例4: form
public function form()
{
$this->load();
if (is_object($this->attributeValue)) {
$value = $this->getAttributeValue()->getValue();
}
$this->addHeaderItem(Loader::helper('html')->javascript('tiny_mce/tiny_mce.js'));
// switch display type here
if ($this->akTextareaDisplayMode == 'text' || $this->akTextareaDisplayMode == '') {
print Loader::helper('form')->textarea($this->field('value'), $value);
} else {
Loader::element('editor_init');
$editor_mode = strtoupper(str_replace('rich_text_', '', $this->akTextareaDisplayMode));
Loader::element('editor_config', array('editor_mode' => $editor_mode, 'editor_selector' => 'ccm-advanced-editor-' . $this->attributeKey->getAttributeKeyID()));
if (in_array($this->akTextareaDisplayMode, array('rich_text', 'rich_text_advanced', 'rich_text_office', 'rich_text_custom'))) {
Loader::element('editor_controls', array('mode' => 'full'));
}
print Loader::helper('form')->textarea($this->field('value'), $value, array('class' => 'ccm-advanced-editor-' . $this->attributeKey->getAttributeKeyID()));
}
}
示例5: defined
<?php
defined('C5_EXECUTE') or die("Access Denied.");
?>
<?php
$pk = FilePermissionKey::getByID($_REQUEST['pkID']);
$pk->setPermissionObject($f);
?>
<?php
Loader::element("permission/detail", array('permissionKey' => $pk));
?>
<script type="text/javascript">
var ccm_permissionDialogURL = '<?php
echo REL_DIR_FILES_TOOLS_REQUIRED;
?>
/permissions/dialogs/file?fID=<?php
echo $f->getFileID();
?>
';
</script>
示例6: TaskPermission
<form method="post" action="<?php
echo $view->action('save');
?>
" id="ccm-permission-list-form">
<?php
echo Loader::helper('validation/token')->output('save_permissions');
?>
<div class="ccm-pane-body">
<?php
$tp = new TaskPermission();
if ($tp->canAccessTaskPermissions()) {
?>
<?php
Loader::element('permission/lists/file_set', array('fs' => $fs));
?>
<?php
} else {
?>
<p><?php
echo t('You cannot access task permissions.');
?>
</p>
<?php
}
?>
</div>
<div class="ccm-dashboard-form-actions-wrapper">
<div class="ccm-dashboard-form-actions">
<a href="<?php
示例7: h
?>
><?php
echo h(tc('GroupName', $g['gName']));
?>
</option>
<?php
}
}
?>
</select>
</div>
</div>
</fieldset>
<?php
Loader::element('users/confirm_list', array('users' => $users));
?>
</form>
</div>
<div class="dialog-buttons">
<?php
echo $ih->button_js(t('Cancel'), 'jQuery.fn.dialog.closeTop()', 'left', 'btn');
?>
<?php
echo $ih->button_js(t('Save'), 'ccm_userBulkGroupRemove()', 'right', 'btn primary');
?>
</div>
<?php
示例8: array
echo Loader::helper('concrete/dashboard')->getDashboardPaneFooterWrapper(false);
?>
<?php
} else {
?>
<?php
echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Page Attributes'), false, false, false);
?>
<?php
$attribs = CollectionAttributeKey::getList();
Loader::element('dashboard/attributes_table', array('category' => $category, 'attribs' => $attribs, 'editURL' => '/dashboard/pages/attributes'));
?>
<div class="ccm-pane-body ccm-pane-body-footer" style="margin-top: -25px">
<form method="get" class="form-stacked inline-form-fix" action="<?php
echo $this->action('select_type');
?>
" id="ccm-attribute-type-form">
<div class="clearfix">
<?php
echo $form->label('atID', t('Add Attribute'));
?>
<div class="input">
<?php
示例9: t
<div class="control-group">
<fieldset>
<legend><?php
echo t("Workflow Access");
?>
</legend>
<?php
echo Loader::element("permission/lists/basic_workflow", array('enablePermissions' => false, 'workflow' => $workflow));
?>
</fieldset></div>
示例10: array
$sql = 'UPDATE CollectionVersionAreaLayouts SET position=? WHERE cvalID=? ';
$db->query($sql, $vals);
$siblingMoved = 1;
}
if ($siblingMoved == 1) {
$sql = 'UPDATE CollectionVersionAreaLayouts SET position=? WHERE cvalID=? ';
$db->query($sql, array($layout->position, $layout->cvalID));
}
break;
}
}
$layouts = $a->getAreaLayouts($nvc);
$jsonData['success'] = 1;
break;
case 'deleteOpts':
Loader::element('block_area_layout_delete_opts', array('cvalID' => $layout->cvalID));
die;
break;
case 'delete':
$areaNameNumber = $_REQUEST['areaNameNumber'];
if ($areaNameNumber) {
$db = Loader::db();
$vals = array($nvc->getCollectionID(), $nvc->getVersionID(), $a->getAreaHandle(), $areaNameNumber);
$db->Execute('delete from CollectionVersionAreaLayouts WHERE cID = ? AND cvID = ? AND arHandle = ? AND areaNameNumber = ?', $vals);
//also delete this layouts blocks
$layout->setAreaObj($a);
//we'll try to grab more areas than necessary, just incase the layout size had been reduced at some point.
//error_log ('$layoutNameNumber: ' . $layout->getAreaNameNumber() . ' ' . print_r($_REQUEST,true));
$layout->areaNameNumber = $areaNameNumber;
$maxCell = $layout->getMaxCellNumber() + 20;
for ($i = 1; $i <= $maxCell; $i++) {
示例11: defined
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$tp = new TaskPermission();
if (!$tp->canAccessUserSearch()) {
die(t("You have no access to users."));
}
$u = new User();
$cnt = Loader::controller('/dashboard/users/search');
$userList = $cnt->getRequestedSearchResults();
$columns = $cnt->get('columns');
$users = $userList->getPage();
$pagination = $userList->getPagination();
$searchType = Loader::helper('text')->entities($_REQUEST['searchType']);
Loader::element('users/search_results', array('columns' => $columns, 'users' => $users, 'userList' => $userList, 'searchType' => $searchType, 'pagination' => $pagination));
示例12: array
?>
" id="ccm-attribute-key-form">
<?php
Loader::element("attribute/type_form_required", array('category' => $category, 'type' => $type));
?>
</form>
<?php
}
?>
<?php
} else {
$attribs = UserAttributeKey::getList();
Loader::element('dashboard/attributes_table', array('types' => $types, 'category' => $category, 'attribs' => $attribs, 'editURL' => '/dashboard/users/attributes', 'sortable' => true));
}
}
?>
<script type="text/javascript">
$(function() {
$("ul.ccm-sortable-attribute-list-wrapper").sortable({
handle: 'i.ccm-item-select-list-sort',
cursor: 'move',
opacity: 0.5,
stop: function() {
var ualist = $(this).sortable('serialize');
ualist += '&ccm_token=' + '<?php
echo $controller->token->generate('attribute_sort');
示例13: array
}
?>
><?php
echo Loader::element('permission/labels', array('pk' => $pk));
?>
</td>
</tr>
<?php
}
if ($enablePermissions) {
?>
<tr>
<td class="ccm-permission-grid-name" ></td>
<td>
<?php
echo Loader::element('permission/clipboard', array('pkCategory' => $cat));
?>
</td>
</tr>
<?php
}
?>
</table>
<?php
if ($enablePermissions) {
?>
<script type="text/javascript">
ccm_permissionLaunchDialog = function(link) {
var dupe = $(link).attr('data-duplicate');
示例14: array
<i class="fa fa-bars"></i>
</li>
</ul>
</div>
<?php
$dh = Loader::helper('concrete/dashboard');
print $dh->getIntelligentSearchMenu();
if (!$hideDashboardPanel) {
?>
<div id="ccm-panel-dashboard" class="hidden-xs hidden-sm ccm-panel ccm-panel-right ccm-panel-transition-slide ccm-panel-active ccm-panel-loaded">
<div class="ccm-panel-content-wrapper ccm-ui">
<div class="ccm-panel-content ccm-panel-content-visible">
<?php
$cnt = new \Concrete\Controller\Panel\Dashboard();
$cnt->setPageObject($c);
$cnt->view();
$nav = $cnt->get('nav');
$tab = $cnt->get('tab');
$ui = $cnt->get('ui');
Loader::element('panels/dashboard', array('nav' => $nav, 'tab' => $tab, 'ui' => $ui, 'c' => $c));
?>
</div></div>
</div>
<?php
}
?>
<div id="ccm-dashboard-content" class="container-fluid">
示例15: defined
<?php
defined('C5_EXECUTE') or die('Access Denied.');
$taskElements = array('view' => 'forms/types/list', 'add' => 'forms/types/form', 'edit' => 'forms/types/form');
$element = $taskElements[$this->controller->getTask()];
Loader::element($element, get_defined_vars() + ['view' => $this], 'attribute_forms');