From 13ad90bc26aca7cabea52ef055a3859e1491db65 Mon Sep 17 00:00:00 2001 From: "Mark (ilosuna)" Date: Sun, 13 Oct 2013 10:46:18 +0200 Subject: [PATCH] bootstrap adaptations --- cms/config/page_types.conf.php | 6 - cms/data/content.sqlite | Bin 393216 -> 393216 bytes cms/data/entries.sqlite | Bin 19456 -> 19456 bytes cms/data/userdata.sqlite | Bin 4096 -> 4096 bytes cms/includes/page_types/commentable_page.php | 1 + cms/includes/page_types/newsletter.php | 336 ------------------ cms/lang/english.page.lang.php | 33 +- .../admin/subtemplates/admin_menu.inc.tpl | 2 +- .../admin/subtemplates/comments.inc.tpl | 37 +- .../admin/subtemplates/settings.inc.tpl | 40 +-- cms/templates/subtemplates/comments.inc.tpl | 2 +- cms/templates/subtemplates/formmailer.inc.tpl | 39 +- cms/templates/subtemplates/formmailer.tpl.inc | 29 -- cms/templates/subtemplates/newsletter.inc.tpl | 99 ------ static/css/style.css | 3 +- static/css/style_admin.css | 1 + 16 files changed, 75 insertions(+), 553 deletions(-) delete mode 100644 cms/includes/page_types/newsletter.php delete mode 100644 cms/templates/subtemplates/formmailer.tpl.inc delete mode 100644 cms/templates/subtemplates/newsletter.inc.tpl diff --git a/cms/config/page_types.conf.php b/cms/config/page_types.conf.php index 5356d6a..233e2d8 100644 --- a/cms/config/page_types.conf.php +++ b/cms/config/page_types.conf.php @@ -52,12 +52,6 @@ $page_types['notes'] = array( 'requires_parameter' => true ); -$page_types['newsletter'] = array( -'page_type' => 'newsletter.php', -'page_type_label' => 'page_type_newsletter', -'requires_parameter' => false -); - $page_types['search'] = array( 'page_type' => 'search.php', 'page_type_label' => 'page_type_search', diff --git a/cms/data/content.sqlite b/cms/data/content.sqlite index b38c616622992af4eaff8f94a990df686e994944..6212f00e6e1778a45032e7acd2a7734205ea57d5 100644 GIT binary patch delta 1463 zcma)5eQXnD7{BX#@3vcZbY*VqJ~}!FY0Kz(qho-WA+d@eeo#K#n!$ zdcEtl;84NLH3;uNgfUG_{D8PbsU{#2T|`Cj4;2%M5~n~^Vi2Q7P4L>`0RQs&<8trw zzVGwx38r`+9E%-4F1Zt9J396h1&CD?Bj&TwS^a_F$5saV3 z__79Gw3QVC_v~hDuv_A!Fw*rl;*K2M0v*(sm(2k#%do*DFbnNv@#{LU)>%uyl3A`s zS+1AsF*Ft;tiGS9%&aQI4jt4vY-_=aGQE%kdS=)ahBbc0!LGnB}INVnXX=zU9=2l=9)^YCescxzSsfRQ3SEzOeTGh z`p7kZ8E)-_^GF7_cS06)ZWzM5J7H@!xCI`X?+SPbi|-oYyY|TO_VEs;^I+gYm(<-J zqR@C>!8UID%KkkA&Y_d~%aiGMd`!So{CR$61hH>5{^5P-Fl=(_9IV6a6s$DuL)kS` z@P#6L;uQ4apHIW$toIE3yOaukNK9tZhn;Cl;}T*8UCvNN6zyViVQ~~0Q8O>UXvlqO zhMB4P69?&%h~WtT#*PVp$MZYz=r_=Y?O(zg(v+1hz)fTc8Y4z;Ff#44z#Xog3*D{6 z2HKs6$k$^k9b^%C3q*s9W_GsU#K0dXVad`P?h1B?QQkrRjgJ=@prh*q5%G2|8XM%j zt&3W`A)#k5=gj<+8(VSa60E@!NmB)AYHGr@)36=7Lx>k}Y#Kge@T9(j&yu!&{N6y;4jCM|3JXe`L#Q`67?%8--+S8Mu~*0Ee}q-}wzDU$LN}RR zbp?J38clmDTK*4$_rC~*&RKvDiVc9FM~(MuUz`(r`E6o1-wJx=7kC;N@}B$+uB86~ DmXOzY delta 1433 zcma)*UrZcD9LINVZh-zduIJHmlz*iZDTU?k04az`#Zu7#S`KWzLV6tB0BhOXb9aH= zz1!WREsX~Mlo&e?t!;@<{z+4e_F__vRr`mSv>IQqCWb$z<-x|(q7TMc_ZCWt55{?z zotd5A_w)VDZzdjh#pABy*}y-Zvm5wFx<bJQJGezl#9v-$|>cTA}I%zR;59q!$Mo|5F@Zy3>?C;3Mq0f3Qv%>7%Y3-xfPb$dpMTGVKE@E%m9N0Z$Sa1 zOOg{T2SN;wdqj?x88+C51^4nEwUOM2!KS)$Dt#Gkd~CTe-_B!!QE)(#rR;22>j;Ke zCLA!-c|$o6!F(WM=u~*rYouF++sP>v26F71V4>k+(C{$C;9Z!eF<^hy&P}4oe)v93Kj>L1_So`^5fA zkIM$#8y}>)vhMYGJi3KSHE6E&@UfM%2y-IS%k%_Ah6{W2PRfzALvCs?H!mjz78gB0 zn!HGVq^-5taIm|jjoepZW|saV)ov!Ry3^mJ^2X~oTaBLuMBfbxmw z2b4noI)KWc|MgB%+JUOcmRWQ*(ba(_wv`yVj)n!QVd44D_Mh?F4xA3SyTssB$cm5m zrSvl|?K;H1oHcYwe{XW+^9IY?KJxq5s2Ds;;&UjE)LllI>&H9x8a3S_$`LFO$27W; zps%2*)J?n~(7hOk1X^MT=wyZ1U_?lO>!{q3e)y@RXalZD>G()R%FKFg?%x+;K!XQiT&Y*8e-aOh*lzH@Ont8+)ib`02Mz4YN z!-Bh-Y6Jx(NsFZ>1=J=Xd1RlC>@?`*c$N(s?}TUZlUNF}kpWz8kbUjJMFZCT1bBL7 z2l;6MO_SelA?HI(%5BtV-7!{Dxsz%Ixn?q1wq(mJ21d)yHz$QQTh`GIQ1^zu#E#rW zPTC8&Aget_pingbacks(); $template->assign('comments', $comments); + $template->assign('total_comments', $comment->total_comments); $template->assign('pingbacks', $pingbacks); $template->assign('pagination', pagination($comment->total_pages,$comment->current_page)); $template->assign('current_page', $comment->current_page); diff --git a/cms/includes/page_types/newsletter.php b/cms/includes/page_types/newsletter.php deleted file mode 100644 index 1ac3b25..0000000 --- a/cms/includes/page_types/newsletter.php +++ /dev/null @@ -1,336 +0,0 @@ -prepare("DELETE FROM ".Database::$db_settings['newsletter_table']." WHERE time < :one_hour_ago AND confirmed = 0"); -$dbr->bindParam(':one_hour_ago', $one_hour_ago, PDO::PARAM_INT); -$dbr->execute(); - -if(isset($_GET['get_1']) && $_GET['get_1']=='subscribe') - { - $no_cache = true; - if(empty($_GET['get_2']) || empty($_GET['get_3'])) $error = true; - if(empty($error)) - { - if(trim($_GET['get_2'])=='' || trim($_GET['get_3'])=='') $error = true; - } - if(empty($error)) - { - $dbr = Database::$entries->prepare("SELECT confirmation_code FROM ".Database::$db_settings['newsletter_table']." WHERE id=:id LIMIT 1"); - $dbr->bindParam(':id', $_GET['get_2'], PDO::PARAM_INT); - $dbr->execute(); - $data = $dbr->fetch(); - if(isset($data['confirmation_code']) && $_GET['get_3'] == $data['confirmation_code']) - { - $dbr = Database::$entries->prepare("UPDATE ".Database::$db_settings['newsletter_table']." SET confirmed=1, confirmation_code='' WHERE id=:id"); - $dbr->bindParam(':id', $_GET['get_2'], PDO::PARAM_INT); - $dbr->execute(); - $action = 'confirmation_ok'; - } - else - { - $error = true; - } - } - if(isset($error)) $action = 'confirmation_failed'; - } - -if(isset($_GET['get_1']) && $_GET['get_1']=='unsubscribe') - { - $no_cache = true; - if(empty($_GET['get_2']) || empty($_GET['get_3'])) $error = true; - if(empty($error)) - { - if(trim($_GET['get_2'])=='' || trim($_GET['get_3'])=='') $error = true; - } - if(empty($error)) - { - $dbr = Database::$entries->prepare("SELECT confirmation_code FROM ".Database::$db_settings['newsletter_table']." WHERE id=:id LIMIT 1"); - $dbr->bindParam(':id', $_GET['get_2'], PDO::PARAM_INT); - $dbr->execute(); - $data = $dbr->fetch(); - if(isset($data['confirmation_code']) && $_GET['get_3'] == $data['confirmation_code']) - { - $dbr = Database::$entries->prepare("DELETE FROM ".Database::$db_settings['newsletter_table']." WHERE id=:id"); - $dbr->bindParam(':id', $_GET['get_2'], PDO::PARAM_INT); - $dbr->execute(); - $action = 'delete_ok'; - } - else $error = true; - } - if(isset($error)) $action = 'confirmation_failed'; - } - -if((isset($_POST['delete_checked']) || isset($_GET['get_1']) && $_GET['get_1']=='delete') && isset($_SESSION[$settings['session_prefix'].'user_id'])) - { - if(isset($_POST['checked'])) $checked_emails = $_POST['checked']; - elseif(isset($_GET['get_2'])) $checked_emails[] = $_GET['get_2']; - - if(isset($checked_emails) && is_array($checked_emails)) - { - $dbr = Database::$entries->prepare("SELECT id, email FROM ".Database::$db_settings['newsletter_table']." WHERE id=:id ORDER BY email ASC LIMIT 1"); - $dbr->bindParam(':id', $checked, PDO::PARAM_INT); - $i=0; - #Database::$entries->beginTransaction(); - foreach($checked_emails as $checked) - { - $dbr->execute(); - $data = $dbr->fetch(); - $emails2delete[$i]['id'] = $data['id']; - $emails2delete[$i]['email'] = htmlspecialchars($data['email']); - ++$i; - } - #Database::$entries->commit(); - if(isset($emails2delete)) - { - $template->assign('emails2delete',$emails2delete); - $action = 'delete_checked'; - } - } - } - -if(isset($_POST['delete_confirm'])) - { - if(isset($_POST['checked']) && is_array($_POST['checked'])) - { - $dbr = Database::$entries->prepare("DELETE FROM ".Database::$db_settings['newsletter_table']." WHERE id=:id"); - $dbr->bindParam(':id', $delete_id, PDO::PARAM_INT); - Database::$entries->beginTransaction(); - foreach($_POST['checked'] as $delete_id) - { - $dbr->execute(); - } - Database::$entries->commit(); - } - header('Location: '.BASE_URL.PAGE); - exit; - } - -/* -if(isset($_POST['delete_email']) && isset($_SESSION[$settings['session_prefix'].'user_id'])) - { - $dbr = Database::$entries->prepare("DELETE FROM ".Database::$db_settings['newsletter_table']." WHERE id=:id"); - $dbr->bindParam(':id', $_POST['email_id'], PDO::PARAM_INT); - $dbr->execute(); - header('Location: '.BASE_URL.PAGE); - exit; - } -*/ - -if(isset($_POST['add_email']) && isset($_SESSION[$settings['session_prefix'].'user_id'])) - { - $mail = new Mail(); - $mail->set_charset(CHARSET); - if(!$mail->is_valid_email($_POST['add_email'])) - #if(trim($_POST['add_email'])=='' || !preg_match("/^[^@]+@.+\.\D{2,5}$/", $_POST['add_email'])) - { - $template->assign('email', htmlspecialchars($_POST['add_email'])); - $errors[] = 'newsletter_error_invalid_email'; - } - if(empty($errors)) - { - $dbr = Database::$entries->prepare("SELECT email FROM ".Database::$db_settings['newsletter_table']." WHERE lower(email)=:email LIMIT 1"); - $dbr->bindValue(':email', mb_strtolower(trim($_POST['add_email']),CHARSET), PDO::PARAM_STR); - $dbr->execute(); - $data = $dbr->fetch(); - if(isset($data['email'])) - { - $errors[] = 'newsletter_error_email_exists'; - } - } - if(empty($errors)) - { - $dbr = Database::$entries->prepare("INSERT INTO ".Database::$db_settings['newsletter_table']." (newsletter_id, time, ip, email, confirmed, confirmation_code) VALUES (:newsletter_id, :time, :ip, :email, 1, '')"); - $dbr->bindParam(':newsletter_id', $page_id, PDO::PARAM_INT); - $dbr->bindValue(':time', time(), PDO::PARAM_INT); - $dbr->bindParam(':ip', $_SERVER["REMOTE_ADDR"], PDO::PARAM_STR); - $dbr->bindParam(':email', $_POST['add_email'], PDO::PARAM_STR); - $dbr->execute(); - header('Location: '.BASE_URL.PAGE); - exit; - } - - } - -if(isset($_POST['email']) && trim($_POST['email'])!='' && isset($_POST['subscribe'])) - { - $mail = new Mail(); - $mail->set_charset(CHARSET); - $mail->set_sender_name($settings['website_title']); - if($settings['mail_parameter']) $mail->set_mail_parameter($settings['mail_parameter']); - if($_POST['subscribe']=='subscribe') - { - if(!$mail->is_valid_email($_POST['email'])) - #if(trim($_POST['email'])=='' || !preg_match("/^[^@]+@.+\.\D{2,5}$/", $_POST['email'])) - { - $template->assign('email', htmlspecialchars($_POST['email'])); - $errors[] = 'newsletter_error_invalid_email'; - } - if(empty($errors)) - { - $dbr = Database::$entries->prepare("SELECT email FROM ".Database::$db_settings['newsletter_table']." WHERE lower(email)=:email LIMIT 1"); - $dbr->bindValue(':email', mb_strtolower(trim($_POST['email']),CHARSET), PDO::PARAM_STR); - $dbr->execute(); - $data = $dbr->fetch(); - if(isset($data['email'])) - { - $template->assign('email', htmlspecialchars($_POST['email'])); - $errors[] = 'newsletter_error_email_exists'; - } - } - if(empty($errors)) - { - $confirmation_code = md5(uniqid(rand())); - $dbr = Database::$entries->prepare("INSERT INTO ".Database::$db_settings['newsletter_table']." (newsletter_id, time, ip, email, confirmed, confirmation_code) VALUES (:newsletter_id, :time, :ip, :email, 0, :confirmation_code)"); - $dbr->bindParam(':newsletter_id', $page_id, PDO::PARAM_INT); - $dbr->bindValue(':time', time(), PDO::PARAM_INT); - $dbr->bindParam(':ip', $_SERVER["REMOTE_ADDR"], PDO::PARAM_STR); - $dbr->bindParam(':email', $_POST['email'], PDO::PARAM_STR); - $dbr->bindParam(':confirmation_code', $confirmation_code, PDO::PARAM_STR); - $dbr->execute(); - // get ID: - $dbr = Database::$entries->prepare("SELECT id FROM ".Database::$db_settings['newsletter_table']." WHERE email=:email LIMIT 1"); - $dbr->bindParam(':email', $_POST['email'], PDO::PARAM_STR); - $dbr->execute(); - $data = $dbr->fetch(); - - $confirm_link = BASE_URL.PAGE.',subscribe,'.$data['id'].','.$confirmation_code; - - $email_text = str_replace("[link]",$confirm_link,Localization::$lang['newsletter_subscribe_text']); - - if($mail->send($_POST['email'], $settings['email'], Localization::$lang['newsletter_subscribe_subj'], $email_text)) - { - $action = 'confirm_mail_sent'; - } - else - { - $dbr = Database::$entries->prepare("DELETE FROM ".Database::$db_settings['newsletter_table']." WHERE id=:id"); - $dbr->bindParam(':id', $data['id'], PDO::PARAM_INT); - $dbr->execute(); - $errors[] = 'newsletter_error_mail'; - } - } - if(isset($errors)) $action = 'main'; - } - elseif($_POST['subscribe']=='unsubscribe') - { - $dbr = Database::$entries->prepare("SELECT id, email FROM ".Database::$db_settings['newsletter_table']." WHERE lower(email)=:email"); - $dbr->bindValue(':email', mb_strtolower(trim($_POST['email']),CHARSET), PDO::PARAM_STR); - $dbr->execute(); - $data = $dbr->fetch(); - if(empty($data['email'])) - { - $errors[] = 'newsletter_error_email_not_exist'; - } - if(empty($errors)) - { - $confirmation_code = md5(uniqid(rand())); - $dbr = Database::$entries->prepare("UPDATE ".Database::$db_settings['newsletter_table']." SET confirmation_code=:confirmation_code WHERE id=:id"); - $dbr->bindParam(':id', $data['id'], PDO::PARAM_INT); - $dbr->bindParam(':confirmation_code', $confirmation_code, PDO::PARAM_STR); - $dbr->execute(); - - $confirm_link = BASE_URL.PAGE.',unsubscribe,'.$data['id'].','.$confirmation_code; - - $email_text = str_replace("[link]",$confirm_link,Localization::$lang['newsletter_unsubscribe_text']); - - if($mail->send($_POST['email'], $settings['email'], Localization::$lang['newsletter_unsubscribe_subj'], $email_text)) - { - $action = 'confirm_mail_sent'; - } - else - { - $errors[] = 'newsletter_error_mail'; - } - } - if(isset($errors)) $action = 'main'; - } - - } - -if(isset($_SESSION[$settings['session_prefix'].'user_id'])) $action = 'admin'; -if(empty($action)) $action = 'main'; - -switch($action) - { - case 'main': - $form['email'] = ''; - #$template->assign('newsletterform', true); - $template->assign('form', $form); - break; - case 'confirm_mail_sent': - $template->assign('confirm_mail_sent', true); - break; - case 'confirmation_ok': - $template->assign('confirmation_ok', true); - break; - case 'delete_ok': - $template->assign('delete_ok', true); - break; - case 'confirmation_failed': - $template->assign('confirmation_failed', true); - break; - case 'admin': - - $order = 'email ASC'; - $order_qs = 'email-asc'; - if(isset($_GET['get_1'])) - { - switch($_GET['get_1']) - { - case 'email-asc': - $order = 'email ASC'; - $order_qs = 'email-asc'; - break; - case 'email-desc': - $order = 'email DESC'; - $order_qs = 'email-desc'; - break; - case 'time-asc': - $order = 'time ASC'; - $order_qs = 'time-asc'; - break; - case 'time-desc': - $order = 'time DESC'; - $order_qs = 'time-desc'; - break; - #default: - # $order = 'email ASC'; - } - } - - $dbr = Database::$entries->prepare("SELECT id, time, email FROM ".Database::$db_settings['newsletter_table']." WHERE newsletter_id=:page_id AND confirmed=1 ORDER BY ".$order); - $dbr->bindParam(':page_id', $page_id, PDO::PARAM_INT); - $dbr->execute(); - $i=0; - while($data = $dbr->fetch()) - { - $email_list[] = htmlspecialchars($data['email']); - $newsletter_data[$i]['id'] = $data['id']; - $newsletter_data[$i]['email'] = htmlspecialchars($data['email']); - $newsletter_data[$i]['domain'] = htmlspecialchars(mb_substr(mb_strstr($data['email'], '@'),1)); - $localization->bindId('newsletter_subscribe_time_format', $data['id']); - $localization->replacePlaceholderBound('time', $data['time'], 'newsletter_subscribe_time_format', $data['id'], Localization::FORMAT_TIME); - ++$i; - } - if(isset($newsletter_data)) - { - sort($email_list); - $template->assign('order', $order_qs); - $template->assign('email_count', $i); - $template->assign('email_list', implode(', ',$email_list)); - $template->assign('newsletter_data', $newsletter_data); - } - $template->assign('admin', true); - break; - } -if(isset($errors)) $template->assign('errors', $errors); -$template->assign('subtemplate', 'newsletter.inc.tpl'); - -if(isset($cache) && empty($no_cache)) - { - $cache->cacheId = PAGE; - } -?> diff --git a/cms/lang/english.page.lang.php b/cms/lang/english.page.lang.php index b19969a..d074f8a 100644 --- a/cms/lang/english.page.lang.php +++ b/cms/lang/english.page.lang.php @@ -89,7 +89,7 @@ $lang['no_notes'] = 'No notes availble'; $lang['formmailer_label_email'] = 'E-mail:'; $lang['formmailer_label_subject'] = 'Subject:'; $lang['formmailer_label_message'] = 'Message:'; -$lang['formmailer_button_send'] = 'OK - Send'; +$lang['formmailer_button_send'] = 'Send message'; $lang['formmail_error_email_invalid'] = 'E-mail address invalid or empty'; $lang['formmail_error_no_message'] = 'No message entered'; $lang['formmail_error_text_too_long'] = 'The message is too long'; @@ -132,37 +132,6 @@ $lang['error_news_time_invalid'] = 'invalid date/time format'; $lang['delete_news_title'] = 'Delete entry'; $lang['delete_news_confirm_submit'] = 'OK - Delete'; -// Newsletter: -$lang['newsletter_subscr_email'] = 'E-mail address:'; -$lang['newsletter_subscribe'] = 'subscribe'; -$lang['newsletter_unsubscribe'] = 'unsubscribe'; -$lang['newsletter_email'] = 'E-mail'; -$lang['newsletter_subscribe_time'] = 'Subscribed'; -$lang['newsletter_subscribe_time_format'] = '[time|%d.%m.%Y, %H:%M]'; -$lang['newsletter_error_invalid_email'] = 'E-mail address invalid'; -$lang['newsletter_error_email_exists'] = 'This e-mail address already exists'; -$lang['newsletter_error_email_not_exist'] = 'The e-mail address doesn\'t exist'; -$lang['newsletter_error_mail'] = 'Error while sending e-mail - please try again later'; -$lang['newsletter_conf_ok'] = 'Thank you! Your e-mail address has been confirmed.'; -$lang['newsletter_delete_ok'] = 'You have successfully unsubscribed from the newsletter!'; -$lang['newsletter_conf_failed'] = 'Error: Invalid confirmation link (e.g. time period expired)!'; -$lang['newsletter_conf_mail_sent'] = 'An e-mail with a confirmation link has been sent to the specified e-mail address. Please confirm this link within one hour!'; -$lang['newsletter_email_delete'] = 'delete'; -$lang['newsletter_no_emails'] = 'No e-mail addresses available.'; -$lang['newsletter_add_email'] = 'Add e-mail address:'; -$lang['newsletter_email_list'] = 'E-mail list'; -$lang['newsletter_edit_emails'] = 'Edit e-mail addresses'; -$lang['newsletter_email_count'] = '[number] e-mail addresses'; -$lang['newsletter_subscribe_subj'] = 'Subscribe to newsletter'; -$lang['newsletter_subscribe_text'] = "Your e-mail address has been added to our mailing list. Please click the link below to confirm your request. If this e-mail has been sent in error (either by you or someone else) please ignore this e-mail.\n\nLink to confirm the subscription:\n[link]"; -$lang['newsletter_unsubscribe_subj'] = 'Unsubscribe to newsletter'; -$lang['newsletter_unsubscribe_text'] = "Please click the following link to unsubscribe to the newsletter:\n[link]"; -$lang['newsletter_checkall'] = 'check all'; -$lang['newsletter_uncheckall'] = 'uncheck all'; -$lang['newsletter_delete_checked'] = 'Delete checked'; -$lang['newsletter_delete_confirm'] = 'Delete e-mail(s)?'; -$lang['newsletter_delete_confirm_submit'] = 'OK - Delete'; - // Search: $lang['search_submit'] = 'Search'; $lang['search_number_of_results'][0] = 'No pages found'; diff --git a/cms/templates/admin/subtemplates/admin_menu.inc.tpl b/cms/templates/admin/subtemplates/admin_menu.inc.tpl index 99b5c8f..909447d 100644 --- a/cms/templates/admin/subtemplates/admin_menu.inc.tpl +++ b/cms/templates/admin/subtemplates/admin_menu.inc.tpl @@ -43,6 +43,6 @@
  • - + diff --git a/cms/templates/admin/subtemplates/comments.inc.tpl b/cms/templates/admin/subtemplates/comments.inc.tpl index 1f4aeb1..da313f1 100644 --- a/cms/templates/admin/subtemplates/comments.inc.tpl +++ b/cms/templates/admin/subtemplates/comments.inc.tpl @@ -59,17 +59,20 @@ - - + + - <?php echo $lang['report_as_spam']; ?> - + + +
    +
    + @@ -86,20 +89,26 @@ - +
    + +
    + +
      +
    • + +
    • + +
    • +
    + +
    + +
    - +
    diff --git a/cms/templates/admin/subtemplates/settings.inc.tpl b/cms/templates/admin/subtemplates/settings.inc.tpl index 1b35d43..f12e089 100644 --- a/cms/templates/admin/subtemplates/settings.inc.tpl +++ b/cms/templates/admin/subtemplates/settings.inc.tpl @@ -12,43 +12,43 @@
    - -
    + +
    - -
    + +
    - -
    + +
    - -
    + +
    - -
    + +
    - -
    + +
    @@ -68,8 +68,8 @@
    - -
    + +
    @@ -90,7 +90,7 @@
    -
    +
    -
    +
    diff --git a/cms/templates/subtemplates/comments.inc.tpl b/cms/templates/subtemplates/comments.inc.tpl index 6ff74f4..5957083 100644 --- a/cms/templates/subtemplates/comments.inc.tpl +++ b/cms/templates/subtemplates/comments.inc.tpl @@ -1,5 +1,5 @@
    -

    +

    ()

    diff --git a/cms/templates/subtemplates/formmailer.inc.tpl b/cms/templates/subtemplates/formmailer.inc.tpl index aa1b796..a0e6c72 100644 --- a/cms/templates/subtemplates/formmailer.inc.tpl +++ b/cms/templates/subtemplates/formmailer.inc.tpl @@ -1,28 +1,41 @@ -

    +
    -

    +
    +

      - -
    • - + +
    • +
    - +
    +
    -


    -

    -


    -

    -


    -

    -

    + +
    + + +
    + +
    + + +
    + +
    + + +
    + +

    +
    diff --git a/cms/templates/subtemplates/formmailer.tpl.inc b/cms/templates/subtemplates/formmailer.tpl.inc deleted file mode 100644 index 6ca02b4..0000000 --- a/cms/templates/subtemplates/formmailer.tpl.inc +++ /dev/null @@ -1,29 +0,0 @@ - - -

    - - - - -

    -
      - -
    • - -
    - - - -
    -
    -


    -

    -


    -

    -


    -

    -

    -
    -
    - - diff --git a/cms/templates/subtemplates/newsletter.inc.tpl b/cms/templates/subtemplates/newsletter.inc.tpl deleted file mode 100644 index 7d99f0c..0000000 --- a/cms/templates/subtemplates/newsletter.inc.tpl +++ /dev/null @@ -1,99 +0,0 @@ - -

    -
      - -
    • - -
    - - - - - - -

    -
      - -
    • - -
    - -
    -
    - - - - -
    -
    - - - - -

    -


    -

    - -

    - -
    - - - - - - - - -"> - - - - - - -"> - - - - -
      
    ()<?php echo $lang['delete']; ?> - -
    /
    -
    - - -

    - - -
    -
    -


    -
    -
    - - - - - - -

    - -

    - -

    - -

    - - -
    -


    -

    -


    -

    -
    - - - diff --git a/static/css/style.css b/static/css/style.css index d667599..77aecbb 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -28,8 +28,7 @@ a.thumbnail:hover { opacity:0.9; } .news-teaser { margin-bottom:30px; } .news-teaser:first-child { padding-top:20px; } -.news-teaser h2 { color:#016d2f; font-size:26px; margin:0; padding:0; } -.news-teaser h2 a { color:#016d2f; } +.news-teaser h2 { font-size:26px; margin:0; padding:0; } .news-teaser p { margin:0; padding:0; } .news-teaser .time { color:#808080; font-size:13px; margin:0 0 7px 0; padding:0; } diff --git a/static/css/style_admin.css b/static/css/style_admin.css index 4a55cab..612b7df 100644 --- a/static/css/style_admin.css +++ b/static/css/style_admin.css @@ -23,6 +23,7 @@ body { padding-top:70px; padding-bottom:50px; } textarea.html { font-family:monospace; } .nowrap { white-space:nowrap; } +.nomargin { margin:0; } .table th a { color:#000; text-decoration:none; white-space:nowrap; } .table th a .glyphicon { font-size:11px; padding-left:3px; }