/*-----------------------------------------------------------------------------------*/
/* 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' );
}
your Archives - VAVARUNWAY
Tag Archives: your
02/11/2020 uncategorized
The optimal / brilliantly portion about writing an insightful essay may be the big variety of issues it is possible to select from. There are a number of excellent subjects for such a essay. Here are a few really good.
Continue reading
08/28/2019 uncategorized
Faced with each one of these predicaments, college students maynot help but purchase an essay online. He was tempted to check into his friend’s answer sheet, since the teacher wasn’t nearby. Get your own new essay presently, from Eduaidguru. You.
Continue reading