PluginProbe ʕ •ᴥ•ʔ
پارسی دیت – Parsi Date / 4.0.0
پارسی دیت – Parsi Date v4.0.0
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
datepicker-rtl.php 4 years ago gutenberg-jalali-calendar.php 4 years ago lists-fix.php 4 years ago styles-fix.php 4 years ago widgets.php 4 years ago
styles-fix.php
40 lines
1 <?php
2
3 defined( 'ABSPATH' ) or exit( 'No direct script access allowed' );
4
5 /**
6 * Fix admin styles & TinyMCE editor
7 *
8 * @author Morteza Geransayeh
9 * @package WP-Parsidate
10 * @subpackage Admin/Styles
11 */
12
13 /**
14 * Fixes themes and plugins RTL style, they should be LTR
15 *
16 * @return void
17 * @since 2.0
18 */
19 function wpp_fix_editor_rtl() {
20 $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || wpp_is_active( 'dev_mode' ) ? '' : '.min';
21
22 wp_enqueue_style( 'functions', WP_PARSI_URL . "assets/css/admin-fix$suffix.css", false, WP_PARSI_VER, 'all' );
23 }
24
25 add_action( 'admin_print_styles-plugin-editor.php', 'wpp_fix_editor_rtl', 10 );
26 add_action( 'admin_print_styles-theme-editor.php', 'wpp_fix_editor_rtl', 10 );
27
28 /**
29 * Fixes TinyMCE font
30 *
31 * @return void
32 * @since 2.0
33 */
34 function wpp_fix_tinymce_font() {
35 $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG || wpp_is_active( 'dev_mode' ) ? '' : '.min';
36
37 add_editor_style( WP_PARSI_URL . "assets/css/editor$suffix.css" );
38 }
39
40 add_filter( 'init', 'wpp_fix_tinymce_font', 9 );