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 | |
$html = Loader::helper('html'); | |
$this->addHeaderItem($html->javascript($this->getThemePath().'/original.js')); | |
?> |
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 defined('C5_EXECUTE') or die("Access Denied."); | |
Loader::model('section', 'multilingual'); | |
$ms = MultilingualSection::getCurrentSection(); | |
if (is_object($ms)) { | |
$lang = $ms->getLanguage(); | |
} else { | |
$lang = LANGUAGE; | |
} | |
?> | |
<!DOCTYPE html> |
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 | |
Loader::model('section', 'multilingual'); | |
$ms = MultilingualSection::getCurrentSection(); | |
if (is_object($ms)) { | |
$lang = $ms->getLanguage(); | |
$search = BlockType::getByHandle('search'); | |
$search->controller->title = t('Site Search'); | |
$search->controller->buttonText = t('Search'); |
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 | |
Loader::model('section', 'multilingual'); | |
$ms = MultilingualSection::getCurrentSection(); | |
if (is_object($ms)) { | |
$lang = $ms->getLanguage(); | |
} else { | |
$lang = LANGUAGE; | |
} |
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 | |
define('EMAIL_DEFAULT_FROM_NAME', '○△事務局'); | |
define('EMAIL_DEFAULT_FROM_ADDRESS', '[email protected]'); | |
define('EMAIL_ADDRESS_REGISTER_NOTIFICATION_FROM', '[email protected]'); | |
define('EMAIL_ADDRESS_FORGOT_PASSWORD', '[email protected]'); |
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 | |
Loader::library('3rdparty/mobile_detect'); | |
$md = new Mobile_Detect(); | |
if($md->isMobile()) { | |
// mobile view | |
// sample : $this->inc(elements/mobile.php); | |
} else { | |
// not mobile view | |
// sample : $this->inc(elements/pc.php); | |
} |
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 | |
defined('C5_EXECUTE') or die("Access Denied."); | |
class DashboardComposerWriteController extends Concrete5_Controller_Dashboard_Composer_Write { | |
public function view($ctID = false) { | |
$ct = $this->setCollectionType($ctID); | |
if (!is_object($ct)) { | |
$ctArray = CollectionType::getComposerPageTypes(); | |
// check write permission of each composer page types |
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 ($showPagination): ?> | |
<nav class="pagination-centered"> | |
<ul class="pagination"> | |
<?php | |
$summary = $pl->getSummary(); | |
if ($summary->pages > 1): | |
$paginator = $pl->getPagination(); | |
$paginator->classCurrent = 'current'; | |
?> | |
<li class="arrow"><?php echo $paginator->getPrevious('«'); ?></li> |
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 defined('C5_EXECUTE') or die("Access Denied."); | |
$h = Loader::helper('text'); | |
?> | |
<ul data-orbit> | |
<?php | |
foreach($images as $imgInfo) { | |
$f = File::getByID($imgInfo['fID']); | |
$fp = new Permissions($f); | |
if ($fp->canViewFile()) { |
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
Module Module1 | |
Sub Main() | |
'Get the directory path | |
Dim exe_path As String = (Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) & "\atom\") | |
'Variable for the highest version | |
Dim highest_version As New Version("0.0.1") |
OlderNewer