diff -r 000000000000 -r 505fe5249d9c src/web/app/themes/atahualpa/template_multi_column_custom_query.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/web/app/themes/atahualpa/template_multi_column_custom_query.php Wed Dec 04 11:40:06 2019 +0100 @@ -0,0 +1,272 @@ + + + ID); /* save the page id */ + $mccq_page->the_post(); + + $number_of_columns = 1; + $posts_above_the_column = 0; + $mccq_args = 'post_status=publish'; + $show_page_title = 'no'; + $show_page_text = 'no'; + + $custom_fields = get_post_custom($post->ID); + $bfa_pagetemplate_name = 'template_multi_column_custom_query.php'; + $number_of_full_posts = 0; +// ------------------------------------------------------------------------- +// get the custom query +// ------------------------------------------------------------------------- + $my_custom_field = $custom_fields['custom_query']; + if (is_array($my_custom_field)) { + foreach ( $my_custom_field as $key => $value ) { + if ($key == 'custom_query') {$mccq_args= $value;} + } + } + +// ------------------------------------------------------------------------- +// get the show_page_title +// ------------------------------------------------------------------------- + $my_custom_field = $custom_fields['show_page_title']; + if (is_array($my_custom_field)) { + foreach ( $my_custom_field as $key => $value ) { + if ($key == 'show_page_title') { + $show_page_title = strtolower($value); + if (($show_page_title != 'yes') AND ($show_page_title != 'no')) { ?> +
Warning: your value for 'show_page_title' on page '' must be 'yes' or 'no' - please edit the page and set the value correctly
+ + $value ) { + if ($key == 'number_of_full_posts') { + $number_of_full_posts = strtolower($value); + if ((!is_numeric($number_of_full_posts)) OR ($number_of_full_posts < 0)) { ?> +
Warning: your value for 'number_of_full_posts' on page '' is not numeric or is a negative number - please edit the page and set the value correctly
+ $value ) { + if ($key == 'show_page_text') { + $show_page_text = strtolower($value); + if (($show_page_text != 'yes') AND ($show_page_text != 'no')) { ?> +
Warning: your value for 'show_page_text' on page '' must be 'yes' or 'no' - please edit the page and set the value correctly
+ $value ) { + if ($key == 'posts_above_the_column') { + $posts_above_the_column = $value; + if ((!is_numeric($posts_above_the_column)) OR ($posts_above_the_column < 0)) { ?> +
Warning: your value for 'posts_above_the_column' on page '' is not numeric or is a negative number - please edit the page and set the value correctly
+ $value ) { + if ($key == 'number_of_columns') { + $number_of_columns = $value; + if ((!is_numeric($number_of_columns)) OR ($number_of_columns < 1)) { ?> +
Warning: your value for 'number_of_columns' on page '' is not numeric or is less than 1 - please edit the page and set the value correctly
+ ',''); + bfa_post_headline('
','
'); + bfa_post_byline('
','
'); + } + +// ------------------------------------------------------------------------- +// Should we show the page text? +// ------------------------------------------------------------------------- + if ($show_page_text=='yes' ) { + bfa_post_bodycopy('
','
'); + } + + $mccq_args= $mccq_args."&paged=$paged"; +?> + + + + + + '') { + echo bfa_parse_widget_areas($bfa_ata['widget_center_top']); + } ?> + + + Next/Previous Navigation: ?> + + + + + + + "; } + + if ($bfa_ata_postcount <= $posts_above_the_column) { ?> + + + + + $number_of_columns) { + echo ""; + $column_cnt=1; + } ?> + + + +
+ + + + Next/Previous Navigation ?> + +
id="post-"> + +
+ + ','
'); ?> + ','
'); ?> + ',''); ?> + ',''); ?> + '.__('Pages:','atahualpa').'','

'); ?> + ',''); ?> + + +
+ + + Next/Previous Navigation: ?> + + Next/Previous Navigation: ?> + ',''); // Archives Pages. Displayed on a specific static page, if configured at ATO -> Archives Pages: ?> + Next/Previous Navigation: ?> + + '') { + echo bfa_parse_widget_areas($bfa_ata['widget_center_bottom']); + } ?> + + + + +

+

+ + + + + \ No newline at end of file