appearance
5 years ago
display-options
5 years ago
services
5 years ago
dashboard.php
6 years ago
listing.php
6 years ago
wizard.php
6 years ago
wizard.php
86 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Social sharing wizard. |
| 4 | * |
| 5 | * @var Opt_In $this |
| 6 | * |
| 7 | * @package Hustle |
| 8 | * @since 4.0.0 |
| 9 | */ |
| 10 | |
| 11 | $module_type = $module->module_type; |
| 12 | $module_name = $module->module_name; |
| 13 | $appearance_settings = $module->get_design()->to_array(); |
| 14 | $display_settings = $module->get_display()->to_array(); |
| 15 | $content_settings = $module->get_content()->to_array(); |
| 16 | $visibility_settings = $module->get_visibility()->to_array(); |
| 17 | |
| 18 | $capitalize_singular = esc_html__( 'Social Share', 'hustle' ); |
| 19 | $capitalize_plural = esc_html__( 'Social Shares', 'hustle' ); |
| 20 | $smallcaps_singular = esc_html__( 'social share', 'hustle' ); |
| 21 | $smallcaps_plural = esc_html__( 'social shares', 'hustle' ); |
| 22 | |
| 23 | $this->render( |
| 24 | 'admin/commons/sui-wizard/wizard', |
| 25 | array( |
| 26 | 'page_id' => 'hustle-module-wizard-view', |
| 27 | 'page_tab' => $section, |
| 28 | 'module' => $module, |
| 29 | 'module_id' => $module_id, |
| 30 | 'module_name' => $module->module_name, |
| 31 | 'module_status' => $is_active, |
| 32 | 'module_type' => $module_type, |
| 33 | 'capitalize_singular' => $capitalize_singular, |
| 34 | 'smallcaps_singular' => $smallcaps_singular, |
| 35 | 'wizard_tabs' => array( |
| 36 | 'services' => array( |
| 37 | 'name' => esc_html__( 'Services', 'hustle' ), |
| 38 | 'template' => 'admin/sshare/services/template', |
| 39 | 'support' => array( |
| 40 | 'settings' => $content_settings, |
| 41 | 'section' => $section, |
| 42 | ), |
| 43 | ), |
| 44 | 'display' => array( |
| 45 | 'name' => esc_html__( 'Display Options', 'hustle' ), |
| 46 | 'template' => 'admin/sshare/display-options/template', |
| 47 | 'support' => array( |
| 48 | 'section' => $section, |
| 49 | 'shortcode_id' => $module->get_shortcode_id(), |
| 50 | 'settings' => $display_settings, |
| 51 | ), |
| 52 | ), |
| 53 | 'appearance' => array( |
| 54 | 'name' => esc_html__( 'Appearance', 'hustle' ), |
| 55 | 'template' => 'admin/sshare/appearance/template', |
| 56 | 'support' => array( |
| 57 | 'section' => $section, |
| 58 | 'module_type' => $module_type, |
| 59 | 'capitalize_singular' => $capitalize_singular, |
| 60 | 'smallcaps_singular' => $smallcaps_singular, |
| 61 | 'display_settings' => $display_settings, |
| 62 | 'settings' => $appearance_settings, |
| 63 | 'module' => $module, |
| 64 | ), |
| 65 | ), |
| 66 | 'visibility' => array( |
| 67 | 'name' => esc_html__( 'Visibility', 'hustle' ), |
| 68 | 'template' => 'admin/commons/sui-wizard/templates/tab-visibility', |
| 69 | 'support' => array( |
| 70 | 'section' => $section, |
| 71 | 'is_active' => $is_active, |
| 72 | 'module_type' => $module_type, |
| 73 | 'settings' => $visibility_settings, |
| 74 | 'smallcaps_singular' => $smallcaps_singular, |
| 75 | ), |
| 76 | ), |
| 77 | ), |
| 78 | ) |
| 79 | ); |
| 80 | |
| 81 | // Row: Platform row template. |
| 82 | $this->render( 'admin/sshare/services/platform-row', array() ); |
| 83 | |
| 84 | // Row: Platform item template. |
| 85 | $this->render( 'admin/commons/sui-wizard/dialogs/add-platform-li', array() ); |
| 86 |