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
Option Explicit | |
Dim objshell,path,DigitalID, Result | |
Set objshell = CreateObject("WScript.Shell") | |
'Set registry key path | |
Path = "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" | |
'Registry key value | |
DigitalID = objshell.RegRead(Path & "DigitalProductId") | |
Dim ProductName,ProductID,ProductKey,ProductData | |
'Get ProductName, ProductID, ProductKey |
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 // Opening PHP tag - nothing should be before this, not even whitespace | |
// Custom Function to Include | |
function favicon_link() { | |
echo '<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />' . "\n"; | |
} | |
add_action( 'wp_head', 'favicon_link' ); |
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
/* | |
Theme Name: Setuix Solutions Child Theme | |
Theme URI: http://setuix.com | |
Description: Setuix Solutions Child Theme | |
Author: John Doe | |
Author URI: http://setuix.com | |
Template: genesis | |
Version: 1.0.0 | |
License: GNU General Public License v2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
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 | |
$today = current_time('mysql', 1); | |
$howMany = 5; //Number of posts you want to display | |
if ( $recentposts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_status = 'publish' AND post_modified_gmt < '$today' ORDER BY post_modified_gmt DESC LIMIT $howMany")): | |
?> | |
<h2><?php _e("Recent Updates"); ?></h2> | |
<ul> | |
<?php | |
foreach ($recentposts as $post) { | |
if ($post->post_title == '') $post->post_title = sprintf(__('Post #%s'), $post->ID); |
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 $popular = newWP_Query('orderby=comment_count&posts_per_page=5'); ?> | |
<?php while ($popular->have_posts()) : $popular->the_post(); ?> | |
<?php $justanimage = get_post_meta($post->ID,'thumbnail', true); | |
if ($justanimage) { ?> | |
<img src="<?php echo get_post_meta($post->ID, "Image", true); ?>" alt="<?php the_title(); ?>" /> | |
<?php } else { ?> | |
<img src="<a href="/web/20120228235855/http://an-alternative-image.jpg"" rel="nofollow">http://an-alternative-image.jpg"</a>; alt="" /> | |
<?php } ?> | |
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> | |
<?php endwhile; ?> |
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 fb_move_admin_bar() { ?> | |
<style type="text/css"> | |
body { | |
margin-top: -28px; | |
padding-bottom: 28px; | |
} | |
body.admin-bar <a href="/web/20131207125717/http://search.twitter.com/search?q=%23wphead" class="tweet-hashtag">#wphead</a> { | |
padding-top: 0; | |
} | |
body.admin-bar <a href="/web/20131207125717/http://search.twitter.com/search?q=%23footer" class="tweet-hashtag">#footer</a> { |
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 echo my_excerpts(); ?> |
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('the_excerpt', 'my_excerpts'); | |
function my_excerpts($content = false) { | |
global $post; | |
$mycontent = $post->post_excerpt; | |
$mycontent = $post->post_content; | |
$mycontent = strip_shortcodes($mycontent); | |
$mycontent = str_replace(']]>', ']]>',$mycontent); | |
$mycontent = strip_tags($mycontent); | |
$excerpt_length = 55; | |
$words = explode(' ', $mycontent,$excerpt_length + 1); |
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( 'pre_site_transient_update_core', create_function( '$a', "return null;" ) ); | |
wp_clear_scheduled_hook( 'wp_version_check' ); |
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
remove_action( 'load-update-core.php', 'wp_update_plugins' ); | |
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) ); | |
wp_clear_scheduled_hook( 'wp_update_plugins' ); |
NewerOlder