[pLog-svn] r2162 - in plugins/trunk/mobile: config templates templates/html-light

oscar at devel.plogworld.net oscar at devel.plogworld.net
Sat Jun 4 16:47:17 GMT 2005


Author: oscar
Date: 2005-06-04 16:47:17 +0000 (Sat, 04 Jun 2005)
New Revision: 2162

Added:
   plugins/trunk/mobile/templates/html-light/
   plugins/trunk/mobile/templates/html-light/error.template
   plugins/trunk/mobile/templates/html-light/footer.template
   plugins/trunk/mobile/templates/html-light/header.template
   plugins/trunk/mobile/templates/html-light/main.template
   plugins/trunk/mobile/templates/html-light/pager.template
   plugins/trunk/mobile/templates/html-light/post.template
   plugins/trunk/mobile/templates/html-light/postandcomments.template
Removed:
   plugins/trunk/mobile/templates/html-light/error.template
   plugins/trunk/mobile/templates/html-light/footer.template
   plugins/trunk/mobile/templates/html-light/header.template
   plugins/trunk/mobile/templates/html-light/main.template
   plugins/trunk/mobile/templates/html-light/pager.template
   plugins/trunk/mobile/templates/html-light/post.template
   plugins/trunk/mobile/templates/html-light/postandcomments.template
Modified:
   plugins/trunk/mobile/config/terminal.properties.php
Log:
more changes


Modified: plugins/trunk/mobile/config/terminal.properties.php
===================================================================
--- plugins/trunk/mobile/config/terminal.properties.php	2005-06-04 16:43:39 UTC (rev 2161)
+++ plugins/trunk/mobile/config/terminal.properties.php	2005-06-04 16:47:17 UTC (rev 2162)
@@ -11,19 +11,25 @@
 $config["terminals"] = Array (
 
     Array( "regexp" => "/.*Nokia.*/",
-           "content" => "html-nokia",
+           "content" => "html-light",
            "content-type" => "text/html",
            "id" => "nokia",
            "desc" => "Nokia Symbian Browser" ),
            
     Array( "regexp" => "/.*Safari.*/",
-           "content" => "html-nokia",
+           "content" => "html-light",
            "content-type" => "text/html",
            "id" => "safari",
            "desc" => "Apple Safari/WebKit" ),
            
+    Array( "regexp" => "/.*Opera.*/",
+           "content" => "html-light",
+           "content-type" => "text/html",
+           "id" => "safari",
+           "desc" => "Apple Safari/WebKit" ),           
+           
     Array( "regexp" => "/.*Mozilla.*/",
-           "content" => "html-nokia",
+           "content" => "html-light",
            "content-type" => "text/html",
            "id" => "mozilla",
            "desc" => "Mozilla/Gecko" ),

Copied: plugins/trunk/mobile/templates/html-light (from rev 2154, plugins/trunk/mobile/templates/html-nokia)

Deleted: plugins/trunk/mobile/templates/html-light/error.template
===================================================================
--- plugins/trunk/mobile/templates/html-nokia/error.template	2005-06-01 21:42:00 UTC (rev 2154)
+++ plugins/trunk/mobile/templates/html-light/error.template	2005-06-04 16:47:17 UTC (rev 2162)
@@ -1,4 +0,0 @@
-{include file="html-nokia/header.template"}
-<B>Error</B><BR>
-{$viewErrorMessage}
-{include file="html-nokia/footer.template"}
\ No newline at end of file

Copied: plugins/trunk/mobile/templates/html-light/error.template (from rev 2161, plugins/trunk/mobile/templates/html-nokia/error.template)
===================================================================
--- plugins/trunk/mobile/templates/html-nokia/error.template	2005-06-04 16:43:39 UTC (rev 2161)
+++ plugins/trunk/mobile/templates/html-light/error.template	2005-06-04 16:47:17 UTC (rev 2162)
@@ -0,0 +1,4 @@
+{include file="html-light/header.template"}
+<B>Error</B><BR>
+{$viewErrorMessage}
+{include file="html-light/footer.template"}
\ No newline at end of file

Deleted: plugins/trunk/mobile/templates/html-light/footer.template
===================================================================
--- plugins/trunk/mobile/templates/html-nokia/footer.template	2005-06-01 21:42:00 UTC (rev 2154)
+++ plugins/trunk/mobile/templates/html-light/footer.template	2005-06-04 16:47:17 UTC (rev 2162)
@@ -1,2 +0,0 @@
-</BODY>
-</HTML>
\ No newline at end of file

Copied: plugins/trunk/mobile/templates/html-light/footer.template (from rev 2161, plugins/trunk/mobile/templates/html-nokia/footer.template)

Deleted: plugins/trunk/mobile/templates/html-light/header.template
===================================================================
--- plugins/trunk/mobile/templates/html-nokia/header.template	2005-06-01 21:42:00 UTC (rev 2154)
+++ plugins/trunk/mobile/templates/html-light/header.template	2005-06-04 16:47:17 UTC (rev 2162)
@@ -1,5 +0,0 @@
-<HTML>
-<HEAD>
- <TITLE>{$blog->getBlog()}</TITLE>
-</HEAD> 
-<BODY BGCOLOR="#C8CFC8" TEXT="#000000" LINK="#669900" VLINK="#669900" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" LEFTMARGIN="0" RIGHTMARGIN="0">
\ No newline at end of file

Copied: plugins/trunk/mobile/templates/html-light/header.template (from rev 2161, plugins/trunk/mobile/templates/html-nokia/header.template)
===================================================================
--- plugins/trunk/mobile/templates/html-nokia/header.template	2005-06-04 16:43:39 UTC (rev 2161)
+++ plugins/trunk/mobile/templates/html-light/header.template	2005-06-04 16:47:17 UTC (rev 2162)
@@ -0,0 +1,12 @@
+<HTML>
+<HEAD>
+ <TITLE>{$blog->getBlog()}</TITLE>
+ <STYLE TYPE="text/css" media="handheld">
+  {literal}body { border:0px; padding:0px; }{/literal}
+ </STYLE>
+</HEAD> 
+<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#004CA1" VLINK="#B50394" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" LEFTMARGIN="0" RIGHTMARGIN="0">
+<TABLE WIDTH="100%" CELLSPACING=0 CELPADDING=0 BORDER=0>
+ <TR BGCOLOR="#004CA1"><TD><FONT FACE="Arial" SIZE=3 COLOR="#FFFFFF">{$blog->getBlog()}</FONT></TD></TR>
+ <TR><TD BGCOLOR="#002f64"><FONT FACE="Arial" SIZE=1 COLOR="#FFFFFF">{$blog->getABOUT()}</FONT></TD></TR>
+</TABLE>
\ No newline at end of file

Deleted: plugins/trunk/mobile/templates/html-light/main.template
===================================================================
--- plugins/trunk/mobile/templates/html-nokia/main.template	2005-06-01 21:42:00 UTC (rev 2154)
+++ plugins/trunk/mobile/templates/html-light/main.template	2005-06-04 16:47:17 UTC (rev 2162)
@@ -1,6 +0,0 @@
-{include file="html-nokia/header.template"}
-{foreach from=$posts item=post}
-{include file="html-nokia/post.template"}
-{/foreach}
-{include file="html-nokia/pager.template"}
-{include file="html-nokia/footer.template"}
\ No newline at end of file

Copied: plugins/trunk/mobile/templates/html-light/main.template (from rev 2161, plugins/trunk/mobile/templates/html-nokia/main.template)
===================================================================
--- plugins/trunk/mobile/templates/html-nokia/main.template	2005-06-04 16:43:39 UTC (rev 2161)
+++ plugins/trunk/mobile/templates/html-light/main.template	2005-06-04 16:47:17 UTC (rev 2162)
@@ -0,0 +1,6 @@
+{include file="html-light/header.template"}
+{foreach from=$posts item=post}
+{include file="html-light/post.template"}
+{/foreach}
+{include file="html-light/pager.template"}
+{include file="html-light/footer.template"}
\ No newline at end of file

Deleted: plugins/trunk/mobile/templates/html-light/pager.template
===================================================================
--- plugins/trunk/mobile/templates/html-nokia/pager.template	2005-06-01 21:42:00 UTC (rev 2154)
+++ plugins/trunk/mobile/templates/html-light/pager.template	2005-06-04 16:47:17 UTC (rev 2162)
@@ -1,21 +0,0 @@
-<CENTER><TABLE CELLPADDING=1 CELLSPACING=0 BORDER=1 BORDERCOLOR="#C0C0C0" WIDTH="100%">
-<TR>
-<TD bgcolor="#DDDDDD"><center><B><FONT SIZE=2 FACE="Arial">
-
-	{if !$pager->isFirstPage() && !$pager->isEmpty()}
-	   <A HREF="{$pager->getPrevPageLink()}">&laquo;</a>&nbsp;</A>
-	{/if}	
-	{foreach from=$pager->getPageLinks() item=pageLink key=pageId}
-	  {if $pageId == $pager->getCurrentPage()}
-	    {$pageId}
-	  {else}
-	    <A HREF="{$pageLink}">&nbsp;{$pageId}&nbsp;</A>&nbsp;
-	  {/if}  
-	{/foreach}
-	{if !$pager->isLastPage() && !$pager->isEmpty()}
-	    <A HREF="{$pager->getNextPageLink()}">&raquo;</A>&nbsp;
-	{/if}
-	
-</FONT></B></center></TD></TR>
-</TABLE></center>
-

Copied: plugins/trunk/mobile/templates/html-light/pager.template (from rev 2161, plugins/trunk/mobile/templates/html-nokia/pager.template)

Deleted: plugins/trunk/mobile/templates/html-light/post.template
===================================================================
--- plugins/trunk/mobile/templates/html-nokia/post.template	2005-06-01 21:42:00 UTC (rev 2154)
+++ plugins/trunk/mobile/templates/html-light/post.template	2005-06-04 16:47:17 UTC (rev 2162)
@@ -1,5 +0,0 @@
-<TABLE WIDTH="100%" CELLPADDING="1" CELLSPACING="0" BORDER=1 BGCOLOR="#FFFFFF" BORDERCOLOR="#C0C0C0">
- <tr><td width="100%" BGCOLOR="#CCCCCC"><FONT FACE="Arial" SIZE=2  color="#990000"><B><A HREF="{$murl->postPermalink($post)}">{$post->getTopic()}</a></b></font></td></tr>
- <TR><TD WIDTH="100%" BGCOLOR="#FFFFFF" VALIGN="TOP"><FONT FACE="Arial" SIZE=2 color="#000000">{$post->getIntroText()}</td></tr>
- <TR><TD WIDTH="100%" HEIGHT=18 ALIGN="CENTER" BGCOLOR="#EFEDED"><A HREF="{$murl->postPermalink($post)}" class="non"><FONT FACE="Arial" SIZE=1><A HREF="{$murl->postPermalink($post)}">{$post->getTotalComments()}</FONT> <IMG SRC="{$url->getUrl("/imgs/face.gif")}" ALT="Comments" WIDTH=8 HEIGHT=10></A></TD></TR>
-</TABLE>
\ No newline at end of file

Copied: plugins/trunk/mobile/templates/html-light/post.template (from rev 2161, plugins/trunk/mobile/templates/html-nokia/post.template)

Deleted: plugins/trunk/mobile/templates/html-light/postandcomments.template
===================================================================
--- plugins/trunk/mobile/templates/html-nokia/postandcomments.template	2005-06-01 21:42:00 UTC (rev 2154)
+++ plugins/trunk/mobile/templates/html-light/postandcomments.template	2005-06-04 16:47:17 UTC (rev 2162)
@@ -1,13 +0,0 @@
-{include file="html-nokia/header.template"}
-{include file="html-nokia/post.template"}
-{foreach from=$comments item=comment}
-<TABLE CELLPADDING=2 CELLSPACING=0 BORDER=1 BORDERCOLOR="#C0C0C0" WIDTH="100%">
-<TR>
-<TD BGCOLOR="#D3D3D3" WIDTH="100%"><FONT FACE="Arial" SIZE=2 color="#334433"><B>{$comment->getTopic()}</B></FONT></TD>
-</TR>
-{assign var=commentDate value=$comment->getDateObject()}
-<TR><TD BGCOLOR="#DEDEDE" WIDTH="100%"> <FONT FACE="Verdana, Arial" SIZE=1><B>{$comment->getUsername()}</B> @ {$locale->formatDate($commentDate,"%d-%m-%Y %H:%M")}</FONT></TD></TR>
-<TR><TD VALIGN="TOP" WIDTH="100%" bgcolor="#EEEEEE"><FONT FACE="Arial, Sans-serif, Trebuchet MS" SIZE=2 color="#000000">{$post->getText()}</FONT></TD></TR></TABLE>
-{/foreach}
-{include file="html-nokia/pager.template"}
-{include file="html-nokia/footer.template"}
\ No newline at end of file

Copied: plugins/trunk/mobile/templates/html-light/postandcomments.template (from rev 2161, plugins/trunk/mobile/templates/html-nokia/postandcomments.template)
===================================================================
--- plugins/trunk/mobile/templates/html-nokia/postandcomments.template	2005-06-04 16:43:39 UTC (rev 2161)
+++ plugins/trunk/mobile/templates/html-light/postandcomments.template	2005-06-04 16:47:17 UTC (rev 2162)
@@ -0,0 +1,14 @@
+{include file="html-light/header.template"}
+{include file="html-light/post.template"}
+{foreach from=$comments item=comment}
+<TABLE CELLSPACING=0 WIDTH="100%">
+<TR>
+<TD WIDTH="100%"><FONT FACE="Arial" SIZE=2 COLOR="#B8B2AC"><B>{$comment->getTopic()}</B></FONT></TD>
+</TR>
+{assign var=commentDate value=$comment->getDateObject()}
+<TR><TD WIDTH="100%"><FONT FACE="Arial" SIZE=1><B>{$comment->getUsername()}</B> | {$locale->formatDate($commentDate,"%d/%m/%Y %H:%M")}</FONT></TD></TR>
+<TR><TD VALIGN="TOP" WIDTH="100%"><FONT FACE="Arial" SIZE=2 color="#000000">{$comment->getText()}</FONT></TD></TR></TABLE>
+<BR>
+{/foreach}
+{include file="html-light/pager.template"}
+{include file="html-light/footer.template"}
\ No newline at end of file




More information about the pLog-svn mailing list