Skip to content

Instantly share code, notes, and snippets.

Avatar

nyankichi nyankichi-n-n

View GitHub Profile
@nyankichi-n-n
nyankichi-n-n / table_layout.php
Created Sep 17, 2017
concrete5 List files from setカスタマイズ
View table_layout.php
<?php
use Concrete\Core\Multilingual\Page\Section\Section;
defined('C5_EXECUTE') or die("Access Denied.");
$c = Page::getCurrentPage();
$multilingualSection = Section::getBySectionOfSite($c);
if($c instanceof Page) {
$cID = $c->getCollectionID();
@nyankichi-n-n
nyankichi-n-n / author.php
Last active Oct 16, 2017
concrete5 のコメント欄の表示変更
View author.php
<?php
defined('C5_EXECUTE') or die("Access Denied.");
$u = new User();
?>
<?php if ($u->isRegistered()) {
$ui = $u->getUserInfoObject();
?>
<div class="ccm-conversation-avatar"><?php echo $ui->getUserAvatar()->output()?></div>
<?php
} else {
@nyankichi-n-n
nyankichi-n-n / 404.php
Last active Nov 22, 2017
にゃんきち日和のカスタマイズ
View 404.php
<?php get_header(); ?>
<div class="post">
<!--ループ開始-->
<?php
$lang = Mlp_Helpers::get_current_blog_language();
if ( $lang == 'ja_JP' ) : ?>
<h2 class="entry-title">ページが見つかりませんでした</h2>
<?php else : ?>
<h2 class="entry-title">The page could not be found</h2>
@nyankichi-n-n
nyankichi-n-n / view.php
Last active Dec 8, 2017
concrete5 Breadcrumb Trail Page Linksカスタマイズ
View view.php
<?php
use Concrete\Core\Multilingual\Page\Section\Section;
defined('C5_EXECUTE') or die("Access Denied.");?>
<?php $c = Page::getCurrentPage();
$multilingualSection = Section::getBySectionOfSite($c);
if ($multilingualSection) {
if ($multilingualSection->getLocale() === 'en_US'){
$homePageName = ' Home';