/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/resources/themes/toknow-theme/app/Controllers/Partials/Breadcrumbs.php
$bread_part .= '<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span class="nonlink" itemprop="title">' . $text . '</span></li>';
} elseif ($tag === 'a') {
$bread_part .= '<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="' . $link . '" itemprop="url"><span itemprop="title">' . $text . '</span></a></li>';
} else {
$bread_part .= '<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb">' . $text . '</li>';
}
return $bread_part;
}
public function breadcrumbs($cat = null)
{
$breadcrumbs = '';
if (is_single()) {
if (is_singular('creation-filed')) {
$breadcrumbs .= $this->makeBreadcrumb('a', get_post_type_object(get_post_type())->label, home_url(get_query_var('post_type'))) . $this->makeBreadcrumb('strong', get_the_title());
} else {
$postcat = get_the_category();
$catid = $postcat[0]->cat_ID;
$allcats = array($catid);
while (!$catid==0) {
$mycat = get_category($catid);
$catid = $mycat->parent;
array_push($allcats, $catid);
}
array_pop($allcats);
$allcats = array_reverse($allcats);
foreach ($allcats as $catid) {
$breadcrumbs .= $this->makeBreadcrumb('a', get_cat_name($catid), get_category_link($catid));
}
$breadcrumbs .= $this->makeBreadcrumb('strong', get_the_title());
}
} elseif (is_page()) {
$breadcrumbs .= $this->makeBreadcrumb('strong', get_the_title());
} elseif (is_home()) {
$breadcrumbs .= $this->makeBreadcrumb('strong', single_post_title('', false));
} elseif (is_archive()) {
function get_archive_title()
{
/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/resources/themes/toknow-theme/app/Controllers/Partials/Breadcrumbs.php
$bread_part .= '<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><span class="nonlink" itemprop="title">' . $text . '</span></li>';
} elseif ($tag === 'a') {
$bread_part .= '<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb"><a href="' . $link . '" itemprop="url"><span itemprop="title">' . $text . '</span></a></li>';
} else {
$bread_part .= '<li itemscope itemtype="http://data-vocabulary.org/Breadcrumb">' . $text . '</li>';
}
return $bread_part;
}
public function breadcrumbs($cat = null)
{
$breadcrumbs = '';
if (is_single()) {
if (is_singular('creation-filed')) {
$breadcrumbs .= $this->makeBreadcrumb('a', get_post_type_object(get_post_type())->label, home_url(get_query_var('post_type'))) . $this->makeBreadcrumb('strong', get_the_title());
} else {
$postcat = get_the_category();
$catid = $postcat[0]->cat_ID;
$allcats = array($catid);
while (!$catid==0) {
$mycat = get_category($catid);
$catid = $mycat->parent;
array_push($allcats, $catid);
}
array_pop($allcats);
$allcats = array_reverse($allcats);
foreach ($allcats as $catid) {
$breadcrumbs .= $this->makeBreadcrumb('a', get_cat_name($catid), get_category_link($catid));
}
$breadcrumbs .= $this->makeBreadcrumb('strong', get_the_title());
}
} elseif (is_page()) {
$breadcrumbs .= $this->makeBreadcrumb('strong', get_the_title());
} elseif (is_home()) {
$breadcrumbs .= $this->makeBreadcrumb('strong', single_post_title('', false));
} elseif (is_archive()) {
function get_archive_title()
{
/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/resources/themes/toknow-theme/vendor/soberwp/controller/src/Controller.php
});
// Get all public static methods from class
$this->staticMethods = $this->class->getMethods(\ReflectionMethod::IS_STATIC);
// Remove $this->staticMethods from $this->methods using array_diff
$this->dataMethods = array_diff($this->methods, $this->staticMethods);
// Filter the remaining data methods
$this->dataMethods = array_filter($this->dataMethods, function ($method) {
return $method = $method->name;
});
// For each method convert method name to snake case and add to data[key => value]
foreach ($this->dataMethods as $method) {
// Convert method name to snake case
$var = Utils::convertToSnakeCase($method->name);
// Add var method name to data[]
$this->data[$var] = $this->{$method->name}();
}
}
/**
* Set Blade Data
*
* Update $this->data with __blade
*/
final private function __setBladeData()
{
// Get the data
$debuggerData = $this->data;
// Loop through each data method
foreach ($this->dataMethods as $dataMethod) {
// Convert the key to snake case to find in $debuggerData
$key = Utils::convertToSnakeCase($dataMethod->name);
// Save the returned value from the above key
$returned = $debuggerData[$key];
/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/resources/themes/toknow-theme/vendor/soberwp/controller/src/Controller.php
* Set Controller Data
*
* Set the Controller raw data for this Controller
* @return $this
*/
final public function __setData($incomingData)
{
$this->incomingData = $incomingData;
// Set the data from the WordPress post if singular to $this->data
$this->__setDataFromPost();
// Set the data from Advanced Custom Fields to $this->data
$this->__setDataFromModuleAcf();
// Set incoming filter data from Sage to App before Debugger
$this->__setDataFromFilter();
// Set the public methods from the class to $this->methods
$this->__setDataFromMethods();
// Set debugger data first to use only the raw data from the Controller
$this->__setBladeData();
// Set app data to $this->data['__app'] or merge with current data
$this->__setAppData();
// Set tree data to $this->data['__tree'] or merge with current data
$this->__setTreeData();
}
/**
* Set Data From Post
*
* Set the WordPress post
*/
final private function __setDataFromPost()
{
// Only set data from $post to App class
if ($this->template !== 'app') {
/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/resources/themes/toknow-theme/vendor/soberwp/controller/controller.php
// Set the params required for template param
$controller->__setParams();
// Determine template location to expose data
$location = "sage/template/{$controller->__getTemplateParam()}-data/data";
// Pass data to filter
add_filter($location, function ($data) use ($container, $class) {
// Recreate the class so that $post is included
$controller = $container->make($class);
// Params
$controller->__setParams();
// Lifecycle
$controller->__before();
// Data
$controller->__setData($data);
// Lifecycle
$controller->__after();
// Return
return $controller->__getData();
}, 10, 2);
}
}
/**
* Blade
*/
function blade()
{
// Get Sage function
$sage = sage();
// Return if function does not exist
if (!$sage) {
/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/wordpress/wp-includes/class-wp-hook.php
}
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = $priority = current( $this->iterations[ $nesting_level ] );
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice if possible.
if ( $the_['accepted_args'] == 0 ) {
$value = call_user_func_array( $the_['function'], array() );
} 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, (int) $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;
}
/**
* Executes the callback functions hooked on a specific action hook.
*
* @since 4.7.0
*
* @param mixed $args Arguments to pass to the hook callbacks.
/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/wordpress/wp-includes/plugin.php
if ( ! isset( $wp_filter[ $tag ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return $value;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $tag;
}
if ( empty( $args ) ) {
$args = func_get_args();
}
// don't pass the tag name to WP_Hook
array_shift( $args );
$filtered = $wp_filter[ $tag ]->apply_filters( $value, $args );
array_pop( $wp_current_filter );
return $filtered;
}
/**
* Execute functions hooked on a specific 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 `$tag` are supplied using an array.
*
* @global array $wp_filter Stores all of the filters
* @global array $wp_current_filter Stores the list of current filters with the current one last
*
* @param string $tag The name of the filter hook.
* @param array $args The arguments supplied to the functions hooked to $tag.
* @return mixed The filtered value after all hooked functions are applied to it.
/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/resources/themes/toknow-theme/app/filters.php
'frontpage', 'page', 'paged', 'search', 'single', 'singular', 'attachment', 'embed'
])->map(function ($type) {
add_filter("{$type}_template_hierarchy", __NAMESPACE__.'\\filter_templates');
});
/**
* Render page using Blade
*/
add_filter('template_include', function ($template) {
collect(['get_header', 'wp_head'])->each(function ($tag) {
ob_start();
do_action($tag);
$output = ob_get_clean();
remove_all_actions($tag);
add_action($tag, function () use ($output) {
echo $output;
});
});
$data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {
return apply_filters("sage/template/{$class}/data", $data, $template);
}, []);
if ($template) {
echo template($template, $data);
return get_stylesheet_directory().'/index.php';
}
return $template;
}, PHP_INT_MAX);
/**
* Render comments.blade.php
*/
add_filter('comments_template', function ($comments_template) {
$comments_template = str_replace(
[get_stylesheet_directory(), get_template_directory()],
'',
$comments_template
);
$data = collect(get_body_class())->reduce(function ($data, $class) use ($comments_template) {
return apply_filters("sage/template/{$class}/data", $data, $comments_template);
/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/resources/themes/toknow-theme/vendor/illuminate/support/Collection.php
*/
public function random($number = null)
{
if (is_null($number)) {
return Arr::random($this->items);
}
return new static(Arr::random($this->items, $number));
}
/**
* Reduce the collection to a single value.
*
* @param callable $callback
* @param mixed $initial
* @return mixed
*/
public function reduce(callable $callback, $initial = null)
{
return array_reduce($this->items, $callback, $initial);
}
/**
* Create a collection of all elements that do not pass a given truth test.
*
* @param callable|mixed $callback
* @return static
*/
public function reject($callback)
{
if ($this->useAsCallable($callback)) {
return $this->filter(function ($value, $key) use ($callback) {
return ! $callback($value, $key);
});
}
return $this->filter(function ($item) use ($callback) {
return $item != $callback;
});
}
/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/resources/themes/toknow-theme/app/filters.php
])->map(function ($type) {
add_filter("{$type}_template_hierarchy", __NAMESPACE__.'\\filter_templates');
});
/**
* Render page using Blade
*/
add_filter('template_include', function ($template) {
collect(['get_header', 'wp_head'])->each(function ($tag) {
ob_start();
do_action($tag);
$output = ob_get_clean();
remove_all_actions($tag);
add_action($tag, function () use ($output) {
echo $output;
});
});
$data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {
return apply_filters("sage/template/{$class}/data", $data, $template);
}, []);
if ($template) {
echo template($template, $data);
return get_stylesheet_directory().'/index.php';
}
return $template;
}, PHP_INT_MAX);
/**
* Render comments.blade.php
*/
add_filter('comments_template', function ($comments_template) {
$comments_template = str_replace(
[get_stylesheet_directory(), get_template_directory()],
'',
$comments_template
);
$data = collect(get_body_class())->reduce(function ($data, $class) use ($comments_template) {
return apply_filters("sage/template/{$class}/data", $data, $comments_template);
}, []);
/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/wordpress/wp-includes/class-wp-hook.php
}
$nesting_level = $this->nesting_level++;
$this->iterations[ $nesting_level ] = array_keys( $this->callbacks );
$num_args = count( $args );
do {
$this->current_priority[ $nesting_level ] = $priority = current( $this->iterations[ $nesting_level ] );
foreach ( $this->callbacks[ $priority ] as $the_ ) {
if ( ! $this->doing_action ) {
$args[0] = $value;
}
// Avoid the array_slice if possible.
if ( $the_['accepted_args'] == 0 ) {
$value = call_user_func_array( $the_['function'], array() );
} 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, (int) $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;
}
/**
* Executes the callback functions hooked on a specific action hook.
*
* @since 4.7.0
*
* @param mixed $args Arguments to pass to the hook callbacks.
/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/wordpress/wp-includes/plugin.php
if ( ! isset( $wp_filter[ $tag ] ) ) {
if ( isset( $wp_filter['all'] ) ) {
array_pop( $wp_current_filter );
}
return $value;
}
if ( ! isset( $wp_filter['all'] ) ) {
$wp_current_filter[] = $tag;
}
if ( empty( $args ) ) {
$args = func_get_args();
}
// don't pass the tag name to WP_Hook
array_shift( $args );
$filtered = $wp_filter[ $tag ]->apply_filters( $value, $args );
array_pop( $wp_current_filter );
return $filtered;
}
/**
* Execute functions hooked on a specific 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 `$tag` are supplied using an array.
*
* @global array $wp_filter Stores all of the filters
* @global array $wp_current_filter Stores the list of current filters with the current one last
*
* @param string $tag The name of the filter hook.
* @param array $args The arguments supplied to the functions hooked to $tag.
* @return mixed The filtered value after all hooked functions are applied to it.
/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/wordpress/wp-includes/template-loader.php
remove_filter( 'the_content', 'prepend_attachment' );
elseif ( is_single() && $template = get_single_template() ) :
elseif ( is_page() && $template = get_page_template() ) :
elseif ( is_singular() && $template = get_singular_template() ) :
elseif ( is_category() && $template = get_category_template() ) :
elseif ( is_tag() && $template = get_tag_template() ) :
elseif ( is_author() && $template = get_author_template() ) :
elseif ( is_date() && $template = get_date_template() ) :
elseif ( is_archive() && $template = get_archive_template() ) :
else :
$template = get_index_template();
endif;
/**
* Filters the path of the current template before including it.
*
* @since 3.0.0
*
* @param string $template The path of the template to include.
*/
if ( $template = apply_filters( 'template_include', $template ) ) {
include( $template );
} elseif ( current_user_can( 'switch_themes' ) ) {
$theme = wp_get_theme();
if ( $theme->errors() ) {
wp_die( $theme->errors() );
}
}
return;
endif;
/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/wordpress/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( dirname( __FILE__ ) . '/wp-load.php' );
// Set up the WordPress query.
wp();
// Load the theme template.
require_once( ABSPATH . WPINC . '/template-loader.php' );
}
/export/sd218/www/jp/r/e/gmoserver/8/4/sd1036684/toknowjp.com/index.php
<?php
define('WP_USE_THEMES', true);
require(dirname(__FILE__) . '/wordpress/wp-blog-header.php');