Permalink
Browse files

changed the link to the forums

start of adding the facebooklike widget

Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
  • Loading branch information...
1 parent cb73725 commit fd36e985ae1db417d42d531dcc98fa2bfa50a0f3 Philip M. Hofer (Frumph) committed Dec 12, 2010
Showing with 57 additions and 5 deletions.
  1. +6 −2 changelog.txt
  2. +1 −1 functions.php
  3. +1 −1 options/themestyle.php
  4. +1 −1 style.css
  5. +48 −0 widgets/facebooklike.php
View
@@ -1,4 +1,7 @@
-2.9.2.27
+2.9.2.28
+change the forum url to http://comicpress.net/forum/ bbpress wasnt working out, so switched to simple:press
+
+2.9.2.27
Stylized the control panel and dropdown archive boxes
fixed notice in control panel widget
sharethis_title, subscribe_title were missing from defaults being set in the comic-navigation.php, set em
@@ -12,8 +15,9 @@ subcontent-wrapper is now available on *all* layout styles
font-size for .footer-text is now 12px; as default (the generated info at the bottom)
latest thumbnail widget you can now choose to show the first in the category as well as a random comic from that category, it will not display the same comic as the current comic thats being viewed.
removing association to comicpress.org and now using comicpress.net
-changed base coloration of links from #f00 to color: #012876; with an a:visited color that i'm still working out, so that if someone visited a link it will differ slightly in color.
+changed base coloration of links from red to a blue color with an a:visited color, so that if someone visited a link it will differ slightly in color.
^ ie moved from red links to blue links to denote the change to comicpress.net
+added link to the tech support forums in the comicpress options http://forum.frumph.net/
2.9.2.26
changed all the bloginfo()'s to appropriate home_url() site_url() get_template_directory_uri()
View
@@ -497,7 +497,7 @@ function comicpress_themeinfo($whichinfo = null) {
$comicpress_coreinfo = wp_upload_dir();
$comicpress_addinfo = array(
'upload_path' => get_option('upload_path'),
- 'version' => '2.9.2.27',
+ 'version' => '2.9.2.28',
'siteurl' => trailingslashit(get_option('siteurl')),
'home' => trailingslashit(home_url()),
'comiccat' => $comiccat,
View
@@ -11,7 +11,7 @@ function showimage(sel,pic) {
<div class="comicpress-options">
<div class="cpadmin-footer">
- <div class="comicpress-forum">Forums are now at <a href="http://forum.frumph.net/">http://forum.frumph.net/</a> for Technical Assistance</div>
+ <div class="comicpress-forum">Forums are now at <a href="http://comicpress.net/forum/">http://comicpress.net/forum/</a> for Technical Assistance</div>
<div id="comicpress-version-title"><a href="http://comicpress.net/">ComicPress <?php echo comicpress_themeinfo('version'); ?></a></div>
<br />
<?php _e('Developed and maintained by','comicpress'); ?> <a href="http://frumph.net/">Philip M. Hofer</a> <small>(<a href="http://frumph.net/">Frumph</a>)</small>, <?php _e('Originally created by','comicpress'); ?> <a href="http://mindfaucet.com/">Tyler Martin</a><br />
View
@@ -6,7 +6,7 @@ Description: Publish a comic with WordPress. <a href="http://comicpress.net">Vis
Author: Philip M. Hofer
Author URI: http://frumph.net
Tags: White, Two-Columns, Three-Columns, left-sidebar, right-sidebar, fixed-width, custom-header, theme-options, threaded-comments, sticky-post, translation-ready
-Version: 2.9.2.27
+Version: 2.9.2.28
License: GNU General Public License, v3 (or newer)
License URI: http://www.opensource.org/licenses/gpl-3.0.html
.
View
@@ -0,0 +1,48 @@
+<?php
+/*
+Widget Name: Facebook Like
+Widget URI: http://comicpress.net/
+Description: Displays a Facebook "Like" button.
+Author: Philip M. Hofer (Frumph)
+Author URI: http://frumph.net/
+Version: 1.03
+*/
+
+class comicpress_facebook_like_widget extends WP_Widget {
+
+ function comicpress_facebook_like_widget($skip_widget_init = false) {
+ if (!$skip_widget_init) {
+ $widget_ops = array('classname' => __CLASS__, 'description' => __('Displays a Facebook "like" Button (For Comic sidebars or single pages only)','comicpress') );
+ $this->WP_Widget(__CLASS__, __('Facebook Like','comicpress'), $widget_ops);
+ }
+ }
+
+ function widget($args, $instance) {
+ global $post;
+ extract($args, EXTR_SKIP);
+
+ echo $before_widget;
+ $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
+ if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }; ?>
+ <h2 class="randomcomic"><a href="/?randomcomic&nocache=1"><span class="random-comic-icon">?</span> <?php _e('Random Comic','comicpress'); ?></a></h2>
+ <?php
+ echo $after_widget;
+ }
+
+ function update($new_instance, $old_instance) {
+ $instance = $old_instance;
+ $instance['title'] = strip_tags($new_instance['title']);
+ return $instance;
+ }
+
+ function form($instance) {
+ $instance = wp_parse_args( (array) $instance, array( 'title' => '' ) );
+ $title = strip_tags($instance['title']);
+ ?>
+ <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','comicpress'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo esc_attr($title); ?>" /></label></p>
+ <?php
+ }
+}
+register_widget('comicpress_facebook_like_widget');
+
+?>

0 comments on commit fd36e98

Please sign in to comment.