Changeset 849296
- Timestamp:
- 02/01/2014 06:22:06 AM (12 years ago)
- Location:
- flickr-rss/trunk
- Files:
-
- 1 edited
- 1 copied
-
flickrrss-admin.php (copied) (copied from flickr-rss/trunk/flickrrss-settingspage.php)
-
flickrrss.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flickr-rss/trunk/flickrrss.php
r849220 r849296 91 91 } 92 92 93 function printGallery($settings = array()) { 94 95 if (!is_array($settings)) { 96 $settings = $this->fixArguments(func_get_args()); 97 } 98 99 $settings = array_merge($this->getSettings(), $settings); 100 if (!($rss = $this->getRSS($settings))) return; 93 function printGallery( $settings ) { 94 95 if ( ! is_array( $settings ) ) { 96 return; // probably need better error stuff here 97 } 98 99 $settings = array_merge( $this->getSettings(), $settings ); 100 101 if ( ! ( $rss = $this->getRSS( $settings ) ) ) return; 102 101 103 # specifies number of pictures 102 $items = array_slice($rss->items, 0, $settings['num_items']); 103 echo stripslashes($settings['before_list']); 104 var_dump( $items ); 105 $items = array_slice( $rss->items, 0, $settings['num_items'] ); 106 107 echo stripslashes( $settings['before_list'] ); 108 104 109 # builds html from array 105 110 foreach ( $items as $item ) { … … 217 222 218 223 // add setting page 219 include ( 'flickrrss- settingspage.php' );224 include ( 'flickrrss-admin.php' ); 220 225 221 226 }
Note: See TracChangeset
for help on using the changeset viewer.