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\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(); |
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 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> |
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\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'; |
OlderNewer