ReduxFramework; $template_dir = porto_dir; $template_uri = porto_uri; // Compile SCSS files if (!class_exists('scssc')) { require_once( porto_admin . '/scssphp/scss.inc.php' ); } // config file ob_start(); require dirname(__FILE__) . '/config_scss_theme.php'; $_config_css = ob_get_clean(); $filename = $template_dir.'/scss/_config_theme.scss'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); $scss = new scssc(); $scss->setImportPaths($template_dir . '/scss'); if (isset($porto_settings['compress-default-css']) && $porto_settings['compress-default-css']) { $scss->setFormatter('scss_formatter_crunched'); } else { $scss->setFormatter('scss_formatter'); } try { // theme_{blog_id}.css ob_start(); echo $scss->compile('@import "theme.scss"'); $_config_css = ob_get_clean(); $filename = $template_dir.'/css/theme_'.get_current_blog_id().'.css'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); update_option( 'porto_theme_style', $_config_css ); // theme_elements_{blog_id}.css ob_start(); echo $scss->compile('@import "theme_elements.scss"'); $_config_css = ob_get_clean(); $filename = $template_dir.'/css/theme_elements_'.get_current_blog_id().'.css'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); update_option( 'porto_theme_elements_style', $_config_css ); // theme_shop_{blog_id}.css ob_start(); echo $scss->compile('@import "theme_shop.scss"'); $_config_css = ob_get_clean(); $filename = $template_dir.'/css/theme_shop_'.get_current_blog_id().'.css'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); update_option( 'porto_theme_shop_style', $_config_css ); // theme_bbpress_{blog_id}.css ob_start(); echo $scss->compile('@import "theme_bbpress.scss"'); $_config_css = ob_get_clean(); $filename = $template_dir.'/css/theme_bbpress_'.get_current_blog_id().'.css'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); update_option( 'porto_theme_bbpress_style', $_config_css ); if (!$import) { // finally redirect to success page wp_redirect( admin_url( 'admin.php?page=porto_settings&compile_theme_success=true' ) ); } } catch (Exception $e) { if (!$import) { // finally redirect to failed page wp_redirect( admin_url( 'admin.php?page=porto_settings&compile_theme_success=false' ) ); } } } if ( current_user_can( 'manage_options' ) && (isset( $_GET['compile_theme_rtl'] ) || ($import && $process === 'theme_rtl')) ) { global $reduxPortoSettings; @ini_set('max_execution_time', '10000'); @ini_set('memory_limit', '256M'); $reduxFramework = $reduxPortoSettings->ReduxFramework; $template_dir = porto_dir; // Compile SCSS files if (!class_exists('scssc')) { require_once( porto_admin . '/scssphp/scss.inc.php' ); } // config file ob_start(); require dirname(__FILE__) . '/config_scss_theme.php'; $_config_css = ob_get_clean(); $filename = $template_dir.'/scss/_config_theme.scss'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); $scss = new scssc(); $scss->setImportPaths($template_dir . '/scss'); if (isset($porto_settings['compress-default-css']) && $porto_settings['compress-default-css']) { $scss->setFormatter('scss_formatter_crunched'); } else { $scss->setFormatter('scss_formatter'); } try { // theme_rtl_{blog_id}.css ob_start(); echo $scss->compile('@import "theme_rtl.scss"'); $_config_css = ob_get_clean(); $filename = $template_dir.'/css/theme_rtl_'.get_current_blog_id().'.css'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); update_option( 'porto_theme_rtl_style', $_config_css ); // theme_rtl_elements_{blog_id}.css ob_start(); echo $scss->compile('@import "theme_rtl_elements.scss"'); $_config_css = ob_get_clean(); $filename = $template_dir.'/css/theme_rtl_elements_'.get_current_blog_id().'.css'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); update_option( 'porto_theme_rtl_elements_style', $_config_css ); // theme_rtl_shop_{blog_id}.css ob_start(); echo $scss->compile('@import "theme_rtl_shop.scss"'); $_config_css = ob_get_clean(); $filename = $template_dir.'/css/theme_rtl_shop_'.get_current_blog_id().'.css'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); update_option( 'porto_theme_rtl_shop_style', $_config_css ); // theme_rtl_bbpress_{blog_id}.css ob_start(); echo $scss->compile('@import "theme_rtl_bbpress.scss"'); $_config_css = ob_get_clean(); $filename = $template_dir.'/css/theme_rtl_bbpress_'.get_current_blog_id().'.css'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); update_option( 'porto_theme_rtl_bbpress_style', $_config_css ); if (!$import) { // finally redirect to success page wp_redirect( admin_url( 'admin.php?page=porto_settings&compile_theme_rtl_success=true' ) ); } } catch (Exception $e) { if (!$import) { // finally redirect to failed page wp_redirect( admin_url( 'admin.php?page=porto_settings&compile_theme_rtl_success=false' ) ); } } } if ( current_user_can( 'manage_options' ) && (isset( $_GET['compile_plugins'] ) || ($import && $process === 'plugins')) ) { global $reduxPortoSettings; @ini_set('max_execution_time', '10000'); @ini_set('memory_limit', '256M'); $reduxFramework = $reduxPortoSettings->ReduxFramework; $template_dir = porto_dir; // Compile SCSS files if (!class_exists('scssc')) { require_once( porto_admin . '/scssphp/scss.inc.php' ); } // config file ob_start(); require dirname(__FILE__) . '/config_scss_plugins.php'; $_config_css = ob_get_clean(); $filename = $template_dir.'/scss/_config_plugins.scss'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); $scss = new scssc(); $scss->setImportPaths($template_dir . '/scss'); if (isset($porto_settings['compress-default-css']) && $porto_settings['compress-default-css']) { $scss->setFormatter('scss_formatter_crunched'); } else { $scss->setFormatter('scss_formatter'); } try { // common styles ob_start(); echo $scss->compile('@import "plugins.scss"'); $_config_css = ob_get_clean(); $filename = $template_dir.'/css/plugins_'.get_current_blog_id().'.css'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); update_option( 'porto_plugins_style', $_config_css ); // bootstrap styles ob_start(); echo $scss->compile('@import "bootstrap.scss"'); $_config_css = ob_get_clean(); $filename = $template_dir.'/css/bootstrap_'.get_current_blog_id().'.css'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); update_option( 'porto_bootstrap_style', $_config_css ); if (!$import) { // finally redirect to success page wp_redirect( admin_url( 'admin.php?page=porto_settings&compile_plugins_success=true' ) ); } } catch (Exception $e) { if (!$import) { // finally redirect to success page wp_redirect( admin_url( 'admin.php?page=porto_settings&compile_plugins_success=false' ) ); } } } if ( current_user_can( 'manage_options' ) && (isset( $_GET['compile_plugins_rtl'] ) || ($import && $process === 'plugins_rtl')) ) { global $reduxPortoSettings; @ini_set('max_execution_time', '10000'); @ini_set('memory_limit', '256M'); $reduxFramework = $reduxPortoSettings->ReduxFramework; $template_dir = porto_dir; // Compile SCSS files if (!class_exists('scssc')) { require_once( porto_admin . '/scssphp/scss.inc.php' ); } // config file ob_start(); require dirname(__FILE__) . '/config_scss_plugins.php'; $_config_css = ob_get_clean(); $filename = $template_dir.'/scss/_config_plugins.scss'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); $scss = new scssc(); $scss->setImportPaths($template_dir . '/scss'); if (isset($porto_settings['compress-default-css']) && $porto_settings['compress-default-css']) { $scss->setFormatter('scss_formatter_crunched'); } else { $scss->setFormatter('scss_formatter'); } try { // common styles ob_start(); echo $scss->compile('@import "plugins_rtl.scss"'); $_config_css = ob_get_clean(); $filename = $template_dir.'/css/plugins_rtl_'.get_current_blog_id().'.css'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); update_option( 'porto_plugins_rtl_style', $_config_css ); // bootstrap styles ob_start(); echo $scss->compile('@import "bootstrap_rtl.scss"'); $_config_css = ob_get_clean(); $filename = $template_dir.'/css/bootstrap_rtl_'.get_current_blog_id().'.css'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); update_option( 'porto_bootstrap_rtl_style', $_config_css ); if (!$import) { // finally redirect to success page wp_redirect( admin_url( 'admin.php?page=porto_settings&compile_plugins_rtl_success=true' ) ); } } catch (Exception $e) { if (!$import) { // finally redirect to success page wp_redirect( admin_url( 'admin.php?page=porto_settings&compile_plugins_rtl_success=false' ) ); } } }}add_action('redux/options/porto_settings/saved', 'porto_save_theme_settings', 10, 2);add_action('redux/options/porto_settings/import', 'porto_save_theme_settings', 10, 2);add_action('redux/options/porto_settings/reset', 'porto_save_theme_settings');add_action('redux/options/porto_settings/section/reset', 'porto_save_theme_settings');add_action('redux/options/porto_settings/import', 'porto_import_theme_settings', 10, 2);function porto_config_value($value) { return isset($value) ? $value : 0;}function porto_save_theme_settings() { global $porto_settings; update_option('porto_init_theme', '1'); global $reduxPortoSettings; @ini_set('max_execution_time', '10000'); @ini_set('memory_limit', '256M'); $reduxFramework = $reduxPortoSettings->ReduxFramework; $template_dir = porto_dir; // Compile LESS Files if (!class_exists('lessc')) { require_once( porto_admin . '/lessphp/lessc.inc.php' ); } // config file ob_start(); include dirname(__FILE__) . '/config_less.php'; $_config_css = ob_get_clean(); $filename = $template_dir.'/less/config.less'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); try { // skin css ob_start(); $less = new lessc; if (isset($porto_settings['compress-skin-css']) && $porto_settings['compress-skin-css']) $less->setFormatter('compressed'); echo $less->compileFile($template_dir.'/less/skin.less'); if (isset($porto_settings['css-code'])) echo $porto_settings['css-code']; $_config_css = ob_get_clean(); $filename = $template_dir.'/css/skin_'.get_current_blog_id().'.css'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); update_option( 'porto_skin_style', $_config_css ); // rtl skin css ob_start(); $less = new lessc; if (isset($porto_settings['compress-skin-css']) && $porto_settings['compress-skin-css']) $less->setFormatter('compressed'); echo $less->compileFile($template_dir.'/less/skin_rtl.less'); if (isset($porto_settings['css-code'])) echo $porto_settings['css-code']; $_config_css = ob_get_clean(); $filename = $template_dir.'/css/skin_rtl_'.get_current_blog_id().'.css'; if (is_writable(dirname($filename)) == false){ @chmod(dirname($filename), 0755); } if (file_exists($filename)) { if (is_writable($filename) == false){ @chmod($filename, 0755); } @unlink($filename); } $reduxFramework->filesystem->execute('put_contents', $filename, array('content' => $_config_css)); update_option( 'porto_skin_rtl_style', $_config_css ); flush_rewrite_rules(); porto_import_theme_settings(); } catch (Exception $e) {}}function porto_import_theme_settings() { if (is_rtl()) { porto_compile_css(true, 'theme_rtl'); porto_compile_css(true, 'plugins_rtl'); } else { porto_compile_css(true, 'theme'); porto_compile_css(true, 'plugins'); }} Lưu trữ Sản phẩm - Thực dưỡng Bình Dương

Cửa hàng

  • Gạo lứt bịch 500g

    0 out of 5

    Trở Về Với Thiên NhiênNhiều Người Biết Đến Nước Nhật Không Chỉ Qua Hình Ảnh Hùng Vĩ Của Ngọn Núi Phú Sĩ Hay Phong Cách Triết Học Của Trà Đạo Thâm Trầm, Mà Còn Nhờ Cái Tên Của Một Bậc Thầy Về Dinh Dưỡng: Oshawa – Người Phát Kiến Phương Pháp Phòng Bệnh Với Gạo Lứt Muối Mè.

    50,000.00 49,000.00
  • Nấm linh chi HQ

    0 out of 5

    Trong “Thần nông bản thảo” thì nấm linh chi được xếp vào hàng siêu thượng phẩm hơn cả nhân sâm, có tác dụng bảo vệ gan, giải độc, kiện não, tiêu đờm, phòng chống ung thư, tăng tuổi thọ…

  • Nhân óc chó nhập khẩu Mỹ

    0 out of 5

    Nhân quả óc chó là sản phẩm từ quả óc chó Chandler của Mỹ, chọn lọc từ những quả óc chó to nhất, thơm ngon nhất, hàng mới đảm bảo. Tất cả 100% nhân đạt yêu cầu về màu sắc và mùi vị, chỉ nhưng miếng nhân đạt yêu cầu mới được cân và đóng gói bằng túi nhựa dày để đảm bảo giữ được đầy đủ dưỡng chất quý của nhân quả óc chó.

    550,000.00 490,000.00
  • Phở gạo lứt

    0 out of 5

    Sản phẩm phở gạo lứt của công ty được sản xuất ….

    50,000.00 44,000.00
  • Rong biển wakame

    0 out of 5