public function xsg()
 {
     $this->sg_map(array('id' => 'x_tab_nav', 'title' => __('Tab Nav', csl18n()), 'weight' => 920, 'icon' => 'tab-nav', 'section' => __('Content', csl18n()), 'description' => __('Include a tab nav into your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/tabbed-content/', 'params' => array(array('param_name' => 'type', 'heading' => __('Tab Nav Items Per Row', csl18n()), 'description' => __('If your tab nav is on top, select how many tab nav items you want per row.', csl18n()), 'type' => 'dropdown', 'value' => array('Two' => 'two-up', 'Three' => 'three-up', 'Four' => 'four-up', 'Five' => 'five-up')), array('param_name' => 'float', 'heading' => __('Tab Nav Position', csl18n()), 'description' => __('Select the position of your tab nav.', csl18n()), 'type' => 'dropdown', 'value' => array('None' => 'none', 'Left' => 'left', 'Right' => 'right')), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
     $this->sg_map(array('id' => 'x_tab_nav_item', 'title' => __('Tab Nav Item', csl18n()), 'weight' => 910, 'icon' => 'tab-nav-item', 'section' => __('Content', csl18n()), 'description' => __('Include a tab nav item into your tab nav', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/tabbed-content/', 'params' => array(array('param_name' => 'title', 'heading' => __('Title', csl18n()), 'description' => __('Include a title for your tab nav item.', csl18n()), 'type' => 'textfield'), array('param_name' => 'active', 'heading' => __('Active', csl18n()), 'description' => __('Select to make this tab nav item active.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
     $this->sg_map(array('id' => 'x_tabs', 'title' => __('Tabs', csl18n()), 'weight' => 900, 'icon' => 'tabs', 'section' => __('Content', csl18n()), 'description' => __('Include a tabs container after your tab nav', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/tabbed-content/', 'params' => array(array('param_name' => 'id', 'heading' => __('ID', csl18n()), 'description' => __('(Optional) Enter a unique ID.', csl18n()), 'type' => 'textfield'), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
     $this->sg_map(array('id' => 'x_tab', 'title' => __('Tab', csl18n()), 'weight' => 890, 'icon' => 'tab', 'section' => __('Content', csl18n()), 'description' => __('Include a tab into your tabs container', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/tabbed-content/', 'params' => array(array('param_name' => 'content', 'heading' => __('Text', csl18n()), 'description' => __('Enter your text.', csl18n()), 'type' => 'textarea_html', 'value' => ''), array('param_name' => 'active', 'heading' => __('Active', csl18n()), 'description' => __('Select to make this tab active.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_button', 'title' => __('Button', csl18n()), 'section' => __('Marketing', csl18n()), 'description' => __('Add a clickable button to your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/buttons', 'params' => array(array('param_name' => 'content', 'heading' => __('Text', csl18n()), 'description' => __('Enter your text.', csl18n()), 'type' => 'textarea_html', 'value' => ''), array('param_name' => 'shape', 'heading' => __('Shape', csl18n()), 'description' => __('Select the button shape.', csl18n()), 'type' => 'dropdown', 'value' => array('Square' => 'square', 'Rounded' => 'rounded', 'Pill' => 'pill')), array('param_name' => 'size', 'heading' => __('Size', csl18n()), 'description' => __('Select the button size.', csl18n()), 'type' => 'dropdown', 'value' => array('Mini' => 'mini', 'Small' => 'small', 'Standard' => 'regular', 'Large' => 'large', 'Extra Large' => 'x-large', 'Jumbo' => 'jumbo')), array('param_name' => 'float', 'heading' => __('Float', csl18n()), 'description' => __('Optionally float the button.', csl18n()), 'type' => 'dropdown', 'value' => array('None' => 'none', 'Left' => 'left', 'Right' => 'right')), array('param_name' => 'block', 'heading' => __('Block', csl18n()), 'description' => __('Select to make your button go fullwidth.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), array('param_name' => 'circle', 'heading' => __('Marketing Circle', csl18n()), 'description' => __('Select to include a marketing circle around your button.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), array('param_name' => 'icon_only', 'heading' => __('Icon Only', csl18n()), 'description' => __('Select if you are only using an icon in your button.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), array('param_name' => 'href', 'heading' => __('Href', csl18n()), 'description' => __('Enter in the URL you want your button to link to.', csl18n()), 'type' => 'textfield'), array('param_name' => 'title', 'heading' => __('Title', csl18n()), 'description' => __('Enter in the title attribute you want for your button (will also double as title for popover or tooltip if you have chosen to display one).', csl18n()), 'type' => 'textfield'), array('param_name' => 'target', 'heading' => __('Target', csl18n()), 'description' => __('Select to open your button link in a new window.', csl18n()), 'type' => 'checkbox', 'value' => 'blank'), array('param_name' => 'info', 'heading' => __('Info', csl18n()), 'description' => __('Select whether or not you want to add a popover or tooltip to your button.', csl18n()), 'type' => 'dropdown', 'value' => array('None' => 'none', 'Popover' => 'popover', 'Tooltip' => 'tooltip')), array('param_name' => 'info_place', 'heading' => __('Info Placement', csl18n()), 'description' => __('Select where you want your popover or tooltip to appear.', csl18n()), 'type' => 'dropdown', 'value' => array('Top' => 'top', 'Left' => 'left', 'Right' => 'right', 'Bottom' => 'bottom')), array('param_name' => 'info_trigger', 'heading' => __('Info Trigger', csl18n()), 'description' => __('Select what actions you want to trigger the popover or tooltip.', csl18n()), 'type' => 'dropdown', 'value' => array('Hover' => 'hover', 'Click' => 'click', 'Focus' => 'focus')), array('param_name' => 'info_content', 'heading' => __('Info Content', csl18n()), 'description' => __('Extra content for the popover.', csl18n()), 'type' => 'textfield'), array('param_name' => 'lightbox_thumb', 'heading' => __('Lightbox Thumbnail', csl18n()), 'description' => __('Use this option to select a thumbnail for your lightbox thumbnail navigation or to set an image if you are linking out to a video.', csl18n()), 'type' => 'attach_image'), array('param_name' => 'lightbox_video', 'heading' => __('Lightbox Video', csl18n()), 'description' => __('Select if you are linking to a video from this button in the lightbox.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), array('param_name' => 'lightbox_caption', 'heading' => __('Lightbox Caption', csl18n()), 'description' => __('Lightbox caption text.', csl18n()), 'type' => 'textfield'), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_toc_item', 'title' => __('Table of Contents Item', csl18n()), 'weight' => 620, 'icon' => 'toc-item', 'section' => __('Information', csl18n()), 'description' => __('Include a table of contents item', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/table-of-contents/', 'params' => array(array('param_name' => 'title', 'heading' => __('Title', csl18n()), 'description' => __('Set the title of the table of contents item.', csl18n()), 'type' => 'textfield'), array('param_name' => 'page', 'heading' => __('Page', csl18n()), 'description' => __('Set the page of the table of contents item.', csl18n()), 'type' => 'textfield'), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_blockquote', 'title' => __('Blockquote', csl18n()), 'section' => __('Typography', csl18n()), 'description' => __('Include a blockquote in your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/blockquote/', 'params' => array(array('param_name' => 'content', 'heading' => __('Text', csl18n()), 'description' => __('Enter your text.', csl18n()), 'type' => 'textarea_html', 'value' => ''), array('param_name' => 'cite', 'heading' => __('Cite', csl18n()), 'description' => __('Cite the person you are quoting.', csl18n()), 'type' => 'textfield'), array('param_name' => 'type', 'heading' => __('Alignment', csl18n()), 'description' => __('Select the alignment of the blockquote.', csl18n()), 'type' => 'dropdown', 'value' => array('Left' => 'left', 'Center' => 'center', 'Right' => 'right')), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_google_map', 'title' => __('Google Map', csl18n()), 'weight' => 530, 'icon' => 'google-map', 'section' => __('Media', csl18n()), 'description' => __('Embed a customizable Google map', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/map/', 'params' => array(array('param_name' => 'lat', 'heading' => __('Latitude', csl18n()), 'description' => __('Enter in the center latitude of your map.', csl18n()), 'type' => 'textfield'), array('param_name' => 'lng', 'heading' => __('Longitude', csl18n()), 'description' => __('Enter in the center longitude of your map.', csl18n()), 'type' => 'textfield'), array('param_name' => 'drag', 'heading' => __('Draggable', csl18n()), 'description' => __('Select to allow your users to drag the map view.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), array('param_name' => 'zoom', 'heading' => __('Zoom Level', csl18n()), 'description' => __('Choose the initial zoom level of your map. This value should be between 1 and 18. 1 is fully zoomed out and 18 is right at street level.', csl18n()), 'type' => 'textfield'), array('param_name' => 'zoom_control', 'heading' => __('Zoom Control', csl18n()), 'description' => __('Select to activate the zoom control for the map.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), array('param_name' => 'height', 'heading' => __('Height', csl18n()), 'description' => __('Choose an optional height for your map. If no height is selected, a responsive, proportional unit will be used. Any type of unit is acceptable (e.g. 450px, 30em, 40%, et cetera).', csl18n()), 'type' => 'textfield'), array('param_name' => 'hue', 'heading' => __('Custom Color', csl18n()), 'description' => __('Choose an optional custom color for your map.', csl18n()), 'type' => 'colorpicker'), array('param_name' => 'no_container', 'heading' => __('No Container', csl18n()), 'description' => __('Select to remove the container around the map.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_slide', 'title' => __('Slide', csl18n()), 'weight' => 600, 'icon' => 'slide', 'section' => __('Media', csl18n()), 'description' => __('Include a slide into your slider', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/responsive-slider/', 'params' => array(array('param_name' => 'content', 'heading' => __('Text', csl18n()), 'description' => __('Enter your text.', csl18n()), 'type' => 'textarea_html', 'value' => ''), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_block_grid_item', 'title' => __('Block Grid Item', csl18n()), 'weight' => 870, 'icon' => 'block-grid-item', 'section' => __('Content', csl18n()), 'description' => __('Include a block grid item in your block grid', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/block-grid/', 'params' => array(array('param_name' => 'content', 'heading' => __('Text', csl18n()), 'description' => __('Enter your text.', csl18n()), 'type' => 'textarea_html', 'value' => ''), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_toc', 'title' => __('Table of Contents', csl18n()), 'weight' => 630, 'icon' => 'toc', 'section' => __('Information', csl18n()), 'description' => __('Include a table of contents in your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/table-of-contents/', 'params' => array(array('param_name' => 'title', 'heading' => __('Title', csl18n()), 'description' => __('Set the title of the table of contents.', csl18n()), 'type' => 'textfield', 'value' => 'Table of Contents'), array('param_name' => 'type', 'heading' => __('Alignment', csl18n()), 'description' => __('Select the alignment of your table of contents.', csl18n()), 'type' => 'dropdown', 'value' => array('Left' => 'left', 'Right' => 'right', 'Fullwidth' => 'block')), array('param_name' => 'columns', 'heading' => __('Columns', csl18n()), 'description' => __('Select a column count for your links if you have chosen "Fullwidth" as your alignment.', csl18n()), 'type' => 'dropdown', 'value' => array('1' => '1', '2' => '2', '3' => '3')), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_promo', 'title' => __('Promo', csl18n()), 'section' => __('Marketing', csl18n()), 'description' => __('Include a marketing promo in your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/promo/', 'params' => array(array('param_name' => 'content', 'heading' => __('Text', csl18n()), 'description' => __('Enter your text.', csl18n()), 'type' => 'textarea_html', 'value' => ''), array('param_name' => 'image', 'heading' => __('Promo Image', csl18n()), 'description' => __('Include an image for your promo element.', csl18n()), 'type' => 'attach_image'), array('param_name' => 'alt', 'heading' => __('Alt', csl18n()), 'description' => __('Enter in the alt text for your promo image.', csl18n()), 'type' => 'textfield'), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_visibility', 'title' => __('Visibility', csl18n()), 'weight' => 850, 'icon' => 'visibility', 'section' => __('Content', csl18n()), 'description' => __('Alter content based on screen size', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/responsive-visibility/', 'params' => array(array('param_name' => 'type', 'heading' => __('Visibility Type', csl18n()), 'description' => __('Select how you want to hide or show your content.', csl18n()), 'type' => 'dropdown', 'value' => array('Hidden Phone' => 'hidden-phone', 'Hidden Tablet' => 'hidden-tablet', 'Hidden Desktop' => 'hidden-desktop', 'Visible Phone' => 'visible-phone', 'Visible Tablet' => 'visible-tablet', 'Visible Desktop' => 'visible-desktop')), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_counter', 'title' => __('Counter', csl18n()), 'section' => __('Information', csl18n()), 'description' => __('Include an animated number counter in your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/counter/', 'params' => array(array('param_name' => 'num_start', 'heading' => __('Starting Number', csl18n()), 'description' => __('Enter in the number that you would like your counter to start from.', csl18n()), 'type' => 'textfield', 'value' => '0'), array('param_name' => 'num_end', 'heading' => __('Ending Number', csl18n()), 'description' => __('Enter int he number that you would like your counter to end at. This must be higher than your starting number.', csl18n()), 'type' => 'textfield', 'value' => '100'), array('param_name' => 'num_speed', 'heading' => __('Counter Speed', csl18n()), 'description' => __('The amount of time to transition between numbers in milliseconds.', csl18n()), 'type' => 'textfield', 'value' => '1500'), array('param_name' => 'num_prefix', 'heading' => __('Number Prefix', csl18n()), 'description' => __('Prefix your number with a symbol or text.', csl18n()), 'type' => 'textfield'), array('param_name' => 'num_suffix', 'heading' => __('Number Suffix', csl18n()), 'description' => __('Suffix your number with a symbol or text.', csl18n()), 'type' => 'textfield'), array('param_name' => 'num_color', 'heading' => __('Number Color', csl18n()), 'description' => __('Select the color of your number.', csl18n()), 'type' => 'colorpicker'), array('param_name' => 'text_above', 'heading' => __('Text Above', csl18n()), 'description' => __('Optionally include text above your number.', csl18n()), 'type' => 'textfield'), array('param_name' => 'text_below', 'heading' => __('Text Below', csl18n()), 'description' => __('Optionally include text below your number.', csl18n()), 'type' => 'textfield'), array('param_name' => 'text_color', 'heading' => __('Text Color', csl18n()), 'description' => __('Select the color of your text above and below the number if you have include any.', csl18n()), 'type' => 'colorpicker'), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_audio_embed', 'title' => __('Audio (Embedded)', csl18n()), 'section' => __('Media', csl18n()), 'description' => __('Place audio files into your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/audio/', 'params' => array(array('param_name' => 'content', 'heading' => __('Code (See Notes Below)', csl18n()), 'description' => __('Switch to the "text" editor and do not place anything else here other than your ‹iframe› or ‹embed› code.', csl18n()), 'type' => 'textarea_html', 'value' => ''), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_accordion_item', 'title' => __('Accordion Item', csl18n()), 'weight' => 940, 'icon' => 'accordion-item', 'section' => __('Content', csl18n()), 'description' => __('Include an accordion item in your accordion', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/accordion/', 'params' => array(array('param_name' => 'content', 'heading' => __('Text', csl18n()), 'description' => __('Enter your text.', csl18n()), 'type' => 'textarea_html', 'value' => ''), array('param_name' => 'parent_id', 'heading' => __('Parent ID', csl18n()), 'description' => __('Optionally include an ID given to the parent accordion to only allow one toggle to be open at a time.', csl18n()), 'type' => 'textfield'), array('param_name' => 'title', 'heading' => __('Title', csl18n()), 'description' => __('Include a title for your accordion item.', csl18n()), 'type' => 'textfield'), array('param_name' => 'open', 'heading' => __('Open', csl18n()), 'description' => __('Select for your accordion item to be open by default.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_video_player', 'title' => __('Video (Self Hosted)', csl18n()), 'section' => __('Media', csl18n()), 'description' => __('Include responsive video into your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/responsive-video/', 'params' => array(array('param_name' => 'type', 'heading' => __('Aspect Ratio', csl18n()), 'description' => __('Select your aspect ratio.', csl18n()), 'type' => 'dropdown', 'value' => array('16:9' => '16:9', '5:3' => '5:3', '5:4' => '5:4', '4:3' => '4:3', '3:2' => '3:2')), array('param_name' => 'm4v', 'heading' => __('M4V', csl18n()), 'description' => __('Include and .m4v version of your video.', csl18n()), 'type' => 'textfield'), array('param_name' => 'ogv', 'heading' => __('OGV', csl18n()), 'description' => __('Include and .ogv version of your video for additional native browser support.', csl18n()), 'type' => 'textfield'), array('param_name' => 'poster', 'heading' => __('Poster Image', csl18n()), 'description' => __('Include a poster image for your self-hosted video.', csl18n()), 'type' => 'attach_image'), array('param_name' => 'hide_controls', 'heading' => __('Hide Controls', csl18n()), 'description' => __('Select to hide the controls on your self-hosted video.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), array('param_name' => 'autoplay', 'heading' => __('Autoplay', csl18n()), 'description' => __('Select to automatically play your self-hosted video.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), array('param_name' => 'no_container', 'heading' => __('No Container', csl18n()), 'description' => __('Select to remove the container around the video.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
Exemple #15
0
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_gap', 'title' => __('Gap', csl18n()), 'section' => __('Structure', csl18n()), 'description' => __('Insert a vertical gap in your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/gap/', 'params' => array(array('param_name' => 'size', 'heading' => __('Size', csl18n()), 'description' => __('Enter in the size of your gap. Pixels, ems, and percentages are all valid units of measurement.', csl18n()), 'type' => 'textfield', 'value' => '1.313em'), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_search', 'title' => __('Search', csl18n()), 'section' => __('Content', csl18n()), 'description' => __('Include a search field in your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/search/', 'params' => array(Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_pricing_table', 'title' => __('Pricing Table', csl18n()), 'weight' => 680, 'icon' => 'pricing-table', 'section' => __('Marketing', csl18n()), 'description' => __('Include a pricing table in your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/responsive-pricing-table/', 'params' => array(array('param_name' => 'columns', 'heading' => __('Columns', csl18n()), 'description' => __('Select how many columns you want for your pricing table.', csl18n()), 'type' => 'dropdown', 'value' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5')), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_code', 'title' => __('Code', csl18n()), 'section' => __('Typography', csl18n()), 'description' => __('Add a block of example code to your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/code/', 'params' => array(array('param_name' => 'content', 'heading' => __('Text', csl18n()), 'description' => __('Enter your text.', csl18n()), 'type' => 'textarea_html', 'value' => ''), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 /**
  * Perform boilerplate init actions
  * @return none
  */
 public function init()
 {
     // Localize
     load_plugin_textdomain(csl18n(), false, $this->path() . '/' . self::$domain_path . '/');
     // Load Core Components
     $this->shortcodes = new Cornerstone_Shortcode_Manager();
     $this->customizer = new Cornerstone_Customizer_Manager();
     // Nothing left to do if we don't have a user
     if (!is_user_logged_in()) {
         add_action('template_redirect', array($this->common, 'loginRedirect'));
         return;
     }
     // Load the rest of Cornerstone
     $this->includes($this->registry['builder']);
     // Load Components
     Cornerstone_Shortcode_Generator::init();
     Cornerstone_User_Layout_Manager::init();
     $this->admin = new Cornerstone_Admin();
     $this->elements = new Cornerstone_Element_Manager();
     $this->builder = new Cornerstone_Builder();
     // Version Migration
     add_action('admin_init', array($this, 'versionMigration'));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_feature_headline', 'title' => __('Feature Headline', csl18n()), 'section' => __('Typography', csl18n()), 'description' => __('Include a feature headline in your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/feature-headline/', 'params' => array(array('param_name' => 'content', 'heading' => __('Text', csl18n()), 'description' => __('Enter your text.', csl18n()), 'type' => 'textarea_html', 'value' => ''), array('param_name' => 'type', 'heading' => __('Alignment', csl18n()), 'description' => __('Select which way to align the feature headline.', csl18n()), 'type' => 'dropdown', 'value' => array('Left' => 'left', 'Center' => 'center', 'Right' => 'right')), array('param_name' => 'level', 'heading' => __('Heading Level', csl18n()), 'description' => __('Select which level to use for your heading (e.g. h2).', csl18n()), 'type' => 'dropdown', 'value' => array('h1' => 'h1', 'h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6')), array('param_name' => 'looks_like', 'heading' => __('Looks Like', csl18n()), 'description' => __('Select which level your heading should look like (e.g. h3).', csl18n()), 'type' => 'dropdown', 'value' => array('h1' => 'h1', 'h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6')), array('param_name' => 'icon', 'heading' => __('Icon', csl18n()), 'description' => __('Select the icon to use with your feature headline.', csl18n()), 'type' => 'dropdown', 'value' => array_keys(fa_all_unicode())), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_audio_player', 'title' => __('Audio (Self Hosted)', csl18n()), 'section' => __('Media', csl18n()), 'description' => __('Place audio files into your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/audio/', 'params' => array(array('param_name' => 'mp3', 'heading' => __('MP3', csl18n()), 'description' => __('Include and .mp3 version of your audio.', csl18n()), 'type' => 'textfield'), array('param_name' => 'oga', 'heading' => __('OGA', csl18n()), 'description' => __('Include and .oga version of your audio for additional native browser support.', csl18n()), 'type' => 'textfield'), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public static function init()
 {
     self::$instance = new Cornerstone_Shortcode_Generator();
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_block_grid', 'title' => __('Block Grid', csl18n()), 'weight' => 880, 'icon' => 'block-grid', 'section' => __('Content', csl18n()), 'description' => __('Include a block grid container in your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/block-grid/', 'params' => array(array('param_name' => 'type', 'heading' => __('Type', csl18n()), 'description' => __('Select how many block grid items you want per row.', csl18n()), 'type' => 'dropdown', 'value' => array('Two' => 'two-up', 'Three' => 'three-up', 'Four' => 'four-up', 'Five' => 'five-up')), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_map', 'title' => __('Map (Embed)', csl18n()), 'section' => __('Media', csl18n()), 'description' => __('Embed a map from a third-party provider', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/map/', 'params' => array(array('param_name' => 'content', 'heading' => __('Code (See Notes Below)', csl18n()), 'description' => __('Switch to the "text" editor and do not place anything else here other than your ‹iframe› or ‹embed› code.', csl18n()), 'type' => 'textarea_html', 'value' => ''), array('param_name' => 'no_container', 'heading' => __('No Container', csl18n()), 'description' => __('Select to remove the container around the map.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_skill_bar', 'title' => __('Skill Bar', csl18n()), 'section' => __('Information', csl18n()), 'description' => __('Include an informational skill bar', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/skill-bar/', 'params' => array(array('param_name' => 'heading', 'heading' => __('Heading', csl18n()), 'description' => __('Enter the heading of your skill bar.', csl18n()), 'type' => 'textfield'), array('param_name' => 'percent', 'heading' => __('Percent', csl18n()), 'description' => __('Enter the percentage of your skill and be sure to include the percentage sign (i.e. 90%).', csl18n()), 'type' => 'textfield'), array('param_name' => 'bar_text', 'heading' => __('Bar Text', csl18n()), 'description' => __('Enter in some alternate text in place of the percentage inside the skill bar.', csl18n()), 'type' => 'textfield'), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_clear', 'title' => __('Clear', csl18n()), 'section' => __('Structure', csl18n()), 'description' => __('Clear floated elements in your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/clear/', 'params' => array(Cornerstone_Shortcode_Generator::map_default_id(array('advanced' => false)), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_callout', 'title' => __('Callout', csl18n()), 'section' => __('Marketing', csl18n()), 'description' => __('Include a marketing callout into your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/callout/', 'params' => array(array('param_name' => 'type', 'heading' => __('Alignment', csl18n()), 'description' => __('Select the alignment for your callout.', csl18n()), 'type' => 'dropdown', 'value' => array('Left' => 'left', 'Center' => 'center', 'Right' => 'right')), array('param_name' => 'title', 'heading' => __('Title', csl18n()), 'description' => __('Enter the title for your callout.', csl18n()), 'type' => 'textfield'), array('param_name' => 'message', 'heading' => __('Message', csl18n()), 'description' => __('Enter the message for your callout.', csl18n()), 'type' => 'textarea'), array('param_name' => 'button_text', 'heading' => __('Button Text', csl18n()), 'description' => __('Enter the text for your callout button.', csl18n()), 'type' => 'textfield'), array('param_name' => 'button_icon', 'heading' => __('Button Icon', csl18n()), 'description' => __('Optionally enter the button icon.', csl18n()), 'type' => 'dropdown', 'value' => array_keys(fa_all_unicode())), array('param_name' => 'circle', 'heading' => __('Marketing Circle', csl18n()), 'description' => __('Select to include a marketing circle around your button.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), array('param_name' => 'href', 'heading' => __('Href', csl18n()), 'description' => __('Enter in the URL you want your callout button to link to.', csl18n()), 'type' => 'textfield'), array('param_name' => 'target', 'heading' => __('Target', csl18n()), 'description' => __('Select to open your callout link button in a new window.', csl18n()), 'type' => 'checkbox', 'value' => 'blank'), Cornerstone_Shortcode_Generator::map_default_id(), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_icon_list', 'title' => __('Icon List', csl18n()), 'weight' => 780, 'icon' => 'icon-list', 'section' => __('Typography', csl18n()), 'description' => __('Include an icon list in your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/icon-list/', 'params' => array(Cornerstone_Shortcode_Generator::map_default_id(array('advanced' => false)), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
Exemple #29
0
 public function xsg()
 {
     $this->sg_map(array('id' => 'x_image', 'title' => __('Image', csl18n()), 'section' => __('Media', csl18n()), 'description' => __('Include an image in your content', csl18n()), 'demo' => 'http://theme.co/x/demo/integrity/1/shortcodes/images/', 'params' => array(array('param_name' => 'type', 'heading' => __('Style', csl18n()), 'description' => __('Select the image style.', csl18n()), 'type' => 'dropdown', 'value' => array('None' => 'none', 'Thumbnail' => 'thumbnail', 'Rounded' => 'rounded', 'Circle' => 'circle')), array('param_name' => 'float', 'heading' => __('Float', csl18n()), 'description' => __('Optionally float the image.', csl18n()), 'type' => 'dropdown', 'value' => array('None' => 'none', 'Left' => 'left', 'Right' => 'right')), array('param_name' => 'src', 'heading' => __('Src', csl18n()), 'description' => __('Enter your image.', csl18n()), 'type' => 'attach_image'), array('param_name' => 'alt', 'heading' => __('Alt', csl18n()), 'description' => __('Enter in the alt text for your image.', csl18n()), 'type' => 'textfield'), array('param_name' => 'link', 'heading' => __('Link', csl18n()), 'description' => __('Select to wrap your image in an anchor tag.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), array('param_name' => 'href', 'heading' => __('Href', csl18n()), 'description' => __('Enter in the URL you want your image to link to. If using this image for a lightbox, enter the URL of your media here (e.g. YouTube embed URL, et cetera). Leave this field blank if you want to link to the image uploaded to the "Src" for your lightbox.', csl18n()), 'type' => 'textfield'), array('param_name' => 'title', 'heading' => __('Title', csl18n()), 'description' => __('Enter in the title attribute you want for your image (will also double as title for popover or tooltip if you have chosen to display one).', csl18n()), 'type' => 'textfield'), array('param_name' => 'target', 'heading' => __('Target', csl18n()), 'description' => __('Select to open your image link in a new window.', csl18n()), 'type' => 'checkbox', 'value' => 'blank'), array('param_name' => 'info', 'heading' => __('Info', csl18n()), 'description' => __('Select whether or not you want to add a popover or tooltip to your image.', csl18n()), 'type' => 'dropdown', 'value' => array('None' => 'none', 'Popover' => 'popover', 'Tooltip' => 'tooltip')), array('param_name' => 'info_place', 'heading' => __('Info Placement', csl18n()), 'description' => __('Select where you want your popover or tooltip to appear.', csl18n()), 'type' => 'dropdown', 'value' => array('Top' => 'top', 'Left' => 'left', 'Right' => 'right', 'Bottom' => 'bottom')), array('param_name' => 'info_trigger', 'heading' => __('Info Trigger', csl18n()), 'description' => __('Select what actions you want to trigger the popover or tooltip.', csl18n()), 'type' => 'dropdown', 'value' => array('Hover' => 'hover', 'Click' => 'click', 'Focus' => 'focus')), array('param_name' => 'info_content', 'heading' => __('Info Content', csl18n()), 'description' => __('Extra content for the popover.', csl18n()), 'type' => 'textfield'), array('param_name' => 'lightbox_thumb', 'heading' => __('Lightbox Thumbnail', csl18n()), 'description' => __('Use this option to select a different thumbnail for your lightbox thumbnail navigation or to set an image if you are linking out to a video. Will default to the "Src" image if nothing is set.', csl18n()), 'type' => 'attach_image'), array('param_name' => 'lightbox_video', 'heading' => __('Lightbox Video', csl18n()), 'description' => __('Select if you are linking to a video from this image in the lightbox.', csl18n()), 'type' => 'checkbox', 'value' => 'true'), array('param_name' => 'lightbox_caption', 'heading' => __('Lightbox Caption', csl18n()), 'description' => __('Lightbox caption text.', csl18n()), 'type' => 'textfield'), array('param_name' => 'id', 'heading' => __('ID', csl18n()), 'description' => __('(Optional) Enter a unique ID.', csl18n()), 'type' => 'textfield'), Cornerstone_Shortcode_Generator::map_default_class(), Cornerstone_Shortcode_Generator::map_default_style())));
 }
Exemple #30
0
function csg_remove($shortcode)
{
    Cornerstone_Shortcode_Generator::instance()->map()->remove($shortcode);
}