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 | |
use \Concrete\Core\Area\Layout\Layout as AreaLayout; | |
use \Concrete\Block\CoreAreaLayout\Controller as CoreAreaLayout; | |
$a = new Area('area'); | |
$b = $a->getAreaBlocksArray($c); | |
$alid = $b[0]->instance->arLayoutID; | |
$ba = $b[0]->getBlockAreaObject(); | |
$bobj = $b[0]->instance->getBlockObject(); |
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['num']) && $_GET['num']){ | |
$num = (int)htmlspecialchars($_GET['num']); | |
}else{ | |
$num = 10; | |
} | |
// アクセストークン | |
define("FACEBOOK_ACCESS_TOKEN", ACCESS TOKEN); | |
// ユーザアカウント名 | |
$user_account = ACCOUNT; |
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_['num']) && $GET_['num']){ | |
$num = (int)htmlspecialchars($_GET['num']); | |
}else{ | |
$num = 10; | |
} | |
// ユーザネームから固有のuser_IDを取得する。 | |
define("INSTAGRAM_ACCESS_TOKEN", ACCESS TOKEN); | |
// ユーザアカウント名 | |
$user_account = ACCOUNT; |
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
DirectoryIndex index.html index.php | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^$ index.php [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} !^concrete5dir/ [NC] | |
RewriteRule ^(.*)$ /concrete5dir/$1 |
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
{"settings":{"toolbar_1":"bold,italic,blockquote,alignleft,aligncenter,alignright,link,unlink,table,wp_adv","toolbar_2":"fontsizeselect,formatselect,styleselect,backcolor,forecolor,strikethrough,removeformat,charmap","toolbar_3":"","toolbar_4":"","options":"advlist,menubar","plugins":"anchor,code,insertdatetime,nonbreaking,print,searchreplace,table,visualblocks,visualchars,advlist"},"admin_settings":{"options":"no_autop,fontsize_formats","disabled_plugins":""}} |
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
; これは Yoast SEO プラグインの設定のエクスポートファイルです。 - https://yoast.com/wordpress/plugins/seo/ | |
; このエクスポートはタクソノミーのメタデータを含みます。 | |
[wpseo] | |
ignore_blog_public_warning = 1 | |
ignore_meta_description_warning = 1 | |
ignore_page_comments = | |
ignore_permalink = | |
ms_defaults_set = | |
theme_description_found = "<meta name="description" content="ディスクリプション"/>" |
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 | |
$ak = CollectionAttributeKey::getByHandle('attribute_handle'); | |
$atc = $ak->getController(); | |
if ($atc->attributeType->atHandle == 'select') { | |
$optionList = $atc->getOptions(); | |
if ($optionList->count() > 0) { | |
$options = $optionList->getOptions(); | |
var_dump($options); | |
} |
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 | |
use Concrete\Core\Block\View\BlockView; | |
$page = Page::getByID($pageID);//取得したいブロックのあるページID; | |
$areas = array(//取得したいエリアを配列で指定しておく | |
'area_01', | |
'area_02', | |
'area_03', | |
'area_04', | |
'area_05', | |
'area_06' |
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 | |
$file_obj = File::getByID($file); | |
if($file_obj) { | |
$handles = array(); | |
foreach($file_obj->getThumbnails() as $ff){ | |
$handles[] = $ff->getThumbnailTypeVersionObject()->getHandle(); | |
} | |
if(in_array('thumb01', $handles)){ | |
$file_src = $file_obj->getThumbnailURL('thumb01'); |
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
#!/bin/sh | |
# sync_db_sample | |
# リモートのDB同期とapplication/files取得 | |
# リモートでユーザーが投稿テストしつつ、各種設定も進めつつ、自分はmampで開発する、みたいな場合を想定 | |
# sshpassコマンドが利用できること | |
# mysqlコマンドが利用できること | |
# pvコマンドが利用できること(Pipe Viewerをインストール 進捗表示要らないのであれば不要) | |
#DBをリモードと同期 |
OlderNewer