Author: tkoomzaaskz
Date: 2010-01-17 14:01:06 +0100 (Sun, 17 Jan 2010)
New Revision: 26766

Added:
   plugins/tdVideoPlugin/trunk/web/css/td_video.css
Modified:
   plugins/tdVideoPlugin/trunk/README
   plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/actions/actions.class.php
   plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/i18n/td.pl.xml
   plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/templates/indexSuccess.php
   plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/templates/showSuccess.php
   plugins/tdVideoPlugin/trunk/package.xml
   plugins/tdVideoPlugin/trunk/web/css/flowplayer.css
Log:
[td][video] layout of tdSampleVideo upgraded - release 0.1.1

Modified: plugins/tdVideoPlugin/trunk/README
===================================================================
--- plugins/tdVideoPlugin/trunk/README  2010-01-17 12:27:49 UTC (rev 26765)
+++ plugins/tdVideoPlugin/trunk/README  2010-01-17 13:01:06 UTC (rev 26766)
@@ -35,14 +35,15 @@
 enabled_modules section:
 
     [php]
-    enabled_modules: [ ..., sfVideo ]
+    enabled_modules: [ ..., tdSampleVideo ]
 
 Run the following URL in your browser:
 
     http://your-site/video
 
-You may choose from 3 example flv files to display. An example of linking flv
-file is shown in sfVideo/templates/indexSuccess.php.
+You may choose from 3 example flv files to display. They can be loaded with the
+fixture file provided. Example flv files are displayed in
+tdSampleVideo/templates/indexSuccess.php file.
 
 Documentation
 =============

Modified: 
plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/actions/actions.class.php
===================================================================
--- plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/actions/actions.class.php 
2010-01-17 12:27:49 UTC (rev 26765)
+++ plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/actions/actions.class.php 
2010-01-17 13:01:06 UTC (rev 26766)
@@ -12,11 +12,17 @@
 {
   public function executeIndex(sfWebRequest $request)
   {
+    // ading default td_video layout
+    $this->getResponse()->addStylesheet('/tdVideoPlugin/css/td_video');
+
     $this->videos = 
Doctrine::getTable('tdVideo')->getActiveVideosQuery()->fetchArray();
   }
 
   public function executeShow(sfWebRequest $request)
   {
+    // ading default td_video layout
+    $this->getResponse()->addStylesheet('/tdVideoPlugin/css/td_video');
+
     $results = 
Doctrine::getTable('tdVideo')->getActiveVideoByFileQuery($request->getParameter('file'))->fetchArray();
     $this->video = $results[0];
 

Modified: plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/i18n/td.pl.xml
===================================================================
--- plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/i18n/td.pl.xml    
2010-01-17 12:27:49 UTC (rev 26765)
+++ plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/i18n/td.pl.xml    
2010-01-17 13:01:06 UTC (rev 26766)
@@ -13,6 +13,10 @@
         <target>obejrzyj</target>
       </trans-unit>
       <trans-unit>
+        <source>Name</source>
+        <target>Nazwa</target>
+      </trans-unit>
+      <trans-unit>
         <source>Author</source>
         <target>Autor</target>
       </trans-unit>

Modified: 
plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/templates/indexSuccess.php
===================================================================
--- 
plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/templates/indexSuccess.php    
    2010-01-17 12:27:49 UTC (rev 26765)
+++ 
plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/templates/indexSuccess.php    
    2010-01-17 13:01:06 UTC (rev 26766)
@@ -1,17 +1,26 @@
-<?php use_helper('I18N') ?>
+<?php use_helper('I18N', 'Date') ?>
 
 <h1><?php echo __('Video list', array(), 'td') ?></h1>
 
 <?php if ($videos): ?>
-<ul>
+<ul id="video">
   <?php foreach ($videos as $video): ?>
     <li>
-      <div>
-        <span class="video_name"><?php echo $video['name'] ?></span>
-        <span class="video_author"><?php echo $video['author'] ?></span>
-        <span class="video_released_at"><?php echo $video['recorded_at'] 
?></span>
-        <span class="video_link"><?php echo link_to(__('watch it', array(), 
'td'), '@td_sample_video_show?file='.$video['file']) ?></span>
+      <div class="name">
+        <span class="title"><?php echo __('Name', array(), 'td') ?>: </span>
+        <span class="value"><?php echo $video['name'] ?></span>
       </div>
+      <div class="author">
+        <span class="title"><?php echo __('Author', array(), 'td') ?>: </span>
+        <span class="value"><?php echo $video['author'] ?></span>
+      </div>
+      <div class="recorded_at">
+        <span class="title"><?php echo __('Recorded at', array(), 'td') ?>: 
</span>
+        <span class="value"><?php echo (false !== 
strtotime($video['recorded_at']) ? format_date($video['recorded_at'], "f") : 
'&nbsp;') ?></span>
+      </div>
+      <div class="link">
+        <span><?php echo link_to(__('watch it', array(), 'td'), 
'@td_sample_video_show?file='.$video['file']) ?></span>
+      </div>
     </li>
   <?php endforeach; ?>
 </ul>

Modified: 
plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/templates/showSuccess.php
===================================================================
--- plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/templates/showSuccess.php 
2010-01-17 12:27:49 UTC (rev 26765)
+++ plugins/tdVideoPlugin/trunk/modules/tdSampleVideo/templates/showSuccess.php 
2010-01-17 13:01:06 UTC (rev 26766)
@@ -4,18 +4,27 @@
 
 <?php use_helper('Video', 'Date') ?>
 
-<div id="page">
+<div id="video">
 
-    <h1><?php echo $video['name'] ?></h1>
-    <p><?php echo __('Author', array(), 'td').': '.$video['author'] ?></p>
-    <p><?php echo __('Recorded at', array(), 'td').': '.(false !== 
strtotime($video['recorded_at']) ? format_date($video['recorded_at'], "f") : 
'&nbsp;') ?></p>
+  <h1><?php echo $video['name'] ?></h1>
+  <div class="author">
+    <span class="title"><?php echo __('Author', array(), 'td')?>: </span>
+    <span class="value"><?php echo $video['author'] ?></span>
+  </div>
+  <div class="recorded_at">
+    <span class="title"><?php echo __('Recorded at', array(), 'td')?>: </span>
+    <span class="value"><?php echo (false !== strtotime($video['recorded_at']) 
? format_date($video['recorded_at'], "f") : '&nbsp;') ?></span>
+  </div>
 
-    <a href="<?php echo video_path('flv'.'/'.$video['file']) ?>" 
style="display:block;width:520px;height:330px" id="player"></a>
+  <a href="<?php echo video_path('flv'.'/'.$video['file']) ?>" 
style="display:block;width:520px;height:330px" id="player"></a>
 
-    <script>
-        flowplayer("player", "<?php echo 
video_path('swf/flowplayer-3.1.5.swf') ?>");
-    </script>
+  <script>
+    flowplayer("player", "<?php echo video_path('swf/flowplayer-3.1.5.swf') 
?>");
+  </script>
 
-    <p><?php echo __('Description', array(), 'td').': '.$video['description'] 
?></p>
+  <div class="description">
+    <span class="title"><?php echo __('Description', array(), 'td')?>: </span>
+    <span class="value"><?php echo $video['description'] ?></span>
+  </div>
 
 </div>

Modified: plugins/tdVideoPlugin/trunk/package.xml
===================================================================
--- plugins/tdVideoPlugin/trunk/package.xml     2010-01-17 12:27:49 UTC (rev 
26765)
+++ plugins/tdVideoPlugin/trunk/package.xml     2010-01-17 13:01:06 UTC (rev 
26766)
@@ -10,10 +10,10 @@
   <email>[email protected]</email>
   <active>yes</active>
  </lead>
- <date>2010-01-15</date>
+ <date>2010-01-17</date>
  <time>11:00:00</time>
  <version>
-   <release>0.1.0</release>
+   <release>0.1.1</release>
    <api>0.1.0</api>
  </version>
  <stability>
@@ -100,6 +100,7 @@
      <dir name="web">
        <dir name="css">
          <file name="flowplayer.css" role="data" />
+         <file name="td_video.css" role="data" />
        </dir>
        <dir name="flv">
          <file name="01.flv" role="data" />
@@ -146,6 +147,23 @@
 
    <release>
     <version>
+     <release>0.1.1</release>
+     <api>0.1.0</api>
+    </version>
+    <stability>
+     <release>beta</release>
+     <api>beta</api>
+    </stability>
+    <license uri="http://www.symfony-project.org/license";>MIT license</license>
+    <date>2010-01-17</date>
+    <license>MIT</license>
+    <notes>
+     * upgraded tdSampleVideo layout
+    </notes>
+   </release>
+
+   <release>
+    <version>
      <release>0.1.0</release>
      <api>0.1.0</api>
     </version>

Modified: plugins/tdVideoPlugin/trunk/web/css/flowplayer.css
===================================================================
--- plugins/tdVideoPlugin/trunk/web/css/flowplayer.css  2010-01-17 12:27:49 UTC 
(rev 26765)
+++ plugins/tdVideoPlugin/trunk/web/css/flowplayer.css  2010-01-17 13:01:06 UTC 
(rev 26766)
@@ -1,40 +1,24 @@
 
 body {
-       background-color:#fff;  
-       font-family:"Lucida Grande","bitstream vera sans","trebuchet 
ms",verdana,arial;
+       background-color: #fff;
+       font-family: "Lucida Grande","bitstream vera sans","trebuchet 
ms",verdana,arial;
 }
 
-#page {
-       background-color:#efefef;
-       width:520px;
-       margin:50px auto;
-       padding:20px 150px 20px 50px;
-       border:2px solid #fff;
-       outline:1px solid #ccc;
-       text-align:left;
-       text-align:center;
+#video {
+       background-color: #efefef;
+       width: 520px;
+       margin: 50px auto;
+       border: 2px solid #fff;
+       outline: 1px solid #ccc;
+       text-align: left;
+       text-align: center;
 }
 
-h1, h2 {
-       letter-spacing:-1px;
-       color:#2D5AC3;
-       font-weight:normal;             
-       margin-bottom:-10px;
-}
-
-h1 {
-       font-size:22px;
-}
-
-h2 {
-       font-size:18px;
-}
-
 .less {
-       color:#999;
-       font-size:12px;
+       color: #999;
+       font-size: 12px;
 }
 
 a {
-       color:#295c72;          
+       color: #295c72;
 }

Added: plugins/tdVideoPlugin/trunk/web/css/td_video.css
===================================================================
--- plugins/tdVideoPlugin/trunk/web/css/td_video.css                            
(rev 0)
+++ plugins/tdVideoPlugin/trunk/web/css/td_video.css    2010-01-17 13:01:06 UTC 
(rev 26766)
@@ -0,0 +1,30 @@
+#video {
+    list-style-type: none;
+}
+
+#video li {
+    border: 1px solid #bbb;
+    margin: 10px;
+    padding: 5px;
+    background-color: #eee;
+}
+
+#video div {
+    margin: 2px;
+}
+
+#video span.title {
+    font-variant: small-caps;
+}
+
+#video div.link a {
+    font-variant: small-caps;
+}
+
+#video div {
+    text-align: justify;
+}
+
+#video div.description {
+    text-indent: 20px;
+}

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.


Reply via email to