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 | |
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'; |
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
.ccm-block-rss-displayer-item { | |
margin-bottom: 16px; | |
} | |
.rssItemThumbnail img { | |
max-width: 125px; | |
height: auto; | |
border-radius: 20px; | |
-webkit-border-radius: 20px; | |
-moz-border-radius: 20px; |
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 //インデックスページや投稿ページで表示されるカテゴリーリンク | |
if ( is_category_visible() ): //カテゴリを表示する場合?> | |
<?php if ( get_the_category() ) : //投稿ページの場合?> | |
// | |
// 略 | |
// | |
<?php else : //カスタム投稿の場合 ?> | |
<?php global $my_post_icon; |
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(is_user_logged_in()){ ?> | |
<div class="user-name">こんにちは <?php global $current_user; echo $current_user->display_name ?> さん</div> | |
<?php } elseif (is_front_page()) { | |
dynamic_sidebar('top_main_widget'); | |
} ?> |
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 | |
// 一行目はシンタックスハイライトするために追加しています。 | |
// bbpressのパンくずを非表示 | |
add_filter( 'bbp_no_breadcrumb', '__return_true' ); |
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 | |
// 一行目はシンタックスハイライトするために追加しています。 | |
// ******************************************** | |
// ****** ここから、WP-Membersのカスタマイズ ****** | |
//usernameをチェックするプラグインRestrict Usernamesを入れたため、メッセージを変更 | |
function my_default_text_strings( ) { | |
$text = array('reg_non_alphanumeric' => 'ログインIDは、 半角英数字、「 - (ハイフン)」、「 _ (アンダースコア)」が使用できます。また、除外文字列を含めることはできません。<br >除外文字列については「利用規約(TOS)」に記述しています。'); | |
return $text; |
NewerOlder