ind3lirium
Forum Replies Created
-
Forum: Plugins
In reply to: [St-Daily-Tip] Daily Tip multi lingual, WPMLHi!
I managed to insert inside tip text the following shortcode
[lang idioma="en"]ENGLISH TEXT[/lang] [lang idioma="es"]SPANISH TEXT[/lang]
and make it work. I have the shortcode registered in fuctions.php
/* --------------------------------------------------------------------------- * Shortcode [lang idioma="en"] [/lang] * --------------------------------------------------------------------------- */ add_shortcode( 'lang', 'wpml_find_language'); function wpml_find_language( $attr, $content = null ){ extract(shortcode_atts(array( 'idioma' => '', ), $attr)); $current_language = ICL_LANGUAGE_CODE; if($current_language == $idioma){ $output = do_shortcode($content); }else{ $output = ""; } return $output; }
The point is I’m using exactly the same shortcode and fuctions.php in another site, and the output text includes the shortcode instead of executing it.
Forum: Plugins
In reply to: [Plugin mp3-jplayer] Pop-out playerThe code has been banned, so I put it up again
i’m using the mp3-jplayer in the homepage of a website I’m running. What i want to do is enable an image/link to pop-out the player thorugh easy html. The player by default has an integrated icon that allows you to pop-out the player but I want to enable more external elements too to play this function.
I’ve found the pop-out code in the mp3-jplayer.js. Here it is
https://pastebin.com/aGtMdSYVAnd hete the code for the pop-out button for the player
<div class=\"mp3j-popout-MI" . $addclass . "\" style=\"" .$showpopoutbutton. "\" onclick=\"return launch_mp3j_popout('" . $this->WPinstallpath . "/wp-content/plugins/mp3-jplayer/popout-mp3j.php', " . $pID . ");\">" . $popouttext . "</div>
I want to get something like this, but I can’t make it work
Click hereAbout the pageID, I’m thinking about the ID of the current page playing, but as long as the player is configured with shortcodes reading from a FEED and not from a page/post library, I’m not sure if the pageID is working here or not.
Any help? Thanks in advance
Forum: Plugins
In reply to: [Plugin mp3-jplayer] Pop-out playerAnybody?