This file contains hidden or 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
// ---- | |
// libsass (v3.2.5) | |
// ---- | |
// Color Map | |
$colors: ( | |
blue: #0000FF, | |
red: ( | |
base: #FF0000, | |
light: #EEEEFF, |
This file contains hidden or 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 Application\Theme\Customtheme; | |
use Concrete\Core\Area\Layout\Preset\Provider\ThemeProviderInterface; | |
class PageTheme extends \Concrete\Core\Page\Theme\Theme implements ThemeProviderInterface | |
{ | |
/** | |
* Theme name | |
* |
This file contains hidden or 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
@use "sass:list"; | |
@charset "UTF-8"; // Fixes an issue where Ruby locale is not set properly | |
// See https://github.com/sass-mq/sass-mq/pull/10 | |
/// Base font size on the `<body>` element | |
/// @type Number (unit) | |
$mq-base-font-size: 16px !default; | |
/// Responsive mode |
This file contains hidden or 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
wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --no-parent -U Mozilla --no-check-certificate --limit-rate=200k url.com |
This file contains hidden or 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
// contrasting font color | |
@function set-font-color($color, $dark: #000, $light: #FFF) { | |
// return $dark or $light color depending on lightness of $color | |
@return if(lightness($color) > 50, $dark, $light); | |
} | |
$color: #0000FF; | |
.default { |
This file contains hidden or 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
#!/bin/bash | |
# | |
# Some SASS helpers | |
# | |
# INSTALL: | |
# | |
# * save the sassbash file somewhere | |
# * chmod +x it to make it executable | |
# * add path to script in your .bashrc | |
# * . /path/to/sassbash |
This file contains hidden or 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
# WORDPRESS WP Query Taxonomy and Meta query | |
This shows the two alternate methods to running taxonomy and post meta paramaters within WP Query. | |
* Shorthand version only accepts one postmeta key | |
* Longhand version is the full method and has much more flexiblity for complex queries |
This file contains hidden or 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 | |
/* using thumbnail */ | |
add_filter('wp_generate_attachment_metadata','bw_images_filter'); | |
function bw_images_filter($meta) { | |
$file = wp_upload_dir(); | |
$file = trailingslashit($file['path']).$meta['sizes']['thumbnail']['file']; | |
list($orig_w, $orig_h, $orig_type) = @getimagesize($file); | |
$image = wp_load_image($file); | |
imagefilter($image, IMG_FILTER_GRAYSCALE); |
This file contains hidden or 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
# WORDPRESS Live Preview | |
This wrapper allows you to maintain a HTML holding page whislt seetting up a preview of a live WP site. | |
This is handy if you tend to work locally and don't intend to set up a remote test environment. | |
## Usage | |
http://www.yourwebsite.com?preview=allow | |
http://www.yourwebsite.com?preview=end |
This file contains hidden or 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
<!-- OG --> | |
<meta property="og:name" content="<?php echo bloginfo( 'name' ); ?>" /> | |
<meta property="og:type" content="website" /> | |
<meta property="og:title" content="<?php the_title(); ?>" /> | |
<meta property="og:url" content="<?php the_permalink(); ?>" /> | |
<meta property="og:image" content="path/to/avatar.png" /> | |
<meta property="og:image:width" content="200" /> | |
<meta property="og:image:height" content="200" /> |
NewerOlder