getParam("output_type","");
switch($outputType){
case "compress":
$content = str_replace("\n", "", $content);
$content = str_replace("\r", "", $content);
return($content);
break;
case "echo":
echo $content; //bypass the filters
break;
default:
return($content);
break;
}
}else
return($content); //normal output
}
add_shortcode( 'rev_slider', 'rev_slider_shortcode' );
if(is_admin()){ //load admin part
require_once $currentFolder."/revslider_admin.php";
$productAdmin = new RevSliderAdmin($currentFile);
}else{ //load front part
/**
*
* put rev slider on the page.
* the data can be slider ID or slider alias.
*/
function putRevSlider($data,$putIn = ""){
$operations = new RevOperations();
$arrValues = $operations->getGeneralSettingsValues();
$includesGlobally = UniteFunctionsRev::getVal($arrValues, "includes_globally","off");
$strPutIn = UniteFunctionsRev::getVal($arrValues, "pages_for_includes");
$isPutIn = RevSliderOutput::isPutIn($strPutIn,true);
if($isPutIn == false && $includesGlobally == "off"){
$output = new RevSliderOutput();
$option1Name = "Include RevSlider libraries globally (all pages/posts)";
$option2Name = "Pages to include RevSlider libraries";
$output->putErrorMessage(__("If you want to use the PHP function \"putRevSlider\" in your code please make sure to check \" ",REVSLIDER_TEXTDOMAIN).$option1Name.__(" \" in the backend's \"General Settings\" (top right panel).
Or add the current page to the \"",REVSLIDER_TEXTDOMAIN).$option2Name.__("\" option box."));
return(false);
}
RevSliderOutput::putSlider($data,$putIn);
}
require_once $currentFolder."/revslider_front.php";
$productFront = new RevSliderFront($currentFile);
}
}catch(Exception $e){
$message = $e->getMessage();
$trace = $e->getTraceAsString();
echo _e("Revolution Slider Error:",REVSLIDER_TEXTDOMAIN)."".$message."";
}