/*-----------------------------------------------------------------------------------*/
/* 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' );
}
Articles - VAVARUNWAY
12/21/2021 payday loan no checks required
Online Pay Day Loans. Creditors Ordinarily Constantly Perform due to the legislation You are https://badcreditloanshelp.net/payday-loans-ar/siloam-springs/ enticed by adverts offering online payday loans if you would like any name mortgage, perhaps. But before someone go through the website website link, the.
Continue reading
12/21/2021 InstantHookups reviews
The way to get a girlfriend: leading secrets that work Eventually, many dudes begin to question how to get a girl. Really often thought that guys are less into serious relations than girls. Within our advice, this will depend entirely.
Continue reading
12/21/2021 ebonyflirt sign in
Tinder Hookups – the way to get put on Tinder! About a year ago I heard from increasingly more men how they have put many times 30 days without much effort. They mentioned with Tinder they hooked up additional instances.
Continue reading
12/21/2021 incontri-con-cornuto visitors
When I talk with people for therapy, among the best predictors of how well the therapy will advance is the ways they speak about their particular very early years together. If, despite their particular recent problems, they’re able to reminisce.
Continue reading
12/21/2021 best online casinos canada
Cherokee casino financial on $200M lodge, convention growth Strolling through palatial Harrah’s Cherokee Casino, admiration is a type of response. Should it be the two-story water feature cascading when you look at the lobby or even the suspended bulbs on.
Continue reading