Hi @hassan, good suggestions here. The second is already possible by adding the code below to your themes functions.php file.
add_filter( 'easingsliderlite_edit_slideshow_icon', '__return_false' );
The others will be added over time as we continually improve the plugin π
Thread Starter
Hassan
(@hassanhamm)
Thanks, mate. Awaiting the update.
Don’t expect them immediately! But I’ll try to get something added soon π
Thread Starter
Hassan
(@hassanhamm)
Thanks for that. I’d rather have a backend option for that, not a filter/action hack.
Might I add a couple more?
6. Allow users of role “Editor”, or any other role for that matter, to have access to Edit Slideshow and/or Customize and/or Settings menus as specified by the admin
7. When the backend is in RTL (e.g. Arabic) the TinyMCE “Add Slideshow” button is a bit messed up with the icon overlaying part of the text. I fixed that by changing the CSS margin-right: 4px;
to margin-left: 4px;
for the element <span class="insert-slideshow-icon"></span>
π
Hi @hassan, I will only be adding these as filters. This isn’t hacky at all and is the most appropriate way of adding such advanced options that most users won’t want to use. Not a good idea cluttering up the settings panels with generally irrelevant options.
The plugin comes with custom user permissions, so if you use a permissions management plugins (such as “Members”) you can control who has access to the slideshow admin panels.
As for RTL, I generally can’t promise support for it as I’m only English speaking myself. That said, I appreciate the heads up and will try and add the fixes in for you.
Thread Starter
Hassan
(@hassanhamm)
Matthew, thanks for the heads up about custom user permissions, didn’t know your plugin has any.
P.S. I can contribute an Arabic translation if I could get the .pot file from you π
Thread Starter
Hassan
(@hassanhamm)
By the way, I made use of your custom capabilities and managed to give Editors the capability Easingsliderlite Edit Slideshow
which made the Slideshow menu item visible for them.
However, the toolbar menu (node) is not respecting capabilities and it is present with all the three pages for any logged in user regardless of their role. Only after they click a link they aren’t allowed to access (e.g. Customize) they are presented with the WordPress error “You do not have sufficient permissions to access this page.”
One more thing, can I show/hide the TinyMCE button “Add Slideshow” based on roles and capabilities?
Sorry for asking too much π
Hi @hassan, these are all features and functionality that will have to be added in the future. I will try my best, but can’t make any promises at this moment in time. A lot going on, so I’m pretty busy!
Definitely good idea though, so going to try and add something for v2.1.1 ! π
Thread Starter
Hassan
(@hassanhamm)
Hey Matt,
I couldn’t find out how to contact you here, so I’m pumping this thread instead π
I’ve finished translating your plugin to Arabic. Where can I send you the .po/.mo files?
Regards
Hey Hassan, that’s awesome! Thanks a million. You can send it to me via email, info@matthewruddy.com π
Hi Matthew,
I have a useful suggestion too π
Have numbers for (or in) pagination icon.
Thanks for your work !!
@emmanuel, this should actually already be possible with some custom code π Give this a try. Add it to your theme’s functions.php file.
function easingslider_numbered_pagination( $slideshow ) {
?>
<div class="easingsliderlite-pagination <?php echo esc_attr( $slideshow->navigation->pagination_position ) .' '. esc_attr( $slideshow->navigation->pagination_location ); ?>">
<?php foreach ( $slideshow->slides as $index => $slide ) : ?>
<div class="easingsliderlite-icon inactive" style="background-image: none !important;"><?php echo ( $index + 1 ); ?></div>
<?php endforeach; ?>
</div>
<?php
}
add_action( 'easingsliderlite_pagination', 'easingslider_numbered_pagination' );
This is my reaction : http://www.cool-smiley.com/smiley/banane/c006.gif
Thanks Matthew !!
Ps : any “premium” version of your plugin ?
Haha, that made me laugh!
Yes, working on it as we speak. Hope to have the new website up in a few hours π Keep an eye out for it!