git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
| sessions: | |
| signed_in: 'Signed in successfully.' | |
| signed_in_first_time: "MY CUSTOM WELCOME GREETING. DO NOT FORGET TO READ OUR GUIDELINE!" | |
| signed_out: 'Signed out successfully.' |
| <?php | |
| /** | |
| * Set up the Grid Loop | |
| * @author Bill Erickson | |
| * @link http://www.billerickson.net/genesis-grid-loop-content/ | |
| * | |
| */ | |
| function child_grid_loop_helper() { | |
| genesis_grid_loop( array( | |
| 'features' => 2, |
| #Model | |
| @user.should have(1).error_on(:username) # Checks whether there is an error in username | |
| @user.errors[:username].should include("can't be blank") # check for the error message | |
| #Rendering | |
| response.should render_template(:index) | |
| #Redirecting | |
| response.should redirect_to(movies_path) |
| <?php | |
| /** | |
| * Taxonomies | |
| * | |
| * This file registers any custom taxonomies | |
| * | |
| * @package WPS_Starter_Genesis_Child | |
| * @author Travis Smith <travis@wpsmith.net> | |
| * @copyright Copyright (c) 2012, Travis Smith | |
| * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| //Disable the dashboard welcome screen | |
| //This will only hide the panel, not replace it with any other content. | |
| add_filter("get_user_metadata", "my_own_welcome_panel", 1, 4); | |
| function my_own_welcome_panel($null, $object_id, $meta_key, $single) { | |
| if($meta_key === 'my_own_welcome_panel') { return 0; } | |
| } |
| # | |
| # Install the MYSQL driver | |
| # gem install mysql2 | |
| # | |
| # Ensure the MySQL gem is defined in your Gemfile | |
| # gem 'mysql2' | |
| # | |
| # And be sure to use new-style password hashing: | |
| # http://dev.mysql.com/doc/refman/5.0/en/old-client.html | |
| development: |
| <!-- /app/views/admin/users/new_invitiations.html.erb --> | |
| <h2>Send invitation</h2> | |
| <%= form_for @user, :url => send_invitation_admin_users_path do |f| %> | |
| <table style='width: 50%'> | |
| <tr> | |
| <td><%= f.label :first_name %></td> | |
| <td><%= f.text_field :first_name %></td> |
| <?php | |
| //* Do NOT include the opening php tag shown above. Copy the code shown below. | |
| //* Modify the Genesis content limit read more link | |
| add_filter( 'get_the_content_more_link', 'sp_read_more_link' ); | |
| function sp_read_more_link() { | |
| return '... <a class="more-link" href="' . get_permalink() . '">[Continue Reading]</a>'; | |
| } |