Skip to content

Instantly share code, notes, and snippets.

//
// Alerts
// --------------------------------------------------
// Base styles
// -------------------------
.alert,
.validation_error,
<?php
/*
Plugin Name: Disable plugins when doing local dev
Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify
Version: 0.1
License: GPL version 2 or any later version
Author: Mark Jaquith
Author URI: http://coveredwebservices.com/
*/
@Bicarbona
Bicarbona / gist:6884095
Created October 8, 2013 12:42
DMS - Header Logo - remove all padding
/*
Header Logo - remove all padding
*/
.pl-area-wrap {padding-top: 0px !important; padding-bottom: 0px !important;}
.mediabox-wrap {min-height: 0px !important;}
.pl-section-pad {margin-bottom: 0px !important;}
.alignleft {margin-bottom: 0em !important;}
.the-media-html p {margin-bottom: 0px !important; margin-top: 0px !important;}
<?php
// PageLines references
// https://github.com/pagelines/DMS/blob/Dev/includes/library.wordpress.php#L54
// 'aspect-thumb' not in use -- https://github.com/pagelines/DMS/search?q=aspect-thumb&type=Code
// 'basic-thumb' might be used by PopThumbs -- https://github.com/pagelines/DMS/blob/Dev/sections/popthumbs/section.php#L143
// 'landscape-thumb' used when PL settings have featured image on top of posts -- https://github.com/pagelines/DMS/blob/Dev/includes/class.posts.php#L396
// WordPress references
// http://codex.wordpress.org/Function_Reference/add_image_size
// http://codex.wordpress.org/Plugin_API/Filter_Reference/image_size_names_choose
// PL override LESS Variable: will not work in PL DMS Editor's Custom Code area
// https://github.com/pagelines/DMS/blob/Dev/less/dropdowns.less#L88
@dropdownLinkBackgroundHover: #bf0000; // drop down hover color
@dropdownLinkBackgroundActive: #bf0000; // drop down active item / current page color
<?php
/*
Plugin Name: PageLines DMS Force SSL/HTTPS
Author: TourKick (Clifford P)
Author URI: http://tourkick.com/?utm_source=pagelines&utm_medium=plugin&utm_content=pluginuri&utm_campaign=dmsforcessl
Plugin URI: http://www.pagelinestheme.com/pagelines-dms-ssl-https-wp-engine/?utm_source=pagelines&utm_medium=plugin&utm_content=pluginuri&utm_campaign=dmsforcessl
Description: Force PageLines DMS SSL/HTTPS. <a href="http://www.pagelinestheme.com/pagelines-dms-ssl-https-wp-engine/" target="_blank">http://www.pagelinestheme.com/pagelines-dms-ssl-https-wp-engine/</a> may also be helpful.
License: GPLv2
Version: 1.0.20131015
*/
@Bicarbona
Bicarbona / gist:7352334
Last active April 19, 2016 21:36 — forked from billerickson/gist:3698476
WP Query Reference
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php
*/
$args = array(
@Bicarbona
Bicarbona / plugin.php
Last active April 19, 2016 21:35 — forked from billerickson/plugin.php
Excluding your plugin or theme from update checks
<?php
/**
* Don't Update Plugin
*
* This prevents you being prompted to update if there's a public plugin
* with the same name.
*
* @since 1.0.0
* @author Mark Jaquith
@Bicarbona
Bicarbona / current-user-can.php
Last active April 19, 2016 21:34 — forked from jgalea/current-user-can.php
WP Current user can
<?php
if ( current_user_can( 'moderate_comments' ) ) {
echo 'The current user can moderate comments';
}
.hentry ul, .hentry ol {
font-size: @plFontSize;
line-height: @plFontSize * 1.55;
}