The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
<?php | |
/* | |
* Plugin Name: Commercial Client | |
* Plugin URI: http://pento.net/ | |
* Description: A sample client plugin for showing updates for non-WordPress.org plugins | |
* Author: pento | |
* Version: 0.1 | |
* Author URI: http://pento.net/ | |
* License: GPL2+ | |
*/ |
<?php | |
// Beginning of File | |
begin_template( __FILE__ ); | |
// End of File | |
end_template( __FILE__ ); |
/** | |
* Borrowed from https://github.com/addyosmani/jquery-ui-bootstrap | |
* Styles the datepicker popup for gravityforms used with bootstrap | |
*/ | |
/* | |
* jQuery UI Datepicker | |
* | |
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* http://jquery.org/license |
<?php | |
if ( !function_exists('your_pagination')) : | |
function your_pagination($custom_query) { | |
if ( !$current_page = get_query_var( 'paged' ) ) $current_page = 1; | |
$permalinks = get_option( 'permalink_structure' ); | |
if( is_front_page() ) { | |
$format = empty( $permalinks ) ? '?paged=%#%' : 'page/%#%/'; | |
} else { |
/** | |
* Exclude certain WordPress database settings from being migrated when pushing or pulling | |
* with Migrate-DB-Pro | |
* | |
* Useful when developing locally and wanting to push or pull database settings between envirnments | |
* USE CAUTION! - Must be used with https://github.com/deliciousbrains/wp-migrate-db-pro-tweaks/ | |
*/ | |
function preserved_options( $options ) { | |
$options[] = 'blog_public'; // discourage search engines setting | |
$options[] = 'bit51_bwps'; // Better WordPress Security Settings |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<?php | |
Redux::setSection( $opt_name, array( | |
'title' => __( 'Text Area', 'redux-framework-demo' ), | |
'desc' => __( 'For full documentation on this field, visit: ', 'redux-framework-demo' ) . '<a href="http://docs.reduxframework.com/core/fields/textarea/" target="_blank">http://docs.reduxframework.com/core/fields/textarea/</a>', | |
'id' => 'opt-textarea-subsection', | |
'subsection' => true, | |
'fields' => array( | |
array( | |
'id' => 'background-parallax', |
<?php | |
//Based on Ohad Raz - https://en.bainternet.info/custom-post-types-columns/ | |
//Some info: | |
// The classes read the meta field of the CPT ID and enable the sorting | |
// Is possible remove other column | |
// Support 4 type of object natively: Title, Thumbnail, Custom taxonomy, Custom Field | |
// Add a filter cpt_columns_text_{column_name_id} in Title type | |
// prefix/suffix values are for all the objects except post_thumb | |
// New features by Mte90: |