Re: 最近の記事内容ブロックで
永らくありがとうございました › フォーラム › 使い方全般 › 最近の記事内容ブロックで › Re: 最近の記事内容ブロックで
2010 年 4 月 14 日 10:35 AM
#3100
キーマスター
Ver2.3.0 bata-2をリリースしました(ダウンロードはこちらから)
Ver2.3.0 bata-2ではXOOPSのテーマの
<{$xoops_module_header}>の後に
<{$xoops_block_header}>を加えることで、ブロックヘッダー(<script>を追加したもの)が取り込まれます。
例 XCL cube_defaultテーマ内のtheme.html 25行目あたり
<code><!-- RMV: added module header --><br /> <{$xoops_module_header}></code>
に<{$xoops_block_header}>を追加
<code><!-- RMV: added module header --><br /> <{$xoops_module_header}><br /> <{$xoops_block_header}></code>
・
この結果は、デモサイト(http://test-xcl.xpressme.info/)のトップページでRecent Posts with contentブロック上でのExpand More LinkとSyntax Highlighterの動作を確認できます。
このとき、以下のように、ページのソースでblock hederにExpand More LinkとSyntax Highlighterプラグイン用のスクリプトが追加されているのがわかります。
<code><!-- XPressME added block header --><br /> <!-- from bloginfo('stylesheet_url') --><br /> <link rel="stylesheet" href="http://test-xcl.xpressme.info/modules/xpressme/wp-content/themes/xpress_default/style.css" type="text/css" media="screen" /><br /> <link rel="stylesheet" href="http://test-xcl.xpressme.info/modules/xpressme/wp-content/themes/xpress_default/blocks/block_style.css" type="text/css" media="screen" /><br /> <!-- from wp_head() --><br /> <script type="text/javascript" src="http://test-xcl.xpressme.info/modules/xpressme/wp-content/plugins/expand-morelink/expand.js"></script><br /> <br /> <link href="http://test-xcl.xpressme.info/modules/xpressme/wp-content/plugins/syntax-highlighter/css/shCore.css?ver=2.1.364" type="text/css" rel="stylesheet" media="all" /><br /> <link href="http://test-xcl.xpressme.info/modules/xpressme/wp-content/plugins/syntax-highlighter/css/shThemeDefault.css?ver=2.1.364" type="text/css" rel="stylesheet" media="all" /><br /> <br /> <!-- from wp_footer() --><br /> <script type="text/javascript" src="http://test-xcl.xpressme.info/modules/xpressme/wp-content/plugins/syntax-highlighter/js/shCore.js?ver=2.1.364"></script><br /> <script type="text/javascript" src="http://test-xcl.xpressme.info/modules/xpressme/wp-content/plugins/syntax-highlighter/js/shBrushPhp.js?ver=2.1.364"></script><br /> <script type="text/javascript">//<![CDATA[<br /> with(SyntaxHighlighter.config.strings){expandSource="+ expand source";viewSource="view plain";copyToClipboard="copy to clipboard";copyToClipboardConfirmation="The code is in your clipboard now";print="print";help="?";noBrush="Can't find brush for: ";brushNotHtmlScript="Brush wasn't made for html-script option: ";}SyntaxHighlighter.config.clipboardSwf="http://test-xcl.xpressme.info/modules/xpressme/wp-content/plugins/syntax-highlighter/js/clipboard.swf";<br /> SyntaxHighlighter.all();<br /> with(SyntaxHighlighter.config.strings){expandSource="+ expand source";viewSource="view plain";copyToClipboard="copy to clipboard";copyToClipboardConfirmation="The code is in your clipboard now";print="print";help="?";noBrush="Can't find brush for: ";brushNotHtmlScript="Brush wasn't made for html-script option: ";}SyntaxHighlighter.config.clipboardSwf="http://test-xcl.xpressme.info/modules/xpressme/wp-content/plugins/syntax-highlighter/js/clipboard.swf";<br /> SyntaxHighlighter.all();<br /> //]]></script><br /> <br /> <!-- end of XPressME added block header --></code>