-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Upgrade to picturefill v3.0.2 - Change YAML format to allow more than 2 arguments to be passed to image processing methods - Change YAML format for "sizes" to <query>: <args> - Rename "sizes" to "arguments" and "default_size" to "default_arguments" in config - Namespace extension class
- Loading branch information
1 parent
3367874
commit 16a127f
Showing
20 changed files
with
2,560 additions
and
352 deletions.
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
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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
<?php | ||
|
||
define('RESPONSIVE_IMAGES_DIR', basename(dirname(__FILE__))); | ||
|
||
define('RESPONSIVE_IMAGES_DIR',basename(dirname(__FILE__))); | ||
// Enable srcset attributes on image tags (the rest of the attributes are copied | ||
// from framework/admin/_config.php) | ||
$config = HtmlEditorConfig::get('cms'); | ||
$config->setOption( | ||
'extended_valid_elements', | ||
$config->getOption('extended_valid_elements') . ',img[class|src|srcset|alt|' | ||
. 'title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|' | ||
. 'usemap|data*]' | ||
); |
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 |
---|---|---|
@@ -1,9 +1,6 @@ | ||
--- | ||
Name: reponsiveimages | ||
Name: responsiveimages | ||
--- | ||
Image: | ||
extensions: | ||
- ResponsiveImageExtension | ||
ResponsiveImageExtension: | ||
default_method: SetWidth | ||
default_size: 800x600 | ||
- Heyday\ResponsiveImages\ResponsiveImageExtension |
Oops, something went wrong.