function execute($requests) { // ヘッダ表示テキスト取得 $head_text_type = $this->_get_portal_config(PORTAL_CONFIG_HEAD_TEXT_TYPE); if (!$head_text_type) { $head_text_type = PORTAL_CONFIG_HEAD_TEXT_TYPE_SNS; } if ($head_text_type == PORTAL_CONFIG_HEAD_TEXT_TYPE_MANUAL) { $head_text = $this->_get_portal_config(PORTAL_CONFIG_HEAD_TEXT); } else { $head_text = SNS_NAME; } if (SNS_TITLE) { $title = SNS_TITLE; } else { $title = SNS_NAME; } //レイアウト設定 $layout_type = $this->_get_portal_config(PORTAL_CONFIG_LAYOUT_TYPE); if (strlen($layout_type) == 0 || !is_numeric(intval($layout_type))) { $layout_type = "1"; } //配色設定 $color_type = $this->_get_portal_config(PORTAL_CONFIG_COLOR_TYPE); if (strlen($color_type) == 0) { $color_type = "default"; } // CSS $custom_css = $this->_get_portal_config(PORTAL_CONFIG_CUSTOM_CSS); // meta タグ $meta_description = $this->_get_portal_config(PORTAL_CONFIG_META_DESCRIPTION); $meta_keywords = $this->_get_portal_config(PORTAL_CONFIG_META_KEYWORDS); $top = array(); $left = array(); $right = array(); $bottom = array(); $layout_list = db_portal_layout_order_by_position(); foreach ($layout_list as $layout) { $pos = $layout['position']; $name = $layout['content_name']; $content = $this->get_contents($name); $content['is_image'] = $layout['is_image']; if ($pos >= 10 && $pos < 20) { $top[] = $content; } else { if ($pos >= 20 && $pos < 30) { $left[] = $content; } else { if ($pos >= 30 && $pos < 40) { $right[] = $content; } else { if ($pos >= 40 && $pos < 50) { $bottom[] = $content; } } } } } if ($color_type == 'no_image') { $preset_color = util_get_preset_color_list(); $default_color_id = 7; $default_color = $preset_color[$default_color_id]; $this->set('color_config', $default_color); } $this->set('title', $title); $this->set('head_text', $head_text); $this->set('layout_type', $layout_type); $this->set('color_type', $color_type); $this->set('custom_css', $custom_css); $this->set('meta_description', $meta_description); $this->set('meta_keywords', $meta_keywords); $this->set('top', $top); $this->set('left', $left); $this->set('right', $right); $this->set('bottom', $bottom); $this->set('INC_FOOTER_inc_side_banner', db_banner_get_side_banner()); $this->set('INC_FOOTER_inc_page_footer', p_common_c_siteadmin4target_pagename('inc_page_footer_before')); return 'success'; }
/** * 携帯版配色設定を全て取得 */ function db_etc_c_config_color_ktai_list() { $current = db_etc_c_config_color_ktai(); $preset = util_get_preset_color_list('ktai'); return array_merge(array($current), $preset); }