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 | |
if (isset($_GET['area'])) $area = $_GET['area']; | |
if ($area = 'a') { | |
$a = new Area('Main_A'); | |
$a->display($c); | |
} | |
if ($area = 'b') { | |
$a = new Area($area); |
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 | |
/** | |
* Originally found at | |
* http://behindcompanies.com/2014/01/a-simple-script-for-deploying-code-with-githubs-webhooks/ | |
* and logging function added | |
* This script is for easily deploying updates to Github repos to your local server. It will automatically git clone or | |
* git pull in your repo directory every time an update is pushed to your $BRANCH (configured below). | |
* | |
* INSTRUCTIONS: |
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
# | |
# .gitignore sample for concrete5 & WordPress projects | |
# | |
# ignore system files | |
.DS_Store | |
thumbs.db | |
__MACOSX | |
._* |
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.")); | |
/** | |
* concrete5.6.x Package 'Manual Nav' Custom Template | |
* @package Manual Nav | |
* @author Jordan Lev | |
* @author Katz Ueno | |
* @copyright Copyright (c) 2015 Katz Ueno. (http://katzueno.com) | |
* @license http://www.concrete5.org/license/ MIT License | |
* to support External Link's tareget="_blank" | |
* and page attribute 'nav_target' |
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."); | |
// Bootstrap CSS Hack for concrete5.6.x | |
// Rename this file as laytout.php and place it under [concrete5]/models/ folder/ | |
class Layout extends Concrete5_Model_Layout { | |
function display( $c=NULL, $a=NULL ){ | |
if(!$c) global $c; | |
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."); | |
/* | |
* Page List * Page List Plus concrete5 custom templates sample | |
* ページリスト & ページリストプラスのカスタムテンプレートサンプル | |
* How to display category lebel by using Localizer add-on | |
* Localizer アドオンを使って、カテゴリラベルの色分け表示の色分け表示をする | |
* | |
* 1. You need to prepare CSS class that define the category label color | |
* 2. Create Select type Page attribute, name it with "news_type" handle |
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."); | |
$th = Loader::helper('text'); | |
$dh = Loader::helper('date'); | |
$v = View::getInstance(); | |
?> | |
<ul class="event__list"> | |
<?php foreach ($pages as $page): | |
$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 | |
namespace Concrete\Package\【パッケージ名】; | |
use Concrete\Core\Block\BlockType\BlockType; // ブロックを登録する時 | |
use Concrete\Core\Page\Template as PageTemplate; // ページテンプレートを登録する時 | |
use Concrete\Core\Page\Theme\Theme as PageTheme; // テーマを登録する時 | |
use Concrete\Core\Asset\Asset; // アセットを登録する時 | |
use Concrete\Core\Asset\AssetList; | |
defined('C5_EXECUTE') or die('Access Denied.'); |
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
## -- concrete5 urls start -- | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
# Change RewriteBase path if this concrete5 is installed on subdirectory / concrete5 がサブディレクトリにインストールされていたら、RewriteBase の変更が必要です。 | |
# IP address restriction starts here / IP アドレス制限、アクセス許可するのIPの設定 | |
RewriteCond %{REMOTE_ADDR} !123\.4\.56\.789 | |
RewriteCond %{REMOTE_ADDR} !123\.123\.123\.123 | |
# Add more lines is you have more IP / もっとIPがある場合は、行を追加してください |