-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
include wp-common-image-size - closes #50
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
/* | ||
Plugin Name: Common Image Size | ||
Description: Adds extra image sizes of default resolutions to WordPress | ||
Author: Ramoonus | ||
Author URI: http://www.ramoonus.nl/ | ||
Version: 1.0 | ||
*/ | ||
|
||
/** | ||
* Add standard image sizes | ||
* add_image_size( $name, $width, $height, $crop ); * | ||
* * @todo xga // xga+ // wxga // wxga2 // wxga3 // sxga // sxga2 | ||
* @todo sxga+ // wxga+ // hd+ // uxga // wsxga // fhd add_image_size( 'fhd', '1920', '1024', true ); // WUXGA // QWXGA // WQHD // WQXGA // 4k | ||
*/ | ||
add_image_size('vga', 640, 480, true); | ||
add_image_size('svga', 800, 600, true); | ||
add_image_size('wsvga', 1024, 600, true); | ||
add_image_size('hd', 1360, 768, true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters