Changeset 981


Ignore:
Timestamp:
01/24/10 12:36:30 (3 years ago)
Author:
nick_ramsay
Message:

[Branch] Fix for moving widgets into other widget blocks and switched RSS icon from left to right of RSS Show widget header.

Location:
branches/1.0
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/content/plugins/gravatar/gravatar.php

    r905 r981  
    9898            "&r=" . $rating; 
    9999             
    100         $img_url = "<img class='avatar' src='" . $grav_url . "' " . $resized  ." alt='' />\n"; 
     100        $img_url = "<img class='avatar' src='" . $grav_url . "' " . $resized  ." alt='' />"; 
    101101         
    102102        return $img_url; 
  • branches/1.0/content/plugins/rss_show/rss_show.php

    r877 r981  
    7373                if ($settings['title']) {  
    7474                    $output .= "<h2 class='widget_head rss_show_feed_title'>\n"; 
     75                    if ($feed->get_link()) { $link = $feed->get_link(); } else { $link = $feed->subscribe_url(); } 
     76                    $output .= "<a href='" . $link . "' title='" . $h->lang["rss_show_title_anchor_title"] . "'>" . $settings['title'] . "</a>"; 
    7577                    $output .= "<a href='" . $feed->subscribe_url() . "' title='" . $h->lang["rss_show_icon_anchor_title"] . "'>\n"; 
    76                     $output .= "<img src='" . BASEURL . "content/themes/" . THEME . "images/rss_16.png'></a>&nbsp;\n"; // RSS icon 
    77                     if ($feed->get_link()) { $link = $feed->get_link(); } else { $link = $feed->subscribe_url(); } 
    78                     $output .= "<a href='" . $link . "' title='" . $h->lang["rss_show_title_anchor_title"] . "'>" . $settings['title'] . "</a></h2>\n";  
     78                    $output .= "<img src='" . BASEURL . "content/themes/" . THEME . "images/rss_16.png'></a>\n"; // RSS icon 
     79                    $output .= "</h2>\n";  
    7980                } 
    8081                     
  • branches/1.0/content/plugins/whos_online/whos_online.php

    r955 r981  
    138138                 
    139139                if ($avatars) { 
    140                     $h->setAvatar($userid, $avatar_size);   
    141                     $output .= $h->linkAvatar() . " \n"; 
     140                    $h->setAvatar($userid, $avatar_size); 
     141                    $output .= $h->linkAvatar(); 
    142142                } 
    143143                 
     
    158158        echo $output; 
    159159         
    160         echo "</div>"; 
     160        echo "</div>\n"; 
    161161    } 
    162162     
  • branches/1.0/content/plugins/widgets/templates/widget_ordering.php

    r855 r981  
    4848        if ($widgets) { 
    4949            foreach ($widgets as $widget => $details) { 
    50              
    5150                if ($details['block'] == $i) { 
    5251                    // For the enabled button... 
     
    7877                        echo "<td class='plugins_active widgets_active'>" . $enabled_output . "</td>\n"; 
    7978                        echo "<td class='table_text'>" . make_name($widget) . " </td>\n"; 
    80                         echo "<td class='plugins_order widgets_order'>" . $order_output . "</td>\n"; 
     79                        echo "<td class='plugins_order widgets_order'>" . $order_output . " " . $details['order'] . " " . $details['block'] . "</td>\n"; 
    8180                    echo "</tr>\n"; 
    8281                } 
  • branches/1.0/content/plugins/widgets/widgets.php

    r861 r981  
    138138                                break; 
    139139                            } else { 
    140                                 // In different blocks so don't change the order, just the block value 
    141                                 $widgets_settings['widgets'][$this_widget_function]['block']--; 
     140                                // In different blocks so don't change the order, just the block value (but only if greater than 1) 
     141                                if ($widgets_settings['widgets'][$this_widget_function]['block'] > 1) { 
     142                                    $widgets_settings['widgets'][$this_widget_function]['block']--; 
     143                                } 
    142144                            } 
    143145                        } 
     
    158160                    foreach ($widgets as $widget => $details) { 
    159161                        if ($details['order'] == ($this_widget_order + 1)) { 
    160                             $widgets_settings['widgets'][$widget]['order'] = $details['order'] - 1; 
    161                             $widgets_settings['widgets'][$this_widget_function]['order'] = $this_widget_order + 1; 
     162                            // just increase the block? 
     163                            if ($widgets_settings['widgets'][$widget]['block'] > $this_widget_block) { 
     164                                $widgets_settings['widgets'][$this_widget_function]['block']++; 
     165                            // or increase the order? 
     166                            } else { 
     167                                $widgets_settings['widgets'][$widget]['order'] = $details['order'] - 1; 
     168                                $widgets_settings['widgets'][$this_widget_function]['order'] = $this_widget_order + 1; 
     169                            } 
    162170                            $h->messages[$h->lang['widgets_order_updated']] = 'green'; 
    163171                            break; 
  • branches/1.0/content/themes/bars/css/search.css

    r980 r981  
    66 
    77#search_form { padding: 0; text-align: center;} 
    8 #search_form input#search_input { padding: 2px; width: 200px; } 
     8#search_form input#search_input { padding: 2px; width: 160px; } 
  • branches/1.0/content/themes/bars/css/style.css

    r980 r981  
    152152 
    153153/* FOOTER */ 
    154 #bottom_background { background: #cc0000; } 
     154#bottom_background { background: #cc0000; margin-top: 16px; } 
    155155#footer p { margin-top: 16px; } 
    156156 
  • branches/1.0/content/themes/bars/index.php

    r980 r981  
    3939// set widths and widget block numbers 
    4040if ($bars['left'] && $bars['right']) {  
    41     $bar_width = 6; $content_width = 12;            // BOTH BARS: total 24 (6x2 + 12) 
     41    $bar_width = 6; $content_width = 11;            // BOTH BARS: total 24 (6x2 + 12) 
    4242    $left = 1; $right = 2; 
    4343} elseif (!$bars['left'] && !$bars['right']) { 
  • branches/1.0/libs/Avatar.php

    r914 r981  
    121121                $avatar = $value; 
    122122            } 
    123             $output .=  $avatar; // uses the last avatar sent to this hook 
     123            $output .= $avatar; // uses the last avatar sent to this hook 
    124124        } 
    125125        $output .= "</a>\n"; 
Note: See TracChangeset for help on using the changeset viewer.