403Webshell
Server IP : 104.21.74.147  /  Your IP : 216.73.217.154
Web Server : nginx/1.24.0
System : Linux wordpress-sites 6.8.0-134-generic #134-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 26 18:43:11 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.34
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/rebeccaone.com/wp-content/plugins/cornerstone/includes/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rebeccaone.com/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