Ronny Sherer
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Polylang shortcode (like qTranslate) for theme options and textHi mirilailai,
Look at Chouby’s answers.
The need in the shortcode is not recommended and very rarely needed.
Be sure that you MUST use it.Ronny
Forum: Plugins
In reply to: [Polylang] Polylang shortcode (like qTranslate) for theme options and textOf course that PHP will work, but I do not want to change the purchased theme. If I will, my client will not be able to update it.
Forum: Plugins
In reply to: [Polylang] Polylang shortcode (like qTranslate) for theme options and textThanks Chouby,
Good practice using purchased theme is to create a child theme and make all your changes there. Which means that you do not change the base theme.
Therefore PHP functions cannot be used.The wpml-config.xml on the other hand is a great solution for 99.9% of the cases.
Petty for me, my client’s theme is one of those 0.1%. It is not storing each option in the database, but combine all options to one string.With this theme, I still cannot see a better solution than the ugly shortcode.
Ronny
Forum: Plugins
In reply to: [Polylang] Editor language and directionI finally found two solutions to change the CSS of the editor.
Add class RTL and rely on editor-style.css to support it (Twenty Thirteen does).function polylang_tinymce_settings($settings) { global $post, $polylang; $language = $polylang->model->get_post_language($post->ID); if ($language->is_rtl) $settings['body_class'] .= ' rtl'; return $settings; } add_filter('tiny_mce_before_init','polylang_tinymce_settings');
Add CSS file to support the RTL:
function my_editor_style($url) { global $post, $polylang; $language = $polylang->model->get_post_language($post->ID); if ($language->is_rtl) { if ( !empty($url) ) $url .= ','; // Change the path here if using sub-directory $url .= trailingslashit( get_stylesheet_directory_uri() ) . 'editor-style-rtl.css'; } return $url; } add_filter('mce_css', 'my_editor_style');
Forum: Plugins
In reply to: [Page Restrict] Adding localization (translation to languages)Thanks goodspeed_11,
The authors Andy Stratton and Matt Martz did not merge my changes and did not add languages support, so there is no use in what we did.
Very disappointing.
I will not use this plugin anymore.Ronny
Forum: Plugins
In reply to: [Displet Pop] Displet with Contact Form 7 – How to Close Popup after Submit?Forum: Hacks
In reply to: Modifying post type – using the registered_post_type hookIt did not work for me this way, but it did work after removing line:
// re-register register_post_type($post_type, $args); // will call this hook again if it exists, so we removed it above.
Forum: Plugins
In reply to: [Pronamic Google Maps] Map in my languageThanks a lot Remco,
It does not work yet.
I suppose that I have to wait for a newer version of the plugin (I have 2.2.4).Ronny
Forum: Plugins
In reply to: [Pronamic Google Maps] Map in my languageI was traveling Greece and went into an English website to find out how to get somewhere. The computer at the internet-cafe was Greek, so the maps where in Greek too. It was frustrating.
I believe that the website builder should have the choice to decide.
Forum: Plugins
In reply to: [Pronamic Google Maps] Map in my languageRemco,
You are correct, but you suggest that I will change the plugin. In this case if my client will update the plugin, than the language settings will be overridden by the new code.
Your plugin does support languages, why couldn’t the maps in it support languages too?
Thanks,
RonnyForum: Plugins
In reply to: [Pronamic Google Maps] Map in my languageSorry for being unclear.
Your plugin has a translation to my language.
The problem I am pointing at is the language of the map itself.Forum: Plugins
In reply to: [Pronamic Google Maps] Is it possible to control maps language?Hi Remco,
If you can give me a clue where you think this change should be and what way you would like it to be, than I can do it and share it back the project.
Thanks,
RonnyForum: Plugins
In reply to: [Aboozé Slideshow] [Plugin: Aboozé Slideshow] Using jQuery short tagjedwoolley, I did share.
They removed it.
I pasted to here: Modification over wordpress plugin Aboozé SlideshowForum: Plugins
In reply to: [Aboozé Slideshow] [Plugin: Aboozé Slideshow] Using jQuery short tagAdded:
- Control delay_speed and fade_speed in GUI
- Fix fade out
- Add ability to put a page/post id instead of url. This is replaced by the permalink in the website. Very useful when moving a website – no need to update links.
Here is the whole changed file:
[ Moderated, that’s just way too many lines. For that many lines of code please use pastebin.com instead. ]
Works in Hebrew too: SiteMap
I am willing to translate to Hebrew.I missed the “Home” label (for homepage):
Line 57:$output .= "<li><a href='" . get_home_url() . "'>" . __( 'Home' ) . "</a></li>\n";