Media.'); ?>

























'ASC', 'orderby' => 'menu_order ID', 'id' => $post->ID, 'itemtag' => '', 'icontag' => '', 'captiontag' => '', 'columns' => 3, 'size' => 'thumbnail', 'include' => '', 'exclude' => '' ), $attr)); $image_size = get_option('image_size', 'large'); $ignore_columns = get_option('ignore_columns', 'no'); //My added line $image_link = get_option('image_link', 'true'); $id = intval($id); if ( 'RAND' == $order ) { $orderby = 'none'; } if ( !empty($include) ) { $include = preg_replace( '/[^0-9,]+/', '', $include ); $_attachments = get_posts( array('include' => $include, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) ); $attachments = array(); foreach ( $_attachments as $key => $val ) { $attachments[$val->ID] = $_attachments[$key]; } } elseif ( !empty($exclude) ) { $exclude = preg_replace( '/[^0-9,]+/', '', $exclude ); $attachments = get_children( array('post_parent' => $id, 'exclude' => $exclude, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) ); } else { $attachments = get_children( array('post_parent' => $id, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => $order, 'orderby' => $orderby) ); } if ( empty($attachments) ) { return ''; } if ( is_feed() ) { $output = "\n"; foreach ( $attachments as $att_id => $attachment ) { $output .= wp_get_attachment_link($att_id, $size, true) . "\n"; } return $output; } $columns = intval($columns); if( $ignore_columns == 'yes' ) { $columns = 0; } $output .= " \n"; return $output; } // //var polaroid_gallery_image_str = '". __('Image') ."'; function polaroid_gallery_head() { global $polaroid_gallery_plugin_prefix; $custom_text = get_option('custom_text', 'no'); $custom_text_value = get_option('custom_text_value', 'Image'); $thumbnail_option = get_option('thumbnail_option', 'none'); $image_option = get_option('image_option', 'title3'); $text2image = __('Image'); if($custom_text == 'yes') { $text2image = $custom_text_value; } $polaroid_gallery_script = " \n"; print $polaroid_gallery_script; } add_action('wp_head', 'polaroid_gallery_head'); add_filter('post_gallery', 'polaroid_gallery_shortcode', 10, 2); ?>