This file contains 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 | |
$dh = Loader::helper('date'); | |
$year = new DateTime('first day of next year'); | |
$isFirst = true; | |
?> | |
<?php foreach ($pages as $page): | |
// Prepare data for each page being listed... | |
$title = $th->entities($page->getCollectionName()); |
This file contains 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."); | |
$rssUrl = $showRss ? $controller->getRssUrl($b) : ''; | |
$th = Loader::helper('text'); | |
// Get PageList again | |
$pl = $controller->getPageList(); | |
// Set sortby | |
$pl->sortBy('ak_example_attribute_handle','asc'); | |
// Get pages again |
This file contains 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.")); ?> | |
<?php /* This block was made with Designer Content Pro. Visit http://theblockery.com/dcp for documentation. */ ?> | |
<?php | |
/** | |
* link: Link Field | |
* css_class: Textbox field | |
*/ | |
// Get current page path |
This file contains 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 | |
$uh = Loader::helper('concrete/urls'); | |
$url = $uh->getToolsURL('disable_mobile') . '?rcID=' . $c->getCollectionID(); | |
?> | |
<a href="<?php echo $url; ?>"><?php echo t('View desktop site'); ?></a> |
This file contains 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 DateTimeAttributeTypeController extends Concrete5_Controller_AttributeType_DateTime { | |
public function form() { | |
$this->load(); | |
$dt = Loader::helper('form/date_time'); | |
$caValue = $this->getValue(); | |
$html = Loader::helper('html'); |
This file contains 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
<h1><?php | |
$c = Page::getCurrentPage(); | |
$nh = Loader::helper('navigation'); | |
// concrete5 第4階層以降であれば、第3階層 のページタイトルを表示させる。 | |
// [現在のページタイトル] - [第3階層のページタイトル] | |
// ページ属性 display_secondary_title がチェックされていれば第3階層のタイトルを表示しない | |
// $trail [0] はトップ | |
// $trail [1] は第2階層 | |
echo h($c->getCollectionName()); | |
if (!$c->getAttribute('display_secondary_title')){ |
This file contains 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 | |
$req = Request::get(); | |
if ($req->getRequestPath() == 'debug') { | |
// debug some stuff | |
exit; | |
} |
This file contains 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 | |
// For concrete5 ~5.6.x | |
// libraries/view.php | |
defined('C5_EXECUTE') or die("Access Denied."); | |
class View extends Concrete5_Library_View { | |
public function checkMobileView() { | |
if(isset($_COOKIE['ccmDisableMobileView']) && $_COOKIE['ccmDisableMobileView'] == true) { | |
define('MOBILE_THEME_IS_ACTIVE', false); |
This file contains 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 ExamplePackage extends Package { | |
protected $pkgHandle = 'example'; | |
protected $appVersionRequired = '5.6.3'; | |
protected $pkgVersion = '1.0'; | |
This file contains 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 Concrete\Package\SocialShareLite; | |
use Package; | |
use BlockType; | |
class Controller extends Package { | |
protected $pkgHandle = 'social_share_lite'; | |
protected $appVersionRequired = '5.6.9'; | |
protected $pkgVersion = '1.1'; |
OlderNewer