コード例 #1
0
<?php

defined('C5_EXECUTE') or die("Access Denied.");
$app = Concrete\Core\Support\Facade\Facade::getFacadeApplication();
$dh = $app->make('helper/concrete/dashboard');
if (isset($cp) && $cp->canViewToolbar() && !$dh->inDashboard()) {
    $cih = $app->make('helper/concrete/ui');
    $ihm = $app->make('helper/concrete/ui/menu');
    $valt = $app->make('helper/validation/token');
    $config = $app->make('config');
    $dateHelper = $app->make('helper/date');
    $token = '&' . $valt->getParameter();
    $cID = $c->getCollectionID();
    $permissions = new Permissions($c);
    $workflowList = \Concrete\Core\Workflow\Progress\PageProgress::getList($c);
    $show_titles = (bool) $config->get('concrete.accessibility.toolbar_titles');
    $large_font = (bool) $config->get('concrete.accessibility.toolbar_large_font');
    $canApprovePageVersions = $cp->canApprovePageVersions();
    $vo = $c->getVersionObject();
    $pageInUseBySomeoneElse = false;
    if ($c->isCheckedOut()) {
        if (!$c->isCheckedOutByMe()) {
            $pageInUseBySomeoneElse = true;
        }
    }
    if (!$c->isEditMode()) {
        echo $app->make('helper/concrete/ui/help')->displayHelpDialogLauncher();
    }
    if ($cih->showHelpOverlay()) {
        print '<div style="display: none">';
        View::element('help/dialog/introduction');
コード例 #2
0
 /**
  * Set the application instance.
  *
  * @param  \Concrete\Core\Application\Application $app
  * @return void
  */
 public static function setFacadeApplication($app)
 {
     return Concrete\Core\Support\Facade\Facade::setFacadeApplication($app);
 }