• Hi Im writing a function where Im adding several plugins compatibility in the theme using the tgm.

    for the jwplayer Im trying to add something like this:

    if ( shortcode_exists( 'jwplayer' ) ) {
    		$shortcode = '[jwplayer file="'.$get_video.'"]';
    	} elseif( shortcode_exists( 'KGVID' ) ){
    		$options = get_option('kgvid_video_embed_options');
    		$shortcode = '
    			[KGVID
    				poster="'.$thumb.'"
    				height="'.$options['height'].'"
    				width="'.$options['width'].'"
    				autoplay=""
    			]
    				'.$get_video.'
    			[/KGVID]
    		';
    	} else {

    But I dont see the jwplayer there is only KGVID is there any specific code or more details about your plugin, How can I call your plugin settings and I want to make it able to get also the poster not only the file which one is described here.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Integration in theme.’ is closed to new replies.