Created
March 4, 2015 19:39
-
-
Save arturo-c/9135840a18ca4e917428 to your computer and use it in GitHub Desktop.
wordpress diff
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
| diff --git a/MIT-LICENSE.txt b/MIT-LICENSE.txt | |
| old mode 100755 | |
| new mode 100644 | |
| diff --git a/content.php b/content.php | |
| old mode 100755 | |
| new mode 100644 | |
| diff --git a/footer.php b/footer.php | |
| index b3a7cfc..a1ce5ee 100644 | |
| --- a/footer.php | |
| +++ b/footer.php | |
| @@ -11,7 +11,7 @@ | |
| </div> | |
| <div class="small-6 medium-6 large-3 columns privacy"> | |
| - <p><a href="http://qa.bookshout.com/privacy" target="_blank">Privacy</a> | <a href="http://qa.bookshout.com/terms" target="_blank">Terms</a></p> | |
| + <p><a href="http://qa-feature.bookshout.com/privacy" target="_blank">Privacy</a> | <a href="http://qa-feature.bookshout.com/terms" target="_blank">Terms</a></p> | |
| </div> | |
| <?php do_action('foundationPress_after_footer'); ?> | |
| @@ -23,4 +23,4 @@ | |
| <?php wp_footer(); ?> | |
| <?php do_action('foundationPress_before_closing_body'); ?> | |
| </body> | |
| -</html> | |
| \ No newline at end of file | |
| +</html> | |
| diff --git a/functions.php b/functions.php | |
| index 2a62a1c..718c94e 100644 | |
| --- a/functions.php | |
| +++ b/functions.php | |
| @@ -29,4 +29,51 @@ require_once('library/enqueue-scripts.php'); | |
| // Add theme support | |
| require_once('library/theme-support.php'); | |
| -?> | |
| \ No newline at end of file | |
| +function foundation_custom_scripts() { | |
| + wp_enqueue_style( 'custom', get_template_directory_uri().'/custom.css' ); | |
| +} | |
| + | |
| +add_action( 'wp_enqueue_scripts', 'foundation_custom_scripts' ); | |
| + | |
| +function custom_post_type() { | |
| + | |
| + $labels = array( | |
| + 'name' => _x( 'Partner Images', 'Post Type General Name', 'text_domain' ), | |
| + 'singular_name' => _x( 'Partner Image', 'Post Type Singular Name', 'text_domain' ), | |
| + 'menu_name' => __( 'Partners Images', 'text_domain' ), | |
| + 'parent_item_colon' => __( 'Parent Image:', 'text_domain' ), | |
| + 'all_items' => __( 'All Images', 'text_domain' ), | |
| + 'view_item' => __( 'View Image', 'text_domain' ), | |
| + 'add_new_item' => __( 'Add New Image', 'text_domain' ), | |
| + 'add_new' => __( 'Add New', 'text_domain' ), | |
| + 'edit_item' => __( 'Edit Image', 'text_domain' ), | |
| + 'update_item' => __( 'Update Image', 'text_domain' ), | |
| + 'search_items' => __( 'Search Images', 'text_domain' ), | |
| + 'not_found' => __( 'Not found', 'text_domain' ), | |
| + 'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ), | |
| + ); | |
| + $args = array( | |
| + 'label' => __( 'partner_featured_image', 'text_domain' ), | |
| + 'description' => __( 'Homepage Partners Featured Images', 'text_domain' ), | |
| + 'labels' => $labels, | |
| + 'supports' => array( 'title', 'thumbnail', ), | |
| + 'taxonomies' => array( 'category', 'post_tag' ), | |
| + 'hierarchical' => false, | |
| + 'public' => true, | |
| + 'show_ui' => true, | |
| + 'show_in_menu' => true, | |
| + 'show_in_nav_menus' => true, | |
| + 'show_in_admin_bar' => true, | |
| + 'menu_position' => 5, | |
| + 'can_export' => true, | |
| + 'has_archive' => true, | |
| + 'exclude_from_search' => false, | |
| + 'publicly_queryable' => true, | |
| + 'capability_type' => 'page', | |
| + ); | |
| + register_post_type( 'partner_featured_image', $args ); | |
| + | |
| +} | |
| + | |
| +// Hook into the 'init' action | |
| +add_action( 'init', 'custom_post_type', 0 ); | |
| diff --git a/header.php b/header.php | |
| index bf5abeb..7ba98be 100644 | |
| --- a/header.php | |
| +++ b/header.php | |
| @@ -128,7 +128,7 @@ | |
| </div> | |
| <div class="large-5 medium-4 columns top-bar-logo"> | |
| - <a href="http://qa.bookshout.com" class="show-for-medium-up"> | |
| + <a href="http://qa-feature.bookshout.com" class="show-for-medium-up"> | |
| <img alt="Bs-logo-black" class="media-object nav-logo" src="<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/BookShout-Logo2x.png"> | |
| </a> | |
| </div> | |
| diff --git a/homepage.php b/homepage.php | |
| index 79d1e10..ebc34b2 100644 | |
| --- a/homepage.php | |
| +++ b/homepage.php | |
| @@ -3,104 +3,107 @@ | |
| Template Name: Home Page | |
| */ | |
| ?> | |
| - | |
| - | |
| <?php do_action('foundationPress_before_content'); ?> | |
| - | |
| -<?php get_template_part( 'hero', 'none' ); ?> | |
| - | |
| -<div class="row homepage-books"> | |
| - <div class="small-12 large-12 columns" role="main"> | |
| - <div class="medium-8 columns heading"> | |
| - <h2> | |
| - 600,000 of Titles and Counting... | |
| - </h2> | |
| - </div> | |
| - <div class="small-12 medium-4 columns store-link-container"> | |
| - <a href="http://qa.bookshout.com/store" class="button"> | |
| - Visit eBookStore | |
| - </a> | |
| - </div> | |
| +<div class="row homepage-promo"> | |
| + <div class="large-6 small-12 columns readers"> | |
| + <h1>For Readers:</h1> | |
| + <p>Browse millions of bestselling ebooks</p> | |
| + <a href="" class="button">Enter Store</a> | |
| + <ul id="homepage-books-grid" class="small-block-grid-2 medium-block-grid-5 large-block-grid-5"></ul> | |
| + </div> | |
| + <div class="large-6 small-12 columns partners"> | |
| + <h1>For Partners, Corporations, Publishers & Authors:</h1> | |
| + <p>BookShout works with world-class brands and partners to create new sales channels and market and sell books in creative ways</p> | |
| + <div class="featured-images"></div> | |
| + <div class="featured-services"> | |
| + <a href="" class="button">Bulk Sales & Programs</a> | |
| + <a href="" class="button">Direct Sales & Services</a> | |
| + <a href="" class="button">Author & Publisher Services</a> | |
| + </div> | |
| + </div> | |
| +</div> | |
| - <ul id="homepage-books-grid" class="small-block-grid-2 medium-block-grid-5 large-block-grid-5"> | |
| - </ul> | |
| - </div> | |
| +<div class="row homepage-books"> | |
| + <div class="small-12 large-12 columns" role="main"> | |
| + <div class="medium-8 columns heading"> | |
| + <h2>600,000 of Titles and Counting...</h2> | |
| + </div> | |
| + <div class="small-12 medium-4 columns store-link-container"> | |
| + <a href="http://qa-feature.bookshout.com/store" class="button">Visit eBookStore</a> | |
| + </div> | |
| + <!-- <ul id="homepage-books-grid" class="small-block-grid-2 medium-block-grid-5 large-block-grid-5"></ul> --> | |
| + </div> | |
| </div> | |
| <script type="text/javascript"> | |
| - $(document).ready(function(){ | |
| - var success = function(data){ | |
| - if (data.length > 0) { | |
| - $(".homepage-books").css({display: "block"}); | |
| - | |
| - $.each(data, function( index, value ) { | |
| - if (index < 5) { | |
| - if ($("ul#homepage-books-grid li.first-row").length == 0) { | |
| - $("ul#homepage-books-grid").append("<li class='first-row'></li>"); | |
| - } | |
| - $("ul#homepage-books-grid li.first-row").append("<a href="+value["book"]["store_url"]+"><img src="+value["book"]["cover_urls"]["bookshelf"]+" /></a>"); | |
| - } | |
| - if (index > 4 && index < 10) { | |
| - if ($("ul#homepage-books-grid li.second-row").length == 0) { | |
| - $("ul#homepage-books-grid").append("<li class='second-row'></li>"); | |
| - } | |
| - $("ul#homepage-books-grid li.second-row").append("<a href="+value["book"]["store_url"]+"><img src="+value["book"]["cover_urls"]["bookshelf"]+" /></a>"); | |
| - } | |
| - if (index > 9 && index < 15) { | |
| - if ($("ul#homepage-books-grid li.third-row").length == 0) { | |
| - $("ul#homepage-books-grid").append("<li class='third-row'></li>"); | |
| - } | |
| - $("ul#homepage-books-grid li.third-row").append("<a href="+value["book"]["store_url"]+"><img src="+value["book"]["cover_urls"]["bookshelf"]+" /></a>"); | |
| - } | |
| - }); | |
| - } | |
| - }; | |
| - | |
| - $.ajax({ | |
| - url: "https://qa.bookshout.com/v2/homepage_books.json", | |
| - crossDomain: true, | |
| - dataType: "jsonp", | |
| - success: success | |
| - }); | |
| - }); | |
| - | |
| +$(document).ready(function(){ | |
| + var success = function(data){ | |
| + if (data.length > 0) { | |
| + $(".homepage-books").css({display: "block"}); | |
| + $.each(data, function( index, value ) { | |
| + if (index < 5) { | |
| + f ($("ul#homepage-books-grid li.first-row").length == 0) { | |
| + $("ul#homepage-books-grid").append("<li class='first-row'></li>"); | |
| + } | |
| + $("ul#homepage-books-grid li.first-row").append("<a href="+value["book"]["store_url"]+"><img src="+value["book"]["cover_urls"]["bookshelf"]+" /></a>"); | |
| + } | |
| + if (index > 4 && index < 10) { | |
| + if ($("ul#homepage-books-grid li.second-row").length == 0) { | |
| + $("ul#homepage-books-grid").append("<li class='second-row'></li>"); | |
| + } | |
| + $("ul#homepage-books-grid li.second-row").append("<a href="+value["book"]["store_url"]+"><img src="+value["book"]["cover_urls"]["bookshelf"]+" /></a>"); | |
| + } | |
| + if (index > 9 && index < 15) { | |
| + if ($("ul#homepage-books-grid li.third-row").length == 0) { | |
| + $("ul#homepage-books-grid").append("<li class='third-row'></li>"); | |
| + } | |
| + $("ul#homepage-books-grid li.third-row").append("<a href="+value["book"]["store_url"]+"><img src="+value["book"]["cover_urls"]["bookshelf"]+" /></a>"); | |
| + } | |
| + }); | |
| + } | |
| + }; | |
| + $.ajax({ | |
| + url: "https://qa-feature.bookshout.com/v2/homepage_books.json", | |
| + crossDomain: true, | |
| + dataType: "jsonp", | |
| + success: success | |
| + }); | |
| +}); | |
| </script> | |
| <div class="row homepage-download-apps" style="background:#fff url('<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/Apps-Image.jpg')"> | |
| - <div class="small-12 medium-8 large-12" role="main"> | |
| - | |
| - <div class="small-12 large-4 large-offset-2 columns"> | |
| - <h2>Download the Free App</h2> | |
| - | |
| - <ul> | |
| - <li> | |
| - <a href="http://itunes.apple.com/us/app/bookshout/id482728980?mt=8" target="_blank"> | |
| - <img src='<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/Badge-Apple.png' /> | |
| - </a> | |
| - </li> | |
| - <li> | |
| - <a href="https://play.google.com/store/apps/details?id=com.rethinkbooks.bookshout" target="_blank"> | |
| - <img src='<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/Badge-GooglePlay.png' /> | |
| - </a> | |
| - </li> | |
| - <li> | |
| - <a href="http://bookshout.com/download" target="_blank"> | |
| - <img src='<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/Badge-Kindle.png' /> | |
| - </a> | |
| - </li> | |
| - <li> | |
| - <a href="http://bookshout.com/download" target="_blank"> | |
| - <img src='<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/Badge-Nook.png' /> | |
| - </a> | |
| - </li> | |
| - </ul> | |
| - </div> | |
| - </div> | |
| + <div class="small-12 medium-8 large-12" role="main"> | |
| + <div class="small-12 large-4 large-offset-2 columns"> | |
| + <h2>Download the Free App</h2> | |
| + <ul> | |
| + <li> | |
| + <a href="http://itunes.apple.com/us/app/bookshout/id482728980?mt=8" target="_blank"> | |
| + <img src='<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/Badge-Apple.png' /> | |
| + </a> | |
| + </li> | |
| + <li> | |
| + <a href="https://play.google.com/store/apps/details?id=com.rethinkbooks.bookshout" target="_blank"> | |
| + <img src='<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/Badge-GooglePlay.png' /> | |
| + </a> | |
| + </li> | |
| + <li> | |
| + <a href="http://bookshout.com/download" target="_blank"> | |
| + <img src='<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/Badge-Kindle.png' /> | |
| + </a> | |
| + </li> | |
| + <li> | |
| + <a href="http://bookshout.com/download" target="_blank"> | |
| + <img src='<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/Badge-Nook.png' /> | |
| + </a> | |
| + </li> | |
| + </ul> | |
| + </div> | |
| + </div> | |
| </div> | |
| <?php do_action('foundationPress_after_content'); ?> | |
| -<?php get_footer(); ?> | |
| \ No newline at end of file | |
| +<?php get_footer(); ?> | |
| diff --git a/style.css b/style.css | |
| old mode 100755 | |
| new mode 100644 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment