public_html/wp-content/plugins/media-file-manager/media-selector.php
/**
	 *  This function is called when setting a media button. 
	 */
This function is called when setting a media button.
This function is called when setting a media button .
public function onMediaButtons()
	{
		$cur_roles0 = get_option('mediafilemanager_accepted_roles_selector', 'administrator,editor,author,contributor,subscriber');
		$cur_roles = explode(',', $cur_roles0);
		if (!check_user_role($cur_roles)) return;
		global $post_ID, $temp_ID;
		$id     = (int)( 0 == $post_ID ? $temp_ID : $post_ID );
		$iframe = apply_filters( "media_upload_mrlMS_iframe_src", "media-upload.php?post_id={$id}&amp;type=mrlMS&amp;tab=mrlMS" );
		$option = "&amp;TB_iframe=true&amp;keepThis=true&amp;height=500&amp;width=640";
		$title  = "Media-selector";
		$button = "{$this->pluginDirUrl}images/media_folder.png";
		echo ' <a href="' . $iframe . $option . '" class="wp-media-buttons button add_media thickbox" title="' . $title . '">';
		echo '<span class="wp-media-buttons-icon" ></span><span  style="background-color:#ff0;"> &nbsp;&nbsp;'.$title.'&nbsp;&nbsp; </a> </span></span>';
	}
public function onMediaButtons ( ) { $ cur_roles0 = get_option ( 'mediafilemanager_accepted_roles_selector' , 'administrator,editor,author,contributor,subscriber' ) ; $ cur_roles = explode ( ',' , $ cur_roles0 ) ; if ( ! check_user_role ( $ cur_roles ) ) return ; global $ post_ID , $ temp_ID ; $ id = ( int ) ( 0 == $ post_ID ? $ temp_ID : $ post_ID ) ; $ iframe = apply_filters ( " media_upload_mrlMS_iframe_src " , " media-upload.php?post_id= { $ id } &amp;type=mrlMS&amp;tab=mrlMS " ) ; $ option = " &amp;TB_iframe=true&amp;keepThis=true&amp;height=500&amp;width=640 " ; $ title = " Media-selector " ; $ button = " { $ this -> pluginDirUrl } images/media_folder.png " ; echo ' <a href="' . $ iframe . $ option . '" class="wp-media-buttons button add_media thickbox" title="' . $ title . '">' ; echo '<span class="wp-media-buttons-icon" ></span><span  style="background-color:#ff0;"> &nbsp;&nbsp;' . $ title . '&nbsp;&nbsp; </a> </span></span>' ; }
This function is called when setting a media button.
This function is called when setting a media button .
//		echo '<a href="' . $iframe . $option . '" class="thickbox" title="' . $title . '"><img src="' . $button . '" alt="' . $title . '" /></a>';