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_action( 'admin_init', 'ef_usergroups_cap_fix' ); | |
function ef_usergroups_cap_fix() { | |
global $wp_roles; | |
if ( ! isset( $wp_roles ) ) | |
$wp_roles = new WP_Roles(); | |
// Add necessary capabilities to allow management of usergroups and post subscriptions | |
// edit_post_subscriptions - administrator + editor |
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
* { | |
-webkit-transition: 1s; | |
-moz-transition: 1s; /* Firefox 4+ */ | |
-ms-transition: 1s; /* IE doesn't actually support transitions, but we'll humour Microsoft */ | |
-o-transition: 1s; /* Opera 10.5 */ | |
transition: 1s; | |
} |
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: Edit Flow - Reviewer Add-on | |
Plugin URI: http://editflow.wordpress.com | |
Description: An add-on for Edit Flow that allows you to assign review groups for users that will be notified any time a user updates a post. | |
Author: Mohammad Jangda | |
Version: 0.1 | |
Author URI: http://www.digitalize.ca | |
Copyright 2009-2010 Mohammad Jangda |
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
<h3>Upcoming Posts</h3> | |
<ul> | |
<?php | |
global $post; | |
$myposts = get_posts( array( 'post_status' => 'queued' ) ); | |
foreach($myposts as $post) : setup_postdata($post); ?> | |
<li><?php the_title(); ?></li> | |
<?php endforeach; ?> | |
</ul> |
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: Public Preview | |
Plugin URI: http://digitalize.ca | |
Description: Enables unauthenticated users to preview posts with a secret link! | |
Author: Mohammad Jangda | |
Version: 0.1 | |
Author URI: http://digitalize.ca/ | |
*/ |
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: Confirm On Publish | |
Description: Prompts you to confirm if you want to publish or update a post | |
*/ | |
add_action( 'load-post.php', 'x_confirm_before_publish' ); | |
function x_confirm_before_publish() { | |
?> |
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 | |
x_add_metadata_field('x_fieldCustomList2', array( 'post' ), array( | |
'label' => 'Post Action Items (With Links!)' | |
, 'display_callback' => 'fieldCustomList2_display' | |
, 'sanitize_callback' => 'fieldCustomList2_sanitize' | |
)); | |
function fieldCustomList2_display( $field_slug, $field, $object_type, $object_id, $value ) { | |
$value = (array) $value; | |
$field_class = sprintf( 'field-%s', $field_slug ); |
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 | |
x_add_metadata_field( 'field-1', 'post', array( | |
'display_column' => true | |
) ); | |
?> |
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 | |
// Edit these to match your environment settings | |
define( 'BASE_PATH', '/home/username/webapps' ); | |
// This is the path to the git executable | |
define( 'GIT_PATH', get_full_path( '/git/bin/git' ) ); | |
// Edit this array so the key matches the github repo name and the value is path of the repo relative to the BASE_PATH | |
$repository_paths = array( | |
'test' => '/git-test' |
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
cd /home/username/webapps/wordpress/wp-content/plugins/ | |
git clone git@github.com:danielbachhuber/Edit-Flow.git |