View gist:7dcd2b4c8c0746106528
This file contains 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
add_action('admin_head','generate_hide_sections_settings'); | |
function generate_hide_sections_settings() | |
{ ?> | |
<style> | |
.generate_sections_control .grid-container { | |
display: none; | |
} | |
</style> | |
<?php } |
View gist:444fdda2c1bc473bc7cd
This file contains 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
public function get_fonts( $amount = 5000 ) | |
{ | |
$selectDirectory = ''; | |
$selectDirectory = plugin_dir_path( __FILE__ ); | |
$fontFile = $selectDirectory . '/cache/google-web-fonts.txt'; | |
//Total time the file will be cached in seconds, set to a week | |
$cachetime = 86400 * 7; |
View gist:1c4b507dbc4080149ae1
This file contains 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 generate_get_fonts( $amount = 1000 ) | |
{ | |
if ( get_transient('generate_get_fonts') ) | |
return; | |
$selectDirectory = ''; | |
$selectDirectory = plugin_dir_path( __FILE__ ); | |
$fontFile = $selectDirectory . '/cache/google-web-fonts.txt'; |
View gist:518b516393097467644d
This file contains 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
public function render_content() | |
{ | |
$fonts = ( get_transient('generate_get_fonts') ? get_transient('generate_get_fonts') : '' ); | |
if(!empty($fonts)) | |
{ | |
?> | |
<label> | |
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span> | |
<select <?php $this->link(); ?>> |
View gist:a38ff6518970e9574aa9
This file contains 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
.main-title, | |
.site-description, | |
.main-navigation a, | |
.menu-toggle, | |
h1, | |
h2, | |
h3{ | |
font-family: Arial, Helvetica, sans-serif; | |
} |
View gist:7fa78290485a2b0ca2a5
This file contains 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
.container { | |
background-image: url("http://www.zahnarzt-lorenz.de/dropshadow2.png") !important; | |
background-position: center top !important; | |
background-repeat: no-repeat !important; | |
} | |
.inside-navigation { | |
background-image: url("http://www.zahnarzt-lorenz.de/dropshadow2.png"); | |
background-position: center top !important; | |
background-repeat: no-repeat; |
View gist:5e35a595e01380e269f0
This file contains 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
require_once( '../../wp-load.php' ); | |
$args = array( | |
'post_type' => 'edd_license', | |
'showposts' => -1, | |
's' => $_POST['email'] | |
); | |
// The Query | |
$the_query = new WP_Query( $args ); |
View gist:cc029815b4da21db3292
This file contains 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
add_action('admin_init', 'generate_activate_customer_email'); | |
function generate_activate_customer_email() { | |
if( isset( $_POST['generate_customer_email_activate'] ) ) { | |
if( ! check_admin_referer( 'generate_customer_email_nonce', 'generate_customer_email_nonce' ) ) | |
return; // get out if we didn't click the Activate button | |
$generate_customer_email = get_option( 'generate_customer_email' ); |
View gist:3d53312b7bf4d4faef09
This file contains 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
add_action('admin_init', 'generate_activate_customer_email'); | |
function generate_activate_customer_email() { | |
if( isset( $_POST['generate_customer_email_activate'] ) ) { | |
if( ! check_admin_referer( 'generate_customer_email_nonce', 'generate_customer_email_nonce' ) ) | |
return; // get out if we didn't click the Activate button | |
$generate_customer_email = get_option( 'generate_customer_email' ); |
View gist:a04ababa46653c9b027c
This file contains 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 | |
require_once( '../../wp-load.php' ); | |
if ( $_POST['generate_action'] == 'get_email' ) : | |
$args = array( | |
'post_type' => 'edd_license', | |
'showposts' => -1, | |
's' => $_POST['email'] |
OlderNewer