/*-----------------------------------------------------------------------------------*/
/* 1. RFBWP Columns
* @deprecated since 2.0
/*-----------------------------------------------------------------------------------*/
function rfbwp_column_shortcode($atts, $content) {
extract(shortcode_atts(array (
'class' => ''
), $atts));
$i = $GLOBALS['rfbwp_column_count'];
$GLOBALS['rfbwp_column'][$i] = do_shortcode ($content);
$GLOBALS['rfbwp_column_class'][$i] = $class;
$GLOBALS['rfbwp_column_count']++;
}
add_shortcode('rfbwp_column', 'rfbwp_column_shortcode');
function rfbwp_columns_shortcode($atts, $content = null ) {
$GLOBALS['rfbwp_column_count'] = 0;
do_shortcode ($content);
extract(shortcode_atts(array(
'type' => ''
), $atts, $content));
$output = '
';
$output .= $GLOBALS['rfbwp_column'][0];
$output .= '
';
$output .= '';
$output .= $GLOBALS['rfbwp_column'][1];
$output .= '
';
return $output;
}
add_shortcode('rfbwp_columns', 'rfbwp_columns_shortcode');
/*--------------------------- END Columns -------------------------------- */
/*-----------------------------------------------------------------------------------*/
/* 1. ToC Generator
/*-----------------------------------------------------------------------------------*/
function rfbwp_toc_shortcode( $atts, $content = null ) {
try {
$items = json_decode( $content );
} catch (Exception $e) {
$items = array();
}
if( empty( $items ) )
return;
$return = '';
return $return;
}
add_shortcode('rfbwp_toc', 'rfbwp_toc_shortcode');
add_filter( 'no_texturize_shortcodes', 'rfbwp_prevent_wptexturize' );
function rfbwp_prevent_wptexturize( $shortcodes ) {
$shortcodes[] = 'rfbwp_toc';
return $shortcodes;
}
/*--------------------------- END ToC -------------------------------- */
?>/* ---------------------------------------------------------------- */
/* Add Flipbook to Visual Composer
/* ---------------------------------------------------------------- */
global $mpcrf_options;
$books = array();
$books_shelf = array();
if( isset( $mpcrf_options[ 'books' ] ) )
foreach( $mpcrf_options[ 'books' ] as $book ) {
if( $book['rfbwp_fb_name'] != '' )
$books[ $book[ 'rfbwp_fb_name' ] ] = strtolower( str_replace( " ", "_", $book[ 'rfbwp_fb_name' ] ) );
}
foreach( $books as $key => $value ) {
$books_shelf[] = array( 'value' => $value, 'label' => $key );
}
if( function_exists( 'vc_map' ) ) {
vc_map( array(
'name' => __('Flipbook', 'rfbwp'),
'base' => 'responsive-flipbook',
'class' => '',
'icon' => 'icon-rfbwp-flipbook',
'category' => __('MPC', 'rfbwp'),
'params' => array(
array(
'type' => 'dropdown',
'heading' => __('Select Flip Book', 'rfbwp'),
'param_name' => 'id',
'value' => $books,
'admin_label' => true,
'description' => __('Select which FlipBook you would like to display.', 'rfbwp')
),
)
) );
vc_map( array(
'name' => __('Flipbook Popup', 'rfbwp'),
'base' => 'flipbook-popup',
'class' => '',
'icon' => 'icon-rfbwp-flipbook-popup',
'category' => __('MPC', 'rfbwp'),
'params' => array(
array(
'type' => 'dropdown',
'heading' => __('Select Flip Book', 'rfbwp'),
'param_name' => 'id',
'value' => $books,
'admin_label' => true,
'description' => __('Select which FlipBook you would like to display.', 'rfbwp')
),
array(
'type' => 'textarea',
'heading' => __('Popup content', 'rfbwp'),
'param_name' => 'content',
'value' => 'Click me!',
'admin_label' => true,
'description' => __('Specify text to trigger popup Flipbook.', 'rfbwp')
),
)
) );
vc_map( array(
'name' => __('Flipbook Shelf', 'rfbwp'),
'base' => 'flipbook-shelf',
'class' => '',
'icon' => 'icon-rfbwp-flipbook-shelf',
'category' => __('MPC', 'rfbwp'),
'params' => array(
array(
'type' => 'autocomplete',
'heading' => __( 'Select flip books', 'rfbwp' ),
'param_name' => 'ids',
'description' => __( 'Select which FlipBooks you would like to display.', 'rfbwp' ),
'settings' => array(
'multiple' => true,
'values' => $books_shelf,
),
'admin_label' => true,
),
array(
'type' => 'dropdown',
'heading' => __('Select style', 'rfbwp'),
'param_name' => 'style',
'value' => array(
__( 'Classic', 'rfbwp' ) => 'classic',
__( 'Light Wood', 'rfbwp' ) => 'wood-light' ,
__( 'Dark Wood', 'rfbwp' ) => 'wood-dark',
__( 'Custom Color', 'rfbwp' ) => 'custom-color',
__( 'Custom Image', 'rfbwp' ) => 'custom-image',
),
'admin_label' => true,
'description' => __('Select which shelf style you would like to display.', 'rfbwp')
),
array(
'type' => 'colorpicker',
'param_name' => 'color',
'heading' => __( 'Shelf color', 'rfbwp' ),
'description' => __( 'Select shelf custom color', 'rfbwp' ),
'std' => '#e0e0e0',
'admin_label' => true,
'dependency' => array(
'element' => 'style',
'value' => array( 'custom-color' ),
),
),
array(
'type' => 'attach_image',
'param_name' => 'image',
'heading' => __( 'Shelf image', 'rfbwp' ),
'description' => __( 'Select shelf custom image', 'rfbwp' ),
'std' => '',
'admin_label' => false,
'dependency' => array(
'element' => 'style',
'value' => array( 'custom-image' ),
),
),
)
) );
function rfbwp_vc_style() {
wp_enqueue_style( 'rfbwp_vc_style', MPC_PLUGIN_ROOT . '/massive-panel/css/vc.css' );
}
add_action( 'admin_enqueue_scripts', 'rfbwp_vc_style' );
}
writing Archives - VAVARUNWAY
Tag Archives: writing
08/22/2019 cheap essays
Pupils mail the inaccurate article. Lecturers also needs to provide the children appropriate guidelines for each and every sort of composition they’ve to create. Every one of these kinds of dissertation publishing services need to be excellent and may assure.
Continue reading
06/09/2019 buy essay
Inside this situation you most definitely ought to purchase essay papers cheap from an internet site that may give you all required academic info assist and help in course! Subsequent to the order was made, you are going to be.
Continue reading