'googlebot-mobile' => 'google.gif', // Google-Mobile
'mediapartners-google' => 'google.gif', // Google
'google favicon' => 'google.gif', // Google
+ 'google web preview' => 'google.gif', // Google
'msnbot' => 'msn.gif', // MSN
'msnbot-media' => 'msn.gif', // MSN
'yahooseeker' => 'yahoo.gif', // YahooSeeker
$blockParam = $wp_registered_sidebars[$position];
if (empty($blockParam)) $blockParam = $wp_registered_sidebars[self::DEFAULT_POSITION]; // 存在しない場合はデフォルトを取得
if (empty($blockParam)) return $content;
-
- /* ob_clean();
-// var_dump($wp_registered_sidebars[$position]);
-var_dump($blockParam);
-echo '---'.$blockParam['before_title'];
- $contents = ob_get_contents();
- ob_clean();
-$content.= $contents;*/
-
- /*
- // Substitute HTML id and class attributes into before_widget
- $classname_ = '';
- foreach ( (array) $wp_registered_widgets[$id]['classname'] as $cn ) {
- if ( is_string($cn) )
- $classname_ .= '_' . $cn;
- elseif ( is_object($cn) )
- $classname_ .= '_' . get_class($cn);
- }
- $classname_ = ltrim($classname_, '_');
- $params[0]['before_widget'] = sprintf($params[0]['before_widget'], $id, $classname_);
- */
// メインコンテンツにタグを付加
$content = $blockParam['before_widget'] . $content . $blockParam['after_widget'];
// 「もっと読む」ボタンを追加
// if ($pageDefParam['pd_show_readmore']) $content = $this->addReadMore($content, $pageDefParam['pd_readmore_title'], $pageDefParam['pd_readmore_url']);
- // ウィジェットの内枠(コンテンツ外枠)を設定
-// $content = '<div class="' . self::WIDGET_INNER_CLASS . '">' . $content . '</div>';
-
- // 指定された表示スタイルでウィジェットを出力
-/* $chromeMethod = 'modChrome_' . $style;
- if (function_exists($chromeMethod))
- {
- $module = new stdClass;
- //$module->style = $attribs['style'];
- $module->content = $content;
- if (!empty($title)){
- $module->showtitle = 1;
-// $module->title = htmlentities($title, ENT_COMPAT, M3_HTML_CHARSET);
- $module->title = convertToHtmlEntity($title);
- }
-
- // Joomla!2.5テンプレート用追加設定(2012/4/4 追加)
- $GLOBALS['artx_settings'] = array('block' => array('has_header' => true));
-
- ob_clean();
- $chromeMethod($module, $params, $attribs);
- $contents = ob_get_contents();
- ob_clean();
- }*/
return $content;
}