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
/*global module:false*/ | |
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
concat: { | |
options: { | |
separator: ';', | |
}, | |
dist: { |
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
// create the module and name it DESIGNfromWITHIN | |
var DESIGNfromWITHIN = angular.module('DESIGNfromWITHIN', ['ngRoute', 'ngAnimate', 'ngSanitize']) | |
.config(function($sceProvider) { | |
// Completely disable SCE. For demonstration purposes only! | |
// Do not use in new projects. | |
$sceProvider.enabled(false); | |
}); | |
// configure our routes |
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 | |
/** | |
* Subpackage Resolver file for cosmos extra | |
* | |
* Copyright 2014 by Menno Pietersen info@themesmodx.com | |
* Created on 12-11-2014 | |
* | |
* @package cosmos | |
* @subpackage build | |
*/ |
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 | |
$sources = array( | |
'data' => $modx->getOption('core_path') . 'components/cosmos/contentResources/', | |
); | |
$addContent = $modx->getOption('add_content', $options, false); | |
if ($addContent) { | |
$resources = include $sources['data'] . 'transport.resources.php'; | |
foreach ($resources as $resource) { | |
$modx->log(xPDO::LOG_LEVEL_INFO,'Installing content'); | |
$resource->save(); |
OlderNewer