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 | |
class comment_walker extends Walker_Comment { | |
var $tree_type = 'comment'; | |
var $db_fields = array( 'parent' => 'comment_parent', 'id' => 'comment_ID' ); | |
// constructor – wrapper for the comments list | |
function __construct() { ?> | |
<section class="comments-list"> |
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
wget \ | |
--recursive \ | |
--no-clobber \ | |
--page-requisites \ | |
--html-extension \ | |
--convert-links \ | |
--restrict-file-names=windows \ | |
--domains domain.com \ | |
--no-parent \ | |
http://domain.com |
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(){ | |
function secSetCookie(cname, cvalue, exdays) { | |
var d = new Date(); | |
d.setTime(d.getTime() + (exdays*24*60*60*1000)); | |
var expires = "expires="+d.toUTCString(); | |
document.cookie = cname + "=" + cvalue + "; " + expires + "; path=/"; | |
} | |
function secGetCookie (cname) { | |
var name = cname + "="; |
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(){ | |
var fileRef = document.createElement('script'); | |
fileRef.setAttribute("type","text/javascript"); | |
fileRef.setAttribute("src", "//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"); | |
document.body.appendChild(fileRef); | |
/*Change the SELECTOR-HERE for the one you want to add */ | |
$("SELECTOR-HERE").append('<br/><ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-4429314952077491" data-ad-slot="8849066704" data-ad-format="auto"></ins>'); | |
$("SELECTOR-HERE").append('<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>'); | |
}); |
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 | |
register_activation_hook( __FILE__, 'my_cron_activation' ); | |
function my_cron_activation() { | |
wp_schedule_event( time(), 'hourly', 'my_cron_action' ); | |
} |
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_action( 'my_cron_action', 'do_magic' ); | |
function do_magic() { | |
// do something every hour | |
} |
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_filter( 'cron_schedules', 'add_custom_cron_schedule' ); | |
function add_custom_cron_schedule( $schedules ){ | |
$schedules['minute'] = array( | |
'interval' => 60 * 1, | |
'display' => __('Every Minute') | |
); | |
return $schedules; | |
} |
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 | |
register_activation_hook( __FILE__, 'my_cron_activation' ); | |
function my_cron_activation() { | |
wp_schedule_event( time(), 'minute', 'my_cron_action' ); | |
} |
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
"lessons" : [ | |
{ | |
"title" : "I'm a rating question dude!", | |
"content" : "<p>This i sthe content input</p>", | |
"action" : { | |
"title" : "Some Rating fields!!!!", | |
"icon" : "dollar", | |
"type" : "rating", | |
"content" : "This is where the question or action description goes. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium.", | |
"time": "10", |
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
{ | |
"version" : 1.0, | |
"name" : "podcast", | |
"primary_color" : "", | |
"accent_color" : "#0000ff", | |
"text_color": "", | |
"header" : { | |
"header_img" : "//impactful.io/tutorize/app/assets/images/bg-header.jpg", | |
"title" : "New! How to Start a Podcast<br>Step-By-Step Podcasting Tutorial" | |
}, |