GhostManSec
Server: LiteSpeed
System: Linux premium197.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: parhudrw (1725)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/parhudrw/www/wp-content/plugins/around-elementor/modules/shapes/module.php
<?php

namespace AroundElementor\Modules\Shapes;

use AroundElementor\Base\Module_Base;
use Elementor\Controls_Manager;
use Elementor\Plugin;

if ( ! defined( 'ABSPATH' ) ) {
    exit; // Exit if accessed directly
}

class Module extends Module_Base {

     public function get_widgets() {
        return [
            'Shapes',
        ];
    }

    public function __construct() {
        parent::__construct();

        $this->add_actions();
    }

    public function get_name() {
        return 'ar-shapes';
    }

    public function add_actions() {
        add_filter( 'elementor/shapes/additional_shapes', [ $this, 'shape_options' ] );
    }

    public function shape_options( $additional_shapes ) {

        $additional_shapes ['around-slant-bottom-right'] =[
            'title'        => _x( 'around - Slant-bottom-right', 'Shapes', 'around-elementor' ),
            'has_negative' => false,
            'has_flip'     => false,
            'height_only'  => false,
            'url'          => get_template_directory_uri() . '/assets/img/shapes/slant/slant-bottom-right.svg',
            'path'         => get_stylesheet_directory() . '/assets/img/shapes/slant/slant-bottom-right.svg',
        ];

        $additional_shapes ['around-slant-bottom-left'] =[
            'title'        => _x( 'around - Slant-bottom-left', 'Shapes', 'around-elementor' ),
            'has_negative' => false,
            'has_flip'     => false,
            'height_only'  => false,
            'url'          => get_template_directory_uri() . '/assets/img/shapes/slant/slant-bottom-left.svg',
            'path'         => get_stylesheet_directory() . '/assets/img/shapes/slant/slant-bottom-left.svg',
        ];

        $additional_shapes ['around-slant-top-right'] =[
            'title'        => _x( 'around - Slant-top-right', 'Shapes', 'around-elementor' ),
            'has_negative' => false,
            'has_flip'     => false,
            'height_only'  => false,
            'url'          => get_template_directory_uri() . '/assets/img/shapes/slant/slant-top-right.svg',
            'path'         => get_stylesheet_directory() . '/assets/img/shapes/slant/slant-top-right.svg',
        ];

        $additional_shapes ['around-slant-top-left'] =[
            'title'        => _x( 'around - Slant-top-left', 'Shapes', 'around-elementor' ),
            'has_negative' => false,
            'has_flip'     => false,
            'height_only'  => false,
            'url'          => get_template_directory_uri() . '/assets/img/shapes/slant/slant-top-left.svg',
            'path'         => get_stylesheet_directory() . '/assets/img/shapes/slant/slant-top-left.svg',
        ];

        $additional_shapes ['around-curve-bottom-center'] =[
            'title'        => _x( 'around - Curve-bottom-center', 'Shapes', 'around-elementor' ),
            'has_negative' => false,
            'has_flip'     => false,
            'height_only'  => false,
            'url'          => get_template_directory_uri() . '/assets/img/shapes/curves/curve-bottom-center.svg',
            'path'         => get_stylesheet_directory() . '/assets/img/shapes/curves/curve-bottom-center.svg',
        ];

        $additional_shapes ['around-curve-top-center'] =[
            'title'        => _x( 'around - Curve-top-center', 'Shapes', 'around-elementor' ),
            'has_negative' => false,
            'has_flip'     => false,
            'height_only'  => false,
            'url'          => get_template_directory_uri() . '/assets/img/shapes/curves/curve-top-center.svg',
            'path'         => get_stylesheet_directory() . '/assets/img/shapes/curves/curve-top-center.svg',
        ];

        $additional_shapes ['around-curve-bottom-right'] =[
            'title'        => _x( 'around - Curve-bottom-right', 'Shapes', 'around-elementor' ),
            'has_negative' => false,
            'has_flip'     => false,
            'height_only'  => false,
            'url'          => get_template_directory_uri() . '/assets/img/shapes/curves/curve-bottom-right.svg',
            'path'         => get_stylesheet_directory() . '/assets/img/shapes/curves/curve-bottom-right.svg',
        ];

        $additional_shapes ['around-curve-bottom-left'] =[
            'title'        => _x( 'around - Curve-bottom-left', 'Shapes', 'around-elementor' ),
            'has_negative' => false,
            'has_flip'     => false,
            'height_only'  => false,
            'url'          => get_template_directory_uri() . '/assets/img/shapes/curves/curve-bottom-left.svg',
            'path'         => get_stylesheet_directory() . '/assets/img/shapes/curves/curve-bottom-left.svg',
        ];

        $additional_shapes ['around-curve-top-right'] =[
            'title'        => _x( 'around - Curve-top-right', 'Shapes', 'around-elementor' ),
            'has_negative' => false,
            'has_flip'     => false,
            'height_only'  => false,
            'url'          => get_template_directory_uri() . '/assets/img/shapes/curves/curve-top-right.svg',
            'path'         => get_stylesheet_directory() . '/assets/img/shapes/curves/curve-top-right.svg',
        ];

        $additional_shapes ['around-curve-top-left'] =[
            'title'        => _x( 'around - Curve-top-left', 'Shapes', 'around-elementor' ),
            'has_negative' => false,
            'has_flip'     => false,
            'height_only'  => false,
            'url'          => get_template_directory_uri() . '/assets/img/shapes/curves/curve-top-left.svg',
            'path'         => get_stylesheet_directory() . '/assets/img/shapes/curves/curve-top-left.svg',
        ];


        $additional_shapes ['around-curve-right'] =[
            'title'        => _x( 'around - Curve Right', 'Shapes', 'around-elementor' ),
            'has_negative' => false,
            'has_flip'     => false,
            'height_only'  => false,
            'url'          => get_template_directory_uri() . '/assets/img/shapes/curves/curve-right.svg',
            'path'         => get_stylesheet_directory() . '/assets/img/shapes/curves/curve-right.svg',
        ];

        $additional_shapes ['around-curve-left'] =[
            'title'        => _x( 'around - Curve Left', 'Shapes', 'around-elementor' ),
            'has_negative' => false,
            'has_flip'     => false,
            'height_only'  => false,
            'url'          => get_template_directory_uri() . '/assets/img/shapes/curves/curve-left.svg',
            'path'         => get_stylesheet_directory() . '/assets/img/shapes/curves/curve-left.svg',
        ];

        return $additional_shapes;
    }
}