- updated states to work for user_id and post_id
- added states for partner page state publish-draft
This commit is contained in:
@@ -11,7 +11,7 @@ if (!defined('ABSPATH')) {
|
||||
|
||||
|
||||
|
||||
function display_page_css_CIPF($user_id = null) {
|
||||
function display_states_css_CIPF($user_id = null) {
|
||||
Plgntls::debug_infos();
|
||||
$css_for_states = array();
|
||||
Plgntls::add_to_front(array('css/display_states/_default.css'));
|
||||
@@ -92,6 +92,19 @@ function display_page_css_CIPF($user_id = null) {
|
||||
$css_for_states[] = 'css/display_states/type_virement.css';
|
||||
}
|
||||
|
||||
/*
|
||||
* page partenaire
|
||||
* - 'Publiee'
|
||||
* - 'Brouillon'
|
||||
*
|
||||
*/
|
||||
if (is_page_publish_CIPF($user_id)) {
|
||||
$css_for_states[] = 'css/display_states/page_partenaire_publish.css';
|
||||
}
|
||||
else if (is_page_draft_CIPF($user_id)) {
|
||||
$css_for_states[] = 'css/display_states/page_partenaire_draft.css';
|
||||
}
|
||||
|
||||
Plgntls::add_to_front($css_for_states);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user