csf-shortcode-options.php (3322B)
1 <?php 2 /** 3 * theme shortcode generator 4 * @since 1.0.0 5 * */ 6 if (!defined('ABSPATH')){ 7 exit(); //exit if access it directly 8 } 9 10 // Control core classes for avoid errors 11 if( class_exists( 'CSF' ) ) { 12 $prefix = 'appside'; 13 CSF::createShortcoder( $prefix.'_shortcodes', array( 14 'button_title' => esc_html__('Add Shortcode','aapside'), 15 'select_title' => esc_html__('Select a shortcode','aapside'), 16 'insert_title' => esc_html__('Insert Shortcode','aapside') 17 ) ); 18 19 /*------------------------------------ 20 Inline info shortcode options 21 -------------------------------------*/ 22 CSF::createSection( $prefix.'_shortcodes', array( 23 'title' => esc_html__('Inline Info Text','aapside'), 24 'view' => 'group', 25 'shortcode' => 'appside_info_item_wrap', 26 'group_shortcode' => 'appside_info_inline_text', 27 'group_fields' => array( 28 array( 29 'id' => 'url', 30 'type' => 'text', 31 'title' => esc_html__('URL','aapside'), 32 ), 33 34 array( 35 'id' => 'text', 36 'type' => 'text', 37 'title' => esc_html__('Text','aapside'), 38 ) 39 ) 40 ) ); 41 /*------------------------------------ 42 Inline info link options 43 -------------------------------------*/ 44 CSF::createSection( $prefix.'_shortcodes', array( 45 'title' => esc_html__('Inline Info Link','aapside'), 46 'view' => 'group', 47 'shortcode' => 'appside_info_item_wrap', 48 'group_shortcode' => 'appside_info_link', 49 'group_fields' => array( 50 array( 51 'id' => 'icon', 52 'type' => 'icon', 53 'title' => esc_html__('Icon','aapside'), 54 ), 55 array( 56 'id' => 'text', 57 'type' => 'text', 58 'title' => esc_html__('Text','aapside'), 59 ), 60 array( 61 'id' => 'url', 62 'type' => 'text', 63 'title' => esc_html__('URL','aapside'), 64 ) 65 ) 66 ) ); 67 /*------------------------------------ 68 info item two 69 -------------------------------------*/ 70 CSF::createSection( $prefix.'_shortcodes', array( 71 'title' => esc_html__('Info Item Two','aapside'), 72 'view' => 'group', 73 'shortcode' => 'appside_info_item_two_wrap', 74 'group_shortcode' => 'appside_info_item_two', 75 'group_fields' => array( 76 array( 77 'id' => 'icon', 78 'type' => 'icon', 79 'title' => esc_html__('Icon','aapside'), 80 ), 81 array( 82 'id' => 'title', 83 'type' => 'text', 84 'title' => esc_html__('Title','aapside'), 85 ), 86 array( 87 'id' => 'details', 88 'type' => 'text', 89 'title' => esc_html__('Details','aapside'), 90 ) 91 ) 92 ) ); 93 /*------------------------------------ 94 info item three 95 -------------------------------------*/ 96 CSF::createSection( $prefix.'_shortcodes', array( 97 'title' => esc_html__('Info Item Three','aapside'), 98 'view' => 'group', 99 'shortcode' => 'appside_info_item_three_wrap', 100 'group_shortcode' => 'appside_info_inline_item_three', 101 'group_fields' => array( 102 array( 103 'id' => 'icon', 104 'type' => 'icon', 105 'title' => esc_html__('Icon','aapside'), 106 ), 107 array( 108 'id' => 'title', 109 'type' => 'text', 110 'title' => esc_html__('Title','aapside'), 111 ), 112 array( 113 'id' => 'details', 114 'type' => 'text', 115 'title' => esc_html__('Details','aapside'), 116 ) 117 ) 118 ) ); 119 120 }