芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/popup-maker/includes/functions/general.php
ID ] = $theme->get_setting( 'close_text', '' ); } update_option( 'pum_all_theme_close_text_cache', $all_themes_close_text ); return $all_themes_close_text; } add_action( 'pum_save_theme', 'pum_update_all_themes_close_text_cache', 100 ); /** * @param string $path * * @return string */ function pum_asset_path( $path = '' ) { return Popup_Maker::$DIR . 'assets/' . ltrim( $path, '/' ); } /** * @param string $path * * @return string */ function pum_asset_url( $path = '' ) { return Popup_Maker::$URL . 'assets/' . ltrim( $path, '/' ); } /** * @param string $encode * * @return string */ function pum_get_svg_icon( $encode = false ) { $svg_icon_code = '
'; if ( $encode ) { $svg_icon_code = 'data:image/svg+xml;base64,' . base64_encode( $svg_icon_code ); } return $svg_icon_code; } /** * Resets both asset cached files & transient CSS storage to be regenerated. * * @since 1.8.0 */ function pum_reset_assets() { // Reset/regenerate asset cache. PUM_AssetCache::reset_cache(); // Reset/regenerate stored theme CSS styles. delete_transient( 'popmake_theme_styles' ); } /** * Returns array key from dot notated array key.. * * @since 1.0 * * @deprecated 1.8.0 * * @param array $a is the array you are searching. * @param string $path is the dot notated path. * @param string $default is the default returned if key empty or not found. * * @return mixed results of lookup */ function popmake_resolve( array $a, $path, $default = null ) { $current = $a; $p = strtok( $path, '.' ); while ( false !== $p ) { if ( ! isset( $current[ $p ] ) ) { return $default; } $current = $current[ $p ]; $p = strtok( '.' ); } return $current; } /** * Returns $_POST key. * * @since 1.0 * * @param string $name is the key you are looking for. Can use dot notation for arrays such as my_meta.field1 which will resolve to $_POST['my_meta']['field1']. * * @return mixed results of lookup */ function popmake_post( $name, $do_stripslashes = true ) { $value = popmake_resolve( $_POST, $name, false ); return $do_stripslashes ? stripslashes_deep( $value ) : $value; } /** * Checks whether function is disabled. * * @since 1.4 * * @param string $function Name of the function. * * @return bool Whether or not function is disabled. */ function pum_is_func_disabled( $function ) { $disabled = explode( ',', ini_get( 'disable_functions' ) ); return in_array( $function, $disabled ); }