OSDN Git Service

スマートフォン用のサイトテンプレートを追加。
authortakezoe <takezoe@users.osdn.me>
Thu, 13 Oct 2011 17:46:52 +0000 (17:46 +0000)
committertakezoe <takezoe@users.osdn.me>
Thu, 13 Oct 2011 17:46:52 +0000 (17:46 +0000)
wiki.cgi

index ea7c559..4f6e1a3 100644 (file)
--- a/wiki.cgi
+++ b/wiki.cgi
@@ -95,6 +95,8 @@ eval {
                $wiki->config('tmpl_dir')."/site/".$config->{site_tmpl_theme}."/".$config->{site_tmpl_theme}.".tmpl");
        $wiki->config('site_handyphone_tmpl',
                $wiki->config('tmpl_dir')."/site/".$config->{site_tmpl_theme}."/".$config->{site_tmpl_theme}."_handyphone.tmpl");
+       $wiki->config('site_smartphone_tmpl',
+               $wiki->config('tmpl_dir')."/site/".$config->{site_tmpl_theme}."/".$config->{site_tmpl_theme}."_smartphone.tmpl");
 
        #==============================================================================
        # ¥¿¥¤¥à¥¢¥¦¥È¤·¤Æ¤¤¤ë¥»¥Ã¥·¥ç¥ó¤òÇË´þ
@@ -135,10 +137,13 @@ eval {
        #==============================================================================
        my $output        = "";
        my $is_handyphone = &Util::handyphone();
+       my $is_smartphone = &Util::smartphone();
        my $template_name = "";
 
        if ($is_handyphone) {
                $template_name = 'site_handyphone_tmpl';
+       } elsif ($is_smartphone) {
+               $template_name = 'site_smartphone_tmpl';
        } else {
                $template_name = 'site_tmpl';
        }