Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/herald/assets/css/admin
File: dynamic-editor-css.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/* Font styles */
[2] Fix | Delete
$main_font = herald_get_font_option( 'main_font' );
[3] Fix | Delete
$h_font = herald_get_font_option( 'h_font' );
[4] Fix | Delete
[5] Fix | Delete
[6] Fix | Delete
/* Font sizes */
[7] Fix | Delete
$font_size_p = absint( herald_get_option( 'font_size_p' ) );
[8] Fix | Delete
$font_size_excerpt_text = absint( herald_get_option( 'font_size_excerpt_text' ) );
[9] Fix | Delete
$font_size_meta_data_smaller = absint( herald_get_option( 'font_size_meta_data_smaller' ) );
[10] Fix | Delete
$font_size_meta_data_bigger = absint( herald_get_option( 'font_size_meta_data_bigger' ) );
[11] Fix | Delete
$font_size_h1 = absint( herald_get_option( 'font_size_h1' ) );
[12] Fix | Delete
$font_size_h2 = absint( herald_get_option( 'font_size_h2' ) );
[13] Fix | Delete
$font_size_h3 = absint( herald_get_option( 'font_size_h3' ) );
[14] Fix | Delete
$font_size_h4 = absint( herald_get_option( 'font_size_h4' ) );
[15] Fix | Delete
$font_size_h5 = absint( herald_get_option( 'font_size_h5' ) );
[16] Fix | Delete
$font_size_h6 = absint( herald_get_option( 'font_size_h6' ) );
[17] Fix | Delete
$font_size_h7 = absint( herald_get_option( 'font_size_h7' ) );
[18] Fix | Delete
$font_size_small = absint( herald_get_option( 'font_size_small' ) );
[19] Fix | Delete
[20] Fix | Delete
/* General styles */
[21] Fix | Delete
$body_background = herald_get_bg_option('body_background');
[22] Fix | Delete
$content_layout = herald_get_option('content_layout');
[23] Fix | Delete
$color_content_bg = esc_attr(herald_get_option( 'color_content_bg' ));
[24] Fix | Delete
$color_content_title = esc_attr(herald_get_option( 'color_content_title' ));
[25] Fix | Delete
$color_content_txt = esc_attr(herald_get_option( 'color_content_txt' ));
[26] Fix | Delete
$color_content_acc = esc_attr(herald_get_option( 'color_content_acc' ));
[27] Fix | Delete
$color_content_meta = esc_attr(herald_get_option( 'color_content_meta' ));
[28] Fix | Delete
[29] Fix | Delete
[30] Fix | Delete
?>
[31] Fix | Delete
[32] Fix | Delete
/* Font sizes */
[33] Fix | Delete
.editor-styles-wrapper h1,
[34] Fix | Delete
.editor-styles-wrapper.edit-post-visual-editor .editor-post-title__block .editor-post-title__input{
[35] Fix | Delete
font-size: <?php echo esc_attr( $font_size_h1 ); ?>px;
[36] Fix | Delete
}
[37] Fix | Delete
.editor-styles-wrapper h2{ font-size: <?php echo esc_attr( $font_size_h2 ); ?>px; }
[38] Fix | Delete
.editor-styles-wrapper h3{ font-size: <?php echo esc_attr( $font_size_h3 ); ?>px; }
[39] Fix | Delete
.editor-styles-wrapper h4{ font-size: <?php echo esc_attr( $font_size_h4 ); ?>px; }
[40] Fix | Delete
.editor-styles-wrapper h5{ font-size: <?php echo esc_attr( $font_size_h5 ); ?>px; }
[41] Fix | Delete
.editor-styles-wrapper h6{ font-size: <?php echo esc_attr( $font_size_h6 ); ?>px; }
[42] Fix | Delete
[43] Fix | Delete
.edit-post-visual-editor.editor-styles-wrapper{
[44] Fix | Delete
font-size: <?php echo esc_attr( $font_size_p ); ?>px;
[45] Fix | Delete
}
[46] Fix | Delete
.edit-post-visual-editor.editor-styles-wrapper {
[47] Fix | Delete
background-color: <?php echo esc_attr( $color_content_bg ); ?>;
[48] Fix | Delete
color: <?php echo esc_attr( $color_content_txt ); ?>;
[49] Fix | Delete
font-family: <?php echo wp_kses_post( $main_font['font-family'] ); ?>;
[50] Fix | Delete
font-weight: <?php echo esc_attr( $main_font['font-weight'] ); ?>;
[51] Fix | Delete
<?php if ( isset( $main_font['font-style'] ) && !empty( $main_font['font-style'] ) ):?>
[52] Fix | Delete
font-style: <?php echo esc_attr( $main_font['font-style'] ); ?>;
[53] Fix | Delete
<?php endif; ?>
[54] Fix | Delete
}
[55] Fix | Delete
[56] Fix | Delete
[57] Fix | Delete
/* Typography styles */
[58] Fix | Delete
[59] Fix | Delete
.editor-styles-wrapper h1,
[60] Fix | Delete
.editor-styles-wrapper.edit-post-visual-editor .editor-post-title__block .editor-post-title__input,
[61] Fix | Delete
.editor-styles-wrapper h2,
[62] Fix | Delete
.editor-styles-wrapper h3,
[63] Fix | Delete
.editor-styles-wrapper h4,
[64] Fix | Delete
.editor-styles-wrapper h5,
[65] Fix | Delete
.editor-styles-wrapper h6,
[66] Fix | Delete
.wp-block-cover .wp-block-cover-image-text, .wp-block-cover .wp-block-cover-text,
[67] Fix | Delete
.wp-block-cover h2, .wp-block-cover-image .wp-block-cover-image-text,
[68] Fix | Delete
.wp-block-cover-image .wp-block-cover-text, .wp-block-cover-image h2{
[69] Fix | Delete
font-family: <?php echo wp_kses_post( $h_font['font-family'] ); ?>;
[70] Fix | Delete
font-weight: <?php echo esc_attr( $h_font['font-weight'] ) ?>;
[71] Fix | Delete
<?php if ( isset( $h_font['font-style'] ) && !empty( $h_font['font-style'] ) ):?>
[72] Fix | Delete
font-style: <?php echo esc_attr( $h_font['font-style'] ) ?>;
[73] Fix | Delete
<?php endif; ?>
[74] Fix | Delete
}
[75] Fix | Delete
pre {
[76] Fix | Delete
background: <?php echo herald_hex2rgba( $color_content_txt , 0.06); ?>;
[77] Fix | Delete
border: 1px solid <?php echo herald_hex2rgba( $color_content_txt , 0.2); ?>;
[78] Fix | Delete
}
[79] Fix | Delete
thead {
[80] Fix | Delete
background: <?php echo herald_hex2rgba( $color_content_txt , 0.06); ?>;
[81] Fix | Delete
}
[82] Fix | Delete
[83] Fix | Delete
/* General styles */
[84] Fix | Delete
a{
[85] Fix | Delete
color: <?php echo esc_attr( $color_content_acc ); ?>;
[86] Fix | Delete
}
[87] Fix | Delete
.editor-styles-wrapper h1,
[88] Fix | Delete
.editor-styles-wrapper.edit-post-visual-editor .editor-post-title__block .editor-post-title__input,
[89] Fix | Delete
.editor-styles-wrapper h2,
[90] Fix | Delete
.editor-styles-wrapper h3,
[91] Fix | Delete
.editor-styles-wrapper h4,
[92] Fix | Delete
.editor-styles-wrapper h5,
[93] Fix | Delete
.editor-styles-wrapper h6,
[94] Fix | Delete
.entry-title a {
[95] Fix | Delete
color: <?php echo esc_attr( $color_content_title ); ?>;
[96] Fix | Delete
}
[97] Fix | Delete
[98] Fix | Delete
.wp-block-button__link,
[99] Fix | Delete
.wp-block-search__button{
[100] Fix | Delete
background: <?php echo esc_attr( $color_content_acc ); ?>;
[101] Fix | Delete
}
[102] Fix | Delete
.wp-block-search__button{
[103] Fix | Delete
color: <?php echo esc_attr( $color_content_bg ); ?>;
[104] Fix | Delete
}
[105] Fix | Delete
/* Table */
[106] Fix | Delete
[107] Fix | Delete
.editor-styles-wrapper .wp-block table.wp-block-table{
[108] Fix | Delete
border-color: <?php echo herald_hex2rgba($color_content_txt, 0.2); ?>;
[109] Fix | Delete
}
[110] Fix | Delete
.editor-styles-wrapper .wp-block-table:not(.is-style-stripes) td,
[111] Fix | Delete
.editor-styles-wrapper .wp-block-table:not(.is-style-stripes) th,
[112] Fix | Delete
.wp-block-calendar tbody td,
[113] Fix | Delete
.wp-block-calendar th,
[114] Fix | Delete
.editor-styles-wrapper .wp-block-table:not(.is-style-stripes),
[115] Fix | Delete
.wp-block-calendar .wp-block-calendar tr{
[116] Fix | Delete
border: 1px solid <?php echo herald_hex2rgba($color_content_txt, 0.1); ?>;
[117] Fix | Delete
}
[118] Fix | Delete
[119] Fix | Delete
/* Blockquote */
[120] Fix | Delete
.editor-styles-wrapper .wp-block-quote p{
[121] Fix | Delete
color: <?php echo esc_attr( $color_content_acc ); ?>;
[122] Fix | Delete
}
[123] Fix | Delete
.editor-styles-wrapper .wp-block-pullquote {
[124] Fix | Delete
border-top: 2px solid <?php echo esc_attr( $color_content_txt ); ?>;
[125] Fix | Delete
border-bottom: 2px solid <?php echo esc_attr( $color_content_txt ); ?>;
[126] Fix | Delete
color: <?php echo esc_attr( $color_content_txt ); ?>;
[127] Fix | Delete
}
[128] Fix | Delete
[129] Fix | Delete
/* Code and preformated*/
[130] Fix | Delete
[131] Fix | Delete
.wp-block-code,
[132] Fix | Delete
.editor-styles-wrapper code,
[133] Fix | Delete
.editor-styles-wrapper pre,
[134] Fix | Delete
.editor-styles-wrapper pre h2{
[135] Fix | Delete
color: <?php echo esc_attr( $color_content_txt ); ?>;
[136] Fix | Delete
}
[137] Fix | Delete
.wp-block-code .editor-plain-text{
[138] Fix | Delete
background: transparent;
[139] Fix | Delete
}
[140] Fix | Delete
[141] Fix | Delete
/* Separator */
[142] Fix | Delete
.wp-block-separator{
[143] Fix | Delete
border-color: <?php echo herald_hex2rgba($color_content_txt, 0.2); ?>;
[144] Fix | Delete
border-bottom-width: 1px;
[145] Fix | Delete
}
[146] Fix | Delete
/* Content width*/
[147] Fix | Delete
[148] Fix | Delete
.edit-post-visual-editor .wp-block{
[149] Fix | Delete
max-width: 1020px;
[150] Fix | Delete
}
[151] Fix | Delete
.post-type-page .edit-post-visual-editor .wp-block{
[152] Fix | Delete
max-width: 1020px;
[153] Fix | Delete
}
[154] Fix | Delete
.edit-post-visual-editor .wp-block[data-align="wide"],
[155] Fix | Delete
.post-type-page .edit-post-visual-editor .wp-block[data-align="wide"]{
[156] Fix | Delete
max-width: 1080px;
[157] Fix | Delete
}
[158] Fix | Delete
.edit-post-visual-editor .wp-block[data-align="full"],
[159] Fix | Delete
.post-type-page .edit-post-visual-editor .wp-block[data-align="full"]{
[160] Fix | Delete
max-width: none;
[161] Fix | Delete
}
[162] Fix | Delete
[163] Fix | Delete
.wp-block-tag-cloud a{
[164] Fix | Delete
background: <?php echo herald_hex2rgba( $color_content_title , 0.1); ?>;
[165] Fix | Delete
color: <?php echo esc_attr( $color_content_txt ); ?>;
[166] Fix | Delete
}
[167] Fix | Delete
[168] Fix | Delete
.editor-styles-wrapper .wp-block-search .wp-block-search__input{
[169] Fix | Delete
border: 1px solid <?php echo herald_hex2rgba($color_content_txt, 0.1); ?>;
[170] Fix | Delete
}
[171] Fix | Delete
.editor-styles-wrapper .wp-block .wp-block-search__button{
[172] Fix | Delete
background: <?php echo esc_attr( $color_content_acc ); ?>;
[173] Fix | Delete
color: <?php echo esc_attr( $color_content_bg ); ?>;
[174] Fix | Delete
}
[175] Fix | Delete
[176] Fix | Delete
<?php
[177] Fix | Delete
[178] Fix | Delete
[179] Fix | Delete
[180] Fix | Delete
/* Apply uppercase options */
[181] Fix | Delete
$uppercase = herald_get_option( 'uppercase' );
[182] Fix | Delete
if ( !empty( $uppercase ) ) {
[183] Fix | Delete
foreach ( $uppercase as $text_class => $val ) {
[184] Fix | Delete
if ( $val ){
[185] Fix | Delete
echo '.editor-styles-wrapper .'. esc_attr( $text_class ) .'{text-transform: uppercase;}';
[186] Fix | Delete
} else {
[187] Fix | Delete
echo '.editor-styles-wrapper .'. esc_attr( $text_class ) .'{text-transform: none;}';
[188] Fix | Delete
}
[189] Fix | Delete
}
[190] Fix | Delete
}
[191] Fix | Delete
[192] Fix | Delete
[193] Fix | Delete
[194] Fix | Delete
?>
[195] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function