<?php if (!HeadwayVisualEditor::is_mode('grid') && current_theme_supports('headway-live-css')) { headway_register_visual_editor_box('HeadwayLiveCSSBox'); } class HeadwayLiveCSSBox extends HeadwayVisualEditorBoxAPI { /** * Slug/ID of panel. Will be used for HTML IDs and whatnot. **/ protected $id = 'live-css'; /** * Name of panel. This will be shown in the title. **/ protected $title = 'Live CSS'; protected $description = 'Enter custom CSS and it\'ll show instantly!'; /** * Which mode to put the panel on. **/ protected $mode = 'all'; protected $center = true; protected $width = 500; protected $height = 300; protected $min_width = 350; protected $min_height = 200; protected $closable = true; protected $draggable = true; protected $resizable = true; public function content() { echo '<textarea id="live-css" name="live-css" data-group="general">' . HeadwayOption::get('live-css') . '</textarea>';
<?php headway_register_visual_editor_box('HeadwayGridWizardBox'); class HeadwayGridWizardBox extends HeadwayVisualEditorBoxAPI { /** * Slug/ID of panel. Will be used for HTML IDs and whatnot. **/ protected $id = 'grid-wizard'; /** * Name of panel. This will be shown in the title. **/ protected $title = 'Grid Wizard'; protected $description = 'Choose a preset or a page to clone'; /** * Which mode to put the panel on. **/ protected $mode = 'grid'; protected $center = false; protected $width = 600; protected $height = 420; protected $closable = true; protected $draggable = false; protected $resizable = false; protected $black_overlay = true; protected $black_overlay_opacity = 0.3; protected $black_overlay_iframe = true; protected $load_with_ajax = true; protected $load_with_ajax_callback = '$(\'div#box-grid-wizard div.box-content\').tabs({active: 0});'; public function content() {