'FREE PLAN',
'price_rate'=>'0 / month',
'info_one'=>'Personal use',
'info_two'=>'Unlimited projects',
'info_three'=>'30GB',
'info_four'=>'10GB',
'support'=>' 27/7 support' ,
'buy_link'=>'#',
'quantity'=> 1,
'column'=> '6'
), $atts) );
$query = new WP_Query(
array('posts_per_page' => $quantity,
'post_type' => 'post',
'orderby' => 'menu_order',
'order' => 'ASC'
)
);
$html = '
';
while($query->have_posts()) : $query->the_post();
$html .= '
'.$price_plan.'
- '.$info_one.'
- '.$info_two.'
- '.$info_three.'
- '.$info_four.'
- '.$support.'
';
endwhile;
$html.= '
';
wp_reset_query();
return $html;
}
/*
* *****************************************************************
* Pricing table Tyne Mce Button
* *****************************************************************
* */
// Hooks your functions into the correct filters
function tmrd_add_mce_button() {
// check user permissions
if ( !current_user_can( 'edit_posts' ) && !current_user_can( 'edit_pages' ) ) {
return;
}
// check if WYSIWYG is enabled
if ( 'true' == get_user_option( 'rich_editing' ) ) {
add_filter( 'mce_external_plugins', 'tmrd_add_tinymce_plugin' );
add_filter( 'mce_buttons', 'tmrd_register_mce_button' );
}
}
add_action('admin_head', 'tmrd_add_mce_button');
// Declare script for new button
function tmrd_add_tinymce_plugin( $plugin_array ) {
$plugin_array['tmrd_mce_button'] = plugins_url('/assets/js/main.js', __FILE__);
return $plugin_array;
}
// Register new button in the editor
function tmrd_register_mce_button( $buttons ) {
array_push( $buttons, 'tmrd_mce_button' );
return $buttons;
}
function tmrd_shortcodes_mce_css() {
wp_enqueue_style('symple_shortcodes-tc', plugins_url('assets/css/my-mce-style.css', __FILE__) );
}
add_action( 'admin_enqueue_scripts', 'tmrd_shortcodes_mce_css' );