HEX
Server: LiteSpeed
System: Linux vps338 6.12.0-211.34.1.el10_2.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 15 07:56:02 EDT 2026 x86_64
User: ondernemer (1054)
PHP: 8.3.32
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/ondernemer/public_html/wp-content/themes/dt-the7/inc/shortcodes/includes/divider/divider.php
<?php
/**
 * Divider shortcode.
 *
 */

// File Security Check
if ( ! defined( 'ABSPATH' ) ) { exit; }

if ( ! class_exists( 'DT_Shortcode_Divider', false ) ) {

	class DT_Shortcode_Divider extends DT_Shortcode {

		static protected $instance;

		protected $shortcode_name = 'dt_divider';

		public static function get_instance() {
			if ( !self::$instance ) {
				self::$instance = new DT_Shortcode_Divider();
			}
			return self::$instance;
		}

		protected function __construct() {
			presscore_add_puny_shortcode( $this->shortcode_name, array( $this, 'shortcode' ) );
		}

		public function shortcode( $atts, $content = null ) {
			$shortcode_atts = shortcode_atts( [
				'style' => 'thin'
			], $atts, $this->shortcode_name );
			extract( $shortcode_atts );

			switch( $style ) {
				case 'thick': $class = 'hr-thick'; break;
				default: $class = 'hr-thin';
			}

			$output = '<div class="' . esc_attr( $class ) . '"></div>';

			return $output;
		}

	}

	// create shortcode
	DT_Shortcode_Divider::get_instance();

}