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/classes/Documents/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/rebeccaone.com/wp-content/plugins/cornerstone/includes/classes/Documents/ThemeLayout.php
<?php

namespace Themeco\Cornerstone\Documents;

class ThemeLayout extends Layout {

  protected $type = 'layout';
  protected $conditionals;

  public function defaultSettings() {
    return array (
      'customCSS' => '',
      'customJS' => '',
      'assignments' => [],
      'layout_type' => 'single',
      'assignment_priority' => 0,
      'header_enabled' => true,
      'footer_enabled' => true,
      'general_title'  => $this->title, // Will always be "Untitled" until post is loaded
    );
  }

  public function getGeneralControls() {
    return [
      [
        'key' => 'header_enabled',
        'type' => 'toggle',
        'label' => __( 'Header', 'cornerstone' ),
      ], [
        'key' => 'footer_enabled',
        'type' => 'toggle',
        'label' => __( 'Footer', 'cornerstone' ),
      ]
    ];
  }

  public function getDefaultPreviewUrl(  ) {

    $front_page = $this->conditionals->maybe_get_front_page($this->data['settings']['layout_type']);

    if ( $front_page ) {
      return get_permalink( $front_page );
    }

    if ( $this->data['settings']['layout_type'] === 'single' ) {
      $posts = get_posts( ['numberposts' => 1 ] );
      if (!empty($posts[0])) {
        return get_permalink( $posts[0]->ID );
      }
    }

    return home_url();
  }

  public function getDocType() {
    $settings = $this->settings();

    if ( ! isset( $settings['layout_type'] ) ) {
      return 'layout:unknown';
    }
    return 'layout:'. $settings['layout_type'];
  }

  public function getStylePriority() {
    return [10,70];
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit