Ignore:
Timestamp:
Nov 5, 2009, 11:15:41 PM (14 years ago)
Author:
vdigital
Message:

[PiwigoPress]

  • Alternate pwg_get_contents (cURL)
  • Generated \r\n in code
  • Readme FAQ
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/piwigopress/PiwigoPress_code.php

    r4125 r4216  
    6565                echo '<ul style="clear: both;"><li>' . __('Pictures categories','pwg') . '<ul>';
    6666                foreach ($cats["result"]["categories"] as $cat) {
    67                         echo '<li><a title="' . $cat['name'] . '" href="' . $piwigo_url . 'index.php?category/' . $cat['id'] . '">' . $cat['name'] . '</a></li>';
     67                        echo '<li><a title="' . $cat['name'] . '" href="' . $piwigo_url . 'index.php?category/' . $cat['id'] . '">' . $cat['name'] . '</a></li>'."\r\n";
    6868                }
    69                 echo '</ul></li></ul>';
     69                echo '</ul></li></ul>'."\r\n";
    7070        }
    7171}
     
    7676
    7777if ($most_visited == 'true')
    78         echo '<li><a title="' . __('Most visited','pwg') . '" href="' . $piwigo_url . 'index.php?most_visited' . '">' . __('Most visited','pwg') . '</a></li>';
     78        echo '<li><a title="' . __('Most visited','pwg') . '" href="' . $piwigo_url . 'index.php?most_visited' . '">' . __('Most visited','pwg') . '</a></li>'."\r\n";
    7979
    8080if ($best_rated == 'true')
    81         echo '<li><a title="' . __('Best rated','pwg') . '" href="' . $piwigo_url . 'index.php?best_rated' . '">' . __('Best rated','pwg') . '</a></li>';
     81        echo '<li><a title="' . __('Best rated','pwg') . '" href="' . $piwigo_url . 'index.php?best_rated' . '">' . __('Best rated','pwg') . '</a></li>'."\r\n";
    8282
    8383if ($most_commented == 'true')
    84         echo '<li><a title="' . __('Most commented','pwg') . '" href="' . $piwigo_url . 'index.php?most_commented' . '">' . __('Most commented','pwg') . '</a></li>';
     84        echo '<li><a title="' . __('Most commented','pwg') . '" href="' . $piwigo_url . 'index.php?most_commented' . '">' . __('Most commented','pwg') . '</a></li>'."\r\n";
    8585
    8686if ($random == 'true')
    87         echo '<li><a title="' . __('Random','pwg') . '" href="' . $piwigo_url . 'random.php' . '">' . __('Random','pwg') . '</a></li>';
     87        echo '<li><a title="' . __('Random','pwg') . '" href="' . $piwigo_url . 'random.php' . '">' . __('Random','pwg') . '</a></li>'."\r\n";
    8888
    8989if ($recent_pics == 'true')
    90         echo '<li><a title="' . __('Recent pics','pwg') . '" href="' . $piwigo_url . 'index.php?recent_pics' . '">' . __('Recent pics','pwg') . '</a></li>';
     90        echo '<li><a title="' . __('Recent pics','pwg') . '" href="' . $piwigo_url . 'index.php?recent_pics' . '">' . __('Recent pics','pwg') . '</a></li>'."\r\n";
    9191
    9292if ($calendar == 'true')
    93         echo '<li><a title="' . __('Calendar','pwg') . '" href="' . $piwigo_url . 'index.php?created-monthly-calendar' . '">' . __('Calendar','pwg') . '</a></li>';
     93        echo '<li><a title="' . __('Calendar','pwg') . '" href="' . $piwigo_url . 'index.php?created-monthly-calendar' . '">' . __('Calendar','pwg') . '</a></li>'."\r\n";
    9494
    9595if ($tags == 'true')
    96         echo '<li><a title="' . __('Tags','pwg') . '" href="' . $piwigo_url . 'tags.php' . '">' . __('Tags','pwg') . '</a></li>';
     96        echo '<li><a title="' . __('Tags','pwg') . '" href="' . $piwigo_url . 'tags.php' . '">' . __('Tags','pwg') . '</a></li>'."\r\n";
    9797
    9898if ($comments == 'true')
    99         echo '<li><a title="' . __('Comments','pwg') . '" href="' . $piwigo_url . 'comments.php' . '">' . __('Comments','pwg') . '</a></li>';
     99        echo '<li><a title="' . __('Comments','pwg') . '" href="' . $piwigo_url . 'comments.php' . '">' . __('Comments','pwg') . '</a></li>'."\r\n";
    100100
    101101
    102102if ($most_visited == 'true' or $best_rated == 'true' or
    103103    $most_commented == 'true' or $random == 'true' or $recent_pics == 'true' or
    104     $calendar == 'true' or $tags == 'true' or $comments == 'true') echo '</ul>';
     104    $calendar == 'true' or $tags == 'true' or $comments == 'true') echo '</ul>'."\r\n";
    105105
    106106echo $after_widget;
Note: See TracChangeset for help on using the changeset viewer.