*** img_assist.module Sat Jun 17 01:02:00 2006 --- img_assist.module-new Fri Oct 13 06:35:39 2006 *************** *** 772,777 **** --- 772,781 ---- // Add a choice for 'other' if the user has the proper permission to create custom sizes if ($img_assist_create_derivatives['custom_advanced'] && user_access('access advanced options')) { $derivatives['other'] = t('other'); + // Add a choice for 'original' if it's within the maximum size. + if ($properties_size['width'] <= $max_size[0] && $properties_size['height'] <= $max_size[1]) { + $derivatives[$properties_size['width'] .'x' . $properties_size['height']] = t('original'); + } } // Get the default pixel size from the default label size *************** *** 854,860 **** '#type' => 'select', '#title' => t('Alignment'), '#default_value' => variable_get('img_assist_default_alignment', 'left'), ! '#options' => array('left'=>'left', 'right'=>'right'), '#prefix' => '', '#suffix' => '' ); --- 858,864 ---- '#type' => 'select', '#title' => t('Alignment'), '#default_value' => variable_get('img_assist_default_alignment', 'left'), ! '#options' => array('left'=>'left', 'right'=>'right', 'none'=>'none', 'center'=>'center'), '#prefix' => '', '#suffix' => '' ); *************** *** 1262,1268 **** $node->title = strip_tags($caption); // change the node title because img_assist_display() uses the node title for alt and title $img_tag = img_assist_display($node, $size); ! $output = ""; $link = explode(',', $attributes['link']); if ($link[0] == 'node') { --- 1266,1276 ---- $node->title = strip_tags($caption); // change the node title because img_assist_display() uses the node title for alt and title $img_tag = img_assist_display($node, $size); ! if ( $attributes['align'] == "center" ) { ! $output = ""; ! } else { ! $output = ""; ! } $link = explode(',', $attributes['link']); if ($link[0] == 'node') { *************** *** 1648,1651 **** return "
\n \"%alt\"\n
%caption
\n
"; } ! ?> \ No newline at end of file --- 1656,1659 ---- return "
\n \"%alt\"\n
%caption
\n
"; } ! ?>