Permalink
Browse files

urgent Modernizr update to 2.5.3 fixing no-js / js

urgent Modernizr update to 2.5.3 fixing no-js / js
  • Loading branch information...
1 parent 469ba1f commit 55bc3c5ce83cff64d8303d7e06f18c1505390e8e Anselm Hannemann committed Mar 6, 2012
View
BIN .DS_Store
Binary file not shown.
@@ -0,0 +1,91 @@
+<?php
+/**
+ * Resolves setup-options settings by setting email options.
+ *
+ * @package quip
+ * @subpackage build
+ */
+$success= false;
+switch ($options[xPDOTransport::PACKAGE_ACTION]) {
+ case xPDOTransport::ACTION_INSTALL:
+ case xPDOTransport::ACTION_UPGRADE:
+
+ /* modxbp.tpl */
+ $setting = $object->xpdo->getObject('modSystemSetting',array('key' => 'modxbp.tpl'));
+ if ($setting != null) {
+ $setting->set('value',$options['tpl']);
+ $setting->save();
+ } else {
+ $object->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[modxbp] modxbp.tpl setting could not be found, so the setting could not be changed.');
+ }
+
+ /* modxbp.webfonts */
+ $setting = $object->xpdo->getObject('modSystemSetting',array('key' => 'modxbp.webfonts'));
+ if ($setting != null) {
+ $setting->set('value',$options['webfonts']);
+ $setting->save();
+ } else {
+ $object->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[modxbp] modxbp.webfonts setting could not be found, so the setting could not be changed.');
+ }
+
+ /* modxbp.accessifyhtml5 */
+ $setting = $object->xpdo->getObject('modSystemSetting',array('key' => 'modxbp.accessifyhtml5'));
+ if ($setting != null) {
+ $setting->set('value',$options['accessifyhtml5']);
+ $setting->save();
+ } else {
+ $object->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[modxbp] modxbp.accessifyhtml5 setting could not be found, so the setting could not be changed.');
+ }
+
+ /* modxbp.supportedIE */
+ $setting = $object->xpdo->getObject('modSystemSetting',array('key' => 'modxbp.supportedIE'));
+ if ($setting != null) {
+ $setting->set('value',$options['supportedIE']);
+ $setting->save();
+ } else {
+ $object->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[modxbp] modxbp.supportedIE setting could not be found, so the setting could not be changed.');
+ }
+
+ /* modxbp.GACode */
+ $setting = $object->xpdo->getObject('modSystemSetting',array('key' => 'modxbp.GACode'));
+ if ($setting != null) {
+ $setting->set('value',$options['GACode']);
+ $setting->save();
+ } else {
+ $object->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[modxbp] modxbp.GACode setting could not be found, so the setting could not be changed.');
+ }
+
+ /* modxbp.FBML */
+ $setting = $object->xpdo->getObject('modSystemSetting',array('key' => 'modxbp.FBML'));
+ if ($setting != null) {
+ $setting->set('value',$options['FBML']);
+ $setting->save();
+ } else {
+ $object->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[modxbp] modxbp.FBML setting could not be found, so the setting could not be changed.');
+ }
+
+ /* modxbp.OpenGraph */
+ $setting = $object->xpdo->getObject('modSystemSetting',array('key' => 'modxbp.OpenGraph'));
+ if ($setting != null) {
+ $setting->set('value',$options['OpenGraph']);
+ $setting->save();
+ } else {
+ $object->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[modxbp] modxbp.OpenGraph setting could not be found, so the setting could not be changed.');
+ }
+
+ /* modxbp.jQuery */
+ $setting = $object->xpdo->getObject('modSystemSetting',array('key' => 'modxbp.jQuery'));
+ if ($setting != null) {
+ $setting->set('value',$options['jQuery']);
+ $setting->save();
+ } else {
+ $object->xpdo->log(xPDO::LOG_LEVEL_ERROR,'[modxbp] modxbp.jQuery setting could not be found, so the setting could not be changed.');
+ }
+
+ $success= true;
+ break;
+ case xPDOTransport::ACTION_UNINSTALL:
+ $success= true;
+ break;
+}
+return $success;
View
@@ -7,6 +7,7 @@
*/
/* set some default values */
$values = array(
+ 'tpl' => 'raw',
'webfonts' => '0',
'accessifyhtml5' => '1',
'supportedIE' => '8',
@@ -18,6 +19,11 @@
switch ($options[xPDOTransport::PACKAGE_ACTION]) {
case xPDOTransport::ACTION_INSTALL:
case xPDOTransport::ACTION_UPGRADE:
+
+ $setting = $modx->getObject('modSystemSetting',array('key' => 'modxbp.tpl'));
+ if ($setting != null) { $values['tpl'] = $setting->get('value'); }
+ unset($setting);
+
$setting = $modx->getObject('modSystemSetting',array('key' => 'modxbp.webfonts'));
if ($setting != null) { $values['webfonts'] = $setting->get('value'); }
unset($setting);
@@ -118,9 +124,18 @@
cursor: default;
}
</style>
+
+<label for="modxbp-tpl">Choose your template to use:</label>
+<select name="tpl" id="modxbp-tpl" value="'.$values['tpl'].'">
+ <option value="raw">Raw (no grid)</option>
+ <option value="978">978px grid</option>
+ <option value="fluid">Fluid (1140px grid)</option>
+</select>
+
<label for="modxbp-webfonts">Use webfonts (via @font-face, not typekit)?:</label>
<input type="checkbox" name="webfonts" id="modxbp-webfonts" value="'.$values['webfonts'].'" checked />
<br /><br />
+
<label for="modxbp-googlewbfnt">Specify Google Webfont Families (<a href="https://developers.google.com/webfonts/docs/getting_started?hl=de#Syntax" target="_blank" title="see help at google webfont directory">?</a>):</label>
<input type="text" name="webfonts" id="modxbp-webfonts" value="'.$values['webfonts'].'" placeholder="Droid+Sans:400,700|Droid+Sans+Mono" />
View
@@ -37,6 +37,7 @@
$modx->loadClass('transport.modPackageBuilder','',false, true);
$builder = new modPackageBuilder($modx);
$builder->createPackage('MODX Boilerplate','3.0','dev');
+$builder->registerNamespace('modxbp',false,true,'{core_path}components/modxbp/');
/* create category */
$category= $modx->newObject('modCategory');
@@ -67,6 +68,9 @@
'target' => "return MODX_ASSETS_PATH;",
));
$vehicle->resolve('php',array(
+ 'source' => $sources['resolvers'] . 'setupoptions.resolver.php',
+));
+$vehicle->resolve('php',array(
'source' => $sources['resolvers'].'postactions.resolver.php',
));
$builder->putVehicle($vehicle);
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 55bc3c5

Please sign in to comment.