Uname: Linux premium72.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software: LiteSpeed
PHP version: 8.2.29 [ PHP INFO ] PHP os: Linux
Server Ip: 198.54.125.95
Your Ip: 216.73.216.112
User: matican (532) | Group: matican (531)
Safe Mode: OFF
Disable Function:
NONE

name : dropcap.php
<?php
	/*	
	*	Goodlayers Item
	*/
	
	// [gdlr_core_dropcap type="circle" color="#ffffff" background="#212121"]S[/gdlr_core_dropcap]
	add_shortcode('gdlr_core_dropcap', 'gdlr_core_dropcap_shortcode');
	if( !function_exists('gdlr_core_dropcap_shortcode') ){
		function gdlr_core_dropcap_shortcode($atts, $content = ''){
			$atts = shortcode_atts(array(
				'type' => 'circle', // normal, circle, rectangle
				'color' => '#ffffff',
				'background' => '#212121',
			), $atts, 'gdlr_core_dropcap');

			if( $atts['type'] == 'normal' ){
				$atts['background'] = '';
			}

			$extra_class = ' gdlr-core-type-' . $atts['type'];
			return '<span class="gdlr-core-dropcap ' . esc_attr($extra_class) . '" ' . gdlr_core_esc_style(array(
				'color' => $atts['color'],
				'background' => $atts['background']
			)) . ' >' . gdlr_core_escape_content($content) . '</span>';
		}
	}
© 2025 XylotrechusZ