fix conflicts during merge of Arun's tree
authorAndreas Unterkircher <unki@netshadow.at>
Sun, 11 May 2008 07:42:36 +0000 (09:42 +0200)
committerAndreas Unterkircher <unki@netshadow.at>
Sun, 11 May 2008 07:42:36 +0000 (09:42 +0200)
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
1  2 
phpfspot.class.php
themes/default/stylesheet.css
themes/default/templates/header.tpl
themes/default/templates/index.tpl
themes/default/templates/photo_index.tpl
themes/default/templates/search.tpl
themes/default/templates/single_photo.tpl
themes/default/templates/slideshow.tpl
themes/default/templates/tags.tpl
themes/default/templates/welcome.tpl

Simple merge
index d67f3ac27db205fd5b04ccdc945d154e87e19910,9fe2c4e5bfb5193b5dab35e3773978ae21b818f2..93e56b79cedf4ce32fd411d3bca32ed2430d17c6
@@@ -245,3 -323,7 +323,7 @@@ input, select, textarea 
     border:                 1px solid #888888;
     border-collapse:        collapse;
  }
 -}
+ #slider-1{ 
+    margin:                 0 auto;
++}
index 1cd9cb4fba98b9827448bb0bd93cd7d13919249b,39b42ca6d12d44d2114ec5291fbccb31f02f73f6..c1d7a0cd694a5f0ad469359ee51a9227e5c49cad
@@@ -3,19 -3,19 +3,19 @@@
   <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>{$page_title}</title>
 -  <link href="{$template_path}/stylesheet.css" type="text/css" rel="stylesheet" />
 -  <script type="text/javascript" src="rpc.php?mode=init&amp;client=all"></script>
 -  <script type="text/javascript" src="phpfspot.js"></script>
 -  <link rel="shortcut icon" href="resources/gpl_16.png" type="image/png" />
 -  <link rel="icon" href="resources/gpl_16.png" type="image/png" />
 +  <link href="{$web_path}/{$template_path}/stylesheet.css" type="text/css" rel="stylesheet" />
 +  <script type="text/javascript" src="{$web_path}/rpc.php?mode=init&amp;client=all"></script>
 +  <script type="text/javascript" src="{$web_path}/phpfspot.js"></script>
 +  <link rel="shortcut icon" href="{$web_path}/resources/gpl_16.png" type="image/png" />
 +  <link rel="icon" href="{$web_path}/resources/gpl_16.png" type="image/png" />
    { if $use_lightbox }
 -  <script type="text/javascript" src="lightbox2/js/prototype.js"></script>
 -  <script type="text/javascript" src="lightbox2/js/scriptaculous.js?load=effects,builder"></script>
 -  <script type="text/javascript" src="lightbox2/js/lightbox.js"></script>
 -  <link rel="stylesheet" href="lightbox2/css/lightbox.css" type="text/css" media="screen" />
 +  <script type="text/javascript" src="{$web_path}/lightbox2/js/prototype.js"></script>
 +  <script type="text/javascript" src="{$web_path}/lightbox2/js/scriptaculous.js?load=effects,builder"></script>
 +  <script type="text/javascript" src="{$web_path}/lightbox2/js/lightbox.js"></script>
 +  <link rel="stylesheet" href="{$web_path}/lightbox2/css/lightbox.css" type="text/css" media="screen" />
    { /if }
    { if $use_autocomplete }
-   <script src="{$web_path}/autosuggest/js/bsn.AutoSuggest_2.1.3_comp.js"></script>
 -  <script type="text/javascript" src="autosuggest/js/bsn.AutoSuggest_2.1.3_comp.js"></script>
 -  <link rel="stylesheet" href="autosuggest/css/autosuggest_inquisitor.css" type="text/css" media="screen" charset="utf-8" />
++  <script type="text/javascript" src="{$web_path}/autosuggest/js/bsn.AutoSuggest_2.1.3_comp.js"></script>
 +  <link rel="stylesheet" href="{$web_path}/autosuggest/css/autosuggest_inquisitor.css" type="text/css" media="screen" charset="utf-8" />
    { /if }
   </head>                                                                                                      
index 46effe2436f4bcd6d36ec1967543e5a97aceef00,87c58b9065a3a7e0c6a32050c51412399fd0f571..694f86a88fe8d977b9972902008d08b759206ab3
@@@ -4,7 -4,7 +4,7 @@@
    <!-- loading -->
  
    <div id="HTML_AJAX_LOADING">
-    <img src="{$web_path}/resources/loading.gif" style="vertical-align: middle;" />&nbsp;&nbsp;Loading...
 -   <img src="resources/loading.gif" style="vertical-align: middle;" alt="Loading..." />&nbsp;&nbsp;Loading...
++   <img src="{$web_path}/resources/loading.gif" style="vertical-align: middle;" alt="Loading..." />&nbsp;&nbsp;Loading...
    </div>
  
    <!-- top menu -->
@@@ -39,8 -39,8 +39,8 @@@
  
    <!-- content column -->
    <div id="content" class="content">
 -   {include file="welcome.tpl"}
 +   { $initial_content }
    </div>
-   </span>
+   </div>
  
  {include file="footer.tpl"}
index 2c1b6ac78d916dc02d5495e110ceec8630ef2f50,413ec2668f6713d70f1b54c4e5c0aa2af2b58116..2dedf86d89e3fbb1c4c1f1bba9e4d822ccce64f7
@@@ -1,9 -1,6 +1,9 @@@
  <!-- Photo Index -->
 +
 +<!-- Header - displays count of matched photos and some link's -->
 +
  <div class="header">
-  <div style="float: left;">
+  <div class="subheader">
    <b>Photo Index</b>
    {if $searchfor }
     {if $count == 1}
     Results are limited to a date within {$from_date} to {$to_date}.
    {/if}
   </div>
 <div style="text-align: right">
<div class="textright">
    {if $slideshow_link }
 -   <a href="{$slideshow_link}" title="Slideshow" target="_blank"><img src="resources/slideshow.png" /></a>
 +   <a href="{$slideshow_link}" title="Slideshow" target="_blank"><img src="{$web_path}/resources/slideshow.png" />&nbsp;Slideshow</a>
    {/if}
    {if $extern_link }
 -   <a href="{$extern_link}" title="Use this link to return to the current view"><img src="resources/link.png" /></a>
 +   <a href="{$extern_link}" title="Use this link to return to the current view"><img src="{$web_path}/resources/link.png" />&nbsp;External Link</a>
    {/if} 
    {if $export_link }
 -   <a href="{$export_link}" target="_blank" title="this will open a new browser window where you can export this page in several formats"><img src="resources/export.png" /></a>
 +   <a href="{$export_link}" target="_blank" title="this will open a new browser window where you can export this page in several formats"><img src="{$web_path}/resources/export.png" />&nbsp;Export</a>
    {/if}
    {if $rss_link }
 -   <a href="{$rss_link}" target="_blank" title="RSS feed"><img src="resources/rss.png" /></a>
 +   <a href="{$rss_link}" target="_blank" title="RSS feed"><img src="{$web_path}/resources/rss.png" />&nbsp;RSS-Feed</a>
    {/if}
   </div>
  </div>
 +
 +<!-- if result of a tag-search is displayed, show the selected tags
 +     with some small pictures in a bar. -->
 +
  { if $tag_result }
- <div id="whiteline" /></div>
+ <div class="tagresult"></div>
  <div class="subheader">
-  <div style="display: table-cell; vertical-align: middle;">
+  <div class="tagresulttags">
   Tags:
   </div>
   { $selected_tags }
  
  </div>
  <br class="clearboth" />
- <div style="width: 100%; margin-top: 20px;">
+ <div class="indexnavigation">
  
   <!-- the right nav arrow -->
-  <div style="float: right; width: 40px; margin-right: 0px; padding-right: 10px;">
+  <div class="indexnavigationright">
   { if $next_url == "" }
    { if $count != 0 }
 -   <img src="resources/arrow_right_gray.png" alt="last page reached" />
 +   <img src="{$web_path}/resources/arrow_right_gray.png" alt="last page reached" />
    { /if }
   { else }
    <a href="{$next_url}" id="next_link" title="click for the next page (right cursor)">
   </div>
  
   <!-- the left nav arrow -->
-  <div style="float: left; margin: 0px; padding-left: 10px; width: 40px;">
+  <div class="indexnavigationleft">
   { if $previous_url == "" }
    { if $count != 0 }
 -   <img src="resources/arrow_left_gray.png" alt="first page reached" />
 +   <img src="{$web_path}/resources/arrow_left_gray.png" alt="first page reached" />
    { /if }
   { else }
    <a href="{$previous_url}" id="prev_link" title="click for the previous page (left cursor)">
index ca7042ef2c3a9905bb912339422e98ef03283f8e,77ed7adbadc2d9dfe079361e89e54699b6c02b9e..401d9af937ae3b61addcaa2402fc5699419196fb
@@@ -1,5 -1,5 +1,5 @@@
- <span style="vertical-align: middle; text-decoration: underline;">
+ <span class="tags">
 - <img src="resources/loupe.png" alt="loupe" />Search:
 + <img src="{$web_path}/resources/loupe.png" alt="loupe" />Search:
  </span>
  <form action="" onsubmit="startSearch(); return false;">
  <div class="searchfor">
   </tr>
   <tr>
    <td>&nbsp;</td>
-   <td>{$from_date} <a href="javascript:showCalendar('from');" onclick="click(this);"><img src="{$web_path}/resources/date.png" id="frompic"/></a></td>
 -  <td>{$from_date} <a href="javascript:showCalendar('from');" onclick="click(this);"><img src="resources/date.png" id="frompic" alt="from" /></a></td>
++  <td>{$from_date} <a href="javascript:showCalendar('from');" onclick="click(this);"><img src="{$web_path}/resources/date.png" id="frompic" alt="from" /></a></td>
   </tr>
   <tr>
    <td>&nbsp;</td>
    <td>
-    {$to_date} <a href="javascript:showCalendar('to');" onclick="click(this);"><img src="{$web_path}/resources/date.png" id="topic" /></a>
 -   {$to_date} <a href="javascript:showCalendar('to');" onclick="click(this);"><img src="resources/date.png" id="topic" alt="to" /></a>
++   {$to_date} <a href="javascript:showCalendar('to');" onclick="click(this);"><img src="{$web_path}/resources/date.png" id="topic" alt="to" /></a>
    </td>
    <td>
 -   <input type="image" class="submit" src="resources/doit.png" alt="start search" title="start search" onclick="click(this);" />
 +   <input type="image" class="submit" src="{$web_path}/resources/doit.png" alt="start search" title="start search" onclick="click(this);" />
    </td>
   </tr>
   <tr>
index bf3051cf247e713ee6b60f4df8a0edc9c488b847,b6cdecbe7da1b6cdc4fd1a35dad5d971674c9237..571b524b90a39f277d778650906c0828b47b8b1a
@@@ -29,9 -29,9 +29,9 @@@
  </div>
  
  <div>
-  <div id="photo_details" style="float: right; margin-top: 20px; margin-right: 20px;">
+  <div id="photo_details">
     { if $ExifMadeWith }
 -   <u><img src="resources/camera.png" alt="camera icon" />&nbsp;Image taken with:</u><br />
 +   <u><img src="{$web_path}/resources/camera.png" alt="camera icon" />&nbsp;Image taken with:</u><br />
     {$ExifMadeWith}<br />
     { /if }
     { if $ExifMadeOn }
  
   <!-- the photo itself -->
  
-  <div style="text-align: left; margin-top: 20px; margin-left: 20px;">
+  <div class="photo">
   { if $next_url == "" }
 -  <a href="javascript:showPhotoIndex();" onclick="click(this);" name="photo">
 +  <a href="{$image_url}" onclick="showPhotoIndex(); return false;" onfocus="click(this);" name="photo">
   { else }
 -  <a href="{$next_url}" onclick="click(this);" title="click for the next photo" name="photo">
 +  <a href="{$image_url}" onclick="{$next_url}; return false;" onfocus="click(this);" title="click for the next photo" name="photo">
   { /if }
     <img src="{$image_url}" width="{$width}" height="{$height}" alt="{$image_filename}" name="photo" id="photo" />
    </a>
  
   <!-- navigation arrows -->
  
-  <div style="margin-left: 20px;">
+  <div class="photonavigation">
    { if $previous_url == "" }
 -   <img src="resources/arrow_left_gray.png" alt="first photo reached" />
 +   <img src="{$web_path}/resources/arrow_left_gray.png" alt="first photo reached" />
    { else }
 -   <a href="{$previous_url}" onclick="click(this);" title="click for the previous photo (left cursor)">
 -    <img src="resources/arrow_left.png" alt="previous photo" />
 +   <a href="{$previous_url}" onfocus="click(this);" title="click for the previous photo (left cursor)">
 +    <img src="{$web_path}/resources/arrow_left.png" alt="previous photo" />
     </a>
    { /if }
 -   <a href="javascript:showPhotoIndex({$current_page}, {$current_img});" onclick="click(this);" title="click to go back to the index">
 -    <img src="resources/arrow_up.png" alt="photo index" />
 +   <a href="javascript:showPhotoIndex({$current_page}, {$current_img});" onfocus="click(this);" title="click to go back to the index">
 +    <img src="{$web_path}/resources/arrow_up.png" alt="photo index" />
     </a>
    { if $next_url == "" }
 -   <img src="resources/arrow_right_gray.png" alt="last photo reached" />
 +   <img src="{$web_path}/resources/arrow_right_gray.png" alt="last photo reached" />
    { else }
 -   <a href="{$next_url}" onclick="click(this);" title="click for the next photo (right cursor)"> 
 -    <img src="resources/arrow_right.png" alt="next photo" />
 +   <a href="{$next_url}" onfocus="click(this);" title="click for the next photo (right cursor)">
 +    <img src="{$web_path}/resources/arrow_right.png" alt="next photo" />
     </a>
    { /if}
   </div>
index 84b6a6b6817a65739b2748d216c0f1db6c234f91,22c86a894a8d4e8cfcb0d72053e0e8fbcb4ec5fd..9a8f1fe7adfca8d85e192ee8808568d29e5ad95a
@@@ -1,18 -1,18 +1,18 @@@
  {include file="header.tpl"}
 - <script type="text/javascript" src="slider/js/range.js"></script>
 - <script type="text/javascript" src="slider/js/timer.js"></script>
 - <script type="text/javascript" src="slider/js/slider.js"></script>
 - <link type="text/css" rel="StyleSheet" href="slider/css/bluecurve/bluecurve.css" />
 + <script type="text/javascript" src="{$web_path}/slider/js/range.js"></script>
 + <script type="text/javascript" src="{$web_path}/slider/js/timer.js"></script>
 + <script type="text/javascript" src="{$web_path}/slider/js/slider.js"></script>
 + <link type="text/css" rel="StyleSheet" href="{$web_path}/slider/css/bluecurve/bluecurve.css" />
   <body onload="startSlideShow();" class="slideshow">
    <div id="slide_navigation">
 -   <a href="javascript:prevSlide();" onclick="click(this);" title="slive to previous photo"><img id="rew_ico" src="resources/32_rew.png" /></a>
 -   <a href="javascript:pauseSlideShow();" onclick="click(this);"><img id="pause_ico" src="resources/32_pause.png" /></a>
 -   <a href="javascript:startSlideShow();" onclick="click(this);" title="stop and revert slideshow"><img id="stop_ico" src="resources/32_stop.png" /></a>
 -   <a href="javascript:nextSlide();" onclick="click(this);" title="slide to next photo"><img id="fwd_ico" src="resources/32_fwd.png" /></a>
 +   <a href="javascript:prevSlide();" onclick="click(this);" title="slive to previous photo"><img id="rew_ico" src="{$web_path}/resources/32_rew.png" /></a>
 +   <a href="javascript:pauseSlideShow();" onclick="click(this);"><img id="pause_ico" src="{$web_path}/resources/32_pause.png" /></a>
 +   <a href="javascript:startSlideShow();" onclick="click(this);" title="stop and revert slideshow"><img id="stop_ico" src="{$web_path}/resources/32_stop.png" /></a>
 +   <a href="javascript:nextSlide();" onclick="click(this);" title="slide to next photo"><img id="fwd_ico" src="{$web_path}/resources/32_fwd.png" /></a>
    </div>
-   <div style="margin: 0 auto; padding: 10px;">
+   <div id="slide_close">
     <a href="javascript:window.close();" title="click to close slideshow">
-     <img id="slide_img" alt="slideshow_img" style="padding: 15px; background-color: #000000;" />
+     <img id="slide_img" alt="slideshow_img" />
     </a>
    </div>
    <form>
index f0e3a4748b52838162f45f317901a07f39e5c8b9,e4b04a8d56411af3891d9a9d566fbc6601525f1c..817cfbcf2a9590bb8a18be572ed7142c70573121
@@@ -1,9 -1,9 +1,9 @@@
- <span style="vertical-align: middle; text-decoration: underline;">
+ <span class="tags">
 - <img src="resources/available_tags.png" alt="available tags" />Available Tags:
 + <img src="{$web_path}/resources/available_tags.png" alt="available tags" />Available Tags:
  </span>
 -<div id="available_tags"></div>
 +<div id="available_tags">{ $preset_available_tags }</div>
- <span style="vertical-align: middle; text-decoration: underline;">
+ <span class="tags">
 - <img src="resources/selected_tags.png" alt="selected tags" />Selected Tags:
 + <img src="{$web_path}/resources/selected_tags.png" alt="selected tags" />Selected Tags:
  </span>
   &nbsp;
   <input type="radio" name="condition" value="or" onclick="Tags('condition', this);" {if $current_condition == "or" } checked="checked" { /if } title="OR condition" />||
index 6e6613c8f0a1d0832470387b96bded1ada6fdd16,fbb21a1bcdbdd49218d56d8083f57a0309e5dc7e..073af0053c719591a7c73fd5be3252df9adfcbc4
@@@ -1,35 -1,35 +1,35 @@@
  <!-- welcome -->
- <div class="header" style="text-align: left;">
+ <div class="header">
   phpfspot welcomes you to a dynamic photo gallery for <a href="http://f-spot.org" target="_blank">F-Spot</a><br />
  </div>
- <div style="padding: 10px; margin-left: 10px; margin-right: 10px;">
+ <div class="welcome">
  
-  <div style="float: left; padding-right: 10px; width: 150px; text-align: center;">
-   <img src="{$web_path}/phpfspot_img.php?idx=rand&width=150&i=1">
-  </div>
-  <div>
+  <p>
+  <span>
 -   <img src="phpfspot_img.php?idx=rand&amp;width=150&amp;i=1" alt="random image" />
++   <img src="{$web_path}/phpfspot_img.php?idx=rand&amp;width=150&amp;i=1" alt="random image" />
+  </span>
    This application targets to provide an easy way, to presentate your F-Spot<br />
    pictures in the web, in a way where you do not need any of the current<br />
    web2.0 providers or setup complex apps like gallery
-  </div>
+  </p>
  
-  <br class="clearboth">
+  <br class="clearboth" />
  
-  <div style="float: left; padding-right: 10px; width: 150px; text-align: center;">
-   <img src="{$web_path}/phpfspot_img.php?idx=rand&width=150&i=2">
-  </div>
-  <div>
+  <p>
+  <span>
 -   <img src="phpfspot_img.php?idx=rand&amp;width=150&amp;i=2" alt="random image" />
++   <img src="{$web_path}/phpfspot_img.php?idx=rand&amp;width=150&amp;i=2" alt="random image" />
+  </span>
    You can adapt this welcome page in the file "welcome.tpl" in the template<br />
    directory of your current theme.
-  </div>
+  </p>
  
-  <br class="clearboth">
+  <br class="clearboth" />
  
-  <div style="float: left; padding-right: 10px; width: 150px; text-align: center;">
-   <img src="{$web_path}/phpfspot_img.php?idx=rand&width=150&i=3">
-  </div>
-  <div>
+  <p>
+  <span>
 -   <img src="phpfspot_img.php?idx=rand&amp;width=150&amp;i=3" alt="random image" />
++   <img src="{$web_path}/phpfspot_img.php?idx=rand&amp;width=150&amp;i=3" alt="random image" />
+  </span>
   <a href="javascript:showPhotoIndex();">[ Click here to take a look at your photo index or select a tag from the list on the left ]</a>
-  </div>
+  </p>
  </div>
  <!-- /welcome -->