/** * Create The Edit In Place CSS file * * @return bool true if the css file was successful created */ function create_EditnPlace_css($create = FALSE) { include_once 'RCCWP_Options.php'; $eip_highlight_color = RCCWP_Options::Get('eip-highlight-color'); if (!$eip_highlight_color) { $eip_highlight_color = '#FFFFFF'; } $MF_URI = MF_URI; $arrow_image_path = MF_URI . "images/arrow.gif"; $editnplace_css = "\n#savingDiv{\n\tfont-size: medium;\n\tfont-weight: bold;\n}\n\n.EIP_title:hover, .EIP_content:hover,\n.EIP_textbox:hover, .EIP_mulittextbox:hover {\n\tbackground-color: {$eip_highlight_color}\n}\n\n.EIPSaveCancel{\n\tpadding: 5px;\n\tmargin-top: -1px;\n\tz-index: 1000;\n\tborder-color:#CCC;\n\tborder-width:1px;\n\tborder-style:solid;\n\tbackground-color:white;\n\tposition:fixed;\n\ttop:0px !important;\n\twidth:100% !important;\n\tleft: 0px !important;\n\t/*position:absolute;\n\tpadding-top:2px;\n\tpadding-bottom:2px;\n\tz-index: 1000;*/\n}\n\n.EIPSaveStatus{\n\tposition:absolute;\n\tfont-size: 14px;\n\tz-index: 1000;\n}\n\n.EIPnicPanelDiv{\n\tposition: absolute;\n\tbackground-image: url({$arrow_image_path});\n\twidth:154px;\n\theight:38px;\n\tz-index: 1000;\n\tmargin-top: -23px;\n}\n\ndiv.nicEdit-panel{\n\tbackground-color: white !important;\n\twidth:140px !important;\n}\n\ndiv.nicEdit-panelContain{\n\tbackground-color: white !important;\n\tborder-bottom: 0px\t!important;\n\tborder-left: 0px\t!important;\n\tborder-right: 0px\t!important;\n\twidth: 92%\t!important;\n\tmargin-left: 2px\t!important;\n\tmargin-top: 1px\t!important;\n}\n\n.nicEdit-selected{\n\t/*background-color: #FFFFCC !important;*/\n\tborder: thin inset !important;\n\tpadding: 10px;\n}\n.nicEdit-button {\n\tbackground-color: white !important;\n\tborder: 0px !important;\n}\n\n.FEIP_textbox {\n background-color: #CCC;\n height: 32px;\n width: 100%; \n}\n"; $editnplace_css_file = MF_UPLOAD_FILES_DIR . 'editnplace.css'; $css = explode("\n", $editnplace_css); if (!file_exists($editnplace_css_file)) { $css_file_created = RCCWP_Application::save_editnplace_file($editnplace_css_file, 'EditnPlace css', $css, TRUE); } else { $css_file_created = RCCWP_Application::save_editnplace_file($editnplace_css_file, 'EditnPlace css', $css, $create); } return $css_file_created; }