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
<?php | |
namespace My\BlockBundle\Block; | |
use EzSystems\LandingPageFieldTypeBundle\Exception\InvalidBlockAttributeException; | |
use EzSystems\LandingPageFieldTypeBundle\FieldType\LandingPage\Definition\BlockDefinition; | |
use EzSystems\LandingPageFieldTypeBundle\FieldType\LandingPage\Definition\BlockAttributeDefinition; | |
use EzSystems\LandingPageFieldTypeBundle\FieldType\LandingPage\Model\AbstractBlockType; | |
use EzSystems\LandingPageFieldTypeBundle\FieldType\LandingPage\Model\BlockValue; |
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
<?php | |
namespace My\BlockBundle\Block; | |
use EzSystems\LandingPageFieldTypeBundle\Exception\InvalidBlockAttributeException; | |
use EzSystems\LandingPageFieldTypeBundle\FieldType\LandingPage\Definition\BlockDefinition; | |
use EzSystems\LandingPageFieldTypeBundle\FieldType\LandingPage\Definition\BlockAttributeDefinition; | |
use EzSystems\LandingPageFieldTypeBundle\FieldType\LandingPage\Model\AbstractBlockType; | |
use EzSystems\LandingPageFieldTypeBundle\FieldType\LandingPage\Model\BlockValue; |
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
<?php | |
namespace My\BlockBundle\DependencyInjection; | |
use Symfony\Component\Config\Resource\FileResource; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
use Symfony\Component\Config\FileLocator; | |
use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; | |
use Symfony\Component\HttpKernel\DependencyInjection\Extension; | |
use Symfony\Component\DependencyInjection\Loader; |
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
services: | |
my.block.custom: | |
class: My\BlockBundle\Block\CustomBlock | |
tags: | |
- { name: landing_page_field_type.block_type, alias: custom } |
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
<h3>My Custom block</h3> | |
{{ block }} |
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
blocks: | |
custom: | |
views: | |
custom: | |
template: MyBlockBundle::custom.html.twig | |
name: My Custom Block view |
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
* { | |
margin: 0; | |
padding: 0; | |
} | |
body { | |
font-family: sans-serif; | |
color: #333; | |
} | |
table { |
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
var loadTemplate = function (templateFilePath, templateData) { | |
//console.info('Loading: ' + templateFilePath + ' with data:', templateData); | |
if (!APP.cache.templates[templateFilePath]) { | |
var templateDir = 'js/app/template/'; | |
var templateUrl = templateDir + templateFilePath + '.js'; | |
var templateString = ''; | |
$.ajax({ | |
async : false, |
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
var formatString = (function() | |
{ | |
var replacer = function(context) | |
{ | |
return function(s, name) | |
{ | |
return context[name]; | |
}; | |
}; |
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
module.exports = function(grunt) { | |
'use strict' | |
grunt.initConfig({ | |
clean : [ | |
'js/GoalApp/js/modules/**/*.min.js', | |
'css/GoalApp/css/*.min.css' | |
], | |
uglify : { | |
build : { |