ポートフォリオ一覧修正 wordpress 忘備録
カスタム投稿タイプを作成したので
archive-portfoloio.phpを見に行っている
<?php get_header(); ?> <?php get_template_part( 'title' ); ?> <?php $result = startit_qode_blog_archive_pages_classes(startit_qode_get_default_blog_list()); ?> <div class="<?php startit_qode_module_part($result['holder']); ?>"> <?php do_action('qode_startit_after_container_open'); ?> <div class="<?php startit_qode_module_part($result['inner']); ?>"> <?php startit_qode_get_blog(startit_qode_get_default_blog_list()); ?> </div> <?php do_action('qode_startit_before_container_close'); ?> </div> <?php get_footer(); ?>
startit_qode_get_default_blog_list 関数定義
//ファイル場所 framework/modules/blog/blog-functions.php
//blog_listを返却しているだけ function startit_qode_get_default_blog_list() { $blog_list = startit_qode_options()->getOptionValue('blog_list_type'); return $blog_list; }
探す $ grep getOptionsByType -rl
framework/lib/qode.framework.php public function getOptionValue($key) { global $qode_startit_options; if(array_key_exists($key, $qode_startit_options)) { return $qode_startit_options[$key]; } elseif(array_key_exists($key, $this->options)) { return $this->getOption($key); } return false; } public function getOption($key) { if(isset($this->options[$key])) return $this->options[$key]; return; }
array_key_exists は第二引数の配列の中に、第一引数があるか bool型
startit_qode_get_blog 関数定義
PATH framework/modules/blog/blog-functions.php
function startit_qode_get_blog($type) { $sidebar = startit_qode_sidebar_layout(); $params = array( "blog_type" => $type, "sidebar" => $sidebar ); startit_qode_get_module_template_part('templates/lists/holder', 'blog', '', $params); } }
startit_qode_get_module_template_part 関数定義
function startit_qode_get_module_template_part($template, $module, $slug = '', $params = array()) { $template_path = 'framework/modules/'.$module; startit_qode_get_template_part( $template_path . '/' . $template, $slug, $params);
ファイルはここ
ここにhtmlが記載 framework/modules/blog/blog-functions.php
startit_qode_get_module_template_part( 'templates/lists/post-formats/' . $group . '/' . $post_format, 'blog', $slug, $params);
ようやく見つける
standard.phpがあたっている
cssはこれ