PluginProbe ʕ •ᴥ•ʔ
پارسی دیت – Parsi Date / 2.2.2
پارسی دیت – Parsi Date v2.2.2
6.1 5.1.6 5.1.7 5.1.8 5.1.8.2 6.0 trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.0.0-alpha 2.1 2.1.1 2.1.2 2.1.3 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0.1 2.3.0.2 2.3.1 2.3.2 2.3.3 2.3.4 3.0.1 3.0.2 3.0.3 4.0.0 4.0.1 4.0.2 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5
wp-parsidate / includes / admin / styles-fix.php
wp-parsidate / includes / admin Last commit date
lists-fix.php 9 years ago other-fix.php 9 years ago styles-fix.php 9 years ago
styles-fix.php
52 lines
1 <?php
2 /**
3 * Fix admin styles & TinyMCE editor
4 *
5 * @author Mobin Ghasempoor
6 * @package WP-Parsidate
7 * @subpackage Admin/Styles
8 */
9
10 /**
11 * Fixes themes and plugins RTL style, they should be LTR
12 *
13 * @since 2.0
14 * @return void
15 */
16 function wpp_fix_editor_rtl() {
17 wp_enqueue_style( 'functions', WP_PARSI_URL . 'assets/css/admin-fix.css', false, WP_PARSI_VER, 'all' );
18 }
19 add_action( 'admin_print_styles-plugin-editor.php', 'wpp_fix_editor_rtl', 10 );
20 add_action( 'admin_print_styles-theme-editor.php', 'wpp_fix_editor_rtl', 10 );
21
22 /**
23 * Fixes TinyMCE font
24 *
25 * @since 2.0
26 * @return void
27 */
28 function wpp_fix_tinymce_font() {
29 global $wpp_settings;
30
31 add_editor_style( WP_PARSI_URL . 'assets/css/editor.css' );
32 if ( ! isset( $wpp_settings[ 'droidsans_editor' ] ) || $wpp_settings[ 'droidsans_editor' ] != 'disable' ) {
33 add_editor_style( WP_PARSI_URL . 'assets/css/editor-font.css' );
34 }
35 }
36 add_filter( 'init', 'wpp_fix_tinymce_font', 9 );
37
38 /**
39 * Style for whole Admin side
40 *
41 * @since 2.1.5
42 * @return void
43 */
44 function wpp_enqueue_admin() {
45 global $wpp_settings;
46
47 if ( ! isset( $wpp_settings[ 'droidsans_admin' ] ) || $wpp_settings[ 'droidsans_admin' ] != 'disable' ) {
48 wp_enqueue_style( 'wp-parsi-fonts', WP_PARSI_URL . 'assets/css/admin-fonts.css', false, WP_PARSI_VER, 'all' );
49 wp_enqueue_style( 'wp-parsi-admin', WP_PARSI_URL . 'assets/css/admin-styles.css', false, WP_PARSI_VER, 'all' );
50 }
51 }
52 add_action( 'admin_enqueue_scripts', 'wpp_enqueue_admin' );