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


PHP Loader::packageElement方法代码示例

本文整理汇总了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');
开发者ID:baardev,项目名称:lbtb,代码行数:31,代码来源:add_blog.php

示例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'));
开发者ID:nbourguig,项目名称:concrete5,代码行数:31,代码来源:view.php

示例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 
开发者ID:meixelsberger,项目名称:concrete5-5.7.0,代码行数:31,代码来源:antispam.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();
开发者ID:ricardomccerqueira,项目名称:rcerqueira.portfolio,代码行数:27,代码来源:me.php

示例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>
开发者ID:yakamoz-fang,项目名称:concrete,代码行数:31,代码来源:captcha.php

示例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();
	}
开发者ID:nveid,项目名称:concrete5,代码行数:31,代码来源:detail.php

示例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 
开发者ID:ojalehto,项目名称:concrete5-legacy,代码行数:31,代码来源:list.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);
开发者ID:ExchangeCore,项目名称:razor-commerce,代码行数:5,代码来源:cart.php

示例9: defined

<?php

defined('C5_EXECUTE') or die(_("Access Denied."));
Loader::packageElement('fileset_select_options', 'deluxe_image_gallery');
exit;
开发者ID:robchenski,项目名称:ids,代码行数:5,代码来源:get_fileset_select_options.php

示例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));
}
开发者ID:netconstructor,项目名称:c5_image_cropper,代码行数:20,代码来源:edit.php

示例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;
开发者ID:robchenski,项目名称:ids,代码行数:7,代码来源:get_properties_form.php

示例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>
开发者ID:Zyqsempai,项目名称:amanet,代码行数:31,代码来源:type_form_required.php

示例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;
开发者ID:robchenski,项目名称:ids,代码行数:23,代码来源:get_thumbnail_items.php

示例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',
开发者ID:Bloodb0ne,项目名称:Concrete5_DevRepo,代码行数:31,代码来源:form.php

示例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>&nbsp;</p>
开发者ID:robchenski,项目名称:ids,代码行数:30,代码来源:tweetcrete_form.php


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