diff --git a/admin/settings.php b/admin/settings.php index 4d420bc..a41a00c 100644 --- a/admin/settings.php +++ b/admin/settings.php @@ -4,7 +4,7 @@ define( 'PICKAPIC_FLICKR_API_KEY', 'b9f0d341e3aab89a09e84c6d88d50539' ); // Default Flickr image size -define( 'PICKAPIC_DEFAULT_FLICKR_IMG_SIZE', 'Medium' ); +define( 'PICKAPIC_DEFAULT_FLICKR_IMG_SIZE', 'Large' ); // Flickr image sizes define ("FLICKR_IMG_SIZES", serialize ( array ( @@ -33,7 +33,7 @@ ))); // Default Flickr Licenses -define( 'PICKAPIC_FLICKR_LICENSES_SELECTED', '4,7' ); // those images with license 4 or 7 (http://www.flickr.com/services/api/flickr.photos.licenses.getInfo.html) +define( 'PICKAPIC_FLICKR_LICENSES_SELECTED', '4,5,7' ); // those images with license 4 or 7 (http://www.flickr.com/services/api/flickr.photos.licenses.getInfo.html) // Default Flickr sort order define( 'PICKAPIC_FLICKR_SORT', 'relevance' ); @@ -120,16 +120,14 @@ function pac_pickapic_render_flickr_licenses(){ $options = get_option('pac_pickapic_options',array('flickrlicenses' => PICKAPIC_FLICKR_LICENSES_SELECTED)); $licenses = explode(",", $options['flickrlicenses']); ?> -
- value="4">Attribution License
- value="6">Attribution-NoDerivs License
- value="3">Attribution-NonCommercial-NoDerivs License
- value="2">Attribution-NonCommercial License
- value="1">Attribution-NonCommercial-ShareAlike License
- value="5">Attribution-ShareAlike License
- value="7">No known copyright restrictions
- value="0">All Rights Reserved -
+ value="4">Attribution License
+ value="6">Attribution-NoDerivs License
+ value="3">Attribution-NonCommercial-NoDerivs License
+ value="2">Attribution-NonCommercial License
+ value="1">Attribution-NonCommercial-ShareAlike License
+ value="5">Attribution-ShareAlike License
+ value="7">No known copyright restrictions
+ value="0">All Rights Reserved - + * - + - + - onclick="flickrSearch.search()" name="pac_pickapic_search" /> + onclick="flickrSearch.search()" name="pac_pickapic_search" /> @@ -234,7 +234,7 @@ function pac_pickapic_flickr_search($search_term, $results_per_page, $page) { 'api_key' => pac_pickapic_get_option('flickrapikey'), 'method' => 'flickr.photos.search', 'format' => 'php_serial' - ); + ); $encoded_params = array(); foreach ($params as $k => $v){ $encoded_params[] = urlencode($k).'='.urlencode($v); @@ -281,9 +281,9 @@ function media_pac_pickapic_search_results( $search_term, $results_per_page = 12 $pictures = $rsp_obj['photos']['photo']; if ( count($pictures) ){ - echo '

'.__('Search results for: ','pickapic').'"'.$search_term.'"

'; + echo '

'.__('Ergebnis für: ','pickapic').'"'.$search_term.'"

'; } else { - echo '

'.__('No results found for: ','pickapic').'"'.$search_term.'"

'; + echo '

'.__('Nichts gefunden zu: ','pickapic').'"'.$search_term.'"

'; } // The total amount of results retuned by flickr. Please have in mind that Flickr will // return at most 4.000 results for any given search query. @@ -340,11 +340,11 @@ function media_pac_pickapic_search_results( $search_term, $results_per_page = 12
-
-
+
+ @@ -360,6 +360,15 @@ function media_pac_pickapic_search_results( $search_term, $results_per_page = 12 ?>
\n"; + echo "\t
"; + echo "\t$total ".__('Results', 'pickapic').""; + echo $page_links; + echo "\t
\n"; + echo "
\n"; + } pac_pickapic_search_form( __("New search", 'pickapic') ); } @@ -493,9 +502,9 @@ function media_pac_pickapic_final_form() { ".$flickr_info['owner'].""; + $excerpt = __('Foto: ', 'pickapic')."".$flickr_info['owner'].""; $show_license = pac_pickapic_get_option('flickrshowlicense'); if ( $show_license ) { @@ -621,7 +630,7 @@ function pac_pickapic_custom_img_caption_shortcode( $a , $attr, $content = null) } // Rebuild the caption by adding credits to original flickr image owner - $caption = __('By: ', 'pickapic')."".$flickr_owner.""; + $caption = __('Foto: ', 'pickapic')."".$flickr_owner.""; if ( $id ) { $id = 'id="' . esc_attr($id) . '" '; @@ -762,7 +771,7 @@ function pac_pickapic_gallery_shortcode($val, $attr) { $output .= " <{$captiontag} class='wp-caption-text gallery-caption'> " . - __('By: ', 'pickapic')."".$flickr_owner."". + __('Foto: ', 'pickapic')."".$flickr_owner."". ""; } } @@ -788,9 +797,9 @@ function pac_pickapic_gallery_shortcode($val, $attr) { function pac_pickapic_media_buttons($editor_id = '') { $img = ''; // TODO: postear esto!! - echo '' . sprintf( $img ) . ''; + echo '' . sprintf( $img ) . ' Freies Foto suchen'; } -add_action( 'media_buttons', 'pac_pickapic_media_buttons', 20 ); +//add_action( 'media_buttons', 'pac_pickapic_media_buttons', 20 ); /** * Load language file. @@ -831,7 +840,7 @@ function pac_pickapic_get_option($name){ 'flickrapikey' => PICKAPIC_FLICKR_API_KEY, 'flickrlicenses' => PICKAPIC_FLICKR_LICENSES_SELECTED, 'flickrsort' => PICKAPIC_FLICKR_SORT, - 'flickrshowlicense' => 0 + 'flickrshowlicense' => 1 )); return $options[$name]; }