Permalink
Browse files

Revert 66499d6^..HEAD

  • Loading branch information...
1 parent 66499d6 commit af01fc7775d34720a9b79c1d819713787f752b55 @cbavota cbavota committed Apr 5, 2012
@@ -1,9 +0,0 @@
-SocialStock Changelog
-
-Version 1.0.1 11/14/2011
-- Updated for WordPress 3.3 and PressWork 1.0.4
-- Added attachment.php template
-- Fixed CSS issues
-
-Version 1.0 09/19/2011
-Official Release
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Binary file not shown.
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
Deleted file not rendered
@@ -1,25 +0,0 @@
-<?php
-/**
- * Adds action blocks
- *
- * @since PressWork 1.0
- */
-function pw_actionBlock($id, $r = null) {
- $blocks = array('_top', '_middle', '_bottom');
- foreach($blocks as $block) {
- if(pw_theme_option('toolbox')=="on" && pw_theme_option('hooks')=="on" && current_user_can('edit_theme_options')) echo '<div class="hooks clear fl"><p class="hooks-title">'.$id.$block.'</p>';
- do_action($id.$block, $r);
- if(pw_theme_option('toolbox')=="on" && pw_theme_option('hooks')=="on" && current_user_can('edit_theme_options')) echo '</div>';
- }
-}
-
-/**
- * Adds action calls
- *
- * @since PressWork 1.0
- */
- function pw_actionCall($id) {
- if(pw_theme_option('toolbox')=="on" && pw_theme_option('hooks')=="on" && current_user_can('edit_theme_options')) echo '<div class="hooks clear fl"><p class="hooks-title">'.$id.'</p>';
- do_action($id);
- if(pw_theme_option('toolbox')=="on" && pw_theme_option('hooks')=="on" && current_user_can('edit_theme_options')) echo '</div>';
-}
@@ -1,88 +0,0 @@
-<?php
-if(!function_exists('pw_layout_option')) :
-/**
- * This adds a panel on the post/page edit screen to select
- * a full width (no sidebar) layout for the specific post/page
- *
- * @since PressWork 1.0
- */
- function pw_layout_option() {
- global $post;
- $layout = get_post_meta($post->ID, 'pw_single_layout', true);
-
- if(function_exists('wp_nonce_field')) wp_nonce_field('presswork_nonce', 'presswork_nonce');
-
- echo '<table border="0" cellpadding="0" cellspacing="5">';
- echo '<tr><td><input name="pw_single_layout" type="radio" value="1"'; if($layout == 1 || !$layout) echo ' checked="checked"'; echo ' /></td><td>'.__('Default', "presswork").'</td></tr>';
- echo '<tr><td><input name="pw_single_layout" type="radio" value="2"'; checked($layout, 2); echo ' /></td><td>'.__('Full width', "presswork").'</td></tr>';
- echo '</table>';
- }
-endif;
-
-if(!function_exists('pw_create_meta_box')) :
-/**
- * This initializes the full width meta box
- *
- * @since PressWork 1.0
- */
- function pw_create_meta_box() {
- if ( function_exists('add_meta_box') ) {
- add_meta_box( 'presswork-layout-options', __('Layout', "presswork"), 'pw_layout_option', 'post', 'side', 'low' );
- add_meta_box( 'presswork-layout-options', __('Layout', "presswork"), 'pw_layout_option', 'page', 'side', 'low' );
- }
- }
-endif;
-
-if(!function_exists('pw_save_postdata')) :
-/**
- * This saves the full width meta box option
- *
- * @since PressWork 1.0
- */
- function pw_save_postdata($post_id) {
- if(defined('DOING_AUTOSAVE') && DOING_AUTOSAVE)
- return;
-
- if(!empty($_POST['presswork_nonce']) && !wp_verify_nonce($_POST['presswork_nonce'], "presswork_nonce"))
- return;
-
- if(!empty($_POST['post_type'])) {
- if('page'==$_POST['post_type']) {
- if(!current_user_can('edit_page', $post_id))
- return;
- } else {
- if(!current_user_can('edit_post', $post_id))
- return;
- }
- }
-
- if(!empty($_POST['pw_single_layout'])) {
- $pw_single_layout = (int) $_POST['pw_single_layout'];
- update_post_meta($post_id, 'pw_single_layout', $pw_single_layout);
- }
- }
-endif;
-add_action('add_meta_boxes', 'pw_create_meta_box');
-add_action('save_post', 'pw_save_postdata');
-
-if(!function_exists('pw_fullWidth')) :
-/**
- * Adds the fullwidth class to the body tag
- *
- * @since PressWork 1.0
- */
- function pw_fullWidth($classes = '') {
- global $post;
- $added = '';
- if(!empty($post)) {
- $full = get_post_meta($post->ID, 'pw_single_layout', true);
- if($full==2 && is_singular()) {
- $classes[] = 'fullwidth';
- $added = true;
- }
- }
- if(pw_theme_option('layout_option')=="maincontent" && empty($added)) $classes[] = 'fullwidth';
- return $classes;
- }
-endif;
-add_filter('body_class','pw_fullWidth');
@@ -1,31 +0,0 @@
-<?php
-/**
- * Add more Google Fonts by going to http://www.google.com/webfonts
- * We have included the top 20 most popular fonts to get you started
- *
- * @since PressWork 1.0
- */
-if(empty($pw_google_fonts)) {
- $pw_google_fonts = array(
- "Quattrocento",
- "Droid Sans",
- "Droid Serif",
- "Lobster",
- "PT Sans",
- "Yanone Kaffeesatz",
- "Arvo",
- "Ubuntu",
- "Open Sans",
- "Pacifico",
- "Calligraffitti",
- "Reenie Beanie",
- "Crafty Girls",
- "Tangerine",
- "Oswald",
- "Shadows Into Light",
- "Nobile",
- "Raleway",
- "Rock Salt",
- "Copse"
- );
-}
@@ -1,32 +0,0 @@
-<?php
-/**
- * PressWork's welcome screen. Displays the first time PressWork has
- * been activated.
- *
- * @stored in pw_theme_option("welcome_screen")
- * @since PressWork 1.0
- */
-function pw_welcome_screen() {
- ?>
- <div id="pw_welcome_screen">
- <div id="pw-logo">Welcome to</div>
- <div class="welcome-box">
- <p class="brain-icon clear"><span></span><strong><?php _e('PressWork Settings', "presswork"); ?></strong> - <?php _e('Turn on the Drag &amp; Drop Editor, Hooks &amp; Functions, or even Reset all options if you mess up.', "presswork"); ?></p>
- <p class="layout-icon"><span></span><strong><?php _e('Layouts', "presswork"); ?></strong> - <?php _e('This panel allows you to modify widths and margins. You can also add your own logo, sidebars &amp; more.', "presswork"); ?></p>
- <p class="color-icon clear"><span></span><strong><?php _e('Colors', "presswork"); ?></strong> - <?php _e('This is where you can change the colors for links, main text, menus, post titles, backgrounds &amp; more.', "presswork"); ?></p>
- <p class="fonts-icon"><span></span><strong><?php _e('Google Fonts', "presswork"); ?></strong> - <?php _e('PressWork comes with the top 20 most popular Google Fonts. You can easily add more if you like.', "presswork"); ?></p>
- <p class="social-icon clear"><span></span><strong><?php _e('Social Networking', "presswork"); ?></strong> - <?php _e('Enter your Twitter, Facebook &amp; Flickr usernames so people can find you.', "presswork"); ?></p>
- <p class="save-icon"><span></span><strong><?php _e('Save', "presswork"); ?></strong> - <?php _e('Got everything set up the way you want? Better make sure to click Save or you might lose your settings.', "presswork"); ?></p>
- </div>
- <div id="pw_version"><?php _e('version', "presswork"); ?> <?php echo PW_THEME_VERSION; ?></div>
- <a href="javascript:void(0)" id="close-welcome"><?php _e('Close', "presswork"); ?></a>
- <div class="close-arrow"><?php _e('Close the<br />Welcome Screen', "presswork"); ?></div>
- </div>
- <div id="pw_fadeback">
- <div class="toolbox-arrow"><?php _e('The PressWork<br />Toolbox', "presswork"); ?></div>
- <div class="adminbar-arrow"><?php _e('The PressWork<br />Admin Page', "presswork"); ?></div>
- </div>
- <?php
-}
-
-
@@ -1,71 +0,0 @@
-<?php
-/**
- * Functionality for Slideshow widget
- *
- * @since PressWork 1.0
- */
-class PW_Slideshow_Widget extends WP_Widget {
- function PW_Slideshow_Widget() {
- $widget_ops = array('classname' => 'pw_slideshow', 'description' => __('Add a featured slideshow', "presswork") );
- $this->WP_Widget('pw_slideshow', __('PW - Slideshows', "presswork"), $widget_ops);
- }
-
- function widget($args, $instance) {
- extract($args, EXTR_SKIP);
- $title = empty($instance['title']) ? '' : apply_filters('widget_title', $instance['title']);
-
- $settings = array(
- 'type' => $instance['type'],
- 'cat' => $instance['cat'],
- 'postnum' => $instance['postnum'],
- 'width' => $instance['width'],
- 'height' => $instance['height'],
- 'excerpt' => $instance['excerpt']
- );
- echo $before_widget;
- if(!empty($title)) echo $before_title . $title . $after_title; else echo '<h1 class="assistive-text">Featured slideshow</h1>';
- pw_slideshow($settings);
- echo $after_widget;
- }
-
- function form($instance) {
- $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'type' => 'scrollerota', 'postnum' => '4', 'width' => pw_theme_option('content_width'), 'height' => 260, 'cat' => '', 'excerpt' => 35 ) );
- $title = strip_tags($instance['title']);
- $type = strip_tags($instance['type']);
- $postnum = strip_tags($instance['postnum']);
- $width = strip_tags($instance['width']);
- $height = strip_tags($instance['height']);
- $cat = strip_tags($instance['cat']);
- $excerpt = strip_tags($instance['excerpt']);
- $selectname = $this->get_field_name('cat');
- ?>
- <p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title', "presswork"); ?>: <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>
- <p><label for="<?php echo $this->get_field_id('type'); ?>"><?php _e('Type', "presswork"); ?>:
- <select id="<?php echo $this->get_field_id('type'); ?>" name="<?php echo $this->get_field_name('type'); ?>">
- <option class="level-0" value="faderota" <?php selected($type, "faderota"); ?>>Fade</option>
- <option class="level-0" value="scrollerota" <?php selected($type, "scrollerota"); ?>>Scroll</option>
- <option class="level-0" value="sliderota" <?php selected($type, "sliderota"); ?>>Slide</option>
- </select>
- </label></p>
- <p><label for="<?php echo $this->get_field_id('postnum'); ?>"><?php _e('Number of posts', "presswork"); ?>: <input class="widefat" id="<?php echo $this->get_field_id('postnum'); ?>" name="<?php echo $this->get_field_name('postnum'); ?>" type="text" value="<?php echo esc_attr($postnum); ?>" /></label></p>
- <p><label for="<?php echo $this->get_field_id('width'); ?>"><?php _e('Width', "presswork"); ?>: <input class="widefat" id="<?php echo $this->get_field_id('width'); ?>" name="<?php echo $this->get_field_name('width'); ?>" type="text" value="<?php echo esc_attr($width); ?>" /></label></p>
- <p><label for="<?php echo $this->get_field_id('height'); ?>"><?php _e('Height', "presswork"); ?>: <input class="widefat" id="<?php echo $this->get_field_id('height'); ?>" name="<?php echo $this->get_field_name('height'); ?>" type="text" value="<?php echo esc_attr($height); ?>" /></label></p>
- <p><label for="<?php echo $this->get_field_id('excerpt'); ?>"><?php _e('Excerpt length', "presswork"); ?>: <input class="widefat" id="<?php echo $this->get_field_id('excerpt'); ?>" name="<?php echo $this->get_field_name('excerpt'); ?>" type="text" value="<?php echo esc_attr($excerpt); ?>" /></label></p>
- <p><label for="<?php echo $this->get_field_id('cat'); ?>"><?php _e('Category', "presswork"); ?>: <?php wp_dropdown_categories('show_option_all=All&hide_empty=0&name='.$selectname.'&selected='.$cat); ?></label></p>
- <?php
-
- }
-
- function update($new_instance, $old_instance) {
- $instance = $old_instance;
- $instance['title'] = strip_tags($new_instance['title']);
- $instance['type'] = strip_tags($new_instance['type']);
- $instance['postnum'] = strip_tags($new_instance['postnum']);
- $instance['width'] = strip_tags($new_instance['width']);
- $instance['height'] = strip_tags($new_instance['height']);
- $instance['excerpt'] = strip_tags($new_instance['excerpt']);
- $instance['cat'] = strip_tags($new_instance['cat']);
- return $instance;
- }
-}
-register_widget('PW_Slideshow_Widget');

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Binary file not shown.
View
@@ -1,31 +0,0 @@
-<?php
-/**
- * The main template file.
- *
- * This is the most generic template file in a WordPress theme
- * and one of the two required files for a theme (the other being style.css).
- * It is used to display a page when nothing more specific matches a query.
- * E.g., it puts together the home page when no home.php file exists.
- * Learn more: http://codex.wordpress.org/Template_Hierarchy
- *
- * Calls pw_get_element() to display elements according to how they have
- * been placed using the drag and drop function.
- *
- * @since PressWork 1.0
- */
-
-get_header(); ?>
- <?php
- $layout = pw_theme_option('layout_option');
- if(is_singular()) {
- $fullwidth = get_post_meta($post->ID, 'pw_single_layout', true);
- if($fullwidth==2) $layout = "maincontent";
- }
- $layout = explode(",", $layout);
- $i = 1;
- foreach($layout as $elem) {
- pw_get_element($elem, "el".$i);
- $i++;
- }
- ?>
-<?php get_footer(); ?>
View
Deleted file not rendered

0 comments on commit af01fc7

Please sign in to comment.