diff --git a/config.php b/config.php index e350c3c..b578889 100644 --- a/config.php +++ b/config.php @@ -2,24 +2,26 @@ // This is the configuration file. You can configure here all necessary (and possible) options without editing the index.php file. // Every line has an description about what you can change here. Don't delete any strings. You can set your value after the '=' sign and between the apostrophes. // Make sure that every line ends with an semicolon (';'). -// Blog Title - Set here an individual title of your blog by replacing pBlog with it. +// Blog Title - Set here an individual title of your blog by replacing Rangitaki Blog with it. $blogtitle = 'Rangitaki Blog'; // Blog Author - Set here your name $blogauthor = 'Marcel Kapfer'; // Blog description -$blogdescription = 'Rangitaki - A php blog engine without any database dependency'; +$blogdescription = 'Rangitaki - A PHP blog engine without any database dependency'; +// Blog favicon - enter here the path to your favicon +$blogfavicon = '../res/favicon.png'; // Home - set yes if you want to link to your homepage and no if not $bloghome = 'yes'; // Home URL - Set here the url to your main page. Either relative (e.g. '../') or absolute ('http://github.com') $bloghomeurl = '../'; // Home name - Set here an individual name for your main page $bloghomename = 'Home'; -// Intro - set yes if you have a blog intro and no if you don't hve one +// Intro - set yes if you have a blog intro and no if you don't have one $blogintro = 'yes'; -// Disqus - to enable disqus set this one to yes and provide your shortname -$blogdisqus = 'no'; -// Disqus shortname - Provide here your Disqus shortname. Without one, this won't work -$blogdisqusname = ''; +// Disqus - Provide here your Disqus shortname. Leave empty if you don't want to use it. +$blogdisqus = 'rangitaki'; +// Google Analytics - Provide here your Google Analytics Tracking-ID. Leave empty if you don't want to use it. +$bloganalytics = 'UA-41767647-3'; // Footer - set here the text for your footer (e.g. a copyright info). You can replace the whole text after the '=' with your own one. -$blogfooter = 'Rangitaki ' . date("Y") . ' marcel-kapfer.de/rangitaki'; +$blogfooter = 'Rangitaki ' . date("Y") . ' github.com/mmk2410/Rangitaki'; ?> diff --git a/index.php b/index.php index e73760e..7f7c0a2 100644 --- a/index.php +++ b/index.php @@ -52,7 +52,6 @@ THE SOFTWARE.

- +

+ diff --git a/res/php/Disqus.php b/res/php/Disqus.php new file mode 100644 index 0000000..52de6b1 --- /dev/null +++ b/res/php/Disqus.php @@ -0,0 +1,39 @@ + + + +
+ + + \ No newline at end of file diff --git a/res/php/hrefgenerator.php b/res/php/GoogleAnalytics.php similarity index 50% rename from res/php/hrefgenerator.php rename to res/php/GoogleAnalytics.php index b42e141..d639f15 100644 --- a/res/php/hrefgenerator.php +++ b/res/php/GoogleAnalytics.php @@ -1,54 +1,44 @@ - */ -class HrefGenerator { - - function createHref($text) - { - $output = str_replace(" ", "-", $text); - $output = str_replace("ä","ae",$output); - $output = str_replace("Ä","Ae",$output); - $output = str_replace("ö","oe",$output); - $output = str_replace("Ö","Oe",$output); - $output = str_replace("ü","ue",$output); - $output = str_replace("Ü","Ue",$output); - $output = str_replace("ß","ss",$output); - $output = str_replace('"', "", $output); - $output = str_replace("'", "", $output); - $output = str_replace("?", "", $output); - $output = str_replace("#", "", $output); - return $output; - } - +if($bloganalytics){ +?> + + + \ No newline at end of file