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 | |
//... | |
// Replace space with + from cookie value | |
// because WP_Http_Cookie does urldecode( value ) | |
// which is fucking wrong. | |
$response['cookies'][0]->value = str_replace(' ', '+', $response['cookies'][0]->value); | |
// Set cookies for the second request | |
$this->cookies = $response['cookies']; | |
//... |
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 | |
if ( function_exists( 'required_side_nav' ) ) { | |
$args = array( | |
'before' => '<ul class="tabs vertical">', | |
'after' => '</ul>', | |
); | |
required_side_nav( $args ); | |
} |
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 | |
/** | |
* Custom front-page.php template | |
* | |
* Used to display the homepage of your | |
* WordPress site. | |
* | |
* @link http://themes.required.ch/?p=606 | |
*/ |
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 | |
/** | |
* The template used for displaying page content in page.php | |
* | |
* Example version to show how we overwrite the content output | |
* on a page in your child theme | |
* | |
* @link http://themes.required.ch/?p=755 | |
*/ | |
?> |
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 | |
// Add the following line to your required_starter_themesetup in your child theme functions.php | |
remove_action( 'wp_enqueue_scripts', 'required_load_scripts' ); |
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 | |
add_action('wp_head', 'admin_bar_fix', 5); | |
function admin_bar_fix() { | |
if( !is_admin() && is_admin_bar_showing() ) { | |
remove_action( 'wp_head', '_admin_bar_bump_cb' ); | |
$output = '<style type="text/css">'."\n\t"; | |
//$output .= 'body.admin-bar { padding-top: 28px; }'."\n"; | |
$output .= 'body.admin-bar .top-bar { margin-top: 28px; }'."\n"; |
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
/** | |
* Here goes all the JS Code you need in your child theme buddy! | |
*/ | |
(function($) { | |
$('.percentage').easyPieChart({ | |
animate: 1000 | |
}); | |
$('.percentage-light').easyPieChart({ |
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
/** | |
* Here goes all the JS Code you need in your child theme buddy! | |
*/ | |
(function($) { | |
// Find the ID on the menu item you want reveal to open with | |
$("#menu-item-342").click( function( event ) { | |
event.preventDefault(); | |
// The ID of our freshly creafted modal window content | |
$("#page-to-modal-317").reveal(); |
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 | |
/** | |
* Sample index.php file for displaying two posts per row | |
*/ | |
get_header(); ?> | |
<!-- Row for main content area --> | |
<div id="content" class="row"> |
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 | |
/** | |
* Template Name: Off Canvas Page Template | |
* Description: A Page Template with a subnavigation on the left side | |
* | |
* @link https://github.com/wearerequired/required-foundation/issues/17 | |
*/ | |
get_header(); ?> |
OlderNewer