Skip to content

Instantly share code, notes, and snippets.

View aristath's full-sized avatar
🏠

Ari Stathopoulos aristath

🏠
View GitHub Profile
<?php
function single_product_images_slider($echo, $id){
$attachments = get_posts( array(
'post_type' => 'attachment',
'posts_per_page' => -1,
'post_parent' => $id,
));
if ( $attachments ) {
<?php
// uncomment this line for testing
//set_site_transient( 'update_plugins', null );
/**
* Allows plugins to use their own update API.
*
* @author Pippin Williamson
* @version 1.0
<h2>The <strong>Shoestrap Child Version</strong> theme is a child-theme for the amazing <a href="http://rootstheme.com" target="_blank">Roots</a> theme.</h2>
<div class="alert alert-success"><strong>Need a demo? Just take a look at this site!</strong></div>
<span style="text-align: center;"><a class="btn btn-primary btn-large btn-success" href="https://github.com/aristath/shoestrap-child-theme" target="_blank"><span class="icon-github"> View this project on github</span></a></span>
Shoestrap is a WordPress theme that’s based on <a href="http://html5boilerplate.com/">HTML5 Boilerplate</a> and <a href="http://twitter.github.com/bootstrap/">Bootstrap from Twitter</a>. Using the amazing <a href="http://rootstheme.com/">Roots theme</a> as a parent gives this theme tremendous flexibility and advanced options.
<div class="alert alert-info">
You can extend this theme using one of our Addon plugins:
<ul>
<li><strong><a href="http://bootstrap-commerce.com/downloads/shoestrap-edd-addon/">Shoestrap EDD Addon</a></stro
<?php
// require_once locate_template( '/lib/customizer/functions/extras.php' ); // Extra Functions for the customizer
require_once locate_template( '/lib/customizer/custom-builder/components/customizer-settings.php' ); // Create Customizer Settings
require_once locate_template( '/lib/customizer/custom-builder/components/customizer-controls.php' ); // Create Customizer Controls
/*
* The content below is a copy of bootstrap's variables.less file.
*
* Some options are user-configurable and stored as theme mods.
function shoestrap_typography_webfont() {
// $webfont = get_theme_mod( 'shoestrap_google_webfonts' );
$webfont = 'Open Sans';
$weight = 400;
$f = strlen( $webfont );
if ($f > 3){
$webfontname = str_replace( ' ', '+', $webfont );
wp_register_style( 'googleFonts', 'http://fonts.googleapis.com/css?family=' . $webfontname . ':' . $weight );
wp_enqueue_style( 'googleFonts' );
<?php
/*
* Applies css to the buttons.
*/
function shoestrap_buttons_css() {
$btn_color = get_theme_mod( 'shoestrap_buttons_color' );
// Make sure colors are properly formatted
$btn_color = '#' . str_replace( '#', '', $btn_color );
<?php
/*
Plugin Name: My Custom Plugin
Plugin URI: http://example.com
Description: A description
Author: Me
Version: 1.0
Author URI:
*/
<?php
/*
Addon Name: Free subscriptions gateway
Author: Barry (Incsub)
Author URI: http://caffeinatedb.com
Gateway ID: freesubscriptions
*/
class freesubscriptions extends M_Gateway {
add_action( 'admin_bar_menu', 'shoestrap_remove_wp_menu_navbar', 999 );
function shoestrap_remove_wp_menu_navbar( $wp_admin_bar ) {
$wp_admin_bar->remove_node('wp-logo');
}
<style>.row-fluid :first-child{margin-left: 0;}</style>