Compare commits
No commits in common. "b8615ffd331759580953671d5ee60a339affeee1" and "7b0ee9cfcd8cfd46fc8bd241e9cd5ba5da9f35fb" have entirely different histories.
b8615ffd33
...
7b0ee9cfcd
|
|
@ -5,46 +5,56 @@
|
||||||
------------------------------------------------------------------*/
|
------------------------------------------------------------------*/
|
||||||
function dynamiques_custom_admin()
|
function dynamiques_custom_admin()
|
||||||
{
|
{
|
||||||
// wp_enqueue_style('admin_styles', get_template_directory_uri() . '/css/admin-style.css');
|
wp_enqueue_style('admin_styles', get_template_directory_uri() . '/css/admin-style.css');
|
||||||
wp_enqueue_style('admin_styles', get_stylesheet_directory_uri() . '/css/admin-style.css');
|
|
||||||
}
|
}
|
||||||
add_action('admin_enqueue_scripts', 'dynamiques_custom_admin');
|
|
||||||
// add_action('admin_head', 'dynamiques_custom_admin');
|
add_action('admin_head', 'dynamiques_custom_admin');
|
||||||
|
|
||||||
|
/* ----------------------------------------------------------------
|
||||||
|
##### REMOVE FROM ADMIN MENU
|
||||||
|
------------------------------------------------------------------*/
|
||||||
|
function custom_menu_page_removing()
|
||||||
|
{
|
||||||
|
remove_menu_page('edit.php'); // Hide Articles
|
||||||
|
remove_menu_page('edit-comments.php'); // Hide Commentaires
|
||||||
|
}
|
||||||
|
add_action('admin_menu', 'custom_menu_page_removing');
|
||||||
|
|
||||||
|
|
||||||
/* ----------------------------------------------------------------
|
/* ----------------------------------------------------------------
|
||||||
##### REMOVES FROM ADMIN BAR
|
##### REMOVES FROM ADMIN BAR
|
||||||
------------------------------------------------------------------*/
|
------------------------------------------------------------------*/
|
||||||
function dynamiques_admin_bar_render()
|
function mytheme_admin_bar_render()
|
||||||
{
|
{
|
||||||
global $wp_admin_bar;
|
global $wp_admin_bar;
|
||||||
$wp_admin_bar->remove_menu('comments');
|
$wp_admin_bar->remove_menu('comments');
|
||||||
}
|
}
|
||||||
add_action('wp_before_admin_bar_render', 'dynamiques_admin_bar_render');
|
add_action('wp_before_admin_bar_render', 'mytheme_admin_bar_render');
|
||||||
|
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
##### MODIFIER LE LIEN DU LOGO SUR LA BLADE DE CONNEXION À L'INTERFACE ADMIN
|
##### MODIFIER LE LIEN DU LOGO SUR LA BLADE DE CONNEXION À L'INTERFACE ADMIN
|
||||||
-------------------------------------------------------------------------------*/
|
-------------------------------------------------------------------------------*/
|
||||||
function dynamiques_change_login_logo_url($url)
|
function change_login_logo_url($url)
|
||||||
{
|
{
|
||||||
return site_url();
|
return site_url();
|
||||||
}
|
}
|
||||||
add_filter('login_headerurl', 'dynamiques_change_login_logo_url');
|
add_filter('login_headerurl', 'change_login_logo_url');
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
##### ENQUEUE DU CSS BLADE LOGIN ADMIN
|
##### ENQUEUE DU CSS BLADE LOGIN ADMIN
|
||||||
------------------------------------------------------------------------*/
|
------------------------------------------------------------------------*/
|
||||||
function dynamiques_enqueue_custom_login_stylesheet()
|
function enqueue_custom_login_stylesheet()
|
||||||
{
|
{
|
||||||
wp_enqueue_style('custom-login', get_stylesheet_directory_uri() . '/style-login.css');
|
wp_enqueue_style('custom-login', get_stylesheet_directory_uri() . '/style-login.css');
|
||||||
}
|
}
|
||||||
add_action('login_enqueue_scripts', 'dynamiques_enqueue_custom_login_stylesheet');
|
add_action('login_enqueue_scripts', 'enqueue_custom_login_stylesheet');
|
||||||
|
|
||||||
|
|
||||||
/* ----------------------------------------------------------------------
|
/* ----------------------------------------------------------------------
|
||||||
PASSER LES COULEURS DU THEMES AU COLOR PICKER ACF
|
PASSER LES COULEURS DU THEMES AU COLOR PICKER ACF
|
||||||
------------------------------------------------------------------------*/
|
------------------------------------------------------------------------*/
|
||||||
function dynamiques_change_acf_input_colors()
|
function change_acf_input_colors()
|
||||||
{ ?>
|
{ ?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
(function($) {
|
(function($) {
|
||||||
|
|
@ -62,4 +72,4 @@ function dynamiques_change_acf_input_colors()
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
</script>
|
</script>
|
||||||
<?php }
|
<?php }
|
||||||
add_action('acf/input/admin_footer', 'dynamiques_change_acf_input_colors');
|
add_action('acf/input/admin_footer', 'change_acf_input_colors');
|
||||||
|
|
|
||||||
|
|
@ -20,17 +20,3 @@
|
||||||
@apply bg-blue-300;
|
@apply bg-blue-300;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body.post-type-articles {
|
|
||||||
.wp-list-table {
|
|
||||||
#revue_issue_number {
|
|
||||||
width: 90px;
|
|
||||||
|
|
||||||
@apply text-center;
|
|
||||||
}
|
|
||||||
|
|
||||||
td.revue_issue_number.column-revue_issue_number {
|
|
||||||
@apply text-center;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@
|
||||||
@import './components/authors-last-publications.css';
|
@import './components/authors-last-publications.css';
|
||||||
@import './components/article-references.css';
|
@import './components/article-references.css';
|
||||||
@import './components/article-informations.css';
|
@import './components/article-informations.css';
|
||||||
@import './components/search-module.css';
|
|
||||||
|
|
||||||
/* ########### PAGES ############ */
|
/* ########### PAGES ############ */
|
||||||
@import './pages/singles.css';
|
@import './pages/singles.css';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user