diff --git a/wordpress/wp-admin/js/post.js b/wordpress/wp-admin/js/post.js
index 096ae2fe07f9d7118088e5ea6f8c47ef6dfc5589..516c9ab87734c8638eaba756e8cf5a929fbb7b00 100644
--- a/wordpress/wp-admin/js/post.js
+++ b/wordpress/wp-admin/js/post.js
@@ -713,9 +713,6 @@ jQuery(document).ready( function($) {
if ( attemptedDate > currentDate && $('#original_post_status').val() != 'future' ) {
publishOn = postL10n.publishOnFuture;
$('#publish').val( postL10n.schedule );
- } else if ( attemptedDate <= currentDate && $('#original_post_status').val() != 'publish' ) {
- publishOn = postL10n.publishOn;
- $('#publish').val( postL10n.publish );
} else {
publishOn = postL10n.publishOnPast;
$('#publish').val( postL10n.update );
diff --git a/wordpress/wp-content/themes/backer/footer.php b/wordpress/wp-content/themes/backer/footer.php
index 91b2d5d7aeb22cd2c091f9f7ebb3bc9221206983..6d174579a3e17562605b95ae03ce41a515e6453a 100644
--- a/wordpress/wp-content/themes/backer/footer.php
+++ b/wordpress/wp-content/themes/backer/footer.php
@@ -123,7 +123,16 @@
+
diff --git a/wordpress/wp-content/themes/backer/functions.php b/wordpress/wp-content/themes/backer/functions.php
index 8e2c2ad7989aec79423cc1aa610e8f3df78361ae..f25843916430297c02e264baa65b9bc6f8a58285 100644
--- a/wordpress/wp-content/themes/backer/functions.php
+++ b/wordpress/wp-content/themes/backer/functions.php
@@ -1,4 +1,64 @@
_x( 'Closed', 'post' ),
+ 'public' => true,
+ 'show_in_admin_all_list' => true,
+ 'show_in_admin_status_list' => true,
+ 'label_count' => _n_noop( 'Closed (%s)', 'Closed (%s)' )
+ ) );
+ register_post_status( 'completed', array(
+ 'label' => _x( 'Completed', 'post' ),
+ 'public' => true,
+ 'show_in_admin_all_list' => true,
+ 'show_in_admin_status_list' => true,
+ 'label_count' => _n_noop( 'Completed (%s)', 'Completed (%s)' )
+ ) );
+ register_post_status( 'needsediting', array(
+ 'label' => _x( 'Needs Editing', 'post' ),
+ 'public' => true,
+ 'show_in_admin_all_list' => true,
+ 'show_in_admin_status_list' => true,
+ 'label_count' => _n_noop( 'Needs Editing (%s)', 'Needs Editing (%s)' )
+ ) );
+}
+
+function append_project_status_list(){
+ global $post;
+ $label = '';
+ if($post->post_type == 'ignition_product'){
+ $post_value = "";
+ $original_status = "";
+ if($post->post_status == 'closed'){
+ $label = ' Closed';
+ $post_value = '$("#original_publish, #publish").val("Update");';
+ } else if($post->post_status == 'completed'){
+ $label = ' Completed';
+ $post_value = '$("#original_publish, #publish").val("Update");';
+ } else if($post->post_status == 'needsediting'){
+ $label = ' Needs Editing';
+ $post_value = '$("#original_publish, #publish").val("Update");';
+ }
+ echo '
+
+ ';
+ }
+}
+
/*---------------------------------
Setup OptionTree
------------------------------------*/
@@ -232,7 +292,7 @@ add_action( 'after_setup_theme', 'krown_setup' );
if ( ! function_exists( '_wp_render_title_tag' ) ) {
function theme_slug_render_title() {
- echo '
' . wp_title( '|', false, 'right' ) . "\n";
+ echo '' . wp_title( '|', false, 'right' ) . "\n";
}
add_action( 'wp_head', 'theme_slug_render_title' );
@@ -432,7 +492,7 @@ if ( ! function_exists( 'krown_excerptlength_post' ) ) {
// Length (words no)
function krown_excerptlength_post() {
- return 15;
+ return 15;
}
}
@@ -442,7 +502,7 @@ if ( ! function_exists( 'krown_excerptlength_post_big' ) ) {
// Length (words no)
function krown_excerptlength_post_big() {
- return 80;
+ return 80;
}
}
@@ -452,7 +512,7 @@ if ( ! function_exists( 'krown_excerptmore' ) ) {
// More text
function krown_excerptmore() {
- return ' ...';
+ return ' ...';
}
}
@@ -467,37 +527,37 @@ if ( ! function_exists( 'krown_excerpt' ) ) {
function krown_excerpt( $length_callback = '', $more_callback = 'krown_excerptmore' ) {
- global $post;
+ global $post;
- if ( function_exists( $length_callback ) ) {
+ if ( function_exists( $length_callback ) ) {
add_filter( 'excerpt_length', $length_callback );
- }
+ }
- if ( function_exists( $more_callback ) ){
+ if ( function_exists( $more_callback ) ){
add_filter( 'excerpt_more', $more_callback );
- }
+ }
- $output = get_the_excerpt();
+ $output = get_the_excerpt();
- if ( empty( $output ) ) {
+ if ( empty( $output ) ) {
- // If the excerpt is empty (on pages created 100% with shortcodes), we should take the content, strip shortcodes, remove all HTML tags, then return the correct number of words
+ // If the excerpt is empty (on pages created 100% with shortcodes), we should take the content, strip shortcodes, remove all HTML tags, then return the correct number of words
- $output = strip_tags( preg_replace( "~(?:\[/?)[^\]]+/?\]~s", '', $post->post_content ) );
- $output = explode( ' ', $output, $length_callback() );
- array_pop( $output );
- $output = implode( ' ', $output ) . $more_callback();
+ $output = strip_tags( preg_replace( "~(?:\[/?)[^\]]+/?\]~s", '', $post->post_content ) );
+ $output = explode( ' ', $output, $length_callback() );
+ array_pop( $output );
+ $output = implode( ' ', $output ) . $more_callback();
- } else {
+ } else {
- // Continue with the regular excerpt method
+ // Continue with the regular excerpt method
- $output = apply_filters( 'wptexturize', $output );
- $output = apply_filters( 'convert_chars', $output );
+ $output = apply_filters( 'wptexturize', $output );
+ $output = apply_filters( 'convert_chars', $output );
- }
+ }
- return $output;
+ return $output;
}
@@ -535,13 +595,13 @@ if ( ! function_exists( 'krown_search_form' ) ) {
function krown_search_form( $form ) {
- $form = '
+ $form = '
';
- return $form;
+ ';
+ return $form;
}
@@ -772,9 +832,9 @@ if ( ! function_exists( 'krown_custom_header' ) ) {
------------------------------------*/
function krown_custom_login_logo() {
- echo '';
+ echo '';
}
add_action( 'login_head', 'krown_custom_login_logo' );
@@ -863,11 +923,11 @@ function krown_sidebar_class() {
function krown_request_filter( $query_vars ) {
- if( isset( $_GET['s'] ) && empty( $_GET['s'] ) ) {
- $query_vars['s'] = " ";
- }
+ if( isset( $_GET['s'] ) && empty( $_GET['s'] ) ) {
+ $query_vars['s'] = " ";
+ }
- return $query_vars;
+ return $query_vars;
}
add_filter('request', 'krown_request_filter');
@@ -1006,21 +1066,21 @@ if ( ! function_exists( 'krown_mce_custom_styles' ) ) {
function krown_mce_custom_styles($settings) {
- $settings['theme_advanced_blockformats'] = 'p,h1,h2,h3,h4';
+ $settings['theme_advanced_blockformats'] = 'p,h1,h2,h3,h4';
- $style_formats = array(
- array('title' => 'Extreme', 'inline' => 'span', 'classes' => 'extreme'),
- array('title' => 'Large', 'inline' => 'span', 'classes' => 'large'),
- array('title' => 'Medium', 'inline' => 'span', 'classes' => 'medium'),
- array('title' => 'Regular', 'inline' => 'span', 'classes' => 'regular'),
- array('title' => 'Small', 'inline' => 'span', 'classes' => 'small'),
- array('title' => 'Cite', 'inline' => 'cite', 'classes' => '')
- );
+ $style_formats = array(
+ array('title' => 'Extreme', 'inline' => 'span', 'classes' => 'extreme'),
+ array('title' => 'Large', 'inline' => 'span', 'classes' => 'large'),
+ array('title' => 'Medium', 'inline' => 'span', 'classes' => 'medium'),
+ array('title' => 'Regular', 'inline' => 'span', 'classes' => 'regular'),
+ array('title' => 'Small', 'inline' => 'span', 'classes' => 'small'),
+ array('title' => 'Cite', 'inline' => 'cite', 'classes' => '')
+ );
- $settings['style_formats'] = json_encode( $style_formats );
+ $settings['style_formats'] = json_encode( $style_formats );
- return $settings;
-
+ return $settings;
+
}
}
@@ -1047,7 +1107,7 @@ if ( ! function_exists( 'krown_mce_buttons' ) ) {
function krown_mce_buttons( $buttons ) {
array_unshift( $buttons, 'fontsizeselect' );
- array_unshift( $buttons, 'styleselect');
+ array_unshift( $buttons, 'styleselect');
return $buttons;
}
@@ -1056,7 +1116,7 @@ if ( ! function_exists( 'krown_mce_buttons' ) ) {
add_filter( 'mce_buttons_2', 'krown_mce_buttons' );
/*---------------------------------
- Update Notice
+ Update Notice
------------------------------------*/
add_action( 'admin_notices', 'krown_update_notice' );
@@ -1065,12 +1125,12 @@ function krown_update_notice() {
if ( get_option( 'krown_koncept_version' ) != '1.1' ) {
- echo '
-
You have just updated to version 1.1 - Read the CHANGELOG
';
+ echo '
+
You have just updated to version 1.1 - Read the CHANGELOG
';
- printf(__('
Dismiss'), '?krown_update_done_do=1');
+ printf(__('
Dismiss'), '?krown_update_done_do=1');
- echo "
";
+ echo "
";
}
@@ -1079,99 +1139,99 @@ add_action( 'admin_init', 'krown_update_done_do' );
function krown_update_done_do() {
global $current_user;
- $user_id = $current_user->ID;
- if ( isset( $_GET['krown_update_done_do'] ) && '1' == $_GET['krown_update_done_do'] ) {
- update_option( 'krown_koncept_version', '1.1' );
+ $user_id = $current_user->ID;
+ if ( isset( $_GET['krown_update_done_do'] ) && '1' == $_GET['krown_update_done_do'] ) {
+ update_option( 'krown_koncept_version', '1.1' );
}
}
/*---------------------------------
- Navigation Walker
+ Navigation Walker
------------------------------------*/
class Krown_Nav_Walker extends Walker_Nav_Menu {
- function start_lvl( &$output, $depth=0, $args=array() ) {
- if ( $depth == 0 ) {
- $output .= '