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
/* | |
Gulpfile.js file for the tutorial: | |
Using Gulp, SASS and Browser-Sync for your front end web development - DESIGNfromWITHIN | |
http://designfromwithin.com/blog/gulp-sass-browser-sync-front-end-dev | |
Steps: | |
1. Install gulp globally: | |
npm install --global gulp |
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
$.fn.setAllToMaxHeight = function(){ | |
return this.height( Math.max.apply(this, $.map( this , function(e){ return $(e).height() }) ) ); | |
} | |
// usage: $(‘div.unevenheights’).setAllToMaxHeight(); |
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
[[*flex_socialType:notempty=` | |
<meta property="og:type" content="[[*flex_socialType]]"> | |
`]] | |
[[*flex_socialType:isequalto=`book`:then=` | |
<meta property="book:author" content="[[*flex_socialAuthorUrl]]"> | |
`]] | |
[[*flex_socialType:isequalto=`article`:then=` | |
<meta property="article:author" content="[[*flex_socialAuthorUrl]]"> | |
`]] | |
<meta property="og:title" name="twitter:title" content="[[*pagetitle]]"> |
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
<span data-picture data-alt="GlarusSafe image" class="v4_landing_cta_bg_image"> | |
<span data-src="[[!getSiteURL]]assets/images/GlarusSafe/GlarusSafe_s.jpg"></span> | |
<span data-src="[[!getSiteURL]]assets/images/GlarusSafe/GlarusSafe_m.jpg" data-media="(min-width: 500px)"></span> | |
<span data-src="[[!getSiteURL]]assets/images/GlarusSafe/GlarusSafe_l.jpg" data-media="(min-width: 768px)"></span> | |
<span data-src="[[!getSiteURL]]assets/images/GlarusSafe/GlarusSafe_xl.jpg" data-media="(min-width: 980px)"></span> | |
<span data-src="[[!getSiteURL]]assets/images/GlarusSafe/GlarusSafe_xxl.jpg" data-media="(min-width: 1200px)"></span> | |
<!--[if (lt IE 9) & (!IEMobile)]> | |
<img src="[[!getSiteURL]]assets/images/GlarusSafe/GlarusSafe_l.jpg" alt="GlarusSafe image"> | |
<![endif]--> | |
<!-- Fallback content for non-JS browsers. Same img src as the initial, unqualified source element. --> |
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
[[Wayfinder? | |
&startId=`0` | |
&displayStart=`0` | |
&level=`0` | |
&ignoreHidden=`0` | |
&ph=`0` | |
&debug=`0` | |
&hideSubMenus=`0` | |
&removeNewLines=`0` | |
&textOfLinks=`menutitle` |
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(); |
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
<div id="responsive_div"> | |
<h1>This is a responsive div</h1> | |
</div> |
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
[[[[*page-image:notempty=`$wrapImgThumb? &src=`*page-image` &alt=`[[*pagetitle]]` &thumbOpts=`w=480&h=320``]]]] |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Nice CTA button without images · CodePen</title> | |
<style> |
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 | |
*/ |
NewerOlder