application/libraries/Tagmanager/Media.php
/**
	 * Returns the media complete src URL
	 * 
	 * @usage : <ion:src [size="200" square="<true|false>" unsharp="true|false"]  />
	 *			For pictures, if size is set, returns the path to one thumb with this size
	 *
	 */
Returns the media complete src URL

@usage : 
For pictures, if size is set, returns the path to one thumb with this size
Returns the media complete src URL @usage : For pictures if size is set returns the path to one thumb with this size
public static function tag_media_src(FTL_Binding $tag)
	{
		$media = $tag->get('media');
		if ( ! empty($media))
		{
			if ($media['type'] == 'picture')
			{
				$settings = self::_get_src_settings($tag);
				if (empty($settings['size']))
					return base_url() . $media['path'];
				self::$ci->load->library('medias');
				return self::$ci->medias->get_src($media, $settings, Settings::get('no_source_picture'));
			}
			if ($media['provider'] !='')
				return $media['path'];
			return base_url() . $media['path'];
		}
		return '';
	}
public static function tag_media_src ( FTL_Binding $ tag ) { $ media = $ tag -> get ( 'media' ) ; if ( ! empty ( $ media ) ) { if ( $ media [ 'type' ] == 'picture' ) { $ settings = self :: _get_src_settings ( $ tag ) ; if ( empty ( $ settings [ 'size' ] ) ) return base_url ( ) . $ media [ 'path' ] ; self :: $ ci -> load -> library ( 'medias' ) ; return self :: $ ci -> medias -> get_src ( $ media , $ settings , Settings :: get ( 'no_source_picture' ) ) ; } if ( $ media [ 'provider' ] != '' ) return $ media [ 'path' ] ; return base_url ( ) . $ media [ 'path' ] ; } return '' ; }
Returns the media complete src URL
Returns the media complete src URL