- updated states to work for user_id and post_id

- added states for partner page state publish-draft
This commit is contained in:
asus
2024-04-01 23:09:22 +02:00
parent 4d7906be40
commit fb146ecda4
13 changed files with 354 additions and 60 deletions

View File

@@ -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);
}