This file contains hidden or 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 | |
/** | |
* Sets up theme defaults and registers support for various WordPress features. | |
* | |
* Note that this function is hooked into the after_setup_theme hook, which | |
* runs before the init hook. The init hook is too late for some features, such | |
* as indicating support for post thumbnails. | |
*/ | |
function aperture_setup() { |
This file contains hidden or 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 | |
/** | |
* Plugin Name: Sell Media Keyword Migration | |
* Plugin URI: http://graphpaperpress.com/ | |
* Description: An extension for migrating keywords in Sell Media to attachments | |
* Version: 1.0.0 | |
* Author: Graph Paper Press | |
* Author URI: http://graphpaperpress.com | |
* Author Email: [email protected] | |
* License: GPL |
This file contains hidden or 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 | |
/** | |
* Changes the purchase text in Theme.Works e-commerce homepage section | |
*/ | |
function tw_change_ecommerce_purchase_text() { | |
return 'bestel'; | |
} | |
add_filter( 'tw_ecommerce_purchase_text', 'tw_change_ecommerce_purchase_text' ); |
This file contains hidden or 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 | |
/** | |
* Filter the "Manual Purchase" text shown on the Checkout page | |
*/ | |
function sell_media_manual_purchases_filter_text(){ | |
return 'Cash/Check'; | |
} | |
add_filter( 'sell_media_manual_purchases_text', 'sell_media_manual_purchases_filter_text' ); |
This file contains hidden or 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 | |
/** | |
* Plugin Name: My Sell Media Shortcode | |
* Plugin URI: http://graphpaperpress.com/plugins/sell-media/ | |
* Description: An example shortcode plugin for Sell Media. | |
* Version: 1.0 | |
* Author: Graph Paper Press | |
* Author URI: http://graphpaperpress.com | |
* Author Email: [email protected] | |
* Text Domain: sell_media |
This file contains hidden or 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 function to your own functionality plugin | |
* or add it to your theme's functions.php file. | |
* Change any of the text inside the return value. | |
*/ | |
function my_sell_media_tos_label() { | |
return 'Hey this is my custom text. Please agree to our <a href="javascript:void(0);" class="sell-media-empty-dialog-trigger">terms of service</a>.'; | |
} |
This file contains hidden or 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 | |
/** Enable my local themes and plugins repository FFS!!! */ | |
function allow_my_custom_host( $allow, $host, $url ) { | |
if ( $host == 'put-your-repository-domain-here.com' ) | |
$allow = true; | |
return $allow; | |
} | |
add_filter( 'http_request_host_is_external', 'allow_my_custom_host', 10, 3 ); |
This file contains hidden or 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
.vanishing-message { | |
position: relative; | |
} | |
.vanishing-message img { | |
width: 100%; | |
height: auto; | |
display: block; | |
} |
This file contains hidden or 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
<div class="vanishing-message"> | |
<img src="https://images.graphpaperpress.com.s3.amazonaws.com/sky-2400x1200.jpeg" /> | |
<div class="text"> | |
<span class="prelude">Commercial / Editorial / Advertising</span> | |
<span class="desc">Photography by Grant Smith</span> | |
</div> | |
</div> |
NewerOlder