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: Example Functionality Plugin | |
| * Plugin URI: http://your-website.com | |
| * Description: An example functionality for housing your actions and filters. | |
| * Version: 1.0 | |
| * Author: Your Name | |
| * License: GPL2 | |
| */ | |
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
| function my_sell_media_above_item_form(){ | |
| echo 'This text will show up between the product thumbnail and the size and license select boxes on the cart popup.'; | |
| } | |
| add_action( 'sell_media_above_item_form', 'my_sell_media_above_item_form' ); |
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
| Checkout (<span class="sellMediaCart_quantity">0</span>) |
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 Continue Shopping Filter | |
| * Plugin URI: https://graphpaperpress.com/plugins/sell-media/ | |
| * Description: Filter to Sell Media "Continue shopping" links | |
| * Version: 1.0.0 | |
| * Author: Thad Allender | |
| * Author URI: https://graphpaperpress.com | |
| * Author Email: support@graphpaperpress.com | |
| * 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
| /** | |
| * Resize an image to specified dimensions | |
| * @return (string) path to product image or feature image | |
| */ | |
| function my_resize_image( $post_id=null, $width=null, $height=null, $crop=true ) { | |
| // get path to featured image | |
| $featured_image_id = get_post_thumbnail_id( $post_id ); | |
| $featured_image_path = get_attached_file( $featured_image_id ); |
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
| /* | |
| Theme Name: Stock Photography Child | |
| Theme URI: http://graphpaperpress.com/themes/stock-photography-child/ | |
| Description: Stock Photography Child Theme | |
| Author: Thad Allender | |
| Author URI: http://thadallender.com | |
| Template: stock-photography | |
| Version: 1.0.0 | |
| Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready | |
| Text Domain: stock-photography-child |
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
| .fromblog-post, .blog-grid .hentry { | |
| width: 32%; | |
| } | |
| .fromblog-post:nth-child(3n+1){ | |
| clear:left; | |
| } |
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
| .sell-media .sell-media-grid { width: 18%; } | |
| .sell-media .sell-media-grid:nth-child(5n) { margin-right: 0; } | |
| .sell-media .sell-media-grid:nth-child(3n), .sell-media .sell-media-grid .end { margin-right: 2%; } | |
| .sell-media .sell-media-grid:nth-child(5n+1) { clear: left; } | |
| .sell-media .sell-media-grid:nth-child(3n+1) { clear: none; } |
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
| function new_excerpt_more( $more ) { | |
| return '…'; | |
| } | |
| add_filter( 'excerpt_more', 'new_excerpt_more' ); |