Skip to content
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

Merged
merged 1 commit into from
Dec 13, 2015
Merged

Refactor BlocksModule and create BlockApi. #2674

merged 1 commit into from
Dec 13, 2015

Conversation

craigh
Copy link
Member

@craigh 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.
@craigh craigh added the Feature label Dec 13, 2015
@craigh craigh added this to the 1.4.2 milestone Dec 13, 2015
@craigh
Copy link
Member Author

craigh commented Dec 13, 2015

Please note: this adds phpunit tests to the travis build.

@craigh
Copy link
Member Author

craigh commented Dec 13, 2015

@Guite @cmfcmf @Kaik @phaidon

I intend to merge this Sunday 13 Dec. If you have anything you believe must be addressed before merging, please let me know. There are still items left to do and obviously changes can still be made post-merge.

@@ -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;
Copy link
Contributor

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.

@cmfcmf
Copy link
Contributor

cmfcmf commented Dec 13, 2015

👍

*/
private function wrapBlockContentWithUniqueDiv($content, $positionName, $blockType, $bid)
{
return '<div class="z-block '
Copy link
Contributor

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.

Copy link
Member Author

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.

Copy link
Contributor

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.

craigh added a commit that referenced this pull request Dec 13, 2015
Refactor BlocksModule and create BlockApi.
@craigh craigh merged commit 1a81e02 into 1.4 Dec 13, 2015
@craigh craigh deleted the BlockApi branch December 13, 2015 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants