/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/tag-podcast.php
let param = searchParams.get('cat');
$('[data-slug="'+param+'"]').click();
}
});
</script>
<?php
function extract_podcast_url($content){
$pattern = "/https:\/\/.*\/(.*)\.(mp3|m4a|ogg|wav|wma)/";
preg_match_all ($pattern, $content, $matches);
return $matches[0][0];
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/tag-podcast.php
let param = searchParams.get('cat');
$('[data-slug="'+param+'"]').click();
}
});
</script>
<?php
function extract_podcast_url($content){
$pattern = "/https:\/\/.*\/(.*)\.(mp3|m4a|ogg|wav|wma)/";
preg_match_all ($pattern, $content, $matches);
return $matches[0][0];
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/views/partials/post-list-item-podcast.php
<ul class="cat_list">
<?php
$cats_ids = wp_get_post_categories(get_the_ID());
foreach ($cats_ids as $cats_id) {
$cat = get_category($cats_id)
?>
<span title="<?= $cat->name ?>" alt="<?= $cat->name ?>" class="circle cat_color_<?= $cat->slug ?>"></span>
<?php
}
?>
</ul>
<h2 class="title"><?= get_the_title() ?></h2>
<?= excerpt(30); ?>
<?php
$url = extract_podcast_url(get_the_content());
?>
<audio controls="controls" class="mt-3" controls="download">
<source src="<?= $url ?>" type="audio/mpeg" />
</audio>
</a>
</div>
</article>
</div>
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/tag-podcast.php
),
),
),
]);
?>
<?php if($posts->have_posts()): ?>
<div class="row pt-1 pb-5 project-tiles position-relative" >
<div class="spinner-wrapper">
<div class="spinner">
<div class="double-bounce1"></div>
<div class="double-bounce2"></div>
</div>
</div>
<?php
while($posts->have_posts()) : $posts->the_post();
include('views/partials/post-list-item-podcast.php');
endwhile;
?>
</div>
<?php wp_reset_postdata(); ?>
<?php endif; ?>
<?php /*\Eorienta::render( 'views/partials/pagination' ); */?>
</div>
</section>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" integrity="sha512-c42qTSw/wPZ3/5LBzD+Bw5f7bSF2oxou6wEb+I/lqeaKV5FDIfMvvRp772y4jcJLKuGUOpbJMdg/BTl50fJYAw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script
src="https://code.jquery.com/jquery-3.6.0.min.js"cat-list
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4="
crossorigin="anonymous"></script>
<script>
$( document ).ready(function() {
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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
*/
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/vendor/htmlburger/wpemerge/src/View/ViewServiceProvider.php
$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.
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/views/layouts/app.php
<?php
/**
* Base layout.
*
* @link https://docs.wpemerge.com/#/framework/views/layouts
*
* @package Eorienta
*/
\Eorienta::render( 'header' );
\Eorienta::layoutContent();
\Eorienta::render( 'footer' );
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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
*/
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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() ) );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/vendor/htmlburger/wpemerge/src/View/PhpView.php
return $this;
}
/**
* {@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() ) );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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() ) );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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() );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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;
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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;
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
}
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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 );
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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;
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/wp-content/themes/orienta_theme/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';
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/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.
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/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`.
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/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;
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/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';
}
/var/www/vhosts/aulavirtual.urbalabgandia.com/eorienta.lasaforempren.com/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';