最近になって気付いたのですが、XPressME Integration KitとWordPress日本語版の組み合わせで、WordPress側の設定で日付フォーマットを変更してもXOOPS Cubeに反映されない。
原因は、WordPressで指定しているxpressデフォルトテーマが日付フォーマットを決め打ちしていました。
そこで、お得意の「ちょっとだけ改造」、xpressデフォルトテーマの日付フォーマットを指定している部分の
the_time(‘Y/m/d l’)
を
the_time(get_option(‘date_format’))
the_time(‘U’);
を
the_time(get_option(‘time_format’));
対象となったファイルは、
modules/wordpress/wp-content/themes/xpress_defaultの
index.php
single.php
multi_blog_index.php
modules/wordpress/wp-content/themes/xpress_default/blocksの
recent_posts_list_block_theme.php
recent_posts_content_block_theme.php
これで、WordPress側の設定で日付フォーマットを変更するとXOOPS Cube側に反映されます。
今回、サイドボックス関連のファイルはいじりませんでした。
参考にさせて頂いたサイト
WordPress ≫ フォーラム ≫ 一般設定の「日付フォーマット」を変えても変化がないのは何故ですか?