Show
Ignore:
Timestamp:
10/31/06 18:08:03 (2 years ago)
Author:
mbonetti
Message:

tiny revamp of the default mobile theme

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/themes/default/mobile/item.php

    r1561 r1615  
    1 <br /><br /><h4><a href="<?php 
     1<?php 
     2if (!isset($GLOBALS['__item__idx__'])) { 
     3    $GLOBALS['__item__idx__']=0; 
     4} 
     5$cls = $GLOBALS['__item__idx__']++ % 2 ? 'e':'o'; 
     6?> 
     7<div class="item <?php echo $cls; ?>"> 
     8<h4><a href="<?php 
    29  $url = rss_item_url(); 
    310  if (substr($url,0,4) == 'http') { 
     
    815?>"><?php echo rss_item_title();  
    916?></a></h4> 
    10 <h5><?php echo rss_item_date(); ?><?php echo rss_item_author(); ?></h5> 
     17<h5><?php echo rss_item_date(); ?> <?php echo rss_item_author(); ?></h5> 
    1118<?php if (rss_item_has_enclosure()) { ?> 
    1219<h5><?php echo __('Enclosure:'); ?>&nbsp;[<a href="<?php echo rss_item_enclosure(); ?>"><?php echo __('download'); ?></a>]</h5> 
     
    2027 
    2128<?php if(!hidePrivate()) { ?> 
    22     <br /> 
    23     <div class="mobileform"> 
    24     <input type="radio" value="mobile_read" name="<?= rss_item_id(); ?>" <?php 
    25       if( !$GLOBALS['rss'] -> currentItem -> isUnread && !$GLOBALS['rss'] -> currentItem -> isSticky ) { 
    26         echo "checked"; 
    27       } 
    28     ?> >read 
    29     <input type="radio" name="<?= rss_item_id(); ?>" <?php 
    30       if( $GLOBALS['rss'] -> currentItem -> isUnread ) { 
    31         echo "checked";  
    32       } 
    33     ?> >unread 
    34     <input type="radio" value="mobile_sticky" name="<?= rss_item_id(); ?>" <?php 
    35       if( $GLOBALS['rss'] -> currentItem -> isSticky ) { 
    36         echo "checked"; 
    37       } 
    38     ?> >sticky 
    39     </div> 
     29<div class="mobileform"> 
     30<label for="">State:</label> 
     31<select name="<?= rss_item_id(); ?>"> 
     32    <option value="mobile_read" <?php  
     33        if( !$GLOBALS['rss'] -> currentItem -> isUnread && !$GLOBALS['rss'] -> currentItem -> isSticky ) {  
     34            echo "selected=\"selected\"";  
     35        } ?>>Read</option> 
     36    <option value="mobile_unread"   <?php 
     37          if( $GLOBALS['rss'] -> currentItem -> isUnread ) { 
     38            echo "selected=\"selected\"";  
     39          } 
     40        ?>>Unread</option> 
     41    <option value="mobile_sticky"   <?php 
     42          if( $GLOBALS['rss'] -> currentItem -> isSticky ) { 
     43            echo "selected=\"selected\"";  
     44          } 
     45        ?>>Sticky</option> 
     46</select> 
     47</div> 
    4048<?php } ?> 
    41  
    4249</div> 
     50</div>