This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ^~ /sub { | |
## Try to find a file with given URL, if not pass to Concrete | |
try_files $uri $uri/ /sub/index.php?$query_string; | |
location ~ \.php$ { | |
include /etc/nginx/fastcgi.conf; | |
fastcgi_split_path_info ^(/sub)(/.*)$; | |
fastcgi_param SCRIPT_NAME /sub/index.php; | |
fastcgi_param SCRIPT_FILENAME $realpath_root/sub/index.php; | |
fastcgi_param PATH_INFO $fastcgi_path_info; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body .ccm-ui dl, | |
body .ccm-ui dt, | |
body .ccm-ui dd, | |
body .ccm-ui ol, | |
body .ccm-ui ul, | |
body .ccm-ui li, | |
body .ccm-ui p, | |
body .ccm-ui th, | |
body .ccm-ui td, | |
body .ccm-ui a, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ($app->isInstalled()) { | |
// Register Events | |
/** @var \Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher */ | |
$eventDispatcher = $app->make(\Symfony\Component\EventDispatcher\EventDispatcherInterface::class); | |
// Unapprove page versions when a page is duplicated | |
$eventDispatcher->addListener('on_page_duplicate', function ($event) { | |
/** @var \Concrete\Core\Page\DuplicatePageEvent $event */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Application\Job; | |
use Concrete\Core\Job\QueueableJob; | |
use Concrete\Core\Page\Page; | |
use Concrete\Core\Page\PageList; | |
use ZendQueue\Message as ZendQueueMessage; | |
use ZendQueue\Queue as ZendQueue; | |
class BulkMovePages extends QueueableJob |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$app = \Concrete\Core\Support\Facade\Application::getFacadeApplication(); | |
/** @var \Doctrine\ORM\EntityManagerInterface $em */ | |
$em = $app->make(\Doctrine\ORM\EntityManagerInterface::class); | |
/** @var \Concrete\Core\Entity\Command\ProcessRepository $repository */ | |
$repository = $em->getRepository(\Concrete\Core\Entity\Command\Process::class); | |
$processes = $repository->findRunning(); | |
/** @var \Concrete\Core\Command\Process\ProcessUpdater $updater */ | |
$updater = $app->make(\Concrete\Core\Command\Process\ProcessUpdater::class); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// application/src/Backup/ContentImporter/ValueInspector/Item/FileItem.php | |
namespace Application\Backup\ContentImporter\ValueInspector\Item; | |
use Concrete\Core\File\File; | |
class FileItem extends \Concrete\Core\Backup\ContentImporter\ValueInspector\Item\FileItem | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// application/config/site.php | |
// https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_dtd.html | |
$dtd = <<<END | |
CKEDITOR.dtd['a']['div'] = 1; | |
END; | |
return [ | |
'sites' => [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\Updater; | |
use Concrete\Core\Entity\Package as PackageEntity; | |
use Concrete\Core\Package\Package; | |
use Symfony\Component\Finder\Finder; | |
class Updater | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// application/jobs/clear_invalid_workflow_notifications.php | |
namespace Application\Job; | |
use Concrete\Core\Entity\Notification\WorkflowProgressNotification; | |
use Concrete\Core\Job\Job; | |
use Concrete\Core\Support\Facade\Application; | |
use Doctrine\ORM\EntityManagerInterface; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// application/src/Express/Command/ClearExpressEntries.php | |
namespace Application\Express\Command; | |
use Concrete\Core\Console\Command; | |
use Concrete\Core\Entity\Express\Entity; | |
use Concrete\Core\Entity\Express\Entry; | |
use Concrete\Core\Support\Facade\Application; | |
use Doctrine\ORM\EntityManagerInterface; |
NewerOlder