first commit

This commit is contained in:
Roman Pyrih
2023-07-24 08:30:51 +02:00
commit c2e100a763
7128 changed files with 1622619 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>

View File

@@ -0,0 +1,3 @@
<?php if ( ! defined( 'FW' ) ) {
die( 'Forbidden' );
}

View File

@@ -0,0 +1,59 @@
<?php if ( ! defined( 'FW' ) ) {
die( 'Forbidden' );
}
/**
* Breadcrumbs default view
* Parameters:
*
* @var array $items , array with pages ordered hierarchical
* $items = array(
* 0 => array(
* 'name' => 'Item name',
* 'url' => 'Item URL'
* )
* )
* Each $items array will contain additional information about item, e.g.:
* 'items' => array (
* 0 => array (
* 'name' => 'Homepage',
* 'type' => 'front_page',
* 'url' => 'http://yourdomain.com/',
* ),
* 1 => array (
* 'type' => 'taxonomy',
* 'name' => 'Uncategorized',
* 'id' => 1,
* 'url' => 'http://yourdomain.com/category/uncategorized/',
* 'taxonomy' => 'category',
* ),
* 2 => array (
* 'name' => 'Post Article',
* 'id' => 4781,
* 'post_type' => 'post',
* 'type' => 'post',
* 'url' => 'http://yourdomain.com/post-article/',
* ),
* ),
* @var string $separator , the separator symbol
*/
if ( ! empty( $items ) ) : ?>
<ol class="breadcrumb">
<?php for ( $i = 0; $i < count( $items ); $i ++ ) : ?>
<?php if ( $i == ( count( $items ) - 1 ) ) : ?>
<li class="last-item"><?php echo wp_kses_post( $items[ $i ]['name'] ); ?></li>
<?php elseif ( $i == 0 ) : ?>
<li class="first-item">
<?php if ( isset( $items[ $i ]['url'] ) ) : ?>
<a href="<?php echo esc_html( wp_kses_post( $items[ $i ]['url'] ) ); ?>"><?php echo wp_kses_post( $items[ $i ]['name'] ); ?></a></li>
<?php else : echo wp_kses_post( $items[ $i ]['name'] ); endif; ?>
<?php
else : ?>
<li class="<?php echo( $i - 1 ) ?>-item">
<?php if ( isset( $items[ $i ]['url'] ) ) : ?>
<a href="<?php echo esc_html( wp_kses_post( $items[ $i ]['url'] ) ); ?>"><?php echo wp_kses_post( $items[ $i ]['name'] ); ?></a></li>
<?php else : echo wp_kses_post( $items[ $i ]['name'] ); endif; ?>
<?php endif ?>
<?php endfor ?>
</ol>
<?php endif ?>

View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>