/home/biyoahl/www/wp-content/plugins/debugpress/core/track/Tracker.php
if ( isset( $call['file'] ) && isset( $call['line'] ) ) {
$this->_actual_file = $this->_normalize_path( $call['file'] );
$this->_actual_line = $call['line'];
}
}
break;
}
}
if ( isset( $call['class'] ) && "Dev4Press\\Plugin\\DebugPress\\Track\\Tracker" == $call['class'] ) {
continue;
}
if ( $call['function'] == 'debugpress_tracker' || $call['function'] == 'debugpress_store_object' ) {
continue;
}
if ( $call['function'] == 'call_user_func_array' ) {
if ( isset( $call['args'][0][0] ) && $call['args'][0][0] instanceof Tracker ) {
continue;
}
}
if ( $call['function'] == 'spawn_cron' ) {
$this->_http_spawn_cron = true;
}
$value = isset( $call['class'] ) ? "{$call['class']}->{$call['function']}" : $call['function'];
$file = '';
if ( isset( $call['file'] ) && isset( $call['line'] ) ) {
$_file = $this->_normalize_path( $call['file'] );
$file = ' (' . $_file . ' => ' . $call['line'] . ')';
$this->_actual_file = $_file;
$this->_actual_line = $call['line'];
}
$filter = '';
/home/biyoahl/www/wp-content/themes/techne/vendor/illuminate/view/Engines/PhpEngine.php
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
}
/home/biyoahl/www/wp-content/plugins/debugpress/core/track/Tracker.php
if ( isset( $call['file'] ) && isset( $call['line'] ) ) {
$this->_actual_file = $this->_normalize_path( $call['file'] );
$this->_actual_line = $call['line'];
}
}
break;
}
}
if ( isset( $call['class'] ) && "Dev4Press\\Plugin\\DebugPress\\Track\\Tracker" == $call['class'] ) {
continue;
}
if ( $call['function'] == 'debugpress_tracker' || $call['function'] == 'debugpress_store_object' ) {
continue;
}
if ( $call['function'] == 'call_user_func_array' ) {
if ( isset( $call['args'][0][0] ) && $call['args'][0][0] instanceof Tracker ) {
continue;
}
}
if ( $call['function'] == 'spawn_cron' ) {
$this->_http_spawn_cron = true;
}
$value = isset( $call['class'] ) ? "{$call['class']}->{$call['function']}" : $call['function'];
$file = '';
if ( isset( $call['file'] ) && isset( $call['line'] ) ) {
$_file = $this->_normalize_path( $call['file'] );
$file = ' (' . $_file . ' => ' . $call['line'] . ')';
$this->_actual_file = $_file;
$this->_actual_line = $call['line'];
}
$filter = '';
/home/biyoahl/www/wp-content/themes/techne/vendor/illuminate/view/Engines/PhpEngine.php
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
}
/home/biyoahl/www/wp-content/plugins/debugpress/core/track/Tracker.php
if ( isset( $call['file'] ) && isset( $call['line'] ) ) {
$this->_actual_file = $this->_normalize_path( $call['file'] );
$this->_actual_line = $call['line'];
}
}
break;
}
}
if ( isset( $call['class'] ) && "Dev4Press\\Plugin\\DebugPress\\Track\\Tracker" == $call['class'] ) {
continue;
}
if ( $call['function'] == 'debugpress_tracker' || $call['function'] == 'debugpress_store_object' ) {
continue;
}
if ( $call['function'] == 'call_user_func_array' ) {
if ( isset( $call['args'][0][0] ) && $call['args'][0][0] instanceof Tracker ) {
continue;
}
}
if ( $call['function'] == 'spawn_cron' ) {
$this->_http_spawn_cron = true;
}
$value = isset( $call['class'] ) ? "{$call['class']}->{$call['function']}" : $call['function'];
$file = '';
if ( isset( $call['file'] ) && isset( $call['line'] ) ) {
$_file = $this->_normalize_path( $call['file'] );
$file = ' (' . $_file . ' => ' . $call['line'] . ')';
$this->_actual_file = $_file;
$this->_actual_line = $call['line'];
}
$filter = '';
/home/biyoahl/www/wp-content/plugins/debugpress/core/track/Tracker.php
}
add_filter( 'http_request_args', array( $this, 'http_request_args' ), 10000, 2 );
add_filter( 'pre_http_request', array( $this, 'pre_http_request' ), 10000, 3 );
add_action( 'http_api_debug', array( $this, 'http_api_debug' ), 10000, 5 );
add_action( 'requests-curl.before_request', array( $this, 'req_curl_before_request' ), 10000 );
add_action( 'requests-curl.after_request', array( $this, 'req_both_after_request' ), 10000, 2 );
add_action( 'requests-fsockopen.before_request', array( $this, 'req_fsockopen_before_request' ), 10000 );
add_action( 'requests-fsockopen.after_request', array( $this, 'req_both_after_request' ), 10000, 2 );
if ( is_admin() ) {
add_action( 'admin_footer', array( $this, 'log_http_apis' ), 10000 );
} else {
add_action( 'wp_footer', array( $this, 'log_http_apis' ), 10000 );
}
}
public function http_request_args( $args, $url ) {
$trace = $this->_get_caller();
if ( isset( $args['_debugpress_key_'] ) ) {
$args['_debugpress_key_original_'] = $args['_debugpress_key_'];
$start = $this->httpapi[ $args['_debugpress_key_'] ]['start'];
} else {
$start = microtime( true );
}
$args['_debugpress_key_'] = md5( microtime( true ) . '-' . $url ) . '-' . microtime( true );
$this->httpapi[ $args['_debugpress_key_'] ] = array(
'url' => $url,
'args' => $args,
'start' => $start,
'trace' => $trace,
'spawn' => $this->_http_spawn_cron,
);
return $args;
}
/home/biyoahl/www/wp-includes/class-wp-hook.php
$this->iterations[ $nesting_level ] = $this->priorities;
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
/home/biyoahl/www/wp-includes/plugin.php
$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
_wp_call_all_hook( $all_args );
}
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return $value;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
// Pass the value to WP_Hook.
array_unshift( $args, $value );
$filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
array_pop( $wp_current_filter );
return $filtered;
}
/**
* Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
*
* @since 3.0.0
*
* @see apply_filters() This function is identical, but the arguments passed to the
* functions hooked to `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_filters Stores the number of times each filter was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the filter hook.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
/home/biyoahl/www/wp-includes/class-wp-http.php
);
// Pre-parse for the HEAD checks.
$args = wp_parse_args( $args );
// By default, HEAD requests do not cause redirections.
if ( isset( $args['method'] ) && 'HEAD' === $args['method'] ) {
$defaults['redirection'] = 0;
}
$parsed_args = wp_parse_args( $args, $defaults );
/**
* Filters the arguments used in an HTTP request.
*
* @since 2.7.0
*
* @param array $parsed_args An array of HTTP request arguments.
* @param string $url The request URL.
*/
$parsed_args = apply_filters( 'http_request_args', $parsed_args, $url );
// The transports decrement this, store a copy of the original value for loop purposes.
if ( ! isset( $parsed_args['_redirection'] ) ) {
$parsed_args['_redirection'] = $parsed_args['redirection'];
}
/**
* Filters the preemptive return value of an HTTP request.
*
* Returning a non-false value from the filter will short-circuit the HTTP request and return
* early with that value. A filter should return one of:
*
* - An array containing 'headers', 'body', 'response', 'cookies', and 'filename' elements
* - A WP_Error instance
* - boolean false to avoid short-circuiting the response
*
* Returning any other value may result in unexpected behavior.
*
* @since 2.9.0
*
/home/biyoahl/www/wp-includes/class-wp-http.php
$parsed_args = wp_parse_args( $args, $defaults );
return $this->request( $url, $parsed_args );
}
/**
* Uses the GET HTTP method.
*
* Used for sending data that is expected to be in the body.
*
* @since 2.7.0
*
* @param string $url The request URL.
* @param string|array $args Optional. Override the defaults.
* @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
* A WP_Error instance upon error.
*/
public function get( $url, $args = array() ) {
$defaults = array( 'method' => 'GET' );
$parsed_args = wp_parse_args( $args, $defaults );
return $this->request( $url, $parsed_args );
}
/**
* Uses the HEAD HTTP method.
*
* Used for sending data that is expected to be in the body.
*
* @since 2.7.0
*
* @param string $url The request URL.
* @param string|array $args Optional. Override the defaults.
* @return array|WP_Error Array containing 'headers', 'body', 'response', 'cookies', 'filename'.
* A WP_Error instance upon error.
*/
public function head( $url, $args = array() ) {
$defaults = array( 'method' => 'HEAD' );
$parsed_args = wp_parse_args( $args, $defaults );
return $this->request( $url, $parsed_args );
}
/home/biyoahl/www/wp-includes/http.php
$http = _wp_http_get_object();
return $http->request( $url, $args );
}
/**
* Performs an HTTP request using the GET method and returns its response.
*
* @since 2.7.0
*
* @see wp_remote_request() For more information on the response array format.
* @see WP_Http::request() For default arguments information.
*
* @param string $url URL to retrieve.
* @param array $args Optional. Request arguments. Default empty array.
* See WP_Http::request() for information on accepted arguments.
* @return array|WP_Error The response or WP_Error on failure.
*/
function wp_remote_get( $url, $args = array() ) {
$http = _wp_http_get_object();
return $http->get( $url, $args );
}
/**
* Performs an HTTP request using the POST method and returns its response.
*
* @since 2.7.0
*
* @see wp_remote_request() For more information on the response array format.
* @see WP_Http::request() For default arguments information.
*
* @param string $url URL to retrieve.
* @param array $args Optional. Request arguments. Default empty array.
* See WP_Http::request() for information on accepted arguments.
* @return array|WP_Error The response or WP_Error on failure.
*/
function wp_remote_post( $url, $args = array() ) {
$http = _wp_http_get_object();
return $http->post( $url, $args );
}
/home/biyoahl/www/wp-content/plugins/elementor/includes/api.php
* @param bool $force_update Optional. Whether to force the data retrieval or
* not. Default is false.
*
* @return array|false Info data, or false.
*/
private static function get_info_data( $force_update = false ) {
$cache_key = self::TRANSIENT_KEY_PREFIX . ELEMENTOR_VERSION;
$info_data = get_transient( $cache_key );
if ( $force_update || false === $info_data ) {
$timeout = ( $force_update ) ? 25 : 8;
$response = wp_remote_get( self::$api_info_url, [
'timeout' => $timeout,
'body' => [
// Which API version is used.
'api_version' => ELEMENTOR_VERSION,
// Which language to return.
'site_lang' => get_bloginfo( 'language' ),
],
] );
if ( is_wp_error( $response ) || 200 !== (int) wp_remote_retrieve_response_code( $response ) ) {
set_transient( $cache_key, [], 2 * HOUR_IN_SECONDS );
return false;
}
$info_data = json_decode( wp_remote_retrieve_body( $response ), true );
if ( empty( $info_data ) || ! is_array( $info_data ) ) {
set_transient( $cache_key, [], 2 * HOUR_IN_SECONDS );
return false;
}
if ( isset( $info_data['library'] ) ) {
update_option( self::LIBRARY_OPTION_KEY, $info_data['library'], 'no' );
/home/biyoahl/www/wp-content/plugins/elementor/includes/api.php
public static function get_admin_notice() {
$data = self::get_info_data();
if ( empty( $data['admin_notice'] ) ) {
return false;
}
return $data['admin_notice'];
}
public static function get_canary_deployment_info( $force = false ) {
$data = self::get_info_data( $force );
if ( empty( $data['canary_deployment'] ) ) {
return false;
}
return $data['canary_deployment'];
}
public static function get_promotion_widgets() {
$data = self::get_info_data();
if ( ! isset( $data['pro_widgets'] ) ) {
$data['pro_widgets'] = [];
}
return $data['pro_widgets'];
}
/**
* Get templates data.
*
* Retrieve the templates data from a remote server.
*
* @since 2.0.0
* @access public
* @static
*
* @param bool $force_update Optional. Whether to force the data update or
* not. Default is false.
*
/home/biyoahl/www/wp-content/plugins/elementor/modules/promotions/module.php
return 'promotions';
}
public function __construct() {
parent::__construct();
add_action( 'admin_init', function () {
$this->handle_external_redirects();
} );
add_action( 'elementor/admin/menu/register', function ( Admin_Menu_Manager $admin_menu ) {
$this->register_menu_items( $admin_menu );
}, static::ADMIN_MENU_PRIORITY );
add_action( 'elementor/admin/menu/register', function ( Admin_Menu_Manager $admin_menu ) {
$this->register_promotion_menu_item( $admin_menu );
}, static::ADMIN_MENU_PROMOTIONS_PRIORITY );
add_action( 'elementor/widgets/register', function( Widgets_Manager $manager ) {
foreach ( Api::get_promotion_widgets() as $widget_data ) {
$manager->register( new Widgets\Pro_Widget_Promotion( [], [
'widget_name' => $widget_data['name'],
'widget_title' => $widget_data['title'],
] ) );
}
} );
}
private function handle_external_redirects() {
if ( empty( $_GET['page'] ) ) {
return;
}
if ( 'go_elementor_pro' === $_GET['page'] ) {
wp_redirect( Go_Pro_Promotion_Item::get_url() );
die;
}
}
private function register_menu_items( Admin_Menu_Manager $admin_menu ) {
/home/biyoahl/www/wp-includes/class-wp-hook.php
$this->iterations[ $nesting_level ] = $this->priorities;
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
/home/biyoahl/www/wp-includes/class-wp-hook.php
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
*/
public function do_action( $args ) {
$this->doing_action = true;
$this->apply_filters( '', $args );
// If there are recursive calls to the current action, we haven't finished it until we get to the last one.
if ( ! $this->nesting_level ) {
$this->doing_action = false;
}
}
/**
* Processes the functions hooked into the 'all' hook.
*
* @since 4.7.0
*
* @param array $args Arguments to pass to the hook callbacks. Passed by reference.
*/
public function do_all_hook( &$args ) {
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = $this->priorities;
do {
$priority = current( $this->iterations[ $nesting_level ] );
/home/biyoahl/www/wp-includes/plugin.php
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
if ( empty( $arg ) ) {
$arg[] = '';
} elseif ( is_array( $arg[0] ) && 1 === count( $arg[0] ) && isset( $arg[0][0] ) && is_object( $arg[0][0] ) ) {
// Backward compatibility for PHP4-style passing of `array( &$this )` as action `$arg`.
$arg[0] = $arg[0][0];
}
$wp_filter[ $hook_name ]->do_action( $arg );
array_pop( $wp_current_filter );
}
/**
* Calls the callback functions that have been added to an action hook, specifying arguments in an array.
*
* @since 2.1.0
*
* @see do_action() This function is identical, but the arguments passed to the
* functions hooked to `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_actions Stores the number of times each action was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the action to be executed.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
*/
function do_action_ref_array( $hook_name, $args ) {
/home/biyoahl/www/wp-content/plugins/elementor/includes/managers/widgets.php
*
* @param Widgets_Manager $this The widgets manager.
*/
Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->do_deprecated_action(
'elementor/widgets/widgets_registered',
[ $this ],
'3.5.0',
'elementor/widgets/register'
);
/**
* After widgets registered.
*
* Fires after Elementor widgets are registered.
*
* @since 3.5.0
*
* @param Widgets_Manager $this The widgets manager.
*/
do_action( 'elementor/widgets/register', $this );
}
/**
* Register WordPress widgets.
*
* Add native WordPress widget to the list of registered widget types.
*
* Exclude the widgets that are in Elementor widgets black list. Theme and
* plugin authors can filter the black list.
*
* @since 2.0.0
* @access private
*/
private function register_wp_widgets() {
global $wp_widget_factory;
// Allow themes/plugins to filter out their widgets.
$black_list = [];
/**
/home/biyoahl/www/wp-content/plugins/elementor/includes/managers/widgets.php
unset( $this->_widget_types[ $name ] );
return true;
}
/**
* Get widget types.
*
* Retrieve the registered widget types list.
*
* @since 1.0.0
* @access public
*
* @param string $widget_name Optional. Widget name. Default is null.
*
* @return Widget_Base|Widget_Base[]|null Registered widget types.
*/
public function get_widget_types( $widget_name = null ) {
if ( is_null( $this->_widget_types ) ) {
$this->init_widgets();
}
if ( null !== $widget_name ) {
return isset( $this->_widget_types[ $widget_name ] ) ? $this->_widget_types[ $widget_name ] : null;
}
return $this->_widget_types;
}
/**
* Get widget types config.
*
* Retrieve all the registered widgets with config for each widgets.
*
* @since 1.0.0
* @access public
*
* @return array Registered widget types with each widget config.
*/
public function get_widget_types_config() {
/home/biyoahl/www/wp-content/plugins/elementor/includes/elements/column.php
*
* @param array $element_data Element ID.
*
* @return Element_Base|false Column default child type.
*/
protected function _get_default_child_type( array $element_data ) {
if ( 'section' === $element_data['elType'] ) {
return Plugin::$instance->elements_manager->get_element_types( 'section' );
}
if ( 'container' === $element_data['elType'] ) {
return Plugin::$instance->elements_manager->get_element_types( 'container' );
}
// If the element doesn't exists (disabled element, experiment, etc.), return false to prevent errors.
if ( empty( $element_data['widgetType'] ) ) {
return false;
}
return Plugin::$instance->widgets_manager->get_widget_types( $element_data['widgetType'] );
}
/**
* Get HTML tag.
*
* Retrieve the column element HTML tag.
*
* @since 1.5.3
* @access private
*
* @return string Column HTML tag.
*/
private function get_html_tag() {
$html_tag = $this->get_settings( 'html_tag' );
if ( empty( $html_tag ) ) {
$html_tag = 'div';
}
return Utils::validate_html_tag( $html_tag );
/home/biyoahl/www/wp-content/plugins/elementor/includes/base/element-base.php
* This method is meant to be overridden by the element.
*/
protected function on_save( array $settings ) {
return $settings;
}
/**
* Get child type.
*
* Retrieve the element child type based on element data.
*
* @since 2.0.0
* @access private
*
* @param array $element_data Element ID.
*
* @return Element_Base|false Child type or false if type not found.
*/
private function get_child_type( $element_data ) {
$child_type = $this->_get_default_child_type( $element_data );
// If it's not a valid widget ( like a deactivated plugin )
if ( ! $child_type ) {
return false;
}
/**
* Element child type.
*
* Filters the child type of the element.
*
* @since 1.0.0
*
* @param Element_Base $child_type The child element.
* @param array $element_data The original element ID.
* @param Element_Base $this The original element.
*/
$child_type = apply_filters( 'elementor/element/get_child_type', $child_type, $element_data, $this );
return $child_type;
/home/biyoahl/www/wp-content/plugins/elementor/includes/base/element-base.php
}
/**
* Add new child element.
*
* Register new child element to allow hierarchy.
*
* @since 1.0.0
* @access public
* @param array $child_data Child element data.
* @param array $child_args Child element arguments.
*
* @return Element_Base|false Child element instance, or false if failed.
*/
public function add_child( array $child_data, array $child_args = [] ) {
if ( null === $this->children ) {
$this->init_children();
}
$child_type = $this->get_child_type( $child_data );
if ( ! $child_type ) {
return false;
}
$child = Plugin::$instance->elements_manager->create_element_instance( $child_data, $child_args, $child_type );
if ( $child ) {
$this->children[] = $child;
}
return $child;
}
/**
* Add link render attributes.
*
* Used to add link tag attributes to a specific HTML element.
*
* The HTML link tag is represented by the element parameter. The `url_control` parameter
/home/biyoahl/www/wp-content/plugins/elementor/includes/base/element-base.php
* Initializing the element child elements.
*
* @since 2.0.0
* @access private
*/
private function init_children() {
$this->children = [];
$children_data = $this->get_data( 'elements' );
if ( ! $children_data ) {
return;
}
foreach ( $children_data as $child_data ) {
if ( ! $child_data ) {
continue;
}
$this->add_child( $child_data );
}
}
/**
* Element base constructor.
*
* Initializing the element base class using `$data` and `$args`.
*
* The `$data` parameter is required for a normal instance because of the
* way Elementor renders data when initializing elements.
*
* @since 1.0.0
* @access public
*
* @param array $data Optional. Element data. Default is an empty array.
* @param array|null $args Optional. Element default arguments. Default is null.
**/
public function __construct( array $data = [], array $args = null ) {
if ( $data ) {
$this->is_type_instance = false;
/home/biyoahl/www/wp-content/plugins/elementor/includes/base/element-base.php
* @since 2.3.1
* @access protected
*/
protected function should_print_empty() {
return true;
}
/**
* Get child elements.
*
* Retrieve all the child elements of this element.
*
* @since 1.0.0
* @access public
*
* @return Element_Base[] Child elements.
*/
public function get_children() {
if ( null === $this->children ) {
$this->init_children();
}
return $this->children;
}
/**
* Get default arguments.
*
* Retrieve the element default arguments. Used to return all the default
* arguments or a specific default argument, if one is set.
*
* @since 1.0.0
* @access public
*
* @param array $item Optional. Default is null.
*
* @return array Default argument(s).
*/
public function get_default_args( $item = null ) {
return self::get_items( $this->default_args, $item );
/home/biyoahl/www/wp-content/plugins/elementor/includes/base/element-base.php
* @since 1.0.0
* @access protected
* @deprecated 3.1.0 Use `print_content()` method instead.
*/
protected function _print_content() {
Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( __METHOD__, '3.1.0', 'print_content()' );
$this->print_content();
}
/**
* Print element content.
*
* Output the element final HTML on the frontend.
*
* @since 3.1.0
* @access protected
*/
protected function print_content() {
foreach ( $this->get_children() as $child ) {
$child->print_element();
}
}
/**
* Get initial config.
*
* Retrieve the current element initial configuration.
*
* Adds more configuration on top of the controls list and the tabs assigned
* to the control. This method also adds element name, type, icon and more.
*
* @since 2.9.0
* @access protected
*
* @return array The initial config.
*/
protected function get_initial_config() {
$config = [
'name' => $this->get_name(),
/home/biyoahl/www/wp-content/plugins/elementor/includes/base/element-base.php
* Before frontend element render.
*
* Fires before Elementor element is rendered in the frontend.
*
* The dynamic portion of the hook name, `$element_type`, refers to the element type.
*
* @since 1.0.0
*
* @param Element_Base $this The element.
*/
do_action( "elementor/frontend/{$element_type}/before_render", $this );
ob_start();
if ( $this->has_own_method( '_print_content', self::class ) ) {
Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( '_print_content', '3.1.0', __CLASS__ . '::print_content()' );
$this->_print_content();
} else {
$this->print_content();
}
$content = ob_get_clean();
$should_render = ( ! empty( $content ) || $this->should_print_empty() );
/**
* Should the element be rendered for frontend
*
* Filters if the element should be rendered on frontend.
*
* @since 2.3.3
*
* @param bool true The element.
* @param Element_Base $this The element.
*/
$should_render = apply_filters( "elementor/frontend/{$element_type}/should_render", $should_render, $this );
if ( $should_render ) {
if ( $this->has_own_method( '_add_render_attributes', self::class ) ) {
/home/biyoahl/www/wp-content/plugins/elementor/includes/base/element-base.php
* @access protected
* @deprecated 3.1.0 Use `print_content()` method instead.
*/
protected function _print_content() {
Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( __METHOD__, '3.1.0', 'print_content()' );
$this->print_content();
}
/**
* Print element content.
*
* Output the element final HTML on the frontend.
*
* @since 3.1.0
* @access protected
*/
protected function print_content() {
foreach ( $this->get_children() as $child ) {
$child->print_element();
}
}
/**
* Get initial config.
*
* Retrieve the current element initial configuration.
*
* Adds more configuration on top of the controls list and the tabs assigned
* to the control. This method also adds element name, type, icon and more.
*
* @since 2.9.0
* @access protected
*
* @return array The initial config.
*/
protected function get_initial_config() {
$config = [
'name' => $this->get_name(),
'elType' => $this->get_type(),
/home/biyoahl/www/wp-content/plugins/elementor/includes/base/element-base.php
* Before frontend element render.
*
* Fires before Elementor element is rendered in the frontend.
*
* The dynamic portion of the hook name, `$element_type`, refers to the element type.
*
* @since 1.0.0
*
* @param Element_Base $this The element.
*/
do_action( "elementor/frontend/{$element_type}/before_render", $this );
ob_start();
if ( $this->has_own_method( '_print_content', self::class ) ) {
Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( '_print_content', '3.1.0', __CLASS__ . '::print_content()' );
$this->_print_content();
} else {
$this->print_content();
}
$content = ob_get_clean();
$should_render = ( ! empty( $content ) || $this->should_print_empty() );
/**
* Should the element be rendered for frontend
*
* Filters if the element should be rendered on frontend.
*
* @since 2.3.3
*
* @param bool true The element.
* @param Element_Base $this The element.
*/
$should_render = apply_filters( "elementor/frontend/{$element_type}/should_render", $should_render, $this );
if ( $should_render ) {
if ( $this->has_own_method( '_add_render_attributes', self::class ) ) {
/home/biyoahl/www/wp-content/plugins/elementor/includes/base/element-base.php
* @access protected
* @deprecated 3.1.0 Use `print_content()` method instead.
*/
protected function _print_content() {
Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( __METHOD__, '3.1.0', 'print_content()' );
$this->print_content();
}
/**
* Print element content.
*
* Output the element final HTML on the frontend.
*
* @since 3.1.0
* @access protected
*/
protected function print_content() {
foreach ( $this->get_children() as $child ) {
$child->print_element();
}
}
/**
* Get initial config.
*
* Retrieve the current element initial configuration.
*
* Adds more configuration on top of the controls list and the tabs assigned
* to the control. This method also adds element name, type, icon and more.
*
* @since 2.9.0
* @access protected
*
* @return array The initial config.
*/
protected function get_initial_config() {
$config = [
'name' => $this->get_name(),
'elType' => $this->get_type(),
/home/biyoahl/www/wp-content/plugins/elementor/includes/base/element-base.php
* Before frontend element render.
*
* Fires before Elementor element is rendered in the frontend.
*
* The dynamic portion of the hook name, `$element_type`, refers to the element type.
*
* @since 1.0.0
*
* @param Element_Base $this The element.
*/
do_action( "elementor/frontend/{$element_type}/before_render", $this );
ob_start();
if ( $this->has_own_method( '_print_content', self::class ) ) {
Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( '_print_content', '3.1.0', __CLASS__ . '::print_content()' );
$this->_print_content();
} else {
$this->print_content();
}
$content = ob_get_clean();
$should_render = ( ! empty( $content ) || $this->should_print_empty() );
/**
* Should the element be rendered for frontend
*
* Filters if the element should be rendered on frontend.
*
* @since 2.3.3
*
* @param bool true The element.
* @param Element_Base $this The element.
*/
$should_render = apply_filters( "elementor/frontend/{$element_type}/should_render", $should_render, $this );
if ( $should_render ) {
if ( $this->has_own_method( '_add_render_attributes', self::class ) ) {
/home/biyoahl/www/wp-content/plugins/elementor/includes/base/element-base.php
* @access protected
* @deprecated 3.1.0 Use `print_content()` method instead.
*/
protected function _print_content() {
Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( __METHOD__, '3.1.0', 'print_content()' );
$this->print_content();
}
/**
* Print element content.
*
* Output the element final HTML on the frontend.
*
* @since 3.1.0
* @access protected
*/
protected function print_content() {
foreach ( $this->get_children() as $child ) {
$child->print_element();
}
}
/**
* Get initial config.
*
* Retrieve the current element initial configuration.
*
* Adds more configuration on top of the controls list and the tabs assigned
* to the control. This method also adds element name, type, icon and more.
*
* @since 2.9.0
* @access protected
*
* @return array The initial config.
*/
protected function get_initial_config() {
$config = [
'name' => $this->get_name(),
'elType' => $this->get_type(),
/home/biyoahl/www/wp-content/plugins/elementor/includes/base/element-base.php
* Before frontend element render.
*
* Fires before Elementor element is rendered in the frontend.
*
* The dynamic portion of the hook name, `$element_type`, refers to the element type.
*
* @since 1.0.0
*
* @param Element_Base $this The element.
*/
do_action( "elementor/frontend/{$element_type}/before_render", $this );
ob_start();
if ( $this->has_own_method( '_print_content', self::class ) ) {
Plugin::$instance->modules_manager->get_modules( 'dev-tools' )->deprecation->deprecated_function( '_print_content', '3.1.0', __CLASS__ . '::print_content()' );
$this->_print_content();
} else {
$this->print_content();
}
$content = ob_get_clean();
$should_render = ( ! empty( $content ) || $this->should_print_empty() );
/**
* Should the element be rendered for frontend
*
* Filters if the element should be rendered on frontend.
*
* @since 2.3.3
*
* @param bool true The element.
* @param Element_Base $this The element.
*/
$should_render = apply_filters( "elementor/frontend/{$element_type}/should_render", $should_render, $this );
if ( $should_render ) {
if ( $this->has_own_method( '_add_render_attributes', self::class ) ) {
/home/biyoahl/www/wp-content/plugins/elementor/core/base/document.php
/**
* @since 2.1.3
* @access protected
*/
protected function print_elements( $elements_data ) {
// Collect all data updaters that should be updated on runtime.
$runtime_elements_iteration_actions = $this->get_runtime_elements_iteration_actions();
if ( $runtime_elements_iteration_actions ) {
$this->iterate_elements( $elements_data, $runtime_elements_iteration_actions, 'render' );
}
foreach ( $elements_data as $element_data ) {
$element = Plugin::$instance->elements_manager->create_element_instance( $element_data );
if ( ! $element ) {
continue;
}
$element->print_element();
}
}
protected function register_document_controls() {
$this->start_controls_section(
'document_settings',
[
'label' => esc_html__( 'General Settings', 'elementor' ),
'tab' => Controls_Manager::TAB_SETTINGS,
]
);
$this->add_control(
'post_title',
[
'label' => esc_html__( 'Title', 'elementor' ),
'type' => Controls_Manager::TEXT,
'default' => $this->post->post_title,
'label_block' => true,
]
/home/biyoahl/www/wp-content/plugins/elementor/core/base/document.php
],
];
return Plugin::$instance->experiments->is_feature_active( 'container' )
? $this->get_container_elements_data( $converted_blocks )
: $this->get_sections_elements_data( $converted_blocks );
}
/**
* @since 2.1.3
* @access public
*/
public function print_elements_with_wrapper( $elements_data = null ) {
if ( ! $elements_data ) {
$elements_data = $this->get_elements_data();
}
?>
<div <?php Utils::print_html_attributes( $this->get_container_attributes() ); ?>>
<?php $this->print_elements( $elements_data ); ?>
</div>
<?php
}
/**
* @since 2.0.0
* @access public
*/
public function get_css_wrapper_selector() {
return '';
}
/**
* @since 2.0.0
* @access public
*/
public function get_panel_page_settings() {
return [
'title' => sprintf(
/* translators: %s: Document title. */
/home/biyoahl/www/wp-content/plugins/elementor/includes/frontend.php
// Handle JS and Customizer requests, with CSS inline.
if ( is_customize_preview() || wp_doing_ajax() ) {
$with_css = true;
}
/**
* Builder Content - With CSS
*
* Allows overriding the `$with_css` parameter which is a factor in determining whether to print the document's
* CSS and font links inline in a `style` tag above the document's markup.
*
* @param $with_css boolean
*/
$with_css = apply_filters( 'elementor/frontend/builder_content/before_print_css', $with_css );
if ( ! empty( $css_file ) && $with_css ) {
$css_file->print_css();
}
$document->print_elements_with_wrapper( $data );
$content = ob_get_clean();
$content = $this->process_more_tag( $content );
/**
* Frontend content.
*
* Filters the content in the frontend.
*
* @since 1.0.0
*
* @param string $content The content.
*/
$content = apply_filters( 'elementor/frontend/the_content', $content );
if ( ! empty( $content ) ) {
$this->_has_elementor_in_page = true;
}
/home/biyoahl/www/wp-content/plugins/elementor/includes/frontend.php
*
* @since 1.0.0
* @access public
*
* @param string $content The post content.
*
* @return string The post content.
*/
public function apply_builder_in_content( $content ) {
$this->restore_content_filters();
if ( Plugin::$instance->preview->is_preview_mode() || $this->_is_excerpt ) {
return $content;
}
// Remove the filter itself in order to allow other `the_content` in the elements
$this->remove_content_filter();
$post_id = get_the_ID();
$builder_content = $this->get_builder_content( $post_id );
if ( ! empty( $builder_content ) ) {
$content = $builder_content;
$this->remove_content_filters();
}
// Add the filter again for other `the_content` calls
$this->add_content_filter();
return $content;
}
/**
* Retrieve builder content.
*
* Used to render and return the post content with all the Elementor elements.
*
* Note that this method is an internal method, please use `get_builder_content_for_display()`.
*
* @since 1.0.0
/home/biyoahl/www/wp-includes/class-wp-hook.php
$this->iterations[ $nesting_level ] = $this->priorities;
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
/home/biyoahl/www/wp-includes/plugin.php
$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
_wp_call_all_hook( $all_args );
}
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return $value;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
// Pass the value to WP_Hook.
array_unshift( $args, $value );
$filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
array_pop( $wp_current_filter );
return $filtered;
}
/**
* Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
*
* @since 3.0.0
*
* @see apply_filters() This function is identical, but the arguments passed to the
* functions hooked to `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_filters Stores the number of times each filter was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the filter hook.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
/home/biyoahl/www/wp-includes/post-template.php
/**
* Displays the post content.
*
* @since 0.71
*
* @param string $more_link_text Optional. Content for when there is more text.
* @param bool $strip_teaser Optional. Strip teaser content before the more text. Default false.
*/
function the_content( $more_link_text = null, $strip_teaser = false ) {
$content = get_the_content( $more_link_text, $strip_teaser );
/**
* Filters the post content.
*
* @since 0.71
*
* @param string $content Content of the current post.
*/
$content = apply_filters( 'the_content', $content );
$content = str_replace( ']]>', ']]>', $content );
echo $content;
}
/**
* Retrieves the post content.
*
* @since 0.71
* @since 5.2.0 Added the `$post` parameter.
*
* @global int $page Page number of a single post/page.
* @global int $more Boolean indicator for whether single post/page is being viewed.
* @global bool $preview Whether post/page is in preview mode.
* @global array $pages Array of all pages in post/page. Each array element contains
* part of the content separated by the `<!--nextpage-->` tag.
* @global int $multipage Boolean indicator for whether multiple pages are in play.
*
* @param string $more_link_text Optional. Content for when there is more text.
* @param bool $strip_teaser Optional. Strip teaser content before the more text. Default false.
* @param WP_Post|object|int $post Optional. WP_Post instance or Post ID/object. Default null.
/home/biyoahl/www/wp-content/uploads/wpemerge/cache/blade/5ea3c868c59848f7fbe15a9d10d0c68066c0e0f1.php
<div class="articles">
<div class="articles-inner container mx-auto">
<?php while(have_posts()): ?>
<?php the_post() ?>
<div <?php post_class( 'article' ) ?>>
<?php if( ! is_page() ): ?>
<header class="article__head">
<?php if(has_post_thumbnail()): ?>
<div class="article__thumbnail">
<?php the_post_thumbnail() ?>
</div>
<?php endif; ?>
<?php echo $__env->make('views.partials.post-meta', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</header>
<?php endif; ?>
<div class="article__body">
<div class="article__entry">
<?php the_content() ?>
</div>
</div>
</div>
<?php endwhile; ?>
</div>
</div>
<?php echo $__env->make('views.partials.pagination', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php else: ?>
<div class="articles">
<div class="article article--error404 article--not-found">
<div class="article__body">
<div class="article__entry">
<p><?php echo e(techne_get_index_404_message()); ?></p>
<?php get_search_form(); ?>
</div>
</div>
</div>
</div>
<?php endif; ?>
/home/biyoahl/www/wp-content/themes/techne/vendor/illuminate/view/Engines/PhpEngine.php
/**
* Get the evaluated contents of the view at the given path.
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
/home/biyoahl/www/wp-content/themes/techne/vendor/illuminate/view/Engines/CompilerEngine.php
*
* @param string $path
* @param array $data
* @return string
*/
public function get($path, array $data = [])
{
$this->lastCompiled[] = $path;
// If this given view has expired, which means it has simply been edited since
// it was last compiled, we will re-compile the views so we can evaluate a
// fresh copy of the view. We'll pass the compiler the path of the view.
if ($this->compiler->isExpired($path)) {
$this->compiler->compile($path);
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
$e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
parent::handleViewException($e, $obLevel);
/home/biyoahl/www/wp-content/themes/techne/vendor/illuminate/view/View.php
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
public function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
foreach ($data as $key => $value) {
if ($value instanceof Renderable) {
$data[$key] = $value->render();
}
}
return $data;
}
/home/biyoahl/www/wp-content/themes/techne/vendor/illuminate/view/View.php
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
/home/biyoahl/www/wp-content/themes/techne/vendor/illuminate/view/View.php
$this->view = $view;
$this->path = $path;
$this->engine = $engine;
$this->factory = $factory;
$this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return array|string
*
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// another view gets rendered in the future by the application developer.
$this->factory->flushStateIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Throwable $e) {
$this->factory->flushState();
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
/home/biyoahl/www/wp-content/uploads/wpemerge/cache/blade/1ee5b90f0fd881d9525231e503ebdbdd31ca0598.php
<?php
/**
* The main template file.
*
* This is the template that is used for displaying:
* - posts
* - single posts
* - archive pages
* - search results pages
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Techne
*/
?>
<?php $__env->startSection('content'); ?>
<?php echo $__env->make('views.partials.loop', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('views.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/biyoahl/www/wp-content/themes/techne/views/index.blade.php ENDPATH**/ ?>
/home/biyoahl/www/wp-content/themes/techne/vendor/illuminate/view/Engines/PhpEngine.php
/**
* Get the evaluated contents of the view at the given path.
*
* @param string $__path
* @param array $__data
* @return string
*/
protected function evaluatePath($__path, $__data)
{
$obLevel = ob_get_level();
ob_start();
extract($__data, EXTR_SKIP);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
while (ob_get_level() > $obLevel) {
ob_end_clean();
/home/biyoahl/www/wp-content/themes/techne/vendor/illuminate/view/Engines/CompilerEngine.php
*
* @param string $path
* @param array $data
* @return string
*/
public function get($path, array $data = [])
{
$this->lastCompiled[] = $path;
// If this given view has expired, which means it has simply been edited since
// it was last compiled, we will re-compile the views so we can evaluate a
// fresh copy of the view. We'll pass the compiler the path of the view.
if ($this->compiler->isExpired($path)) {
$this->compiler->compile($path);
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
/**
* Handle a view exception.
*
* @param \Throwable $e
* @param int $obLevel
* @return void
*
* @throws \Throwable
*/
protected function handleViewException(Throwable $e, $obLevel)
{
$e = new ErrorException($this->getMessage($e), 0, 1, $e->getFile(), $e->getLine(), $e);
parent::handleViewException($e, $obLevel);
/home/biyoahl/www/wp-content/themes/techne/vendor/illuminate/view/View.php
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
* Get the data bound to the view instance.
*
* @return array
*/
public function gatherData()
{
$data = array_merge($this->factory->getShared(), $this->data);
foreach ($data as $key => $value) {
if ($value instanceof Renderable) {
$data[$key] = $value->render();
}
}
return $data;
}
/home/biyoahl/www/wp-content/themes/techne/vendor/illuminate/view/View.php
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
*/
protected function renderContents()
{
// We will keep track of the amount of views being rendered so we can flush
// the section after the complete rendering operation is done. This will
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
return $contents;
}
/**
* Get the evaluated contents of the view.
*
* @return string
*/
protected function getContents()
{
return $this->engine->get($this->path, $this->gatherData());
}
/**
/home/biyoahl/www/wp-content/themes/techne/vendor/illuminate/view/View.php
$this->view = $view;
$this->path = $path;
$this->engine = $engine;
$this->factory = $factory;
$this->data = $data instanceof Arrayable ? $data->toArray() : (array) $data;
}
/**
* Get the string contents of the view.
*
* @param callable|null $callback
* @return array|string
*
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// another view gets rendered in the future by the application developer.
$this->factory->flushStateIfDoneRendering();
return ! is_null($response) ? $response : $contents;
} catch (Throwable $e) {
$this->factory->flushState();
throw $e;
}
}
/**
* Get the contents of the view instance.
*
* @return string
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge-blade/src/View/Blade.php
$container->bindIf('config', function() use ( $view_paths, $cache_path ) {
return [
'view.paths' => $view_paths,
'view.compiled' => $cache_path,
];
}, true);
}
/**
* Render a view to a string
*
* @param string $view
* @param array $data
* @param array $merge_data
*
* @return string
*/
public function render( $view, $data = [], $merge_data = [] ) {
$view = $this->container['view']->make( $view, $data, $merge_data );
return $view->render();
}
/**
* Get the compiler
*
* @return mixed
*/
public function get_compiler() {
$blade_engine = $this->engine_resolver->resolve( 'blade' );
return $blade_engine->getCompiler();
}
/**
* Get the view factory
*
* @return mixed
*/
public function get_view_factory() {
return $this->container['view'];
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge-blade/src/View/BladeView.php
return $this->blade_engine;
}
/**
* {@inheritDoc}
*/
public function setBladeEngine( Blade $blade_engine ) {
$this->blade_engine = $blade_engine;
return $this;
}
/**
* {@inheritDoc}
*/
public function toString() {
if ( empty( $this->getName() ) ) {
throw new ViewException( 'View must have a name.' );
}
return $this->getBladeEngine()->render( $this->getName(), $this->getContext() );
}
/**
* {@inheritDoc}
*/
public function toResponse() {
return (new Response())
->withHeader( 'Content-Type', 'text/html' )
->withBody( Psr7\stream_for( $this->toString() ) );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/View/ViewService.php
$matches = [];
$is_partial = preg_match( $core_partial, $name, $matches );
if ( $is_partial && apply_filters( "wpemerge.partials.{$matches[1]}.hook", true ) ) {
do_action( "get_{$matches[1]}", $matches[2] );
}
}
/**
* Render a view.
*
* @codeCoverageIgnore
* @param string|string[] $views
* @param array<string, mixed> $context
* @return void
*/
public function render( $views, $context = [] ) {
$view = $this->make( $views )->with( $context );
$this->triggerPartialHooks( $view->getName() );
echo $view->toString();
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/View/ViewServiceProvider.php
};
$container[ WPEMERGE_VIEW_PHP_VIEW_ENGINE_KEY ] = function ( $c ) {
$finder = new PhpViewFilesystemFinder( MixedType::toArray( $c[ WPEMERGE_CONFIG_KEY ]['views'] ) );
return new PhpViewEngine( $c[ WPEMERGE_VIEW_COMPOSE_ACTION_KEY ], $finder );
};
$container[ WPEMERGE_VIEW_ENGINE_KEY ] = function ( $c ) {
return $c[ WPEMERGE_VIEW_PHP_VIEW_ENGINE_KEY ];
};
$app = $container[ WPEMERGE_APPLICATION_KEY ];
$app->alias( 'views', WPEMERGE_VIEW_SERVICE_KEY );
$app->alias( 'view', function () use ( $app ) {
return call_user_func_array( [$app->views(), 'make'], func_get_args() );
} );
$app->alias( 'render', function () use ( $app ) {
return call_user_func_array( [$app->views(), 'render'], func_get_args() );
} );
$app->alias( 'layoutContent', function () use ( $app ) {
/** @var PhpViewEngine $engine */
$engine = $app->resolve( WPEMERGE_VIEW_PHP_VIEW_ENGINE_KEY );
echo $engine->getLayoutContent();
} );
}
/**
* {@inheritDoc}
*/
public function bootstrap( $container ) {
// Nothing to bootstrap.
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/View/ViewServiceProvider.php
};
$container[ WPEMERGE_VIEW_PHP_VIEW_ENGINE_KEY ] = function ( $c ) {
$finder = new PhpViewFilesystemFinder( MixedType::toArray( $c[ WPEMERGE_CONFIG_KEY ]['views'] ) );
return new PhpViewEngine( $c[ WPEMERGE_VIEW_COMPOSE_ACTION_KEY ], $finder );
};
$container[ WPEMERGE_VIEW_ENGINE_KEY ] = function ( $c ) {
return $c[ WPEMERGE_VIEW_PHP_VIEW_ENGINE_KEY ];
};
$app = $container[ WPEMERGE_APPLICATION_KEY ];
$app->alias( 'views', WPEMERGE_VIEW_SERVICE_KEY );
$app->alias( 'view', function () use ( $app ) {
return call_user_func_array( [$app->views(), 'make'], func_get_args() );
} );
$app->alias( 'render', function () use ( $app ) {
return call_user_func_array( [$app->views(), 'render'], func_get_args() );
} );
$app->alias( 'layoutContent', function () use ( $app ) {
/** @var PhpViewEngine $engine */
$engine = $app->resolve( WPEMERGE_VIEW_PHP_VIEW_ENGINE_KEY );
echo $engine->getLayoutContent();
} );
}
/**
* {@inheritDoc}
*/
public function bootstrap( $container ) {
// Nothing to bootstrap.
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Application/HasAliasesTrait.php
'method' => $method,
] );
}
/**
* Call alias if registered.
*
* @param string $method
* @param array $parameters
* @return mixed
*/
public function __call( $method, $parameters ) {
if ( ! $this->hasAlias( $method ) ) {
throw new BadMethodCallException( "Method {$method} does not exist." );
}
$alias = $this->aliases[ $method ];
if ( $alias['target'] instanceof Closure ) {
return call_user_func_array( $alias['target']->bindTo( $this, static::class ), $parameters );
}
$target = $this->resolve( $alias['target'] );
if ( ! empty( $alias['method'] ) ) {
return call_user_func_array( [$target, $alias['method']], $parameters );
}
return $target;
}
/**
* Resolve a dependency from the IoC container.
*
* @param string $key
* @return mixed|null
*/
abstract public function resolve( $key );
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Application/HasAliasesTrait.php
'method' => $method,
] );
}
/**
* Call alias if registered.
*
* @param string $method
* @param array $parameters
* @return mixed
*/
public function __call( $method, $parameters ) {
if ( ! $this->hasAlias( $method ) ) {
throw new BadMethodCallException( "Method {$method} does not exist." );
}
$alias = $this->aliases[ $method ];
if ( $alias['target'] instanceof Closure ) {
return call_user_func_array( $alias['target']->bindTo( $this, static::class ), $parameters );
}
$target = $this->resolve( $alias['target'] );
if ( ! empty( $alias['method'] ) ) {
return call_user_func_array( [$target, $alias['method']], $parameters );
}
return $target;
}
/**
* Resolve a dependency from the IoC container.
*
* @param string $key
* @return mixed|null
*/
abstract public function resolve( $key );
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Application/ApplicationTrait.php
* @param string $method
* @param array $parameters
* @return mixed
*/
public static function __callStatic( $method, $parameters ) {
$application = static::getApplication();
$callable = [$application, $method];
if ( ! $application ) {
throw new ConfigurationException(
'Application instance not created in ' . static::class . '. ' .
'Did you miss to call ' . static::class . '::make()?'
);
}
if ( ! is_callable( $callable ) ) {
throw new BadMethodCallException( 'Method ' . get_class( $application ) . '::' . $method . '() does not exist.' );
}
return call_user_func_array( $callable, $parameters );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Application/ApplicationTrait.php
* @param string $method
* @param array $parameters
* @return mixed
*/
public static function __callStatic( $method, $parameters ) {
$application = static::getApplication();
$callable = [$application, $method];
if ( ! $application ) {
throw new ConfigurationException(
'Application instance not created in ' . static::class . '. ' .
'Did you miss to call ' . static::class . '::make()?'
);
}
if ( ! is_callable( $callable ) ) {
throw new BadMethodCallException( 'Method ' . get_class( $application ) . '::' . $method . '() does not exist.' );
}
return call_user_func_array( $callable, $parameters );
}
}
/home/biyoahl/www/wp-content/themes/techne/index.php
<?php
/**
* This file is required by WordPress. Delegates the actual rendering to index.blade.php.
*
* @package Techne
* phpcs:disable
*/
\Techne::render( 'views.index' );
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/View/PhpViewEngine.php
if ( ! $this->exists( $layout_file ) ) {
throw new ViewNotFoundException( 'View layout not found for "' . $layout_file . '"' );
}
return $this->makeView( $this->canonical( $layout_file ), $this->finder->resolveFilepath( $layout_file ) );
}
/**
* Render a view.
*
* @param PhpView $__view
* @return string
*/
protected function renderView( PhpView $__view ) {
$__context = $__view->getContext();
ob_start();
extract( $__context, EXTR_OVERWRITE );
/** @noinspection PhpIncludeInspection */
include $__view->getFilepath();
return ob_get_clean();
}
/**
* Push layout content to the top of the stack.
*
* @codeCoverageIgnore
* @param PhpView $view
* @return void
*/
public function pushLayoutContent( PhpView $view ) {
$this->layout_content_stack[] = $view;
}
/**
* Pop the top-most layout content from the stack.
*
* @codeCoverageIgnore
* @return PhpView|null
*/
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/View/PhpViewEngine.php
}
/**
* Pop the top-most layout content from the stack, render and return it.
*
* @codeCoverageIgnore
* @return string
*/
public function getLayoutContent() {
$view = $this->popLayoutContent();
if ( ! $view ) {
return '';
}
$clone = clone $view;
call_user_func( $this->compose, $clone );
return $this->renderView( $clone );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/View/PhpView.php
/**
* {@inheritDoc}
* @throws ViewException
*/
public function toString() {
if ( empty( $this->getName() ) ) {
throw new ViewException( 'View must have a name.' );
}
if ( empty( $this->getFilepath() ) ) {
throw new ViewException( 'View must have a filepath.' );
}
$this->engine->pushLayoutContent( $this );
if ( $this->getLayout() !== null ) {
return $this->getLayout()->toString();
}
return $this->engine->getLayoutContent();
}
/**
* {@inheritDoc}
* @throws ViewException
*/
public function toResponse() {
return (new Response())
->withHeader( 'Content-Type', 'text/html' )
->withBody( Psr7\stream_for( $this->toString() ) );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/View/PhpView.php
throw new ViewException( 'View must have a filepath.' );
}
$this->engine->pushLayoutContent( $this );
if ( $this->getLayout() !== null ) {
return $this->getLayout()->toString();
}
return $this->engine->getLayoutContent();
}
/**
* {@inheritDoc}
* @throws ViewException
*/
public function toResponse() {
return (new Response())
->withHeader( 'Content-Type', 'text/html' )
->withBody( Psr7\stream_for( $this->toString() ) );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Controllers/WordPressController.php
*/
public function handle( RequestInterface $request, $view = '' ) {
if ( is_admin() || wp_doing_ajax() ) {
throw new ConfigurationException(
'Attempted to run the default WordPress controller on an ' .
'admin or AJAX page. Did you miss to specify a custom handler for ' .
'a route or accidentally used \App::route()->all() during admin ' .
'requests?'
);
}
if ( empty( $view ) ) {
throw new ConfigurationException(
'No view loaded for default WordPress controller. ' .
'Did you miss to specify a custom handler for an ajax or admin route?'
);
}
return $this->view_service->make( $view )
->toResponse()
->withStatus( http_response_code() );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Helpers/Handler.php
}
return $instance;
}
/**
* Execute the parsed handler with any provided arguments and return the result.
*
* @param mixed ,...$arguments
* @return mixed
*/
public function execute() {
$arguments = func_get_args();
$instance = $this->make();
if ( $instance instanceof Closure ) {
return call_user_func_array( $instance, $arguments );
}
return call_user_func_array( [$instance, $this->get()['method']], $arguments );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Helpers/Handler.php
}
return $instance;
}
/**
* Execute the parsed handler with any provided arguments and return the result.
*
* @param mixed ,...$arguments
* @return mixed
*/
public function execute() {
$arguments = func_get_args();
$instance = $this->make();
if ( $instance instanceof Closure ) {
return call_user_func_array( $instance, $arguments );
}
return call_user_func_array( [$instance, $this->get()['method']], $arguments );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
/**
* Make a middleware class instance.
*
* @codeCoverageIgnore
* @param string $class
* @return object
*/
protected function makeMiddleware( $class ) {
return $this->factory->make( $class );
}
/**
* Execute a handler.
*
* @param Handler $handler
* @param array $arguments
* @return ResponseInterface
*/
protected function executeHandler( Handler $handler, $arguments = [] ) {
$response = call_user_func_array( [$handler, 'execute'], $arguments );
$response = $this->toResponse( $response );
if ( ! $response instanceof ResponseInterface ) {
throw new ConfigurationException(
'Response returned by controller is not valid ' .
'(expected ' . ResponseInterface::class . '; received ' . gettype( $response ) . ').'
);
}
return $response;
}
/**
* {@inheritDoc}
*/
public function run( RequestInterface $request, $middleware, $handler, $arguments = [] ) {
$this->error_handler->register();
try {
$handler = $handler instanceof Handler ? $handler : $this->handler_factory->make( $handler );
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
/**
* Make a middleware class instance.
*
* @codeCoverageIgnore
* @param string $class
* @return object
*/
protected function makeMiddleware( $class ) {
return $this->factory->make( $class );
}
/**
* Execute a handler.
*
* @param Handler $handler
* @param array $arguments
* @return ResponseInterface
*/
protected function executeHandler( Handler $handler, $arguments = [] ) {
$response = call_user_func_array( [$handler, 'execute'], $arguments );
$response = $this->toResponse( $response );
if ( ! $response instanceof ResponseInterface ) {
throw new ConfigurationException(
'Response returned by controller is not valid ' .
'(expected ' . ResponseInterface::class . '; received ' . gettype( $response ) . ').'
);
}
return $response;
}
/**
* {@inheritDoc}
*/
public function run( RequestInterface $request, $middleware, $handler, $arguments = [] ) {
$this->error_handler->register();
try {
$handler = $handler instanceof Handler ? $handler : $this->handler_factory->make( $handler );
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
return $response;
}
/**
* {@inheritDoc}
*/
public function run( RequestInterface $request, $middleware, $handler, $arguments = [] ) {
$this->error_handler->register();
try {
$handler = $handler instanceof Handler ? $handler : $this->handler_factory->make( $handler );
$middleware = array_merge( $middleware, $this->getHandlerMiddleware( $handler ) );
$middleware = $this->expandMiddleware( $middleware );
$middleware = $this->uniqueMiddleware( $middleware );
$middleware = $this->sortMiddleware( $middleware );
$response = $this->executeMiddleware( $middleware, $request, function () use ( $handler, $arguments ) {
return $this->executeHandler( $handler, $arguments );
} );
} catch ( Exception $exception ) {
$response = $this->error_handler->getResponse( $request, $exception );
}
$this->error_handler->unregister();
return $response;
}
/**
* {@inheritDoc}
*/
public function handle( RequestInterface $request, $arguments = [] ) {
$route = $this->router->execute( $request );
if ( $route === null ) {
return null;
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Middleware/ExecutesMiddlewareTrait.php
* Make a middleware class instance.
*
* @param string $class
* @return object
*/
protected abstract function makeMiddleware( $class );
/**
* Execute an array of middleware recursively (last in, first out).
*
* @param string[][] $middleware
* @param RequestInterface $request
* @param Closure $next
* @return ResponseInterface
*/
protected function executeMiddleware( $middleware, RequestInterface $request, Closure $next ) {
$top_middleware = array_shift( $middleware );
if ( $top_middleware === null ) {
return $next( $request );
}
$top_middleware_next = function ( $request ) use ( $middleware, $next ) {
return $this->executeMiddleware( $middleware, $request, $next );
};
$instance = $this->makeMiddleware( $top_middleware[0] );
$arguments = array_merge(
[$request, $top_middleware_next],
array_slice( $top_middleware, 1 )
);
return call_user_func_array( [$instance, 'handle'], $arguments );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Middleware/ExecutesMiddlewareTrait.php
*/
protected abstract function makeMiddleware( $class );
/**
* Execute an array of middleware recursively (last in, first out).
*
* @param string[][] $middleware
* @param RequestInterface $request
* @param Closure $next
* @return ResponseInterface
*/
protected function executeMiddleware( $middleware, RequestInterface $request, Closure $next ) {
$top_middleware = array_shift( $middleware );
if ( $top_middleware === null ) {
return $next( $request );
}
$top_middleware_next = function ( $request ) use ( $middleware, $next ) {
return $this->executeMiddleware( $middleware, $request, $next );
};
$instance = $this->makeMiddleware( $top_middleware[0] );
$arguments = array_merge(
[$request, $top_middleware_next],
array_slice( $top_middleware, 1 )
);
return call_user_func_array( [$instance, 'handle'], $arguments );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Input/OldInputMiddleware.php
/**
* Constructor.
*
* @codeCoverageIgnore
* @param OldInput $old_input
*/
public function __construct( OldInput $old_input ) {
$this->old_input = $old_input;
}
/**
* {@inheritDoc}
*/
public function handle( RequestInterface $request, Closure $next ) {
if ( $this->old_input->enabled() && $request->isPost() ) {
$this->old_input->set( $request->body() );
}
return $next( $request );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Middleware/ExecutesMiddlewareTrait.php
* @return ResponseInterface
*/
protected function executeMiddleware( $middleware, RequestInterface $request, Closure $next ) {
$top_middleware = array_shift( $middleware );
if ( $top_middleware === null ) {
return $next( $request );
}
$top_middleware_next = function ( $request ) use ( $middleware, $next ) {
return $this->executeMiddleware( $middleware, $request, $next );
};
$instance = $this->makeMiddleware( $top_middleware[0] );
$arguments = array_merge(
[$request, $top_middleware_next],
array_slice( $top_middleware, 1 )
);
return call_user_func_array( [$instance, 'handle'], $arguments );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Middleware/ExecutesMiddlewareTrait.php
* @return ResponseInterface
*/
protected function executeMiddleware( $middleware, RequestInterface $request, Closure $next ) {
$top_middleware = array_shift( $middleware );
if ( $top_middleware === null ) {
return $next( $request );
}
$top_middleware_next = function ( $request ) use ( $middleware, $next ) {
return $this->executeMiddleware( $middleware, $request, $next );
};
$instance = $this->makeMiddleware( $top_middleware[0] );
$arguments = array_merge(
[$request, $top_middleware_next],
array_slice( $top_middleware, 1 )
);
return call_user_func_array( [$instance, 'handle'], $arguments );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Middleware/ExecutesMiddlewareTrait.php
*/
protected abstract function makeMiddleware( $class );
/**
* Execute an array of middleware recursively (last in, first out).
*
* @param string[][] $middleware
* @param RequestInterface $request
* @param Closure $next
* @return ResponseInterface
*/
protected function executeMiddleware( $middleware, RequestInterface $request, Closure $next ) {
$top_middleware = array_shift( $middleware );
if ( $top_middleware === null ) {
return $next( $request );
}
$top_middleware_next = function ( $request ) use ( $middleware, $next ) {
return $this->executeMiddleware( $middleware, $request, $next );
};
$instance = $this->makeMiddleware( $top_middleware[0] );
$arguments = array_merge(
[$request, $top_middleware_next],
array_slice( $top_middleware, 1 )
);
return call_user_func_array( [$instance, 'handle'], $arguments );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Flash/FlashMiddleware.php
*
* @var Flash
*/
protected $flash = null;
/**
* Constructor.
*
* @codeCoverageIgnore
* @param Flash $flash
*/
public function __construct( Flash $flash ) {
$this->flash = $flash;
}
/**
* {@inheritDoc}
*/
public function handle( RequestInterface $request, Closure $next ) {
$response = $next( $request );
if ( $this->flash->enabled() ) {
$this->flash->shift();
$this->flash->save();
}
return $response;
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Middleware/ExecutesMiddlewareTrait.php
* @return ResponseInterface
*/
protected function executeMiddleware( $middleware, RequestInterface $request, Closure $next ) {
$top_middleware = array_shift( $middleware );
if ( $top_middleware === null ) {
return $next( $request );
}
$top_middleware_next = function ( $request ) use ( $middleware, $next ) {
return $this->executeMiddleware( $middleware, $request, $next );
};
$instance = $this->makeMiddleware( $top_middleware[0] );
$arguments = array_merge(
[$request, $top_middleware_next],
array_slice( $top_middleware, 1 )
);
return call_user_func_array( [$instance, 'handle'], $arguments );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Middleware/ExecutesMiddlewareTrait.php
* @return ResponseInterface
*/
protected function executeMiddleware( $middleware, RequestInterface $request, Closure $next ) {
$top_middleware = array_shift( $middleware );
if ( $top_middleware === null ) {
return $next( $request );
}
$top_middleware_next = function ( $request ) use ( $middleware, $next ) {
return $this->executeMiddleware( $middleware, $request, $next );
};
$instance = $this->makeMiddleware( $top_middleware[0] );
$arguments = array_merge(
[$request, $top_middleware_next],
array_slice( $top_middleware, 1 )
);
return call_user_func_array( [$instance, 'handle'], $arguments );
}
}
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
return $response;
}
/**
* {@inheritDoc}
*/
public function run( RequestInterface $request, $middleware, $handler, $arguments = [] ) {
$this->error_handler->register();
try {
$handler = $handler instanceof Handler ? $handler : $this->handler_factory->make( $handler );
$middleware = array_merge( $middleware, $this->getHandlerMiddleware( $handler ) );
$middleware = $this->expandMiddleware( $middleware );
$middleware = $this->uniqueMiddleware( $middleware );
$middleware = $this->sortMiddleware( $middleware );
$response = $this->executeMiddleware( $middleware, $request, function () use ( $handler, $arguments ) {
return $this->executeHandler( $handler, $arguments );
} );
} catch ( Exception $exception ) {
$response = $this->error_handler->getResponse( $request, $exception );
}
$this->error_handler->unregister();
return $response;
}
/**
* {@inheritDoc}
*/
public function handle( RequestInterface $request, $arguments = [] ) {
$route = $this->router->execute( $request );
if ( $route === null ) {
return null;
}
$route_arguments = $route->getArguments( $request );
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
*/
public function handle( RequestInterface $request, $arguments = [] ) {
$route = $this->router->execute( $request );
if ( $route === null ) {
return null;
}
$route_arguments = $route->getArguments( $request );
$request = $request
->withAttribute( 'route', $route )
->withAttribute( 'route_arguments', $route_arguments );
$response = $this->run(
$request,
$route->getAttribute( 'middleware', [] ),
$route->getAttribute( 'handler' ),
array_merge(
[$request],
$arguments,
$route_arguments
)
);
$this->container[ WPEMERGE_RESPONSE_KEY ] = $response;
return $response;
}
/**
* Respond with the current response.
*
* @return void
*/
public function respond() {
$response = $this->getResponse();
if ( ! $response instanceof ResponseInterface ) {
return;
/home/biyoahl/www/wp-content/themes/techne/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
} );
break;
}
return $query_vars;
}
/**
* Filter the main template file.
*
* @param string $template
* @return string
*/
public function filterTemplateInclude( $template ) {
/** @var WP_Query $wp_query */
global $wp_query;
$this->template = $template;
$response = $this->handle( $this->request, [$template] );
// A route has matched so we use its response.
if ( $response instanceof ResponseInterface ) {
if ( $response->getStatusCode() === 404 ) {
$wp_query->set_404();
}
add_action( 'wpemerge.kernels.http_kernel.respond', [$this, 'respond'] );
return WPEMERGE_DIR . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'view.php';
}
// No route has matched, but we still want to compose views.
$composers = $this->view_service->getComposersForView( $template );
if ( ! empty( $composers ) ) {
add_action( 'wpemerge.kernels.http_kernel.respond', [$this, 'compose'] );
return WPEMERGE_DIR . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'view.php';
}
/home/biyoahl/www/wp-includes/class-wp-hook.php
$this->iterations[ $nesting_level ] = $this->priorities;
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = current( $this->iterations[ $nesting_level ] );
$priority = $this->current_priority[ $nesting_level ];
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice() if possible.
if ( 0 === $the_['accepted_args'] ) {
$value = call_user_func( $the_['function'] );
} elseif ( $the_['accepted_args'] >= $num_args ) {
$value = call_user_func_array( $the_['function'], $args );
} else {
$value = call_user_func_array( $the_['function'], array_slice( $args, 0, $the_['accepted_args'] ) );
}
}
} while ( false !== next( $this->iterations[ $nesting_level ] ) );
unset( $this->iterations[ $nesting_level ] );
unset( $this->current_priority[ $nesting_level ] );
--$this->nesting_level;
return $value;
}
/**
* Calls the callback functions that have been added to an action hook.
*
* @since 4.7.0
*
* @param array $args Parameters to pass to the callback functions.
/home/biyoahl/www/wp-includes/plugin.php
$all_args = func_get_args(); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
_wp_call_all_hook( $all_args );
}
if ( ! isset( $wp_filter[ $hook_name ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return $value;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $hook_name;
}
// Pass the value to WP_Hook.
array_unshift( $args, $value );
$filtered = $wp_filter[ $hook_name ]->apply_filters( $value, $args );
array_pop( $wp_current_filter );
return $filtered;
}
/**
* Calls the callback functions that have been added to a filter hook, specifying arguments in an array.
*
* @since 3.0.0
*
* @see apply_filters() This function is identical, but the arguments passed to the
* functions hooked to `$hook_name` are supplied using an array.
*
* @global WP_Hook[] $wp_filter Stores all of the filters and actions.
* @global int[] $wp_filters Stores the number of times each filter was triggered.
* @global string[] $wp_current_filter Stores the list of current filters with the current one last.
*
* @param string $hook_name The name of the filter hook.
* @param array $args The arguments supplied to the functions hooked to `$hook_name`.
/home/biyoahl/www/wp-includes/template-loader.php
if ( 'is_attachment' === $tag ) {
remove_filter( 'the_content', 'prepend_attachment' );
}
break;
}
}
if ( ! $template ) {
$template = get_index_template();
}
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
$template = apply_filters( 'template_include', $template );
if ( $template ) {
include $template;
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
}
/home/biyoahl/www/wp-blog-header.php
<?php
/**
* Loads the WordPress environment and template.
*
* @package WordPress
*/
if ( ! isset( $wp_did_header ) ) {
$wp_did_header = true;
// Load the WordPress library.
require_once __DIR__ . '/wp-load.php';
// Set up the WordPress query.
wp();
// Load the theme template.
require_once ABSPATH . WPINC . '/template-loader.php';
}
/home/biyoahl/www/index.php
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/
/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define( 'WP_USE_THEMES', true );
/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';