GUIEditor.php
changeset 1 960c1572df75
parent 0 640e15974415
child 2 307591683f3b
equal deleted inserted replaced
0:640e15974415 1:960c1572df75
    31 	if ( $_GET['type'] == 'guied_image' )
    31 	if ( $_GET['type'] == 'guied_image' )
    32 	{
    32 	{
    33 		$results = perform_search($_GET['userinput'], $warnings, false, $word_list);
    33 		$results = perform_search($_GET['userinput'], $warnings, false, $word_list);
    34 		foreach ( $results as $i => $result )
    34 		foreach ( $results as $i => $result )
    35 		{
    35 		{
    36 			if ( $result['namespace'] != 'File' )
    36 			if ( $result['namespace'] != 'File' || !preg_match('/\.(png|jpeg|jpg|gif)$/i', $result['page_id']) )
    37 				unset($results[$i]);
    37 				unset($results[$i]);
    38 		}
    38 		}
    39 		if ( count($results) > 5 )
    39 		if ( count($results) > 5 )
    40 		{
    40 		{
    41 			$results = array_slice($results, 0, 5);
    41 			$results = array_slice($results, 0, 5);
    90 				image_title: 'Insert image',
    90 				image_title: 'Insert image',
    91 				image_lbl_image: 'Image file:',
    91 				image_lbl_image: 'Image file:',
    92 				image_btn_upload: 'Upload a file',
    92 				image_btn_upload: 'Upload a file',
    93 				image_lbl_caption: 'Caption:',
    93 				image_lbl_caption: 'Caption:',
    94 				image_af_hint: 'Type a few letters to search.',
    94 				image_af_hint: 'Type a few letters to search.',
       
    95 				image_lbl_resize: 'Resize image:',
       
    96 				image_checkbox_resize: 'Resize',
       
    97 				image_lbl_dimensions: 'Dimensions:',
       
    98 				image_resize_or: 'Or',
       
    99 				image_resize_lbl_default: 'Use default preview size',
       
   100 				image_msg_preserve_aspect: 'The image\'s aspect ratio will be preserved.',
       
   101 				image_lbl_mode: 'Display mode:',
       
   102 				image_lbl_framed: 'Framed',
       
   103 				image_lbl_inline: 'Inline',
       
   104 				image_lbl_raw: 'Raw',
       
   105 				image_mode_hint_framed: 'Display the image off to the left or right in a frame.',
       
   106 				image_mode_hint_inline: 'Display the image in the middle of the paragraph.',
       
   107 				image_mode_hint_raw: 'Display just the image without linking to the file page - useful for putting images into links.',
       
   108 				image_framed_lbl_side: 'Display on:',
       
   109 				image_framed_left: 'Left side',
       
   110 				image_framed_right: 'Right side',
       
   111 				image_lbl_alttext: 'Alternate text:',
       
   112 				image_raw_msg_noopt: 'No additional options for raw image display.',
    95 				
   113 				
    96 				btn_insert: 'Insert'
   114 				btn_insert: 'Insert'
    97 			}
   115 			}
    98 		}
   116 		}
    99 	}
   117 	}