diff --git a/wp-content/plugins/regenerate-thumbnails/jquery-ui/jquery.ui.progressbar.min.1.7.2.js b/wp-content/plugins/regenerate-thumbnails/jquery-ui/jquery.ui.progressbar.min.1.7.2.js new file mode 100644 index 0000000..990c4a3 --- /dev/null +++ b/wp-content/plugins/regenerate-thumbnails/jquery-ui/jquery.ui.progressbar.min.1.7.2.js @@ -0,0 +1,13 @@ +/* + * jQuery UI Progressbar 1.7.2 + * + * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) + * Dual licensed under the MIT (MIT-LICENSE.txt) + * and GPL (GPL-LICENSE.txt) licenses. + * + * http://docs.jquery.com/UI/Progressbar + * + * Depends: + * ui.core.js + */ +(function(a){a.widget("ui.progressbar",{_init:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=a('
').appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow").removeData("progressbar").unbind(".progressbar");this.valueDiv.remove();a.widget.prototype.destroy.apply(this,arguments)},value:function(b){if(b===undefined){return this._value()}this._setData("value",b);return this},_setData:function(b,c){switch(b){case"value":this.options.value=c;this._refreshValue();this._trigger("change",null,{});break}a.widget.prototype._setData.apply(this,arguments)},_value:function(){var b=this.options.value;if(b' . sprintf( __( "Unable to find any images. Are you sure some exist?", 'regenerate-thumbnails' ), admin_url( 'upload.php?post_mime_type=image' ) ) . "
' . __( "Please be patient while the thumbnails are regenerated. This can take a while if your server is slow (inexpensive hosting) or if you have many images. Do not navigate away from this page until this script is done or the thumbnails will not be resized. You will be notified via this page when the regenerating is completed.", 'regenerate-thumbnails' ) . '
'; + + $count = count( $images ); + + $text_goback = ( ! empty( $_GET['goback'] ) ) ? sprintf( __( 'To go back to the previous page, click here.', 'regenerate-thumbnails' ), 'javascript:history.go(-1)' ) : ''; + $text_failures = sprintf( __( 'All done! %1$s image(s) were successfully resized in %2$s seconds and there were %3$s failure(s). To try regenerating the failed images again, click here. %5$s', 'regenerate-thumbnails' ), "' + rt_successes + '", "' + rt_totaltime + '", "' + rt_errors + '", esc_url( wp_nonce_url( admin_url( 'tools.php?page=regenerate-thumbnails&goback=1' ), 'regenerate-thumbnails' ) . '&ids=' ) . "' + rt_failedlist + '", $text_goback ); + $text_nofailures = sprintf( __( 'All done! %1$s image(s) were successfully resized in %2$s seconds and there were 0 failures. %3$s', 'regenerate-thumbnails' ), "' + rt_successes + '", "' + rt_totaltime + '", $text_goback ); +?> + + + + +
+
+ 0' ); ?>
+ 0' ); ?>
+
' . esc_html( $fullsizepath ) . '' ) );
+
+ @set_time_limit( 900 ); // 5 minutes per image should be PLENTY
+
+ $metadata = wp_generate_attachment_metadata( $image->ID, $fullsizepath );
+
+ if ( is_wp_error( $metadata ) )
+ $this->die_json_error_msg( $image->ID, $metadata->get_error_message() );
+ if ( empty( $metadata ) )
+ $this->die_json_error_msg( $image->ID, __( 'Unknown failure reason.', 'regenerate-thumbnails' ) );
+
+ // If this fails, then it just means that nothing was changed (old value == new value)
+ wp_update_attachment_metadata( $image->ID, $metadata );
+
+ die( json_encode( array( 'success' => sprintf( __( '"%1$s" (ID %2$s) was successfully resized in %3$s seconds.', 'regenerate-thumbnails' ), esc_html( get_the_title( $image->ID ) ), $image->ID, timer_stop() ) ) ) );
+ }
+
+
+ // Helper to make a JSON error message
+ function die_json_error_msg( $id, $message ) {
+ die( json_encode( array( 'error' => sprintf( __( '"%1$s" (ID %2$s) failed to resize. The error message was: %3$s', 'regenerate-thumbnails' ), esc_html( get_the_title( $id ) ), $id, $message ) ) ) );
+ }
+
+
+ // Helper function to escape quotes in strings for use in Javascript
+ function esc_quotes( $string ) {
+ return str_replace( '"', '\"', $string );
+ }
+}
+
+// Start up this plugin
+add_action( 'init', 'RegenerateThumbnails' );
+function RegenerateThumbnails() {
+ global $RegenerateThumbnails;
+ $RegenerateThumbnails = new RegenerateThumbnails();
+}
+
+?>
\ No newline at end of file
diff --git a/wp-content/plugins/regenerate-thumbnails/screenshot-1.png b/wp-content/plugins/regenerate-thumbnails/screenshot-1.png
new file mode 100644
index 0000000..7a8a04b
Binary files /dev/null and b/wp-content/plugins/regenerate-thumbnails/screenshot-1.png differ
diff --git a/wp-content/plugins/regenerate-thumbnails/screenshot-2.png b/wp-content/plugins/regenerate-thumbnails/screenshot-2.png
new file mode 100644
index 0000000..a904724
Binary files /dev/null and b/wp-content/plugins/regenerate-thumbnails/screenshot-2.png differ
diff --git a/wp-content/plugins/regenerate-thumbnails/screenshot-3.png b/wp-content/plugins/regenerate-thumbnails/screenshot-3.png
new file mode 100644
index 0000000..037e494
Binary files /dev/null and b/wp-content/plugins/regenerate-thumbnails/screenshot-3.png differ
diff --git a/wp-content/themes/studio12/functions.php b/wp-content/themes/studio12/functions.php
index 777ef8f..1bf2683 100644
--- a/wp-content/themes/studio12/functions.php
+++ b/wp-content/themes/studio12/functions.php
@@ -2,8 +2,8 @@
add_theme_support('nav-menus');
add_theme_support( 'automatic-feed-links' ); //automatic_feed_links();
add_theme_support( 'post-thumbnails' ); // Makes it easier with image-links :D
-set_post_thumbnail_size(200,200,false);
-add_image_size('firstpost', 540, 999, false);
+add_image_size('restpost', 200, 200, true);
+add_image_size('firstpost', 590, 250, true);
register_nav_menus( array('header-menu' => 'Header Menu' ) );
add_filter( 'excerpt_length', 'custom_excerpt_length', 999 );
// Custom background :)
@@ -93,7 +93,7 @@ register_widget('Program_Widget');
register_widget('Artist_Widget');
function custom_excerpt_length( $length ) {
- return 25;
+ return 35;
}
?>
\ No newline at end of file
diff --git a/wp-content/themes/studio12/index.php b/wp-content/themes/studio12/index.php
index 0a17500..92a66b4 100644
--- a/wp-content/themes/studio12/index.php
+++ b/wp-content/themes/studio12/index.php
@@ -9,27 +9,29 @@ $c++; ?>