Файл: concrete5.7.5.6/concrete/controllers/panel/multilingual.php
Строк: 64
<?php
namespace ConcreteControllerPanel;
use ConcreteControllerBackendUserInterfacePage as BackendInterfacePageController;
use ConcreteCoreMultilingualPageSectionSection;
use Config;
use Core;
class Multilingual extends BackendInterfacePageController
{
protected $viewPath = '/panels/multilingual';
public function view()
{
$this->requireAsset('core/sitemap');
$mlist = Section::getList();
$ml = array();
$currentSection = Section::getCurrentSection();
foreach($mlist as $m) {
if ($m->getCollectionID() != $currentSection->getCollectionID()) {
$ml[] = $m;
}
}
$this->set('list', $ml);
$this->set('currentSection', $currentSection);
$this->set('ih', Core::make('multilingual/interface/flag'));
$multilingualController = Core::make('ConcreteControllerBackendPageMultilingual');
$multilingualController->setPageObject($this->page);
$this->set('multilingualController', $multilingualController);
}
protected function canAccess()
{
return $this->permissions->canEditPageMultilingualSettings() && Core::make('multilingual/detector')->isEnabled();
}
}