(2013-09-11, 00:03:28)Carlos Wrote: [ -> ]With beta 11 you could wrap it with nm-top-single (<div id="...">) and nm-top-bottom (</div>), but I think I'm going to add id "nm_single", like:
Code:
<div id="nm_post nm_single">
(I had already thought about this but I forgot, thanks for reminding me.)
Thank you, I'll be happy to wait for this. It's gonna be another long step forward
The reason why this is so important to me is that I have to put a border / box-shadow or both to the posts in the main news page to make it look nice. However, the border / box-shadow is not really essential at the full post page, you know - I want my websites to be consistent, meaning that the full post page should look the same as another pages created without NM (those don't have any border - no reason).
(2013-09-11, 00:03:28)Carlos Wrote: [ -> ]Yes, that's the idea. You could use nm-bottom-single to insert your FaceBook scripts, etc. (or using RobA's external commenting plugin).
Right now you'd have to use $_GET['post'] or something, but I'll add some tags/functions for echoing post slugs and URLs to make it easier.
Functions like get_post_slug() and get_post_url() seem really fine. Ok, I'll also wait for them
(2013-09-11, 00:03:28)Carlos Wrote: [ -> ]In principle it's long-term. I think I won't change these new function names and options, or if I do, I'll support the previous ones.
Ok, good to know. I have to admit that the current way of settings is a little a bit more difficult than the one in GSConfig. It's not difficult at all, but I guess there are still some people that want to install and be ready to use without any settings. Without any settings, the NM is hardly half as good as it is with them (pictures, read more...)
What I personally don't like the most is that some settings have to be set in the administration, some in the gsconfig.php ($NMIMAGEINPUT = true; $NMIMAGEINPUT = 2
and some in components.
It would be awesome if everything could be set in the administration by clicks only, but I understand that it's a bit more difficult as some settings are conditional. Some settings like "Allow post images", "Allow links in post images", "Automatically add alt attribute to post images", "Auto resizing and cropping post images", "Post images default dimensions" would be possible, though.
(2013-09-11, 00:03:28)Carlos Wrote: [ -> ]What I'm not totally sure about is the layout blocks/component names, e.g. does nm-top-single sound funny? (maybe like something about music or quantum mechanics) You know I'm not a native English speaker, so... Suggestions and opinions are welcome (before I release 2.5 stable, please)
I haven't seen this association with music at all until you said it. I think you just can't think like that - see: "nm_is_single()? Really? Finally a chance to go out with him... but nm_is_archive(). Oh no, I'm not gonna go out with any old man..."
If you're gonna think like this, you can write a story with your functions
And here's a piece of code I would suggest using
In nm-init component...
Code:
<?php if(nm_is_main()) {
nm_set_image_option('link');
} ?>
... and in nm-top-single component
Code:
<?php
nm_set_option('titlelink',false);
?>
These two short codes come with themselves hand in hand and it's really essential to use them. It's more than stupid linking to a page you're already on (when you keep the link in the title or the post image on the full/single post view).
Just one more word - thanks for the update.