Uname:Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64

Base Dir : /home/nobi37te/public_html

User : nobi37te


403WebShell
403Webshell
Server IP : 172.67.134.116  /  Your IP : 216.73.217.123
Web Server : Apache
System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User : nobi37te ( 1003)
PHP Version : 8.2.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/nobi37te/public_html/wp-content/themes/pro/framework/classes/Templating/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/nobi37te/public_html/wp-content/themes/pro/framework/classes/Templating/ViewRouter.php
<?php

namespace Themeco\Theme\Templating;

class ViewRouter {

  public function setup() {

    add_action( 'tco_footer', function() {
      do_action('cs_footer');
    });

    add_action( 'tco_header', function() {
      do_action('cs_header');
    });

    add_action( 'cs_body_begin', [ $this, 'siteBegin' ], 20 );
    add_action( 'cs_body_end', [ $this, 'siteEnd' ], -20 );
    add_filter( 'cs_root_atts', [ $this, 'rootAtts']);

    add_filter( 'cs_masthead_atts', [ $this, 'mastheadAtts'] );
    add_filter( 'cs_colophon_atts', [ $this, 'colophonAtts'] );
    add_filter( 'cs_layout_atts', [ $this, 'layoutAtts'] );
  }

  public function rootAtts($atts) {
    $atts['class'] = ['tco-root'];
    return $atts;
  }

  public function mastheadAtts($atts) {
    $atts['class'] = 'tco-masthead';
    return $atts;
  }

  public function colophonAtts($atts) {
    $atts['class'] = 'tco-colophon';
    return $atts;
  }

  public function layoutAtts($atts) {
    $atts['class'] = array_map( function($class) {
      return str_replace('cs-layout', 'tco-layout', $class);
    }, $atts['class'] );
    return $atts;
  }

  public function siteBegin() {
    echo cs_open_tag(
      apply_filters( 'tco_site_tag', 'div'),
      apply_filters( 'tco_site_atts', [ 'class' => 'tco-site' ] )
    );
  }

  public function siteEnd() {
    echo '</' . apply_filters( 'tco_site_tag', 'div' ) . '>';
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit