Pen for the awesome tutorial on http://www.labnol.org/internet/light-youtube-embeds/27941/
A Pen by Saijo George on CodePen.
Pen for the awesome tutorial on http://www.labnol.org/internet/light-youtube-embeds/27941/
A Pen by Saijo George on CodePen.
| // http://www.gravityhelp.com/forums/topic/simple-calculations | |
| // change the 41 here to your form ID | |
| add_action('gform_pre_submission_41', 'ch_awesomeness_rating'); | |
| function ch_awesomeness_rating($form) { | |
| // set up one array for each step of the form | |
| // each array contains the input IDs of the fields we want to sum on each page | |
| // IDs do not need to be consecutive using this method | |
| $step_groups = array( | |
| 38 => array( 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 ) , | 
| function lucanos_learndash_classes( $classes ) { | |
| global $post; | |
| if( in_array( $post->post_type , array( 'sfwd-lessons' , 'sfwd-topic' ) ) ){ | |
| $classes[] = 'learndash'; | |
| $progress = learndash_get_course_progress( null, $post->ID ); | |
| $classes[] = 'learndash-progress-'.( $progress['this']->completed != 1 ? 'in' : '' ).'complete'; | |
| } | |
| return $classes; | |
| } | 
| function ld_next_lesson_link( $course_id = null ) { | |
| global $post; | |
| $user = _wp_get_current_user(); | |
| if( is_null( $course_id ) ) { | |
| $course_id = learndash_get_course_id( $post ); | |
| } | |
| if( !$course_id || !isset( $user->ID ) ) { | |
| // User Not Logged In OR No Course Identified | 
| <?php | |
| /* | |
| This program is free software; you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation; either version 3 of the License, or | |
| (at your option) any later version. | |
| This program is distributed in the hope that it will be useful, | |
| but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 
| -- ---------------------------------------------------------------------------- | |
| -- | |
| -- WordPress Database Clean Sweep | |
| -- ============================== | |
| -- | |
| -- NOTE: This SQL Script will completely delete any data in the Wordpress Tables | |
| -- starting with "wp_". Perform a backup before running this script. | |
| -- | |
| -- A New Admin User will be created by this script, with the following details: | |
| -- Username - new_admin | 
| <?php | |
| // ADD NEW ADMIN USER TO WORDPRESS | |
| // ---------------------------------- | |
| // Put this file in your Wordpress root directory and run it from your browser. | |
| $user = false; | |
| $errors = array(); | |
| if( isset( $_POST ) ){ | 
| @@||z-lib.io^$all | 
| #!/bin/bash | |
| set -e | |
| DOMAIN="$1" | |
| EMAIL="$2" | |
| if [[ -z "$DOMAIN" || -z "$EMAIL" ]]; then | |
| echo "Usage: bash install-lamp.sh <domain> <email>" | |
| exit 1 | |
| fi |