HEX
Server: LiteSpeed
System: Linux eko108.isimtescil.net 4.18.0-477.21.1.lve.1.el8.x86_64 #1 SMP Tue Sep 5 23:08:35 UTC 2023 x86_64
User: uyarreklamcomtr (11202)
PHP: 7.4.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/shapes.tar
images/circle.svg000064400000000560151546421530010002 0ustar00<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 250" width="250" height="250"><style></style><path  d="m187.7 16.8q-28.7-16.8-62.7-16.8-34 0-62.7 16.8-28.8 16.7-45.5 45.5-16.8 28.7-16.8 62.7 0 34 16.8 62.7 16.7 28.8 45.5 45.5 28.7 16.8 62.7 16.8 34 0 62.7-16.8 28.8-16.7 45.5-45.5 16.8-28.7 16.8-62.7 0-34-16.8-62.7-16.7-28.8-45.5-45.5z"/></svg>images/diamond.svg000064400000000261151546421530010152 0ustar00<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 149 247" width="149" height="247"><style></style><path  d="m72.5 246.6l-72-126.5 75.8-120.1 72 126.5z"/></svg>images/hexagon.svg000064400000000277151546421530010177 0ustar00<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 250" width="250" height="250"><style></style><path  d="m187.3 250h-125.1l-62.2-125.3 62.7-124.7h125l62.3 125.3z"/></svg>images/oval.svg000064400000000371151546421530007502 0ustar00<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 110" width="250" height="110"><style></style><path  d="m125 109.5c-69.1 0-125-24.4-125-54.7 0-30.3 55.9-54.8 125-54.8 69.1 0 125 24.5 125 54.8 0 30.3-55.9 54.7-125 54.7z"/></svg>images/parallelogram.svg000064400000000252151546421530011361 0ustar00<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 124" width="250" height="124"><style></style><path  d="m250 0l-58.4 124h-191.6l58.6-123.9z"/></svg>images/pentagon.svg000064400000000271151546421530010353 0ustar00<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 250" width="250" height="250"><style></style><path  d="m202.5 250h-154.5l-48-154.7 124.9-95.3 125.1 95.2z"/></svg>images/rhombus.svg000064400000000262151546421530010217 0ustar00<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 250" width="250" height="250"><style></style><path  d="m201.7 250l-201.7-66.7 41.9-183.3 208.1 59z"/></svg>images/square.svg000064400000000615151546421530010042 0ustar00<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 250" width="250" height="250"><defs><image  width="250" height="250" id="img1" href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAPoAAAD6AQMAAACyIsh+AAAAAXNSR0IB2cksfwAAAANQTFRFAAAAp3o92gAAAB5JREFUeJztwQEBAAAAgiD/r25IQAEAAAAAAAAAvwYgOgABKjm1wgAAAABJRU5ErkJggg=="/></defs><style></style><use  href="#img1" x="0" y="0"/></svg>images/triangle.svg000064400000000233151546421530010343 0ustar00<svg version="1.2" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 250 250" width="250" height="250"><style></style><path  d="m125 0l125 250h-250z"/></svg>shapes.php000064400000003533151546421530006552 0ustar00<?php
if ( ! class_exists( 'SiteOrigin_Widget_Image_Shapes' ) ) {
	class SiteOrigin_Widget_Image_Shapes {
		public $shapes = array();
		
		public function __construct() {
			add_action( 'init', array( $this, 'setup_shapes' ) );
		}

		public static function single() {
			static $single;

			return empty( $single ) ? $single = new self() : $single;
		}

		public function setup_shapes() {
			$this->shapes = apply_filters(
				'siteorigin_widgets_image_shapes',
				array(
					'circle' => __( 'Circle', 'so-widgets-bundle' ),
					'oval' => __( 'Oval', 'so-widgets-bundle' ),
					'triangle' => __( 'Triangle', 'so-widgets-bundle' ),
					'square' => __( 'Square', 'so-widgets-bundle' ),
					'diamond' => __( 'Diamond', 'so-widgets-bundle' ),
					'rhombus' => __( 'Rhombus', 'so-widgets-bundle' ),
					'parallelogram' => __( 'Parallelogram', 'so-widgets-bundle' ),
					'pentagon' => __( 'Pentagon', 'so-widgets-bundle' ),
					'hexagon' => __( 'Hexagon', 'so-widgets-bundle' ),
				)
			);
		}

		function get_shapes() {
			return $this->shapes;
		}

		public function is_valid_shape( $shape ) {
			if (
				! empty( $this->shapes ) &&
				! empty( $shape ) &&
				isset( $this->shapes[ $shape ] )
			) {
				return true;
			}

			return false;
		}

		public function get_image_shape( $shape ) {
			if (
				$this->is_valid_shape( $shape ) &&
				$shape != 'custom'
			) {
				$file = wp_normalize_path(
					apply_filters(
						'siteorigin_widgets_image_shape_file_path',
						plugin_dir_path( __FILE__ ) . 'images/',
						$shape
					)
				) . $shape . '.svg';
				if ( file_exists( $file ) ) {
					return wp_normalize_path(
						apply_filters(
							'siteorigin_widgets_image_shape_file_url',
							plugin_dir_url( __FILE__ ) . 'images/',
							$shape
						)
					) . $shape . '.svg';
				}
			}
			return false;
		}
	}
	SiteOrigin_Widget_Image_Shapes::single();
}