403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/self/cwd/wp-content/plugins/cornerstone/includes/elements/control-partials/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/plugins/cornerstone/includes/elements/control-partials/bg.php
<?php

// =============================================================================
// CORNERSTONE/INCLUDES/ELEMENTS/CONTROL-PARTIALS/BG.PHP
// -----------------------------------------------------------------------------
// Element Controls
// =============================================================================

// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
//   01. Controls
// =============================================================================

// Controls
// =============================================================================

function x_control_partial_bg( $settings ) {

  // Setup
  // -----

  $k_pre        = ( isset( $settings['k_pre'] )        ) ? $settings['k_pre'] . '_'  : '';
  $group        = ( isset( $settings['group'] )        ) ? $settings['group']        : 'bg';
  $conditions   = ( isset( $settings['conditions'] )   ) ? $settings['conditions']   : [];


  // Conditions
  // ----------

  $condition_bg_lower_on_base      = [ 'key' => $k_pre . 'bg_lower_type', 'op' => 'NOT IN', 'value' => [ 'none' ] ];

  $condition_bg_upper_on_base      = [ 'key' => $k_pre . 'bg_upper_type', 'op' => 'NOT IN', 'value' => [ 'none' ] ];

  $conditions_bg_border_radius = array_merge( $conditions, [ $condition_bg_lower_on_base, array_merge( $condition_bg_upper_on_base, [ 'or' => true ] ) ] );


  // Control Groups (Advanced)
  // -------------------------

  // Compose Controls
  // ----------------

  return [
    'controls' => [
      // BG Lower
      cs_partial_controls('bg-layer', array_merge(
        $settings,
        [
          'layer_prefix' => 'bg_lower',
          'label' => cs_recall('label_lower'),
        ]
      )),
      // BG Upper
      cs_partial_controls('bg-layer', array_merge(
        $settings,
        [
          'layer_prefix' => 'bg_upper',
          'label' => cs_recall('label_upper'),
        ]
      )),
      cs_control( 'border-radius', $k_pre . 'bg', [
        'group'      => $group,
        'conditions' => $conditions_bg_border_radius,
      ] )
    ]
  ];

}

cs_register_control_partial( 'bg', 'x_control_partial_bg' );

Youez - 2016 - github.com/yon3zu
LinuXploit