Well, that looks good, just two little notes.
1) It would be nice if you could open a javascript popup or something like that in the setting itself with a complete list of possible options to be able to setup the News Manager without studying the documentation or this forum page by page. Or, you could replace the textarea with a list of checkboxes where you could check what you want.
2) I would like to be able to keep my current setting, which is the following code of nm-bottom-single component. It automatically adds the facebook comments iframe, facebook share and like buttons and the same for twitter. Both of those need a php function for getting a full URL of a post, so I couldn't use it without PHP. I'm sure you know what I mean - a place for an extra php and html code to the area at the bottom of a single post. Also, maybe you could move the components to the NM setting to keep it all on one place, but that's up to you.
1) It would be nice if you could open a javascript popup or something like that in the setting itself with a complete list of possible options to be able to setup the News Manager without studying the documentation or this forum page by page. Or, you could replace the textarea with a list of checkboxes where you could check what you want.
2) I would like to be able to keep my current setting, which is the following code of nm-bottom-single component. It automatically adds the facebook comments iframe, facebook share and like buttons and the same for twitter. Both of those need a php function for getting a full URL of a post, so I couldn't use it without PHP. I'm sure you know what I mean - a place for an extra php and html code to the area at the bottom of a single post. Also, maybe you could move the components to the NM setting to keep it all on one place, but that's up to you.
Code:
<!-- Sharing -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_facebook"></a>
<a class="addthis_button_facebook_like" fb:like:width="120" fb:like:colorscheme="dark" fb:like:layout="none"></a>
<a class="addthis_button_twitter" style="margin-left: 30px;"></a>
<a class="addthis_button_tweet" tw:count="none"></a>
</div>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=xa-524d718d4375c6d0"></script>
<!-- Comments -->
<?php
function get_post_url() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
?>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-comments" data-colorscheme="dark" data-href="<?php echo get_post_url(); ?>" data-width="580"></div>
Tomáš Janeček - Multilingual personal website powered by GetSimple
» The little I did for GetSimple
» The little I did for GetSimple