Sitemap

/*
Plugin Name: Sitemap
Plugin URI: http://wordpress.org/plugins/page-list/
Description:

, , and

[pano file="http://eiskaffee-tege.rsk24.de/wp-content/uploads/2017/03/WhatsApp-Image-2017-03-13-at-18.51.01.jpeg" panobox="on"]
Floristik und Dekorationsstudio Katrin Tege

Floristik und Dekorationsstudio Katrin Tege

Vom 13. November bis 01. Dezember 2023, jeweils montags bis freitags 14 bis 18 Uhr, findet wieder der Verkauf von weihnachtlicher Floristik statt. Wir freuen uns auf Euren Besuch.

Geocashing im Umkreis

        Anleitung: Kostenloses Benutzerkonto auf Geocashing.com anlegen. App c:geo herunterladen und auf dem Handy installieren. Mit Benutzernamen in der App anmelden und lossuchen. https...
Ihr Kontakt zu uns

Ihr Kontakt zu uns

Kontakt auch möglich unter: Telefon: 035263/459049                   Fax:          035263/45805 E-Mail:   info@eiskaffee-tege.de  

Impressum

Eiskaffee Tege Inh. Mario Tege Dorfstraße 30 01609 Röderaue/OT Koselitz Telefon: 035263/459049 Fax:      035263/45805 E-Mail:   info@eiskaffee-tege.de Inhaltlich verantwortlich: info@eiskaffee-tege.de .

Los geht's ab in das Eiskaffee Tege

Das Eiskaffee begrüßt Sie recht herzlich auf seiner Homepage. Wir stellen Ihnen auf den folgenden Seiten das Eiskaffee und seine schöne Umgebung vor und geben Ihnen einen Überblick über unser Angebot. Sollten wir Ihr Interesse geweckt haben, würde...
Öffnungszeiten Eiskaffee Tege Koselitz

Öffnungszeiten Eiskaffee Tege Koselitz

Öffnungszeiten Eiskaffee Tege Koselitz in der Hauptsaison vom 01.April bis 30.September täglich 13.00 Uhr – 18.00 Uhr Im Oktober sind wir täglich von 14.00 Uhr bis 18.00 Uhr für Sie da.

Sitemap

/* Plugin Name: Sitemap Plugin URI: http://wordpress.org/plugins/page-list/ Description: , , and shortcodes Version: 4.3 Author: webvitaly Author URI: http://web-profile.com.ua/wordpress/plugins/ License: GPLv3 */ if ( !function_exists('pagelist_unqprfx_add_stylesheet') ) { function pagelist_unqprfx_add_stylesheet() { wp_enqueue_style( 'page-list-style', plugins_url( '/css/page-list.css', __FILE__ ), false, '4.3', 'all' ); } add_action('wp_enqueue_scripts', 'pagelist_unqprfx_add_stylesheet'); } $pagelist_unqprfx_powered_line = "\n".''."\n"; if ( !function_exists('pagelist_unqprfx_shortcode') ) { function pagelist_unqprfx_shortcode( $atts ) { global $post, $pagelist_unqprfx_powered_line; $return = ''; extract( shortcode_atts( array( 'depth' => '0', 'child_of' => '0', 'exclude' => '0', 'exclude_tree' => '', 'include' => '0', 'title_li' => '', 'number' => '', 'offset' => '', 'meta_key' => '', 'meta_value' => '', 'show_date' => '', 'sort_column' => 'menu_order, post_title', 'sort_order' => 'ASC', 'link_before' => '', 'link_after' => '', 'class' => '' ), $atts ) ); $page_list_args = array( 'depth' => $depth, 'child_of' => pagelist_unqprfx_norm_params($child_of), 'exclude' => pagelist_unqprfx_norm_params($exclude), 'exclude_tree' => $exclude_tree, 'include' => $include, 'title_li' => $title_li, 'number' => $number, 'offset' => $offset, 'meta_key' => $meta_key, 'meta_value' => $meta_value, 'show_date' => $show_date, 'date_format' => get_option('date_format'), 'echo' => 0, 'authors' => '', 'sort_column' => $sort_column, 'sort_order' => $sort_order, 'link_before' => $link_before, 'link_after' => $link_after, 'walker' => '' ); $list_pages = wp_list_pages( $page_list_args ); $return = $pagelist_unqprfx_powered_line; if ($list_pages) { $return .= ' '."\n".$list_pages."\n".' '; }else{ $return .= ''; } return $return; } add_shortcode( 'pagelist', 'pagelist_unqprfx_shortcode' ); add_shortcode( 'page_list', 'pagelist_unqprfx_shortcode' ); add_shortcode( 'page-list', 'pagelist_unqprfx_shortcode' ); // not good (Shortcode names should be all lowercase and use all letters, but numbers and underscores (not dashes!) should work fine too.) add_shortcode( 'sitemap', 'pagelist_unqprfx_shortcode' ); } if ( !function_exists('subpages_unqprfx_shortcode') ) { function subpages_unqprfx_shortcode( $atts ) { global $post, $pagelist_unqprfx_powered_line; $return = ''; extract( shortcode_atts( array( 'depth' => '0', //'child_of' => '0', 'exclude' => '0', 'exclude_tree' => '', 'include' => '0', 'title_li' => '', 'number' => '', 'offset' => '', 'meta_key' => '', 'meta_value' => '', 'show_date' => '', 'sort_column' => 'menu_order, post_title', 'sort_order' => 'ASC', 'link_before' => '', 'link_after' => '', 'class' => '' ), $atts ) ); $page_list_args = array( 'depth' => $depth, 'child_of' => $post->ID, 'exclude' => pagelist_unqprfx_norm_params($exclude), 'exclude_tree' => $exclude_tree, 'include' => $include, 'title_li' => $title_li, 'number' => $number, 'offset' => $offset, 'meta_key' => $meta_key, 'meta_value' => $meta_value, 'show_date' => $show_date, 'date_format' => get_option('date_format'), 'echo' => 0, 'authors' => '', 'sort_column' => $sort_column, 'sort_order' => $sort_order, 'link_before' => $link_before, 'link_after' => $link_after, 'walker' => '' ); $list_pages = wp_list_pages( $page_list_args ); $return = $pagelist_unqprfx_powered_line; if ($list_pages) { $return .= ' '."\n".$list_pages."\n".' '; }else{ $return .= ''; } return $return; } add_shortcode( 'subpages', 'subpages_unqprfx_shortcode' ); add_shortcode( 'sub_pages', 'subpages_unqprfx_shortcode' ); } if ( !function_exists('siblings_unqprfx_shortcode') ) { function siblings_unqprfx_shortcode( $atts ) { global $post, $pagelist_unqprfx_powered_line; $return = ''; extract( shortcode_atts( array( 'depth' => '0', //'child_of' => '0', 'exclude' => '0', 'exclude_tree' => '', 'include' => '0', 'title_li' => '', 'number' => '', 'offset' => '', 'meta_key' => '', 'meta_value' => '', 'show_date' => '', 'sort_column' => 'menu_order, post_title', 'sort_order' => 'ASC', 'link_before' => '', 'link_after' => '', 'class' => '' ), $atts ) ); if( $exclude == 'current' || $exclude == 'this' ){ $exclude = $post->ID; } $page_list_args = array( 'depth' => $depth, 'child_of' => $post->post_parent, 'exclude' => pagelist_unqprfx_norm_params($exclude), 'exclude_tree' => $exclude_tree, 'include' => $include, 'title_li' => $title_li, 'number' => $number, 'offset' => $offset, 'meta_key' => $meta_key, 'meta_value' => $meta_value, 'show_date' => $show_date, 'date_format' => get_option('date_format'), 'echo' => 0, 'authors' => '', 'sort_column' => $sort_column, 'sort_order' => $sort_order, 'link_before' => $link_before, 'link_after' => $link_after, 'walker' => '' ); $list_pages = wp_list_pages( $page_list_args ); $return = $pagelist_unqprfx_powered_line; if ($list_pages) { $return .= ' '."\n".$list_pages."\n".' '; }else{ $return .= ''; } return $return; } add_shortcode( 'siblings', 'siblings_unqprfx_shortcode' ); } if ( !function_exists('pagelist_unqprfx_ext_shortcode') ) { function pagelist_unqprfx_ext_shortcode( $atts ) { global $post, $pagelist_unqprfx_powered_line; $return = ''; extract( shortcode_atts( array( 'show_image' => 1, 'show_first_image' => 0, 'show_title' => 1, 'show_content' => 1, 'more_tag' => 1, 'limit_content' => 250, 'image_width' => '150', 'image_height' => '150', 'child_of' => '', 'sort_order' => 'ASC', 'sort_column' => 'menu_order, post_title', 'hierarchical' => 1, 'exclude' => '0', 'include' => '0', 'meta_key' => '', 'meta_value' => '', 'authors' => '', 'parent' => -1, 'exclude_tree' => '', 'number' => '', 'offset' => 0, 'post_type' => 'page', 'post_status' => 'publish', 'class' => '', 'strip_tags' => 1, 'strip_shortcodes' => 1, 'show_child_count' => 0, 'child_count_template' => 'Subpages: %child_count%', 'show_meta_key' => '', 'meta_template' => '%meta%' ), $atts ) ); if( $child_of == '' ){ // show subpages if child_of is empty $child_of = $post->ID; } $page_list_ext_args = array( 'show_image' => $show_image, 'show_first_image' => $show_first_image, 'show_title' => $show_title, 'show_content' => $show_content, 'more_tag' => $more_tag, 'limit_content' => $limit_content, 'image_width' => $image_width, 'image_height' => $image_height, 'child_of' => pagelist_unqprfx_norm_params($child_of), 'sort_order' => $sort_order, 'sort_column' => $sort_column, 'hierarchical' => $hierarchical, 'exclude' => pagelist_unqprfx_norm_params($exclude), 'include' => $include, 'meta_key' => $meta_key, 'meta_value' => $meta_value, 'authors' => $authors, 'parent' => pagelist_unqprfx_norm_params($parent), 'exclude_tree' => $exclude_tree, 'number' => '', // $number - own counter 'offset' => 0, // $offset - own offset 'post_type' => $post_type, 'post_status' => $post_status, 'class' => $class, 'strip_tags' => $strip_tags, 'strip_shortcodes' => $strip_shortcodes, 'show_child_count' => $show_child_count, 'child_count_template' => $child_count_template, 'show_meta_key' => $show_meta_key, 'meta_template' => $meta_template ); $page_list_ext_args_all = array( 'show_image' => $show_image, 'show_first_image' => $show_first_image, 'show_title' => $show_title, 'show_content' => $show_content, 'more_tag' => $more_tag, 'limit_content' => $limit_content, 'image_width' => $image_width, 'image_height' => $image_height, 'child_of' => 0, // for showing all pages 'sort_order' => $sort_order, 'sort_column' => $sort_column, 'hierarchical' => $hierarchical, 'exclude' => pagelist_unqprfx_norm_params($exclude), 'include' => $include, 'meta_key' => $meta_key, 'meta_value' => $meta_value, 'authors' => $authors, 'parent' => pagelist_unqprfx_norm_params($parent), 'exclude_tree' => $exclude_tree, 'number' => '', // $number - own counter 'offset' => 0, // $offset - own offset 'post_type' => $post_type, 'post_status' => $post_status, 'class' => $class, 'strip_tags' => $strip_tags, 'strip_shortcodes' => $strip_shortcodes, 'show_child_count' => $show_child_count, 'child_count_template' => $child_count_template, 'show_meta_key' => $show_meta_key, 'meta_template' => $meta_template ); $list_pages = get_pages( $page_list_ext_args ); if( count( $list_pages ) == 0 ){ // if there is no subpages $list_pages = get_pages( $page_list_ext_args_all ); // we are showing all pages } $list_pages_html = ''; $count = 0; $offset_count = 0; if( $list_pages !== false && count( $list_pages ) > 0 ){ foreach($list_pages as $page){ $count++; $offset_count++; if ( !empty( $offset ) && is_numeric( $offset ) && $offset_count <= $offset ) { $count = 0; // number counter to zero if offset is not finished } if ( ( !empty( $offset ) && is_numeric( $offset ) && $offset_count > $offset ) || ( empty( $offset ) ) || ( !empty( $offset ) && !is_numeric( $offset ) ) ) { if ( ( !empty( $number ) && is_numeric( $number ) && $count <= $number ) || ( empty( $number ) ) || ( !empty( $number ) && !is_numeric( $number ) ) ) { $link = get_permalink( $page->ID ); $list_pages_html .= ' '; if( $show_image == 1 ){ if ( function_exists( 'get_the_post_thumbnail' ) ) { // if we have WordPress 2.9+ if( get_the_post_thumbnail( $page->ID ) ){ // if there is a featured image $list_pages_html .= ' '; //$list_pages_html .= get_the_post_thumbnail($page->ID, array($image_width,$image_height)); // doesn't work good with image size $image = wp_get_attachment_image_src( get_post_thumbnail_id( $page->ID ), array($image_width,$image_height) ); // get featured img; 'large' $img_url = $image[0]; // get the src of the featured image $list_pages_html .= ''; // not using height="'.$image_height.'" because images could be not square shaped and they will be stretched$list_pages_html .= ' '; }else{ if( $show_first_image == 1 ){ $img_scr = pagelist_unqprfx_get_first_image( $page->post_content ); if( !empty( $img_scr ) ){ $list_pages_html .= ' '; $list_pages_html .= ''; // not using height="'.$image_height.'" because images could be not square shaped and they will be stretched $list_pages_html .= ' '; } } } }else{ // if we have old WordPress 2.8 or lower if( $show_first_image == 1 ){ $img_scr = pagelist_unqprfx_get_first_image( $page->post_content ); if( !empty( $img_scr ) ){ $list_pages_html .= ' '; $list_pages_html .= ''; // not using height="'.$image_height.'" because images could be not square shaped and they will be stretched $list_pages_html .= ' '; } } } } if( $show_title == 1 ){ $list_pages_html .= ' '.$page->post_title.' '; } if( $show_content == 1 ){ //$content = apply_filters('the_content', $page->post_content); //$content = str_replace(']]>', ']]>', $content); // both used in default the_content() function if( !empty( $page->post_excerpt ) ){ $text_content = $page->post_excerpt; }else{ $text_content = $page->post_content; } if ( post_password_required($page) ) { $content = ''; }else{ $content = pagelist_unqprfx_parse_content( $text_content, $limit_content, $strip_tags, $strip_shortcodes, $more_tag ); $content = do_shortcode( $content ); if( $show_title == 0 ){ // make content as a link if there is no title $content = ''.$content.' '; } } $list_pages_html .= ' '.$content.' '; } if( $show_child_count == 1 ){ $count_subpages = count(get_pages("child_of=".$page->ID)); if( $count_subpages > 0 ){ // hide empty $child_count_pos = strpos($child_count_template, '%child_count%'); // check if we have %child_count% marker in template if($child_count_pos === false) { // %child_count% not found in template $child_count_template_html = $child_count_template.' '.$count_subpages; $list_pages_html .= ' '.$child_count_template_html.' '; } else { // %child_count% found in template $child_count_template_html = str_replace('%child_count%', $count_subpages, $child_count_template); $list_pages_html .= ' '.$child_count_template_html.' '; } } } if( $show_meta_key != '' ){ $post_meta = get_post_meta($page->ID, $show_meta_key, true); if( !empty($post_meta) ){ // hide empty $meta_pos = strpos($meta_template, '%meta%'); // check if we have %meta% marker in template if($meta_pos === false) { // %meta% not found in template $meta_template_html = $meta_template.' '.$post_meta; $list_pages_html .= ' '.$meta_template_html.' '; } else { // %meta% found in template $meta_template_html = str_replace('%meta%', $post_meta, $meta_template); $list_pages_html .= ' '.$meta_template_html.' '; } } } $list_pages_html .= ' '."\n"; } } } } $return = $pagelist_unqprfx_powered_line; if ($list_pages_html) { $return .= ' '."\n".$list_pages_html."\n".' '; }else{ $return .= ''; // this line will not work, because we show all pages if there is no pages to show } return $return; } add_shortcode( 'pagelist_ext', 'pagelist_unqprfx_ext_shortcode' ); add_shortcode( 'pagelistext', 'pagelist_unqprfx_ext_shortcode' ); } if ( !function_exists('pagelist_unqprfx_norm_params') ) { function pagelist_unqprfx_norm_params( $str ) { global $post; $new_str = $str; $new_str = str_replace('this', $post->ID, $new_str); // exclude this page $new_str = str_replace('current', $post->ID, $new_str); // exclude current page $new_str = str_replace('curent', $post->ID, $new_str); // exclude curent page with mistake $new_str = str_replace('parent', $post->post_parent, $new_str); // exclude parent page return $new_str; } } if ( !function_exists('pagelist_unqprfx_parse_content') ) { function pagelist_unqprfx_parse_content($content, $limit_content = 250, $strip_tags = 1, $strip_shortcodes = 1, $more_tag = 1) { $more_tag_found = 0; $content_before_more_tag_length = 0; if( $more_tag ){ // "more_tag" have higher priority than "limit_content" if ( preg_match('/

So finden Sie uns

Damit Sie nicht nur virtuell den Weg ganz einfach zu uns finden! Das Eiskaffee Tege befindet sich im Ortsteil Koselitz der Gemeinde Röderaue. Es liegt am Rande eines Teichgebietes, welches idealer Ausgangspunkt für Radwanderungen oder erholsame S...
Tourenvorschläge in der Umgebung Elbe Röder Elster

Tourenvorschläge in der Umgebung Elbe Röder Elster

Für Tourenvorschläge besuchen Sie bitte folgende Links für die Umgebung. http://www.elbe-roeder.de/naherholung/ausflugsziele/ http://www.elbe-roeder.de/naherholung/rad-und-wanderwege/ http://www.elbe-elster-land.de/de/radwandern/allgemeines.html ...
Über die Umgebung

Über die Umgebung

Unsere Umgebung liegt am Rande eines Teichgebietes, welches idealer Ausgangspunkt für Radwanderungen oder erholsame Spaziergänge durch das Naturschutzgebiet der Röderaue ist. Ebenfalls in der Nähe befinden sich der "Grödel-Elsterwerdaer-Floßkanal" und die "Kleine Röder".

Unsere Angebote von Eis, Kaffee und Kuchen

Unsere Angebote: Täglich frisches, hausgemachtes Softeis in wechselnden  Geschmacksrichtungen  Softeis oder Kugeleis zum Mitnehmen im Autobecher, frisch oder tiefgefroren Eisbecher mit und ohne Alkohol, Kindereisbecher, He...
shortcodes
Version: 4.3
Author: webvitaly
Author URI: http://web-profile.com.ua/wordpress/plugins/
License: GPLv3
*/

if ( !function_exists(‚pagelist_unqprfx_add_stylesheet‘) ) {
function pagelist_unqprfx_add_stylesheet() {
wp_enqueue_style( ‚page-list-style‘, plugins_url( ‚/css/page-list.css‘, __FILE__ ), false, ‚4.3‘, ‚all‘ );
}
add_action(‚wp_enqueue_scripts‘, ‚pagelist_unqprfx_add_stylesheet‘);
}

$pagelist_unqprfx_powered_line = „\n“.‘‚.“\n“;

if ( !function_exists(‚pagelist_unqprfx_shortcode‘) ) {
function pagelist_unqprfx_shortcode( $atts ) {
global $post, $pagelist_unqprfx_powered_line;
$return = “;
extract( shortcode_atts( array(
‚depth‘ => ‚0‘,
‚child_of‘ => ‚0‘,
‚exclude‘ => ‚0‘,
‚exclude_tree‘ => “,
‚include‘ => ‚0‘,
‚title_li‘ => “,
’number‘ => “,
‚offset‘ => “,
‚meta_key‘ => “,
‚meta_value‘ => “,
’show_date‘ => “,
’sort_column‘ => ‚menu_order, post_title‘,
’sort_order‘ => ‚ASC‘,
‚link_before‘ => “,
‚link_after‘ => “,
‚class‘ => “
), $atts ) );

$page_list_args = array(
‚depth‘ => $depth,
‚child_of‘ => pagelist_unqprfx_norm_params($child_of),
‚exclude‘ => pagelist_unqprfx_norm_params($exclude),
‚exclude_tree‘ => $exclude_tree,
‚include‘ => $include,
‚title_li‘ => $title_li,
’number‘ => $number,
‚offset‘ => $offset,
‚meta_key‘ => $meta_key,
‚meta_value‘ => $meta_value,
’show_date‘ => $show_date,
‚date_format‘ => get_option(‚date_format‘),
‚echo‘ => 0,
‚authors‘ => “,
’sort_column‘ => $sort_column,
’sort_order‘ => $sort_order,
‚link_before‘ => $link_before,
‚link_after‘ => $link_after,
‚walker‘ => “
);
$list_pages = wp_list_pages( $page_list_args );

$return = $pagelist_unqprfx_powered_line;
if ($list_pages) {
$return .= ‚

    ‚.“\n“.$list_pages.“\n“.‘

‚;
}else{
$return .= ‚‚;
}
return $return;
}
add_shortcode( ‚pagelist‘, ‚pagelist_unqprfx_shortcode‘ );
add_shortcode( ‚page_list‘, ‚pagelist_unqprfx_shortcode‘ );
add_shortcode( ‚page-list‘, ‚pagelist_unqprfx_shortcode‘ ); // not good (Shortcode names should be all lowercase and use all letters, but numbers and underscores (not dashes!) should work fine too.)
add_shortcode( ’sitemap‘, ‚pagelist_unqprfx_shortcode‘ );
}

if ( !function_exists(’subpages_unqprfx_shortcode‘) ) {
function subpages_unqprfx_shortcode( $atts ) {
global $post, $pagelist_unqprfx_powered_line;
$return = “;
extract( shortcode_atts( array(
‚depth‘ => ‚0‘,
//’child_of‘ => ‚0‘,
‚exclude‘ => ‚0‘,
‚exclude_tree‘ => “,
‚include‘ => ‚0‘,
‚title_li‘ => “,
’number‘ => “,
‚offset‘ => “,
‚meta_key‘ => “,
‚meta_value‘ => “,
’show_date‘ => “,
’sort_column‘ => ‚menu_order, post_title‘,
’sort_order‘ => ‚ASC‘,
‚link_before‘ => “,
‚link_after‘ => “,
‚class‘ => “
), $atts ) );

$page_list_args = array(
‚depth‘ => $depth,
‚child_of‘ => $post->ID,
‚exclude‘ => pagelist_unqprfx_norm_params($exclude),
‚exclude_tree‘ => $exclude_tree,
‚include‘ => $include,
‚title_li‘ => $title_li,
’number‘ => $number,
‚offset‘ => $offset,
‚meta_key‘ => $meta_key,
‚meta_value‘ => $meta_value,
’show_date‘ => $show_date,
‚date_format‘ => get_option(‚date_format‘),
‚echo‘ => 0,
‚authors‘ => “,
’sort_column‘ => $sort_column,
’sort_order‘ => $sort_order,
‚link_before‘ => $link_before,
‚link_after‘ => $link_after,
‚walker‘ => “
);
$list_pages = wp_list_pages( $page_list_args );

$return = $pagelist_unqprfx_powered_line;
if ($list_pages) {
$return .= ‚

    ‚.“\n“.$list_pages.“\n“.‘

‚;
}else{
$return .= ‚‚;
}
return $return;
}
add_shortcode( ’subpages‘, ’subpages_unqprfx_shortcode‘ );
add_shortcode( ’sub_pages‘, ’subpages_unqprfx_shortcode‘ );
}

if ( !function_exists(’siblings_unqprfx_shortcode‘) ) {
function siblings_unqprfx_shortcode( $atts ) {
global $post, $pagelist_unqprfx_powered_line;
$return = “;
extract( shortcode_atts( array(
‚depth‘ => ‚0‘,
//’child_of‘ => ‚0‘,
‚exclude‘ => ‚0‘,
‚exclude_tree‘ => “,
‚include‘ => ‚0‘,
‚title_li‘ => “,
’number‘ => “,
‚offset‘ => “,
‚meta_key‘ => “,
‚meta_value‘ => “,
’show_date‘ => “,
’sort_column‘ => ‚menu_order, post_title‘,
’sort_order‘ => ‚ASC‘,
‚link_before‘ => “,
‚link_after‘ => “,
‚class‘ => “
), $atts ) );

if( $exclude == ‚current‘ || $exclude == ‚this‘ ){
$exclude = $post->ID;
}

$page_list_args = array(
‚depth‘ => $depth,
‚child_of‘ => $post->post_parent,
‚exclude‘ => pagelist_unqprfx_norm_params($exclude),
‚exclude_tree‘ => $exclude_tree,
‚include‘ => $include,
‚title_li‘ => $title_li,
’number‘ => $number,
‚offset‘ => $offset,
‚meta_key‘ => $meta_key,
‚meta_value‘ => $meta_value,
’show_date‘ => $show_date,
‚date_format‘ => get_option(‚date_format‘),
‚echo‘ => 0,
‚authors‘ => “,
’sort_column‘ => $sort_column,
’sort_order‘ => $sort_order,
‚link_before‘ => $link_before,
‚link_after‘ => $link_after,
‚walker‘ => “
);
$list_pages = wp_list_pages( $page_list_args );

$return = $pagelist_unqprfx_powered_line;
if ($list_pages) {
$return .= ‚

    ‚.“\n“.$list_pages.“\n“.‘

‚;
}else{
$return .= ‚‚;
}
return $return;
}
add_shortcode( ’siblings‘, ’siblings_unqprfx_shortcode‘ );
}

if ( !function_exists(‚pagelist_unqprfx_ext_shortcode‘) ) {
function pagelist_unqprfx_ext_shortcode( $atts ) {
global $post, $pagelist_unqprfx_powered_line;
$return = “;
extract( shortcode_atts( array(
’show_image‘ => 1,
’show_first_image‘ => 0,
’show_title‘ => 1,
’show_content‘ => 1,
‚more_tag‘ => 1,
‚limit_content‘ => 250,
‚image_width‘ => ‚150‘,
‚image_height‘ => ‚150‘,
‚child_of‘ => “,
’sort_order‘ => ‚ASC‘,
’sort_column‘ => ‚menu_order, post_title‘,
‚hierarchical‘ => 1,
‚exclude‘ => ‚0‘,
‚include‘ => ‚0‘,
‚meta_key‘ => “,
‚meta_value‘ => “,
‚authors‘ => “,
‚parent‘ => -1,
‚exclude_tree‘ => “,
’number‘ => “,
‚offset‘ => 0,
‚post_type‘ => ‚page‘,
‚post_status‘ => ‚publish‘,
‚class‘ => “,
’strip_tags‘ => 1,
’strip_shortcodes‘ => 1,
’show_child_count‘ => 0,
‚child_count_template‘ => ‚Subpages: %child_count%‘,
’show_meta_key‘ => “,
‚meta_template‘ => ‚%meta%‘
), $atts ) );

if( $child_of == “ ){ // show subpages if child_of is empty
$child_of = $post->ID;
}

$page_list_ext_args = array(
’show_image‘ => $show_image,
’show_first_image‘ => $show_first_image,
’show_title‘ => $show_title,
’show_content‘ => $show_content,
‚more_tag‘ => $more_tag,
‚limit_content‘ => $limit_content,
‚image_width‘ => $image_width,
‚image_height‘ => $image_height,
‚child_of‘ => pagelist_unqprfx_norm_params($child_of),
’sort_order‘ => $sort_order,
’sort_column‘ => $sort_column,
‚hierarchical‘ => $hierarchical,
‚exclude‘ => pagelist_unqprfx_norm_params($exclude),
‚include‘ => $include,
‚meta_key‘ => $meta_key,
‚meta_value‘ => $meta_value,
‚authors‘ => $authors,
‚parent‘ => pagelist_unqprfx_norm_params($parent),
‚exclude_tree‘ => $exclude_tree,
’number‘ => “, // $number – own counter
‚offset‘ => 0, // $offset – own offset
‚post_type‘ => $post_type,
‚post_status‘ => $post_status,
‚class‘ => $class,
’strip_tags‘ => $strip_tags,
’strip_shortcodes‘ => $strip_shortcodes,
’show_child_count‘ => $show_child_count,
‚child_count_template‘ => $child_count_template,
’show_meta_key‘ => $show_meta_key,
‚meta_template‘ => $meta_template
);
$page_list_ext_args_all = array(
’show_image‘ => $show_image,
’show_first_image‘ => $show_first_image,
’show_title‘ => $show_title,
’show_content‘ => $show_content,
‚more_tag‘ => $more_tag,
‚limit_content‘ => $limit_content,
‚image_width‘ => $image_width,
‚image_height‘ => $image_height,
‚child_of‘ => 0, // for showing all pages
’sort_order‘ => $sort_order,
’sort_column‘ => $sort_column,
‚hierarchical‘ => $hierarchical,
‚exclude‘ => pagelist_unqprfx_norm_params($exclude),
‚include‘ => $include,
‚meta_key‘ => $meta_key,
‚meta_value‘ => $meta_value,
‚authors‘ => $authors,
‚parent‘ => pagelist_unqprfx_norm_params($parent),
‚exclude_tree‘ => $exclude_tree,
’number‘ => “, // $number – own counter
‚offset‘ => 0, // $offset – own offset
‚post_type‘ => $post_type,
‚post_status‘ => $post_status,
‚class‘ => $class,
’strip_tags‘ => $strip_tags,
’strip_shortcodes‘ => $strip_shortcodes,
’show_child_count‘ => $show_child_count,
‚child_count_template‘ => $child_count_template,
’show_meta_key‘ => $show_meta_key,
‚meta_template‘ => $meta_template
);
$list_pages = get_pages( $page_list_ext_args );
if( count( $list_pages ) == 0 ){ // if there is no subpages
$list_pages = get_pages( $page_list_ext_args_all ); // we are showing all pages
}
$list_pages_html = “;
$count = 0;
$offset_count = 0;
if( $list_pages !== false && count( $list_pages ) > 0 ){
foreach($list_pages as $page){
$count++;
$offset_count++;
if ( !empty( $offset ) && is_numeric( $offset ) && $offset_count <= $offset ) { $count = 0; // number counter to zero if offset is not finished } if ( ( !empty( $offset ) && is_numeric( $offset ) && $offset_count > $offset ) || ( empty( $offset ) ) || ( !empty( $offset ) && !is_numeric( $offset ) ) ) {
if ( ( !empty( $number ) && is_numeric( $number ) && $count <= $number ) || ( empty( $number ) ) || ( !empty( $number ) && !is_numeric( $number ) ) ) { $link = get_permalink( $page->ID );
$list_pages_html .= ‚

‚;
if( $show_image == 1 ){
if ( function_exists( ‚get_the_post_thumbnail‘ ) ) { // if we have WordPress 2.9+
if( get_the_post_thumbnail( $page->ID ) ){ // if there is a featured image
$list_pages_html .= ‚

‚;
//$list_pages_html .= get_the_post_thumbnail($page->ID, array($image_width,$image_height)); // doesn’t work good with image size
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $page->ID ), array($image_width,$image_height) ); // get featured img; ‚large‘
$img_url = $image[0]; // get the src of the featured image
$list_pages_html .= ‚'.esc_attr($page->post_title).'‚; // not using height=“‚.$image_height.'“ because images could be not square shaped and they will be stretched$list_pages_html .= ‚

‚;
}else{
if( $show_first_image == 1 ){
$img_scr = pagelist_unqprfx_get_first_image( $page->post_content );
if( !empty( $img_scr ) ){
$list_pages_html .= ‚

‚;
}
}
}
}else{ // if we have old WordPress 2.8 or lower
if( $show_first_image == 1 ){
$img_scr = pagelist_unqprfx_get_first_image( $page->post_content );
if( !empty( $img_scr ) ){
$list_pages_html .= ‚

‚;
}
}
}
}

if( $show_title == 1 ){
$list_pages_html .= ‚

‚.$page->post_title.‘

‚;
}
if( $show_content == 1 ){
//$content = apply_filters(‚the_content‘, $page->post_content);
//$content = str_replace(‚]]>‘, ‚]]>‘, $content); // both used in default the_content() function

if( !empty( $page->post_excerpt ) ){
$text_content = $page->post_excerpt;
}else{
$text_content = $page->post_content;
}

if ( post_password_required($page) ) {
$content = ‚‚;
}else{
$content = pagelist_unqprfx_parse_content( $text_content, $limit_content, $strip_tags, $strip_shortcodes, $more_tag );
$content = do_shortcode( $content );

if( $show_title == 0 ){ // make content as a link if there is no title
$content = ‚‚.$content.‘‚;
}
}

$list_pages_html .= ‚

‚.$content.‘

‚;

}
if( $show_child_count == 1 ){
$count_subpages = count(get_pages(„child_of=“.$page->ID));
if( $count_subpages > 0 ){ // hide empty
$child_count_pos = strpos($child_count_template, ‚%child_count%‘); // check if we have %child_count% marker in template
if($child_count_pos === false) { // %child_count% not found in template
$child_count_template_html = $child_count_template.‘ ‚.$count_subpages;
$list_pages_html .= ‚

‚.$child_count_template_html.‘

‚;
} else { // %child_count% found in template
$child_count_template_html = str_replace(‚%child_count%‘, $count_subpages, $child_count_template);
$list_pages_html .= ‚

‚.$child_count_template_html.‘

‚;
}
}
}
if( $show_meta_key != “ ){
$post_meta = get_post_meta($page->ID, $show_meta_key, true);
if( !empty($post_meta) ){ // hide empty
$meta_pos = strpos($meta_template, ‚%meta%‘); // check if we have %meta% marker in template
if($meta_pos === false) { // %meta% not found in template
$meta_template_html = $meta_template.‘ ‚.$post_meta;
$list_pages_html .= ‚

‚.$meta_template_html.‘

‚;
} else { // %meta% found in template
$meta_template_html = str_replace(‚%meta%‘, $post_meta, $meta_template);
$list_pages_html .= ‚

‚.$meta_template_html.‘

‚;
}
}
}
$list_pages_html .= ‚

‚.“\n“;
}
}
}
}
$return = $pagelist_unqprfx_powered_line;
if ($list_pages_html) {
$return .= ‚

‚.“\n“.$list_pages_html.“\n“.‘

‚;
}else{
$return .= ‚‚; // this line will not work, because we show all pages if there is no pages to show
}
return $return;
}
add_shortcode( ‚pagelist_ext‘, ‚pagelist_unqprfx_ext_shortcode‘ );
add_shortcode( ‚pagelistext‘, ‚pagelist_unqprfx_ext_shortcode‘ );
}

if ( !function_exists(‚pagelist_unqprfx_norm_params‘) ) {
function pagelist_unqprfx_norm_params( $str ) {
global $post;
$new_str = $str;
$new_str = str_replace(‚this‘, $post->ID, $new_str); // exclude this page
$new_str = str_replace(‚current‘, $post->ID, $new_str); // exclude current page
$new_str = str_replace(‚curent‘, $post->ID, $new_str); // exclude curent page with mistake
$new_str = str_replace(‚parent‘, $post->post_parent, $new_str); // exclude parent page
return $new_str;
}
}

if ( !function_exists(‚pagelist_unqprfx_parse_content‘) ) {
function pagelist_unqprfx_parse_content($content, $limit_content = 250, $strip_tags = 1, $strip_shortcodes = 1, $more_tag = 1) {

$more_tag_found = 0;
$content_before_more_tag_length = 0;

if( $more_tag ){ // „more_tag“ have higher priority than „limit_content“
if ( preg_match(‚//‘, $content, $matches) ) {
$more_tag_found = 1;
$more_tag = $matches[0];
$content_temp = explode($matches[0], $content);
$content_temp = $content_temp[0];
$content_before_more_tag_length = strlen($content_temp);
$content = substr_replace($content, ‚###more###‘, $content_before_more_tag_length, 0);
}
}

// replace php and comments tags so they do not get stripped
//$content = preg_replace(„@<\?@“, „#?#“, $content);
//$content = preg_replace(„@<!–@“, „#!–#“, $content); // save html comments
// strip tags normally
//$content = strip_tags($content);
if( $strip_tags ){
$content = str_replace(‚

line1

line2

– adding space between lines
$content = strip_tags($content); // ,‘


}
// return php and comments tags to their origial form
//$content = preg_replace(„@#\?#@“, „ //$content = preg_replace(„@#!–#@“, „<!–„, $content); if( $strip_shortcodes ){ $content = strip_shortcodes( $content ); } if( $more_tag && $more_tag_found ){ // „more_tag“ have higher priority than „limit_content“ $fake_more_pos = mb_strpos($content, ‚###more###‘, 0, ‚UTF-8‘); if( $fake_more_pos === false ) { // substring not found in string and this is strange 🙂 } else { $content = mb_substr($content, 0, $fake_more_pos, ‚UTF-8‘); } }else{ if( strlen($content) > $limit_content ){ // limiting content
$pos = strpos($content, ‚ ‚, $limit_content); // find first space position
if ($pos !== false) {
$first_space_pos = $pos;
}else{
$first_space_pos = $limit_content;
}
$content = mb_substr($content, 0, $first_space_pos, ‚UTF-8‘) . ‚…‘;
}
}

$output = force_balance_tags($content);
return $output;
}
}

if ( !function_exists(‚pagelist_unqprfx_get_first_image‘) ) {
function pagelist_unqprfx_get_first_image( $content=“ ) {
$first_img = “;
//ob_start();
//ob_end_clean();
$matchCount = preg_match_all(‚/<img.+src=[\'“]([^\'“]+)[\'“].*>/i‘, $content, $matches);
if ( $matchCount !== 0 ) { // if we found first image
$first_img = $matches[1][0];
}
return $first_img;
}
}

if ( ! function_exists(‚pagelist_unqprfx_plugin_meta‘) ) {
function pagelist_unqprfx_plugin_meta( $links, $file ) { // add links to plugin meta row
if ( $file == plugin_basename( __FILE__ ) ) {
$row_meta = array(
’support‘ => ‚ Page-list‚,
‚donate‘ => ‚ Donate‚,
‚pro‘ => ‚ ‚ . __( ‚Silver Bullet Pro‘, ‚page-list‘ ) . ‚
);
$links = array_merge( $links, $row_meta );
}
return (array) $links;
}
add_filter( ‚plugin_row_meta‘, ‚pagelist_unqprfx_plugin_meta‘, 10, 2 );
}