/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/app/src/WordPress/PagesServiceProvider.php
/**
* Calculate time to read the article
*
* @param string $post_id
*
* @return string
*/
public static function calculate_read_time( $post_id = '' ) {
$post_id = empty( $post_id ) ? get_the_ID() : $post_id;
$words = get_post_meta( $post_id, '_pdm_word_count', true );
// calculate the words and store in database if non-existent.
if ( empty( $words ) ) {
$words = self::calculate_word_count( $post_id, get_post( $post_id ) );
}
$time = explode( '.', $words / 200 );
$minutes_to_add = ceil( ( $time[1] / 1000 ) * .690 );
return number_format( $time[0] + $minutes_to_add, 0 );
}
}
Arguments
/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/app/src/WordPress/PagesServiceProvider.php
/**
* Calculate time to read the article
*
* @param string $post_id
*
* @return string
*/
public static function calculate_read_time( $post_id = '' ) {
$post_id = empty( $post_id ) ? get_the_ID() : $post_id;
$words = get_post_meta( $post_id, '_pdm_word_count', true );
// calculate the words and store in database if non-existent.
if ( empty( $words ) ) {
$words = self::calculate_word_count( $post_id, get_post( $post_id ) );
}
$time = explode( '.', $words / 200 );
$minutes_to_add = ceil( ( $time[1] / 1000 ) * .690 );
return number_format( $time[0] + $minutes_to_add, 0 );
}
}
/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/views/partials/banner.php
<?php if ( ! in_array( $post_type, [ 'page', '404', 'blog' ] ) ) : ?>
<!-- Meta -->
<div class="meta mt-10 md:mt-20 lg:mt-30 flex flex-wrap items-center">
<!-- Meta | Views -->
<?php $views = get_post_meta( $page_id, '_pdm_views', true ); ?>
<?php if ( ! empty( $views ) ) : ?>
<div class="meta-item meta-item--views flex items-center mr-10 md:mr-40 text-white">
<span class="banner--icon relative top-1"><?php echo wp_kses( podmaine_get_icon( 'eye', '#fff', 24, 24 ),
podmaine_kses_svg_tags() ); ?></span>
<span class="ml-6">
<?php printf( _n( '%s pregled', '%s pregleda', $views, 'podmaine' ), number_format_i18n( $views ) ); ?>
</span>
</div>
<?php endif; ?>
<!-- .Meta | Views -->
<!-- Meta | Read Time -->
<?php $time_to_read = \Podmaine\WordPress\PagesServiceProvider::calculate_read_time( $page_id ); ?>
<?php if ( ! empty( $time_to_read ) ) : ?>
<div class="meta-item meta-item--views flex items-center mr-10 md:mr-40 text-white">
<span class="banner--icon relative top-1"><?php echo wp_kses( podmaine_get_icon( 'clock', '#fff', 24, 24 ),
podmaine_kses_svg_tags() ); ?></span>
<span class="ml-6">
<?php printf( _n( '%s minut', '%s minuta', $time_to_read, 'podmaine' ), number_format_i18n( $time_to_read ) ); ?>
</span>
</div>
<?php endif; ?>
<!-- .Meta | Read Time -->
<!-- Meta | Date -->
<div class="meta-item meta-item--views mt-10 md:mt-0 w-full md:w-auto flex items-center text-white">
<span class="banner--icon relative top-1"><?php echo wp_kses( podmaine_get_icon( 'calendar', '#fff', 24, 24 ),
podmaine_kses_svg_tags() ); ?></span>
<span class="ml-6">
<?php printf( esc_html__( 'pre %s', 'podmaine' ),
human_time_diff( current_time( 'timestamp' ), strtotime( get_the_date() ) ) ); ?>
</span>
</div>
/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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
*/
Arguments
"/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/views/partials/banner.php"
/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/single.php
<?php
/**
* Layout: views/layouts/app.php
*
* This is the template that is used for displaying all posts by default.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Podmaine
*/
?>
<main class="flex flex-col xl:flex-row" x-data>
<!-- Banner -->
<div class="site--left fixed top-0 left-0 h-[calc(100vh-100px)] lg:h-screen z-10 overflow-y-auto">
<?php Podmaine::render( 'views/partials/banner', [ 'type' => 'post' ] ); ?>
</div>
<!-- .Banner -->
<!-- Main Content -->
<div class="site--right relative lg:absolute top-0 right-0">
<?php Podmaine::render( 'views/partials/global-notice' ); ?>
<span class="inline-block w-full h-33 bg-contain"
style="background-image: url('<?php echo esc_url( podmaine_get_hashed_item( 'images/pattern.png' ) ); ?>');"></span>
<div class="container container--content px-15 py-30 md:px-40 xxl:py-60">
<?php Podmaine::render( 'views/partials/breadcrumbs' ); ?>
<?php Podmaine::render( [ 'views/partials/loop-single', 'views/partials/loop' ] ); ?>
<?php Podmaine::render( 'views/partials/loop-similar', 'views/partials/loop' ); ?>
</div>
</div>
<!-- .Main Content -->
</main>
/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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
*/
Arguments
"/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/single.php"
/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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.
}
}
/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/views/layouts/app.php
<?php
/**
* Base layout.
*
* @link https://docs.wpemerge.com/#/framework/views/layouts
*
* @package Podmaine
*/
\Podmaine::render( 'header' );
\Podmaine::layoutContent();
// \Podmaine::render( 'sidebar' );
\Podmaine::render( 'footer' );
/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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
*/
Arguments
"/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/views/layouts/app.php"
/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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() ) );
}
}
/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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'], array_values( $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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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'], array_values( $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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/vendor/htmlburger/wpemerge/src/Kernels/HttpKernel.php
return $response;
}
/**
* {@inheritDoc}
*/
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
*/
/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-content/themes/podmaine/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/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/411969.cloudwaysapps.com/kpumnsnpbw/public_html/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';
}
Arguments
"/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-includes/template-loader.php"
/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/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';
Arguments
"/home/411969.cloudwaysapps.com/kpumnsnpbw/public_html/wp-blog-header.php"