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 | |
/* | |
* | |
* Plugin Name: Google News Parser | |
* Plugin URI: http://zachbrowne.com | |
* Description: Imports news from Google and creates posts for them. For information regarding this | |
* plugin, please contact the developer: <strong>zachbrowne@gmail.com</strong> | |
* Version: 1.0 | |
* Author: Zach Browne |
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
<HTML> | |
<head> <title> My RSS Feed </title> </head> | |
<body> | |
<? | |
include 'rss_get.php'; | |
?> |
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
.feed { | |
margin-left: 3px; | |
padding: 0 0 0 19px; | |
background: url("../images/feed-icon-14x14.png") no-repeat 0 50%; | |
} |
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
.feed-list { | |
margin: 0 0 15px 15px; | |
padding: 0; | |
list-style-type: none; | |
} | |
.feed-list li { | |
margin: 0 0 10px 0; | |
padding: 0; | |
list-style-type: none; |
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
.feed-button { | |
padding: 10px 0; | |
} | |
.feed-button a { | |
color: #666; | |
padding: 10px 15px 10px 36px; | |
background: #ccc url("../images/feed-icon-14x14.png") no-repeat 15px 50%; | |
border-top: 1px solid #e2e2e2; | |
border-right: 1px solid #818181; |
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
# Commands to backup a website from root access to ssh with mysql database | |
cd to directory of website | |
# Compress | |
tar czf filename.tar.gz * | |
mysqldump -u root -ppassword databasename | gzip -9 > filename.sql.gz | |
# Decompress | |
tar xzf filename.tar.gz | |
gunzip filename.sql.gz |
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
# Run these three commands when moving your WordPress website from one domain to another | |
UPDATE wp_options SET option_value = replace(option_value, 'http://old-domain.com', 'http://new-domain.com') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'http://old-domain.com','http://new-domain.com'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'http://old-domain.com', 'new-domain.com'); |
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 menu to footer | |
register_nav_menu('footer','Footer Menu'); | |
function custom_footer_menu() { | |
wp_nav_menu(array( | |
'container' => '', | |
'menu_id' => 'footer_nav', | |
'fallback_cb' => 'thesis_nav_menu', | |
'theme_location' => 'footer', | |
)); | |
} |
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
# Move menu below header | |
remove_action('thesis_hook_before_header', 'thesis_nav_menu'); | |
add_action('thesis_hook_after_header', 'thesis_nav_menu'); | |
# |
OlderNewer