Skip to content

Instantly share code, notes, and snippets.

View cliffordp's full-sized avatar

Clifford cliffordp

View GitHub Profile
.hentry ul,
.hentry ol {
font-size: @plFontSize;
line-height: @plFontSize * 1.55;
}
<?php
/*
Plugin Name: PageLines DMS Tell Me Type and Template
Author: TourKick (Clifford P)
Author URI: http://tourkick.com/?utm_source=pagelines&utm_medium=plugin&utm_content=pluginuri&utm_campaign=dmstellmetemplate
Plugin URI: http://www.pagelinestheme.com/tell-me-dms-type-template/?utm_source=pagelines&utm_medium=plugin&utm_content=pluginuri&utm_campaign=dmstellmetemplate
Description: Shows logged in editors which PageLines DMS "page type" and "applied template" is detected by the DMS Editor. May also choose to copy code directly into your DMS child theme's functions.php file instead of activating this plugin. <a href="http://www.pagelinestheme.com/tell-me-dms-type-template/" target="_blank">http://www.pagelinestheme.com/tell-me-dms-type-template/</a> may also be helpful.
License: GPLv2
Version: 1.0.20131002
*/
<?php
// globally displays page titles in PageLines DMS
add_action( 'loop_start', 'pldmspagetitles');
function pldmspagetitles() {
if( is_page() /* && !is_front_page() && !is_page(54) */ ) {
printf( '<h1>%s</h1>', get_the_title() );
}
}
@cliffordp
cliffordp / pagelines-dms-force-ssl-https-wp-engine.php
Last active February 12, 2017 16:38
PageLines DMS Force SSL/HTTPS
<?php
/*
Plugin Name: PageLines DMS Force SSL/HTTPS (for WP Engine)
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/?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/" target="_blank">http://www.pagelinestheme.com/pagelines-dms-ssl-https/</a> may also be helpful.
License: GPLv2
Version: 1.2
*/
@cliffordp
cliffordp / pl-navbar-drop-down-color-overrides.less
Created October 9, 2013 15:21
Child theme code to override PageLines DMS NavBar Section's drop down colors
// 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
// 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
@cliffordp
cliffordp / pagelines-dms-override-thumbs.php
Created November 22, 2013 17:34
Override PageLines DMS thumbnails
<?php
// from http://www.pagelinestheme.com/stop-cropping-featured-images/
// related to http://www.pagelinestheme.com/access-remove-pagelines-custom-image-sizes/
function pl_dms_override_thumbs(){
//add_image_size( 'aspect-thumb', 900, 600, false );
add_image_size( 'basic-thumb', 400, 400, false );
add_image_size( 'landscape-thumb', 900, 450, false );
}
add_action('after_setup_theme', 'pl_dms_override_thumbs', 11);
@cliffordp
cliffordp / selectme-color-border-shadow.less
Created December 6, 2013 16:40
PageLines DMS SelectMe section customizations
// override https://github.com/pagelines/DMS/blob/Dev/less/forms.less#L129
// customize the rgba values below
.selectmecontent input[type="text"] {
&:focus {
border-color: rgba(82,168,236,0.8);
.box-shadow(~"inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,0.6)");
}
}
@cliffordp
cliffordp / ccnomarginshadow.less
Created February 21, 2014 23:54
Cool Carousel Section - Remove margin and shadow
.ccnomarginshadow {
.cc-wrapper{
margin:0 auto 0px;
.cc-viewport{
.box-shadow(0 0 0 #fff);
border:none;
left:0px;
}
}
}
@cliffordp
cliffordp / font-awesome-icons-for-quotes.less
Created March 6, 2014 17:24
Overriding PageLines DMS styles for blockquotes and Font Awesome icons for blockquotes
// Font Awesome icons before and after quotes
q:before,
blockquote:before {
font-family: PageLinesFont;
content: @fa-var-quote-left; //works in DMS v2
//content:"\f10d"; //works in DMS prior to v2
color: @textColorAlt;
}
q:after,
blockquote:after {