From bbf5568f45552e39c2522a4089a44e1dc8dabd82 Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 22 Apr 2021 10:01:32 +0200 Subject: [PATCH 01/53] show correct editor if you choose dark_mono theme in acp --- acp/acp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acp/acp.php b/acp/acp.php index 35c240e3..2d526afe 100644 --- a/acp/acp.php +++ b/acp/acp.php @@ -238,7 +238,7 @@ var ace_theme = 'chrome'; var tinymce_skin = 'oxide'; var acptheme = ""; - if(acptheme === 'dark') { + if(acptheme === 'dark' || acptheme === 'dark_mono') { var ace_theme = 'twilight'; var tinymce_skin = 'oxide-dark'; } From 4268112ebb20a18c3bfb7878c50fe253b0610818 Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 22 Apr 2021 20:44:35 +0200 Subject: [PATCH 02/53] add guestlist to events and reactions to posts --- acp/core/posts.edit.php | 62 ++++++++++++++++++++++++++++++-- acp/templates/post_event.tpl | 45 +++++++++++++++++++++++ acp/templates/post_file.tpl | 3 ++ acp/templates/post_gallery.tpl | 3 ++ acp/templates/post_image.tpl | 3 ++ acp/templates/post_link.tpl | 3 ++ acp/templates/post_message.tpl | 3 ++ acp/templates/post_product.tpl | 3 ++ acp/templates/post_video.tpl | 3 ++ install/contents/fc_comments.php | 9 +++-- install/contents/fc_posts.php | 13 +++++++ lib/lang/de/dict-posts.php | 15 ++++++++ lib/lang/en/dict-posts.php | 15 ++++++++ 13 files changed, 174 insertions(+), 6 deletions(-) diff --git a/acp/core/posts.edit.php b/acp/core/posts.edit.php index a8aee0c3..26f53004 100644 --- a/acp/core/posts.edit.php +++ b/acp/core/posts.edit.php @@ -302,7 +302,7 @@ /* comments yes/no */ -if($post_comments == 1) { +if($post_data['post_comments'] == 1) { $sel_comments_yes = 'selected'; $sel_comments_no = ''; } else { @@ -310,12 +310,33 @@ $sel_comments_yes = ''; } - $select_comments = ''; +/* votings/reactions no, yes for registered users, yes for all */ + + +if($post_data['post_votings'] == 1 OR $post_data['post_votings'] == '') { + $sel_votings_1 = 'selected'; + $sel_votings_2 = ''; + $sel_votings_3 = ''; +} else if($post_data['post_votings'] == 2) { + $sel_votings_1 = ''; + $sel_votings_2 = 'selected'; + $sel_votings_3 = ''; +} else { + $sel_votings_1 = ''; + $sel_votings_2 = ''; + $sel_votings_3 = 'selected'; +} + +$select_votings = ''; /* autor */ @@ -544,7 +565,7 @@ $form_tpl = str_replace('{checkbox_fixed}', $checkbox_fixed, $form_tpl); $form_tpl = str_replace('{select_status}', $select_status, $form_tpl); $form_tpl = str_replace('{select_comments}', $select_comments, $form_tpl); - +$form_tpl = str_replace('{select_votings}', $select_votings, $form_tpl); /* video */ $form_tpl = str_replace('{post_video_url}', $post_data['post_video_url'], $form_tpl); @@ -568,6 +589,41 @@ $form_tpl = str_replace('{post_event_city}', $post_data['post_event_city'], $form_tpl); $form_tpl = str_replace('{post_event_street}', $post_data['post_event_street'], $form_tpl); $form_tpl = str_replace('{post_event_price_note}', $post_data['post_event_price_note'], $form_tpl); +$form_tpl = str_replace('{post_event_guestlist_limit}', $post_data['post_event_guestlist_limit'], $form_tpl); + +$checked_guestlist = ''; +if($post_data['post_event_guestlist'] == '1') { + $checked_guestlist = 'checked'; +} + +if($post_data['post_event_guestlist_type'] == '1') { + $form_tpl = str_replace('{checked_gl_type_1}', 'checked', $form_tpl); + $form_tpl = str_replace('{checked_gl_type_2}', '', $form_tpl); +} else { + $form_tpl = str_replace('{checked_gl_type_1}', '', $form_tpl); + $form_tpl = str_replace('{checked_gl_type_2}', 'checked', $form_tpl); +} + +if($post_data['post_event_guestlist_public'] == '1') { + $form_tpl = str_replace('{checked_gl_public_1}', 'checked', $form_tpl); + $form_tpl = str_replace('{checked_gl_public_2}', '', $form_tpl); +} else { + $form_tpl = str_replace('{checked_gl_public_1}', '', $form_tpl); + $form_tpl = str_replace('{checked_gl_public_2}', 'checked', $form_tpl); +} + +if($post_data['post_event_guestlist_public_nbr'] == '1') { + $form_tpl = str_replace('{checked_gl_public_nbr_1}', 'checked', $form_tpl); + $form_tpl = str_replace('{checked_gl_public_nbr_2}', '', $form_tpl); +} else { + $form_tpl = str_replace('{checked_gl_public_nbr_1}', '', $form_tpl); + $form_tpl = str_replace('{checked_gl_public_nbr_2}', 'checked', $form_tpl); +} + + +$form_tpl = str_replace('{checked_guestlist}', $checked_guestlist, $form_tpl); + + /* product */ $form_tpl = str_replace('{post_product_number}', $post_data['post_product_number'], $form_tpl); diff --git a/acp/templates/post_event.tpl b/acp/templates/post_event.tpl index 18a1fe43..aa75e12e 100644 --- a/acp/templates/post_event.tpl +++ b/acp/templates/post_event.tpl @@ -87,6 +87,48 @@ +
+ {label_event_guestlist} + +
+ + +
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+ + +
+
+ + +
+
+
+ + +
+ +
+
@@ -156,6 +198,9 @@
{label_comments} {select_comments}
+
+ {label_votings} {select_votings} +
{labels} {post_labels}
diff --git a/acp/templates/post_file.tpl b/acp/templates/post_file.tpl index b00306ca..86cb2b7b 100644 --- a/acp/templates/post_file.tpl +++ b/acp/templates/post_file.tpl @@ -124,6 +124,9 @@
{label_comments} {select_comments}
+
+ {label_votings} {select_votings} +
{labels} {post_labels}
diff --git a/acp/templates/post_gallery.tpl b/acp/templates/post_gallery.tpl index bc4a8296..6dcb4b8b 100644 --- a/acp/templates/post_gallery.tpl +++ b/acp/templates/post_gallery.tpl @@ -96,6 +96,9 @@
{label_comments} {select_comments}
+
+ {label_votings} {select_votings} +
{labels} {post_labels}
diff --git a/acp/templates/post_image.tpl b/acp/templates/post_image.tpl index 11271434..a90986e5 100644 --- a/acp/templates/post_image.tpl +++ b/acp/templates/post_image.tpl @@ -85,6 +85,9 @@
{label_comments} {select_comments}
+
+ {label_votings} {select_votings} +
{labels} {post_labels}
diff --git a/acp/templates/post_link.tpl b/acp/templates/post_link.tpl index 5567b4a0..ff85a0e7 100644 --- a/acp/templates/post_link.tpl +++ b/acp/templates/post_link.tpl @@ -83,6 +83,9 @@
{label_comments} {select_comments}
+
+ {label_votings} {select_votings} +
{labels} {post_labels}
diff --git a/acp/templates/post_message.tpl b/acp/templates/post_message.tpl index 204df536..fa0f7d40 100644 --- a/acp/templates/post_message.tpl +++ b/acp/templates/post_message.tpl @@ -93,6 +93,9 @@
{label_comments} {select_comments}
+
+ {label_votings} {select_votings} +
{labels} {post_labels}
diff --git a/acp/templates/post_product.tpl b/acp/templates/post_product.tpl index b2c1e207..4413c25d 100644 --- a/acp/templates/post_product.tpl +++ b/acp/templates/post_product.tpl @@ -181,6 +181,9 @@
{label_comments} {select_comments}
+
+ {label_votings} {select_votings} +
{labels} {post_labels}
diff --git a/acp/templates/post_video.tpl b/acp/templates/post_video.tpl index 3eaf31f7..107dcdda 100644 --- a/acp/templates/post_video.tpl +++ b/acp/templates/post_video.tpl @@ -91,6 +91,9 @@
{label_comments} {select_comments}
+
+ {label_votings} {select_votings} +
{labels} {post_labels}
diff --git a/install/contents/fc_comments.php b/install/contents/fc_comments.php index 554787e0..af425991 100644 --- a/install/contents/fc_comments.php +++ b/install/contents/fc_comments.php @@ -3,9 +3,12 @@ /** * database used for * - * comment_type - p -> comments on pages - * - b -> comments on blog posts - * - c -> chat in the acp + * comment_type - p -> comments on pages + * - b -> comments on blog posts + * - upv -> upvote on blog posts + * - dnv -> downvote on blog posts + * - evc -> Event confirmation + * - c -> chat in the acp (currently not in use) * * comment_status - 1 -> public * - 2 -> wait for approval diff --git a/install/contents/fc_posts.php b/install/contents/fc_posts.php index 12023ec0..45396fec 100644 --- a/install/contents/fc_posts.php +++ b/install/contents/fc_posts.php @@ -5,6 +5,13 @@ * post_status -> 1 = public, 2 = draft * post_rss -> 1 = yes, 2 = no * post_fixed -> 1 = yes, 2 = no + * post_votings -> 1 = no, 2 = yes for registered useres, 3 = yes for everybody + * + * post_event_guestlist -> 1 = yes, 2 = no guestlist + * post_event_guestlist_type -> 1 = everybody can confirm, 2 = registered user can confirm + * post_event_guestlist_public -> 1 = yes, 2 = no + * post_event_guestlist_public_nbr -> 1 = yes, 2 = no + * post_event_guestlist_limit -> null = no limit, number = limit of guests */ $database = "posts"; @@ -36,6 +43,7 @@ "post_priority" => 'INTEGER(12)', "post_fixed" => 'INTEGER(12)', "post_hits" => 'INTEGER(12)', + "post_votings" => 'INTEGER(12)', "post_labels" => "VARCHAR(50) NOT NULL DEFAULT ''", "post_attachments" => "VARCHAR(255) NOT NULL DEFAULT ''", /* events */ @@ -46,6 +54,11 @@ "post_event_street" => "VARCHAR(100) NOT NULL DEFAULT ''", "post_event_street_nbr" => "VARCHAR(100) NOT NULL DEFAULT ''", "post_event_price_note" => "LONGTEXT NOT NULL DEFAULT ''", + "post_event_guestlist" => 'INTEGER(12)', + "post_event_guestlist_type" => 'INTEGER(12)', + "post_event_guestlist_public" => 'INTEGER(12)', + "post_event_guestlist_public_nbr" => 'INTEGER(12)', + "post_event_guestlist_limit" => "VARCHAR(50) NOT NULL DEFAULT ''", /* products */ "post_product_number" => "VARCHAR(100) NOT NULL DEFAULT ''", "post_product_manufacturer" => "VARCHAR(100) NOT NULL DEFAULT ''", diff --git a/lib/lang/de/dict-posts.php b/lib/lang/de/dict-posts.php index fe6c48d4..e5e511f6 100644 --- a/lib/lang/de/dict-posts.php +++ b/lib/lang/de/dict-posts.php @@ -106,6 +106,21 @@ $lang['status_draft'] = 'Eintwurf'; $lang['status_public'] = 'Öffentlich'; +$lang['label_votings'] = 'Reaktionen/Votings'; +$lang['label_votings_off'] = 'Deaktivieren'; +$lang['label_votings_on_registered'] = 'Für registrierte Benutzer'; +$lang['label_votings_on_global'] = 'Für alle Benutzer'; + +$lang['label_event_guestlist'] = 'Gästeliste'; +$lang['label_guestlist_activate'] = 'Gästeliste aktivieren'; +$lang['label_guestlist_for_registered'] = 'Nur für registrierte Benutzer'; +$lang['label_guestlist_for_everybody'] = 'Jeder kann teilnehmen'; +$lang['label_guestlist_public_no'] = 'Gästeliste verbergen'; +$lang['label_guestlist_public_yes'] = 'Gästeliste anzeigen'; +$lang['label_guestlist_show_nbr_no'] = 'Anzahl der Zusagen verbergen'; +$lang['label_guestlist_show_nbr_yes'] = 'Anzahl der Zusagen anzeigen'; +$lang['label_guestlist_limit'] = 'Anzahl der Registrierungen begrenzen (Leer bedeutet unbegrenzte Anmeldungen)'; + $lang['btn_upload'] = 'Upload'; $lang['gallery_upload_help_text'] = 'Du musst die Galerie speichern, bevor Du Bilder hinzufügen kannst.'; diff --git a/lib/lang/en/dict-posts.php b/lib/lang/en/dict-posts.php index 0e93a6d9..22d1f2fc 100644 --- a/lib/lang/en/dict-posts.php +++ b/lib/lang/en/dict-posts.php @@ -107,6 +107,21 @@ $lang['status_draft'] = 'Draft'; $lang['status_public'] = 'Public'; +$lang['label_votings'] = 'Reactions/Votings'; +$lang['label_votings_off'] = 'Deactivated'; +$lang['label_votings_on_registered'] = 'For registered users'; +$lang['label_votings_on_global'] = 'For all Users'; + +$lang['label_event_guestlist'] = 'Guest list'; +$lang['label_guestlist_activate'] = 'Activate Guest list'; +$lang['label_guestlist_for_registered'] = 'For registered Users only'; +$lang['label_guestlist_for_everybody'] = 'Everybody can confirm'; +$lang['label_guestlist_public_no'] = 'Hide Guest list'; +$lang['label_guestlist_public_yes'] = 'Show Guest list'; +$lang['label_guestlist_show_nbr_no'] = 'Hide number of commitments'; +$lang['label_guestlist_show_nbr_yes'] = 'Show the number of commitments'; +$lang['label_guestlist_limit'] = 'Limit number of registrations (leave this field blank for unlimited registrations)'; + $lang['btn_upload'] = 'Upload'; $lang['gallery_upload_help_text'] = 'You must save the gallery before you can add images.'; From 6cae2dd476b0055d8ce8dc590aa3e8281a154235 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 23 Apr 2021 09:51:16 +0200 Subject: [PATCH 03/53] add missing slash at the end of category link --- core/posts-display.php | 2 +- core/posts-list.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/posts-display.php b/core/posts-display.php index 160020cc..5241da6b 100644 --- a/core/posts-display.php +++ b/core/posts-display.php @@ -26,7 +26,7 @@ if(in_array($cats['cat_id'],$cat_links_array)) { $post_cats_string .= $cats['cat_name'] .' '; - $cat_href = '/'.$fct_slug.$cats['cat_name_clean']; + $cat_href = '/'.$fct_slug.$cats['cat_name_clean'].'/'; $link = str_replace('{cat_href}', $cat_href, $link); $link = str_replace('{cat_name}', $cats['cat_name'], $link); $post_cats_btn .= $link; diff --git a/core/posts-list.php b/core/posts-list.php index 6fb894b0..f4159e39 100644 --- a/core/posts-list.php +++ b/core/posts-list.php @@ -232,7 +232,7 @@ $link = $tpl_category_link; if(in_array($cats['cat_id'], $post_categories)) { - $cat_href = '/'.$fct_slug.$cats['cat_name_clean']; + $cat_href = '/'.$fct_slug.$cats['cat_name_clean'].'/'; $link = str_replace('{cat_href}', $cat_href, $link); $link = str_replace('{cat_name}', $cats['cat_name'], $link); $cat_str .= $link; From 6ac98520c372dd2038715200ae162420aead4a71 Mon Sep 17 00:00:00 2001 From: Patrick Date: Fri, 23 Apr 2021 10:34:15 +0200 Subject: [PATCH 04/53] increase posts hits-counter --- core/posts-display.php | 3 ++- global/functions.posts.php | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/core/posts-display.php b/core/posts-display.php index 5241da6b..6a911a4f 100644 --- a/core/posts-display.php +++ b/core/posts-display.php @@ -60,7 +60,8 @@ } $hits = (int) $post_data['hits']; -$hits++; +fc_increase_posts_hits($get_post_id); + diff --git a/global/functions.posts.php b/global/functions.posts.php index 37f246e5..edf0e6f5 100644 --- a/global/functions.posts.php +++ b/global/functions.posts.php @@ -269,4 +269,27 @@ function fc_load_posts_tpl($tpl_dir,$tpl_file) { } +/** + * increase the hits counter + */ + +function fc_increase_posts_hits($post_id) { + + global $db_posts; + + $post_data_hits = $db_posts->get("fc_posts","post_hits", [ + "post_id" => $post_id + ]); + + $post_data_hits = $post_data_hits+1; + + $update = $db_posts->update("fc_posts", [ + "post_hits" => $post_data_hits + ],[ + "post_id" => $post_id + ]); + +} + + ?> \ No newline at end of file From 7d319a9ca9a7621c5518931b4db27592ab41defd Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 26 Apr 2021 10:48:48 +0200 Subject: [PATCH 05/53] add votings and image captions to posts --- core/functions/func_basics.php | 11 +++- core/posts-display.php | 25 +++++++- core/votings.php | 64 +++++++++++++++++++ global/functions.posts.php | 54 +++++++++++++++- install/contents/fc_comments.php | 1 + styles/default/templates/comments/vote.tpl | 24 +++++++ .../templates/posts/post-display-e.tpl | 3 +- .../templates/posts/post-display-f.tpl | 2 +- .../templates/posts/post-display-i.tpl | 2 +- .../templates/posts/post-display-l.tpl | 2 +- .../templates/posts/post-display-m.tpl | 2 +- .../templates/posts/post-display-p.tpl | 2 +- 12 files changed, 182 insertions(+), 10 deletions(-) create mode 100644 core/votings.php create mode 100644 styles/default/templates/comments/vote.tpl diff --git a/core/functions/func_basics.php b/core/functions/func_basics.php index dd534eb0..1950f097 100644 --- a/core/functions/func_basics.php +++ b/core/functions/func_basics.php @@ -51,6 +51,11 @@ function buffer_script($script,$parameters=NULL) { } +/** + * get the image data from $db_content + * if parameter data = array return only data + * if no parameter is set, return the image data styled with tpl file image.tpl + */ function fc_get_images_data($image,$parameters=NULL) { @@ -67,7 +72,11 @@ function fc_get_images_data($image,$parameters=NULL) { "media_file[~]" => "%$image", "media_lang" => "$languagePack" ] - ]); + ]); + + if($data == 'array') { + return $imageData; + } $img_src = str_replace('../content/images/', '/content/images/', $imageData['media_file']); $tpl = file_get_contents('./styles/'.$fc_template.'/templates/image.tpl'); diff --git a/core/posts-display.php b/core/posts-display.php index 6a911a4f..71ec0454 100644 --- a/core/posts-display.php +++ b/core/posts-display.php @@ -53,6 +53,7 @@ if($post_images[1] != "") { $first_post_image = '/' . $img_path . '/' . str_replace('../content/images/','',$post_images[1]); + $post_image_data = fc_get_images_data($first_post_image,'data=array'); } else if($fc_prefs['prefs_posts_default_banner'] == "without_image") { $first_post_image = ''; } else { @@ -63,8 +64,6 @@ fc_increase_posts_hits($get_post_id); - - if($post_data['post_type'] == 'm') { if($first_post_image != "") { $this_entry = fc_load_posts_tpl($fc_template,'post-display-m.tpl'); @@ -116,6 +115,27 @@ $post_teaser = htmlspecialchars_decode($post_data['post_teaser']); $post_text = htmlspecialchars_decode($post_data['post_text']); + +/* vote up or down this post */ +if($post_data['post_votings'] == 2 || $post_data['post_votings'] == 3) { + + $voting_buttons = fc_load_comments_tpl($fc_template,'vote.tpl'); + $voting_buttons = str_replace('{type}', 'post', $voting_buttons); + $voting_buttons = str_replace('{id}', $post_data['post_id'], $voting_buttons); + + $votes = fc_get_voting_data('post',$post_data['post_id']); + + $voting_buttons = str_replace('{nbr_up}', $votes['upv'], $voting_buttons); + $voting_buttons = str_replace('{nbr_dn}', $votes['dnv'], $voting_buttons); + + $this_entry = str_replace('{post_voting}', $voting_buttons, $this_entry); + +} else { + $this_entry = str_replace('{post_voting}', '', $this_entry); +} + + + $this_entry = str_replace("{post_id}", $post_data['post_id'], $this_entry); $this_entry = str_replace("{post_author}", $post_data['post_author'], $this_entry); $this_entry = str_replace('{post_title}', $post_data['post_title'], $this_entry); @@ -123,6 +143,7 @@ $this_entry = str_replace('{post_text}', $post_text, $this_entry); $this_entry = str_replace("{post_type}", $post_data['post_type'], $this_entry); $this_entry = str_replace('{post_img_src}', $first_post_image, $this_entry); +$this_entry = str_replace('{post_img_caption}', $post_image_data['media_text'], $this_entry); $this_entry = str_replace("{post_source}", $post_data['post_source'], $this_entry); $this_entry = str_replace("{post_product_manufacturer}", $post_data['post_product_manufacturer'], $this_entry); diff --git a/core/votings.php b/core/votings.php new file mode 100644 index 00000000..69b9bfda --- /dev/null +++ b/core/votings.php @@ -0,0 +1,64 @@ +insert("fc_comments", [ + "comment_relation_id" => $vote_relation_id, + "comment_type" => $vote_type, + "comment_time" => $time, + "comment_author" => $voter_name, + "comment_author_id" => $voter_id + ]); + + + /* get the new counters */ + + $votes = fc_get_voting_data('post',$vote_relation_id); + + echo json_encode($votes); + +} +?> \ No newline at end of file diff --git a/global/functions.posts.php b/global/functions.posts.php index edf0e6f5..8d9b2faa 100644 --- a/global/functions.posts.php +++ b/global/functions.posts.php @@ -250,7 +250,7 @@ function fc_set_pagination_query($display_mode,$start) { /** * check if the template $tpl_dir has the posts tpl file - * if not, load files from the /default/ directory + * if not, load files from the /default/templates/posts/ directory * return tpl file contents (string) */ @@ -268,6 +268,26 @@ function fc_load_posts_tpl($tpl_dir,$tpl_file) { return $contents; } +/** + * check if the template $tpl_dir has the comments tpl file + * if not, load files from the /default/templates/comments/ directory + * return tpl file contents (string) + */ + +function fc_load_comments_tpl($tpl_dir,$tpl_file) { + + $check_template = 'styles/'.basename($tpl_dir).'/templates/comments/'.$tpl_file; + + if(is_file($check_template)) { + $contents = file_get_contents($check_template); + } else { + $fallback_tpl = 'styles/default/templates/comments/'.$tpl_file; + $contents = file_get_contents($fallback_tpl); + } + + return $contents; +} + /** * increase the hits counter @@ -291,5 +311,37 @@ function fc_increase_posts_hits($post_id) { } +/** + * get voting data for posts or comments + * return array $votes['upv'] = x / $votes['dnv'] = x + */ + +function fc_get_voting_data($type,$id) { + + global $db_content; + + if($type == 'post') { + + $count_upv = $db_content->count("fc_comments", [ + "AND" => [ + "comment_type" => "upv", + "comment_relation_id" => $id + ] + ]); + $count_dnv = $db_content->count("fc_comments", [ + "AND" => [ + "comment_type" => "dnv", + "comment_relation_id" => $id + ] + ]); + + $votes = array('upv' => $count_upv, 'dnv' => $count_dnv); + + return $votes; + + } + + +} ?> \ No newline at end of file diff --git a/install/contents/fc_comments.php b/install/contents/fc_comments.php index af425991..28e59874 100644 --- a/install/contents/fc_comments.php +++ b/install/contents/fc_comments.php @@ -13,6 +13,7 @@ * comment_status - 1 -> public * - 2 -> wait for approval * + * comment_relation_id -> id of the blog post * comment_parent_id -> if it's an answer * */ diff --git a/styles/default/templates/comments/vote.tpl b/styles/default/templates/comments/vote.tpl new file mode 100644 index 00000000..051322d8 --- /dev/null +++ b/styles/default/templates/comments/vote.tpl @@ -0,0 +1,24 @@ + + + + \ No newline at end of file diff --git a/styles/default/templates/posts/post-display-e.tpl b/styles/default/templates/posts/post-display-e.tpl index 3120d33c..c2a31045 100644 --- a/styles/default/templates/posts/post-display-e.tpl +++ b/styles/default/templates/posts/post-display-e.tpl @@ -20,13 +20,14 @@ {post_text}
-

+


{post_img_caption}

{post_tpl_event_prices} {post_event_price_note} {post_tpl_event_hotline} + {post_voting}