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/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/plugins/cornerstone/includes/functions/stack-api.php
<?php

/**
 * Register custom stack
 *
 * @param array $config
 *
 * @return void
 */
function cs_stack_register($config = []) {
  // Add custom stack
  cornerstone('ThemeOptions')->addCustomStack($config);
}

/**
 * Register from array of stacks
 * Helper function of cs_stack_register
 *
 * @param array $stacks
 */
function cs_stacks_register($stacks = []) {
  foreach ($stacks as $stack) {
    cs_stack_register($stack);
  }
}


/**
 * Get all registered stacks
 *
 * @return array
 */
function cs_stacks_get_all() {
  return cornerstone('ThemeOptions')->getAllStacks();
}

/**
 * Get all registered stacks with built out controls
 * used specifically by the App
 *
 * @return array
 */
function cs_stacks_with_controls() {
  return cornerstone('ThemeOptions')->getAllStacksWithControls();
}

/**
 * Get registered custom stacks
 *
 * @return array
 */
function cs_stacks_get_custom() {
  return cornerstone('ThemeOptions')->getCustomStacks();
}

/**
 * Get available stack key options
 *
 * @return string[]
 */
function cs_stack_keys() {
  return cornerstone('ThemeOptions')->getKeys();
}

/**
 * Get current stack
 *
 * @return array
 */
function cs_stack_current() {
  return cornerstone('ThemeOptions')->getStack();
}

/**
 * Is current stack custom stack
 *
 * @return mixed
 */
function cs_stack_is_custom($stackName = null) {
  return cornerstone('ThemeOptions')->isCustomStack($stackName);
}

/**
 * Get individual theme value
 *
 * @return mixed
 */
function cs_stack_get_value($name = '') {
  return cornerstone('ThemeOptions')->get_value($name);
}

/**
 * Return the stacks custom CSS
 *
 * @return string
 */
function cs_stack_custom_css() {
  return cornerstone('ThemeOptions')->getCustomStackCSS();
}

/**
 * Register singular option
 *
 * @param string $name
 * @param string $value
 *
 * @return void
 */
function cs_stack_register_option($name, $value = '') {
  cs_stack_register_option([
    $name => $value,
  ]);
}

/**
 * Register stack options
 *
 * @param array $options
 *
 * @return void
 */
function cs_stack_register_options($options) {
  cornerstone_options_register_options($options);
}

// Other includes
require_once(__DIR__ . '/CustomStacks/comments.php');

Youez - 2016 - github.com/yon3zu
LinuXploit