GRAYBYTE WORDPRESS FILE MANAGER5368

Server IP : 68.65.123.43 / Your IP : 216.73.216.162
System : Linux server266.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
PHP Version : 8.0.30
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/inteuuod/public_html/wp-content/plugins/announcer/includes/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/inteuuod/public_html/wp-content/plugins/announcer/includes//settings.php
<?php

if( ! defined( 'ABSPATH' ) ) exit;

class ANCR_Settings{

    public static function init(){

    }

    public static function defaults(){

        return [
            // Status
            'status' => 'active',

            // CTA
            'cta_buttons' => [],

            // Display
            'display' => 'immediate',
            'show_on' => 'page_open',
            'show_after_duration' => '0',
            'show_after_scroll' => '0',
            'open_animation' => 'slide',
            'schedule_from' => '',
            'schedule_to' => '',
            'schedule_timezone' => get_option( 'timezone_string' ),

            // Position
            'position' => 'bottom',
            'sticky' => 'yes',

            // Design
            'layout' => 'same_row',
            'align_content' => 'left',
            'container_width' => '1000px',
            'ticker_speed' => '20',
            'ticker_direction' => 'right_left',
            'ticker_pause' => 'yes',
            'style_bar' => [],
            'style_primary_btn' => [],
            'style_secondary_btn' => [],

            // Close
            'close_btn' => 'yes',
            'close_animation' => 'slide',
            'close_content_click' => 'no',
            'auto_close' => '0',

            'keep_closed' => 'no',
            'closed_duration' => '0',

            // Location rules
            'location_rules' => [
                'type' => 'show_all',
                'rule' => 'W10='
            ],
            'devices' => 'all'

        ];

    }

    public static function template_defaults( $for, $sub_type = false ){

        if( $for == 'cta_buttons' ){
            return [
                'text' => '',
                'type' => '',
                'on_click' => 'open_link',
                'link_url' => '',
                'link_target' => 'new_window',
                'link_do_close' => 'no',
                'no_follow' => 'no',
                'title' => ''
            ];
        }

        if( $for == 'designer' ){
            $defaults = [
                'background_color' => '',
                'font_color' => '',
                'font_size' => '',
                'link_color' => '',
                'border_width' => '',
                'border_style' => '',
                'border_color' => '',
                'border_radius' => '24',
                'width' => '',
                'shadow' => 'yes',
                'background_image' => '',
                'background_size' => 'cover',
            ];

            if( $sub_type == 'style_bar' ){
                $defaults[ 'background_color' ] = '#D61F1F';
                $defaults[ 'font_color' ] = '#fff';
                $defaults[ 'link_color' ] = '#fff';
                $defaults[ 'border_radius' ] = '';
                $defaults[ 'padding' ] = '';
            }

            if( $sub_type == 'style_primary_btn' ){
                $defaults[ 'background_color' ] = '#fff';
                $defaults[ 'font_color' ] = '#000';
            }

            if( $sub_type == 'style_secondary_btn' ){
                $defaults[ 'background_color' ] = '#F9DF74';
                $defaults[ 'font_color' ] = '#000';
            }

            return $defaults;

        }

    }

    public static function get( $post_id = false ){

        if( !$post_id ){
            global $post;
            $post_id = $post->ID;
        }

        $defaults = self::defaults();
        $actual_settings = get_post_meta( $post_id, 'settings', true );
        $settings = wp_parse_args( $actual_settings, $defaults );

        return $settings;

    }

    public static function get_style( $settings, $for ){
        return wp_parse_args( $settings[ $for ], self::template_defaults( 'designer', $for ) );
    }

}

?>

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:24
inteuuod / inteuuod
0755
location-rules
--
July 10 2025 04:32:24
inteuuod / inteuuod
0755
.htaccess
0.41 KB
July 10 2025 04:32:24
inteuuod / inteuuod
0644
display.php
10.139 KB
August 23 2024 03:21:34
inteuuod / inteuuod
0644
settings.php
3.833 KB
August 23 2024 03:21:34
inteuuod / inteuuod
0644
utilities.php
3.072 KB
August 23 2024 03:21:34
inteuuod / inteuuod
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF