* @copyright Copyright (C) 2012 www.woorockets.com. All Rights Reserved. * @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html * * Websites: http://www.www.woorockets.com * Technical Support: Feedback - http://www.www.woorockets.com */ /** * @todo : Custom CSS modal */ $custom_css_item = '<li class="jsn-item ui-state-default"><label class="checkbox"><input type="checkbox" name="item-list" value="VALUE" CHECKED>VALUE</label></li>'; if (empty($_GET['pid'])) { exit; } $post_id = esc_sql($_GET['pid']); // get custom css data $custom_css_data = WR_Pb_Helper_Functions::custom_css_data(isset($post_id) ? $post_id : NULL); $css_files = !empty($custom_css_data['css_files']) ? stripslashes($custom_css_data['css_files']) : ''; $css_custom = !empty($custom_css_data['css_custom']) ? stripslashes($custom_css_data['css_custom']) : ''; $_css_files_tooltip = 'Insert path to your CSS files, each line for each file. <br>The path can be relative like: <br> <i><u>assets/css/yourfile.css</u></i> <br>or absolute like: <br> <i><u>http://yourwebsite.com/assets/css/yourfile.css</u></i> '; $_style = '.tooltip-inner { min-width: 350px !important; font-weight: 100 !important; }'; WR_Pb_Init_Assets::inline('css', $_style, true); ?> <div class="jsn-master" id="wr-pb-custom-css-box"> <div class="jsn-bootstrap3"> <!-- CSS files -->
/** * Print style on front-end */ function print_frontend_styles() { global $post; if (!isset($post) || !is_object($post)) { return; } $wr_deactivate_pb = get_post_meta($post->ID, '_wr_deactivate_pb', true); // if not deactivate pagebuilder on this post if (empty($wr_deactivate_pb)) { $custom_css_data = WR_Pb_Helper_Functions::custom_css_data(isset($post->ID) ? $post->ID : NULL); extract($custom_css_data); $css_custom = html_entity_decode(stripslashes($css_custom)); echo balanceTags("<style id='wr-pb-custom-{$post->ID}-css'>\n{$css_custom}\n</style>\n"); } }