From 5582c655e60b26777f88100008906cb8b5000408 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Lucian=20Mogo=C8=99anu?= Date: Sat, 25 May 2013 13:42:10 +0300 Subject: [PATCH] changes I made a while ago --- functions.php | 10 +++++++++- header.php | 2 +- style.css | 5 +++-- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/functions.php b/functions.php index 8e9be6d..2e55f8b 100644 --- a/functions.php +++ b/functions.php @@ -9,4 +9,12 @@ 'after_widget' => '', 'before_title' => '

', 'after_title' => '

') ); -?> \ No newline at end of file + +/* from http://maketecheasier.com/5-ways-to-reduce-comment-spam-on-wordpress-blogs/2010/03/17 */ +function verify_comment_referer() { + if (!wp_get_referer()) { + wp_die( __('You cannot post comment at this time, may be you need to enable referrers in your browser.') ); + } +} +//add_action('check_comment_flood', 'verify_comment_referer'); +?> diff --git a/header.php b/header.php index f31de13..a03b958 100644 --- a/header.php +++ b/header.php @@ -3,7 +3,7 @@ - + diff --git a/style.css b/style.css index 2ddc9c1..9ba680f 100644 --- a/style.css +++ b/style.css @@ -11,7 +11,7 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html */ /* http://meyerweb.com/eric/tools/css/reset */ -html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent; font-family: sans-serif;}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0} +html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent; font-family: 'Sorts Mill Goudy', serif;}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outline:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0} /* simplest */ p,dl,hr,h1,h4,h5,h6,ol,ul,pre,table,address,fieldset {margin-bottom:1em;} @@ -21,8 +21,9 @@ li {list-style:square; margin:0.5em 0 0 2em;} dt {margin:1em 0; font-weight:bold;} dd {margin:0 1em; padding-left:1em; border-left:1px solid #ddd;} th, td {padding:0.5em; border:1px solid #ddd;} -blockquote {margin:0 1em; padding-left:1em; border-left:1px solid #ddd;} +blockquote {margin:0 1em; padding-left:1em; border-left:1px solid #ddd; color: #555;} pre {font-family:monospace; background:#f8f8ff; padding:0.5em; overflow:auto;} +.wp_syntax * {font-family:monospace; background:#f8f8ff; overflow:auto; !important} sup, sub {height:0; line-height:1; vertical-align:baseline; position:relative; font-size:10px;} sup {bottom:1ex;} sub {top:0.5ex;} -- 1.7.10.4