If you dont have shell access to your server and need to unzip a file on your php server you can use this script. It basically extracts the zip file into the directory you specify. Make sure the directory you want to extract it to has write permissions.
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
| //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; } | |
| } |
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
| <!-- Countdown dashboard start --> | |
| <div id="countdown_dashboard"> | |
| <!--<h1>jQuery Countdown</h1>--> | |
| <hr class="light"> | |
| <div class="dash weeks_dash"> | |
| <span class="dash_title">weeks</span> | |
| <div class="digit">4</div> | |
| <div class="digit">6</div> | |
| </div> |
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
| $(document).ready(function(){ | |
| $("#go-to-top").hide(); | |
| $(function () { | |
| $(window).scroll(function () { | |
| if ($(this).scrollTop() > 100) { | |
| $('#go-to-top').fadeIn(); | |
| } else { | |
| $('#go-to-top').fadeOut(); | |
| } | |
| }); |
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
| ::-webkit-scrollbar { | |
| width: 12px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: none; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: -webkit-linear-gradient(left, #547c90, #002640); |
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 | |
| /* | |
| Plugin Name: Plugin Boilerplate | |
| Version: 0.1-alpha | |
| Description: This is how I like to make sense of the WordPress plugin architecture | |
| Author: Adam Davis | |
| Author URI: http://admataz.com | |
| Plugin URI: http://admataz.com | |
| Text Domain: admataz-plugin-boilerplate | |
| Domain Path: /languages |
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('body_class','browser_body_class'); | |
| function browser_body_class($classes) { | |
| global $is_lynx, $is_gecko, $is_IE, $is_opera, $is_NS4, $is_safari, $is_chrome, $is_iphone; | |
| if($is_lynx) $classes[] = 'lynx'; | |
| elseif($is_gecko) $classes[] = 'gecko'; | |
| elseif($is_opera) $classes[] = 'opera'; | |
| elseif($is_NS4) $classes[] = 'ns4'; | |
| elseif($is_safari) $classes[] = 'safari'; |
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
| add_filter('wp_mail_from', 'new_mail_from'); | |
| add_filter('wp_mail_from_name', 'new_mail_from_name'); | |
| function new_mail_from($old) { | |
| return 'your email address'; | |
| } | |
| function new_mail_from_name($old) { | |
| return 'your name or your website'; | |
| } |
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 | |
| if ( !function_exists('wp_new_user_notification') ) { | |
| function wp_new_user_notification( ) {} | |
| } | |
| if ( !function_exists( 'wp_password_change_notification' ) ) { | |
| function wp_password_change_notification() {} |