本文整理汇总了PHP中Loader::packageElement方法的典型用法代码示例。如果您正苦于以下问题:PHP Loader::packageElement方法的具体用法?PHP Loader::packageElement怎么用?PHP Loader::packageElement使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Loader
的用法示例。
在下文中一共展示了Loader::packageElement方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: t
?>
</strong></p>
<p><?php
echo t('<p>You can enable your Alchemy API in your ProBlog settings area.</p>');
?>
</p>
<div class="alert-actions">
</div>
</div>
</div>
<?php
} else {
?>
<?php
Loader::packageElement('tools/optimizer', 'problog', array('settings' => $settings));
?>
<?php
}
?>
</div>
</div>
<br/>
<div class="ccm-pane-footer">
<button type="submit" class="btn btn-primary" style="float: right;"><?php
echo t('%s Post', $title);
?>
</button>
<button class="btn btn-info save" style="float: right;"><?php
echo t('Save & Continue');
示例2: Permissions
$fv = $f->getVersion($_REQUEST['fvID']);
} else {
$fv = $f->getApprovedVersion();
}
$fp = new Permissions($f);
if (!$fp->canRead()) {
die(t("Access Denied."));
}
?>
<div style="text-align: center">
<?
$to = $fv->getTypeObject();
if ($to->getPackageHandle() != '') {
Loader::packageElement('files/view/' . $to->getView(), $to->getPackageHandle(), array('fv' => $fv));
} else {
Loader::element('files/view/' . $to->getView(), array('fv' => $fv));
}
?>
</div>
<div class="dialog-buttons">
<form method="post" action="<?php
echo REL_DIR_FILES_TOOLS_REQUIRED;
?>
/files/download/" style="margin: 0px">
<?php
echo $form->hidden('fID', $f->getFileID());
echo $form->hidden('fvID', $f->getFileVersionID());
echo $form->submit('submit', t('Download'), array('class' => 'ccm-button-right primary'));
示例3: array
$activeHandle = '';
if (is_object($activeLibrary)) {
$activeHandle = $activeLibrary->getSystemAntispamLibraryHandle();
}
?>
<?php
echo $form->select('activeLibrary', $libraries, $activeHandle, array('class' => 'form-control'));
?>
</div>
<?php
if (is_object($activeLibrary)) {
if ($activeLibrary->hasOptionsForm()) {
if ($activeLibrary->getPackageID() > 0) {
Loader::packageElement('system/antispam/' . $activeLibrary->getSystemAntispamLibraryHandle() . '/form', $activeLibrary->getPackageHandle());
} else {
Loader::element('system/antispam/' . $activeLibrary->getSystemAntispamLibraryHandle() . '/form');
}
?>
<div class="form-group">
<label><?php
echo t('Log settings');
?>
</label>
<div class="checkbox">
<?php
echo t('Log entries marked as spam.');
?>
<label><?php
示例4: defined
<?php
defined('C5_EXECUTE') or die("Access Denied.");
?>
<?php
echo Loader::helper('concrete/dashboard')->getDashboardPaneHeaderWrapper(t('Waiting for Me'), false);
?>
<?php
echo Loader::helper('concrete/interface')->tabs($tabs, false);
?>
<?php
if ($category->getPackageID() > 0) {
?>
<?php
Loader::packageElement('workflow/progress/categories/' . $category->getWorkflowProgressCategoryHandle() . '/pending', $category->getPackageHandle(), array('category' => $category));
} else {
?>
<?php
Loader::element('workflow/progress/categories/' . $category->getWorkflowProgressCategoryHandle() . '/pending', array('category' => $category));
}
?>
<?php
echo Loader::helper('concrete/dashboard')->getDashboardPaneFooterWrapper();
示例5: array
$activeHandle = '';
if (is_object($activeCaptcha)) {
$activeHandle = $activeCaptcha->getSystemCaptchaLibraryHandle();
}
?>
<?php
echo $form->select('activeCaptcha', $captchas, $activeHandle, array('class' => 'span4'));
?>
</div>
<?php
if (is_object($activeCaptcha)) {
if ($activeCaptcha->hasOptionsForm()) {
if ($activeCaptcha->getPackageID() > 0) {
Loader::packageElement('system/captcha/' . $activeCaptcha->getSystemCaptchaLibraryHandle() . '/form', $activeCaptcha->getPackageHandle());
} else {
Loader::element('system/captcha/' . $activeCaptcha->getSystemCaptchaLibraryHandle() . '/form');
}
}
}
?>
<?php
} else {
?>
<p><?php
echo t('You have no captcha libraries installed.');
?>
</p>
示例6: if
</div>
<? } ?>
<div id="ccm-tab-content-access-types" <? if (count($tabs) > 0) { ?>class="ccm-tab-content"<? } ?>>
<?
$pkCategoryHandle = $permissionKey->getPermissionKeyCategoryHandle();
$accessTypes = $permissionKey->getSupportedAccessTypes();
Loader::element('permission/access/list', array('pkCategoryHandle' => $pkCategoryHandle, 'permissionAccess' => $pa, 'accessTypes' => $accessTypes)); ?>
</div>
<? if ($permissionKey->hasCustomOptionsForm()) { ?>
<div id="ccm-tab-content-custom-options" class="ccm-tab-content">
<? if ($permissionKey->getPackageID() > 0) { ?>
<? Loader::packageElement('permission/keys/' . $permissionKey->getPermissionKeyHandle(), $permissionKey->getPackageHandle(), array('permissionAccess' => $pa)); ?>
<? } else { ?>
<? Loader::element('permission/keys/' . $permissionKey->getPermissionKeyHandle(), array('permissionAccess' => $pa)); ?>
<? } ?>
</div>
<? } ?>
<? if ($permissionKey->canPermissionKeyTriggerWorkflow() && count($workflows) > 0) { ?>
<?
$selectedWorkflows = $pa->getWorkflows();
$workflowIDs = array();
foreach($selectedWorkflows as $swf) {
$workflowIDs[] = $swf->getWorkflowID();
}
示例7: foreach
?>
</div>
</div>
<?php
foreach ($typeObjects as $type) {
?>
<div style="display: none" class="ccm-workflow-type-form" id="ccm-workflow-type-<?php
echo $type->getWorkflowTypeID();
?>
">
<?php
if ($type->getPackageID() > 0) {
@Loader::packageElement('workflow/types/' . $type->getWorkflowTypeHandle() . '/add_type_form', $type->getPackageHandle(), array('type' => $type));
} else {
@Loader::element('workflow/types/' . $type->getWorkflowTypeHandle() . '/add_type_form', array('type' => $type));
}
?>
</div>
<?php
}
?>
</div>
<div class="ccm-pane-footer">
<a href="<?php
echo $this->url('/dashboard/workflow/list');
?>
" class="btn"><?php
示例8: defined
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$args = array('cart' => $cart, 'checkout_url' => $this->url('/checkout'), 'shipping_enabled' => $shipping_enabled, 'shipping_methods' => $shipping_methods);
Loader::packageElement('cart/full-cart', 'razor', $args);
示例9: defined
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
Loader::packageElement('fileset_select_options', 'deluxe_image_gallery');
exit;
示例10: defined
<?php
//Overrides concrete/tools/files/edit.php
//The only change is calling Loader::packageElement() instead of Loader::element() on the last line
defined('C5_EXECUTE') or die("Access Denied.");
$u = new User();
$form = Loader::helper('form');
$ci = Loader::helper('concrete/urls');
$f = File::getByID($_REQUEST['fID']);
$fv = $f->getApprovedVersion();
$fp = new Permissions($f);
if (!$fp->canWrite()) {
die(_("Access Denied."));
}
$to = $fv->getTypeObject();
if ($to->getPackageHandle() != '') {
Loader::packageElement('files/edit/' . $to->getEditor(), $to->getPackageHandle(), array('fv' => $fv));
} else {
Loader::packageElement('files/edit/' . $to->getEditor(), 'image_cropper', array('fv' => $fv));
}
示例11: defined
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
include dirname(__FILE__) . '/images.inc.php';
//Render the images
Loader::packageElement('properties_form', 'deluxe_image_gallery', array('images' => $images));
exit;
示例12: array
if ($type->getPackageID() > 0) {
Loader::packageElement('workflow/types/' . $type->getWorkflowTypeHandle() . '/type_form', $type->getPackageHandle(), array('type' => $type, 'workflow' => $workflow));
} else {
Loader::element('workflow/types/' . $type->getWorkflowTypeHandle() . '/type_form', array('type' => $type, 'workflow' => $workflow));
}
?>
</div>
<div class="ccm-pane-footer">
<a href="<?php
echo $this->url('/dashboard/workflow/list');
?>
" class="btn"><?php
echo t('Back to List');
?>
</a>
<div style="float: right">
<?php
if ($type->getPackageID() > 0) {
Loader::packageElement('workflow/types/' . $type->getWorkflowTypeHandle() . '/type_form_buttons', $type->getPackageHandle(), array('type' => $type, 'workflow' => $workflow));
}
?>
<a href="<?php
echo $this->action('edit_details', $workflow->getWorkflowID());
?>
" class="btn"><?php
echo t('Edit Details');
?>
</a>
</div>
</div>
示例13: defined
<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
Loader::model('sortable_responsive_gallery', 'sortable_responsive_gallery');
$bID = empty($_GET['bID']) ? 0 : intval($_GET['bID']);
$fsID = empty($_GET['fsID']) ? 0 : intval($_GET['fsID']);
//Load the primary database record for the given bID
Loader::model('block');
//<--need this in 5.6+ (otherwise the new autoloader can't find the BlockRecord class)
$block = new BlockRecord('btSortableResponsiveGallery');
$block->Load("bID={$bID}");
//Loads empty object if bID=0
//Retrieve sorted images from our custom table if a block record exists and its fsID matches the fsID passed here...
if ($block && $block->fsID == $fsID) {
$sg = new SortableResponsiveGallery($bID);
$images = $sg->getPermittedImages();
} else {
//Retrieve unsorted images from the fileset if this is a new block or the fsID's don't match...
$images = SortableResponsiveGallery::getUnsortedPermittedFilesetImages($fsID);
}
//Render the images
Loader::packageElement('thumbnail_items', 'sortable_responsive_gallery', array('images' => $images));
exit;
示例14: foreach
?>
<div class="itemPickerContainer" id="ak<?php
echo $akID;
?>
_assetFilesList">
<?php
foreach ($mpatv->getFiles() as $file) {
$fv = $file->getApprovedVersion();
Loader::packageElement("file_entry", "advanced_asset_pickers", array("controller" => $this->controller, "templType" => "inline", "akID" => $akID, "fileID" => $file->getFileID(), "filePath" => $fv->getRelativePath(), "fileTitle" => $fv->getTitle()));
}
?>
</div>
<?php
ob_start();
Loader::packageElement("file_entry", "advanced_asset_pickers", array("controller" => $this->controller, "templType" => "js", "akID" => $akID, "fileID" => "'+item.fID+'", "filePath" => "'+item.url+'", "fileTitle" => "'+item.title+'", "fileThumb" => "'+item.resultsThumbnailImg+'"));
$elementTemplate = ob_get_contents();
ob_end_clean();
$template = json_encode($elementTemplate);
?>
<script type="text/javascript">
$(document).ready(function(){
$('#ak'+<?php
echo $akID;
?>
+'_assetFilesList').sortable({
tolerance: "pointer",
items:'> .fileEntry',
示例15: foreach
foreach ($existingSettings as $setting) {
$lastSetting = $settingsIndex == $numSettings ? true : false;
$settingsIndex++;
echo Loader::packageElement('hash_or_user_tweetcrete_form_element', 'tweetcrete', array_merge($setting, array('userTimelineOrHashSelectArray' => $userTimelineOrHashSelectArray, "divClassOverride" => 'tweetcrete-existing-hash-or-user', 'lastSetting' => $lastSetting)));
}
}
?>
<span id="append-components-anchor"></span>
</div>
<a href="#" class="add-timeline-component" style="text-decoration: none;" ><img src="<?php
echo $this->getBlockUrl();
?>
/images/add.png" alt='<?php
echo t("add");
?>
' title='<?php
echo t("add");
?>
' width='16' height='16' style='vertical-align: middle;' /> <?php
echo t('add component');
?>
</a>
<div style="display:none;" id="tweetcrete-component-row-template">
<?php
echo Loader::packageElement('hash_or_user_tweetcrete_form_element', 'tweetcrete', array('userTimelineOrHashSelectArray' => $userTimelineOrHashSelectArray));
?>
</div>
</div>
<p> </p>