-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor BlocksModule and create BlockApi. #2674
Conversation
craigh
commented
Dec 13, 2015
Q | A |
---|---|
Bug fix? | yes |
New feature? | yes |
BC breaks? | no |
Deprecations? | yes |
Tests pass? | yes! |
Fixed tickets | - |
Refs tickets | - |
License | MIT |
Doc PR | included |
Changelog updated | yes |
- Fix module stylesheet not being loaded automatically for Core-2.0 modules.
- New advanced block filtering based on a combination of any query parameter or request attributes.
- Implement new BlockApi and all corresponding methods.
- Added AbstractExtensionInstaller for use by third-party developers.
- Added ExtensionVariablesTrait for developers to insert into classes where Extension Variable management is needed.
| Q | A | ----------------- | --- | Bug fix? | yes | New feature? | yes | BC breaks? | no | Deprecations? | yes | Tests pass? | yes! | Fixed tickets | - | Refs tickets | - | License | MIT | Doc PR | included | Changelog updated | yes - Fix module stylesheet not being loaded automatically for Core-2.0 modules. - New advanced block filtering based on a combination of any query parameter or request attributes. - Implement new BlockApi and all corresponding methods. - Added AbstractExtensionInstaller for use by third-party developers. - Added ExtensionVariablesTrait for developers to insert into classes where Extension Variable management is needed.
Please note: this adds phpunit tests to the travis build. |
@@ -17,6 +17,7 @@ | |||
use Symfony\Component\DependencyInjection\ContainerInterface; | |||
use Zikula\Bundle\CoreBundle\Twig; | |||
use Zikula\Bundle\CoreBundle\Twig\Extension\SimpleFunction\AdminMenuPanelSimpleFunction; | |||
use Zikula\Core\AbstractModule; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this is not needed.
👍 |
*/ | ||
private function wrapBlockContentWithUniqueDiv($content, $positionName, $blockType, $bid) | ||
{ | ||
return '<div class="z-block ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have already mentioned about this to @craigh This is another remnant of "pre bootstrap age". We do not need to add any html/css at this stage, this can be added in block template. This makes difficult to arrange blocks in block position using bootstrap grid.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after this is merged open a ticket for further discussion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, please open a separate ticket. I personally think we should keep the additional classes, but let's discuss in another ticket.
Refactor BlocksModule and create BlockApi.