@@ -592,9 +546,11 @@ class="absolute top-0 inset-x-0 bg-no-repeat bg-cover bg-left h-full w-full">
+
+
-
Save the Date!
-
Tick-tock tech enthusiasts! Get ready for two days packed with innovation, knowledge, and networking.
+
+
@@ -648,9 +604,11 @@ class="hidden 2xl:block absolute top-0 inset-x-0 bg-no-repeat bg-contain bg-left
class="2xl:hidden absolute top-0 inset-x-0 bg-no-repeat bg-cover md:bg-[length:100%] bg-left-bottom h-full w-full">
+
+
-
See what's going on
-
Join the conversation on social media using the hashtag #MindanaoDEVCONSummit. Share your thoughts, insights, and photos from the event.
+
+
@@ -725,8 +683,10 @@ class="2xl:hidden absolute top-0 inset-x-0 bg-no-repeat bg-cover md:bg-[length:1
class="absolute top-0 inset-x-0 bg-no-repeat bg-cover md:bg-[length:100%] bg-left-bottom h-full w-full">
@@ -792,5 +752,9 @@ class="absolute top-0 inset-x-0 bg-no-repeat bg-cover md:bg-[length:100%] bg-lef
+
+
diff --git a/inc/jetpack.php b/inc/jetpack.php
old mode 100644
new mode 100755
diff --git a/inc/kirki-customizer.php b/inc/kirki-customizer.php
new file mode 100644
index 0000000..31b3477
--- /dev/null
+++ b/inc/kirki-customizer.php
@@ -0,0 +1,705 @@
+ function () {
+ return '
';
+ },
+ '[devcon_logo]' => function() {
+ return '
';
+ },
+];
+
+function devcon_msummit2024_add_setting(WP_Customize_Manager $wp_customize, string $id, array $args): WP_Customize_Setting {
+ $mod_id = devcon_msummit2024_get_mod_id($id);
+ if ($args && array_key_exists('default', $args)) {
+ set_theme_mod($mod_id, $args['default']);
+ }
+ return $wp_customize->add_setting($mod_id, $args);
+}
+
+function devcon_msummit2024_render_text($setting_name, $default = null, $return = false) {
+ $text = devcon_msummit2024_get_theme_mod($setting_name, $default ?? $setting_name);
+
+ // replace newline with
+ $text = str_replace("\\n", "
", $text);
+
+ // replace custom template tags (e.g. [alt_text]) with their respective values
+ global $customTemplateTags;
+ foreach ($customTemplateTags as $tag => $callback) {
+ $text = str_replace($tag, $callback(), $text);
+ }
+
+ if ($return) {
+ return $text;
+ }
+
+ echo $text;
+ return "";
+}
+
+function devcon_msummit2024_render_section($section_name) {
+ $sectionTitle = devcon_msummit2024_render_text('section_' . $section_name . '_title', default: '', return: true );
+ $sectionDescription = devcon_msummit2024_render_text('section_' . $section_name . '_description', default: '', return: true );
+
+ return [
+ $sectionTitle,
+ $sectionDescription
+ ];
+}
+
+function devcon_msummit2024_setup_landing_page_customize_section(WP_Customize_Manager $wp_customize) {
+ $custom_landing_page_panel = $wp_customize->add_panel('devcon-msummit2024_landing_page_panel', [
+ 'title' => __('Landing Page', 'devcon-msummit2024'),
+ 'description' => __('Options for modifying the details to be displayed to the homepage', 'devcon-msummit2024'),
+ 'priority' => 105,
+ ]);
+
+ // === Hero ===
+ $hero_section = $wp_customize->add_section('devcon-msummit2024_hero_section', [
+ 'title' => __('Hero', 'devcon-msummit2024'),
+ 'panel' => $custom_landing_page_panel->id,
+ 'priority' => 10,
+ ]);
+
+ // Hero Title
+ $hero_title_setting = devcon_msummit2024_add_setting($wp_customize, 'hero_title', [
+ 'default' => 'Weaving tech\nfor [alt_text]',
+// 'transport' => 'refresh',
+ ]);
+
+ (new Kirki\Field\Textarea([
+ 'section' => $hero_section->id,
+ 'settings' => $hero_title_setting->id,
+ 'label' => __('Hero Title', 'devcon-msummit2024'),
+ 'description' => __('To add the alternating text, simply add [alt_text] tag.', 'devcon-msummit2024'),
+ 'default' => $hero_title_setting->default,
+ ]))->add_control($wp_customize);
+
+ // Hero alt texts - List of alternating texts for hero text (eg. Students, Professionals, All)
+ $default_alternating_texts = [
+ 'Students',
+ 'Developers',
+ 'Professionals',
+ 'Designers',
+ 'Teachers',
+ 'All'
+ ];
+
+ $hero_alternating_texts_setting = devcon_msummit2024_add_setting($wp_customize, 'hero_alternating_texts', [
+ 'default' => $default_alternating_texts,
+// 'transport' => 'refresh',
+ 'sanitize_callback' => 'sanitize_text_field',
+ ]);
+
+ (new Kirki\Field\Textarea([
+ 'section' => $hero_section->id,
+ 'settings' => $hero_alternating_texts_setting->id,
+ 'label' => __('Alternating Texts', 'devcon-msummit2024'),
+ 'description' => __('List of alternating texts for hero text (eg. Students, Professionals, All)', 'devcon-msummit2024'),
+ 'default' => implode(", ", $default_alternating_texts),
+ ]))->add_control($wp_customize);
+
+ // Hero content description
+ $hero_content_setting = devcon_msummit2024_add_setting($wp_customize, 'hero_content', [
+ 'default' => 'Lorem ipsum dolor sit amet consectetur. Erat felis cras praesent in proin vitae. Nisl turpis sagittis tortor feugiat diam maecenas fermentum vitae pellentesque. Ultrices in neque nunc arcu cras. Hac morbi fusce amet quisque erat. Ac feugiat.',
+// 'transport' => 'refresh',
+ ]);
+
+ (new Kirki\Field\Textarea([
+ 'section' => $hero_section->id,
+ 'settings' => $hero_content_setting->id,
+ 'label' => __('Hero Content', 'devcon-msummit2024'),
+ 'default' => $hero_content_setting->default,
+ ]))->add_control($wp_customize);
+
+ // Event Location
+ $event_location_setting = devcon_msummit2024_add_setting($wp_customize, 'event_location', [
+ 'default' => '123 Pizzaplex, Freddy Fazbear St.',
+// 'transport' => 'refresh',
+ ]);
+
+ (new Kirki\Field\Text([
+ 'section' => $hero_section->id,
+ 'settings' => $event_location_setting->id,
+ 'label' => __('Event Location', 'devcon-msummit2024'),
+ 'default' => $event_location_setting->default,
+ ]))->add_control($wp_customize);
+
+ // Event Date
+ $event_date_setting = devcon_msummit2024_add_setting($wp_customize, 'event_date', [
+ 'default' => 'June 29-30, 2024',
+// 'transport' => 'refresh',
+ ]);
+
+ (new Kirki\Field\Text([
+ 'section' => $hero_section->id,
+ 'settings' => $event_date_setting->id,
+ 'label' => __('Event Date', 'devcon-msummit2024'),
+ 'default' => $event_date_setting->default,
+ ]))->add_control($wp_customize);
+
+ // Event Time
+ $event_time_setting = devcon_msummit2024_add_setting($wp_customize, 'event_time', [
+ 'default' => '8:00 AM - 5:00 PM',
+// 'transport' => 'refresh',
+ ]);
+
+ (new Kirki\Field\Text([
+ 'section' => $hero_section->id,
+ 'settings' => $event_time_setting->id,
+ 'label' => __('Event Time', 'devcon-msummit2024'),
+ 'default' => $event_time_setting->default,
+ ]))->add_control($wp_customize);
+
+
+ // Call-to-action button text
+ $cta_button_text_setting = devcon_msummit2024_add_setting($wp_customize, 'cta_button_text', [
+ 'default' => 'View Tickets',
+// 'transport' => 'refresh',
+ ]);
+
+ (new Kirki\Field\Text([
+ 'section' => $hero_section->id,
+ 'settings' => $cta_button_text_setting->id,
+ 'label' => __('Call-to-action Button Text', 'devcon-msummit2024'),
+ 'default' => $cta_button_text_setting->default,
+ ]))->add_control($wp_customize);
+
+ // Call-to-action button URL
+ $cta_button_url_setting = devcon_msummit2024_add_setting($wp_customize, 'cta_button_url', [
+ 'default' => '#',
+// 'transport' => 'refresh',
+ 'sanitize_callback' => 'esc_url_raw',
+ ]);
+
+ (new Kirki\Field\URL([
+ 'section' => $hero_section->id,
+ 'settings' => $cta_button_url_setting->id,
+ 'label' => __('Call-to-action Button URL', 'devcon-msummit2024'),
+ 'default' => $cta_button_url_setting->default,
+ ]))->add_control($wp_customize);
+
+ // === Sections ===
+ $sections_section = $wp_customize->add_section('devcon-msummit2024_sections_section', [
+ 'title' => __('Sections', 'devcon-msummit2024'),
+ 'panel' => $custom_landing_page_panel->id,
+ 'priority' => 20,
+ ]);
+
+ $sections = [
+ [
+ 'name' => 'Overview',
+ 'title' => 'Welcome to the\n Mindanao [devcon_logo] Summit',
+ 'description' => "We're excited to have you join us for the Mindanao DEVCON Summit! Get ready for an immersive experience filled with insightful sessions, engaging discussions, and networking opportunities."
+ ],
+ [
+ 'name' => 'Program Agenda',
+ 'title' => 'Program Agenda',
+ 'description' => 'Get to know our lineup of prominent speakers who will be sharing their expertise at the Mindanao DEVCON Summit.'
+ ],
+ [
+ 'name' => 'Featured Speakers',
+ 'title' => 'Featured Speakers',
+ 'description' => 'Get to know our lineup of prominent speakers who will be sharing their expertise at the Mindanao DEVCON Summit.'
+ ],
+ [
+ 'name' => 'Tickets',
+ 'title' => 'Tickets',
+ 'description' => 'Register for the Mindanao DEVCON Summit and secure your spot today!'
+ ],
+ [
+ 'name' => 'Testimonials',
+ 'title' => 'Testimonials',
+ 'description' => 'Get to know our lineup of prominent speakers who will be sharing their expertise at the Mindanao DEVCON Summit.'
+ ],
+ [
+ 'name' => 'Sponsorship Packages',
+ 'title' => 'Sponsor this Event',
+ 'description' => 'Register for the Mindanao DEVCON Summit and secure your spot today!'
+ ],
+ [
+ 'name' => 'FAQs',
+ 'title' => 'Frequently Asked Questions',
+ ],
+ [
+ 'name' => 'Countdown',
+ 'title' => 'Save the Date!',
+ 'description' => 'Tick-tock tech enthusiasts! Get ready for two days packed with innovation, knowledge, and networking.'
+ ],
+ [
+ 'name' => 'Social Media Feed',
+ 'title' => "See what's going on",
+ 'description' => 'Join the conversation on social media using the hashtag #MindanaoDEVCONSummit. Share your thoughts, insights, and photos from the event.'
+ ],
+ [
+ 'name' => 'Sponsors List',
+ 'title' => 'Discover the driving force behind the summit!',
+ 'description' => ''
+ ]
+ ];
+
+ foreach ($sections as $section) {
+ $sectionId = devcon_msummit2024_get_mod_id( 'section_' . $section['name']);
+ $section_headline_setting = devcon_msummit2024_add_setting($wp_customize, $sectionId . '_headline', [
+ 'default' => $section['name'],
+ ]);
+
+ (new Kirki\Pro\Field\Headline([
+ 'section' => $sections_section->id,
+ 'settings' => $section_headline_setting->id,
+ 'label' => $section['name'],
+ 'default' => $section_headline_setting->default,
+ 'description' => 'Section Headline',
+ ]))->add_control($wp_customize);
+
+ $section_title_setting = devcon_msummit2024_add_setting($wp_customize, $sectionId . '_title', [
+ 'default' => $section['title'],
+// 'transport' => 'refresh',
+ ]);
+
+ (new Kirki\Field\Text([
+ 'section' => $sections_section->id,
+ 'settings' => $section_title_setting->id,
+ 'label' => '"'. $section['name'] .'" Title',
+ 'default' => $section_title_setting->default,
+ ]))->add_control($wp_customize);
+
+ $section_description_setting = devcon_msummit2024_add_setting($wp_customize, $sectionId . '_description', [
+ 'default' => $section['description'] ?? "",
+// 'transport' => 'refresh',
+ ]);
+
+ (new Kirki\Field\Textarea([
+ 'section' => $sections_section->id,
+ 'settings' => $section_description_setting->id,
+ 'label' => '"'. $section['name'] .'" Description',
+ 'default' => $section_description_setting->default,
+ ]))->add_control($wp_customize);
+ }
+
+ // === Overview ===
+ $overview_section = $wp_customize->add_section('devcon-msummit2024_overview_section', [
+ 'title' => __('Overview', 'devcon-msummit2024'),
+ 'panel' => $custom_landing_page_panel->id,
+ 'priority' => 20,
+ ]);
+
+ // Overview activities (consists of image, activity name, and description)
+ $overview_activities_setting = devcon_msummit2024_add_setting($wp_customize, 'overview_activities', [
+ 'default' => [
+ [
+ 'image' => 'https://via.placeholder.com/285x280',
+ 'name' => 'Interactive Workshops',
+ 'description' => 'Engage in hands-on workshops led by industry experts. Learn new skills and gain practical knowledge in a collaborative environment.'
+ ],
+ [
+ 'image' => 'https://via.placeholder.com/285x280',
+ 'name' => 'Tech Talks',
+ 'description' => 'Hear from prominent speakers and thought leaders as they share their insights and expertise on the latest trends and innovations in tech.'
+ ],
+ [
+ 'image' => 'https://via.placeholder.com/285x280',
+ 'name' => 'Networking',
+ 'description' => 'Connect with fellow tech enthusiasts, industry professionals, and potential employers. Share ideas, collaborate, and build lasting relationships.'
+ ],
+ [
+ 'image' => 'https://via.placeholder.com/285x280',
+ 'name' => 'Career Fair',
+ 'description' => 'Explore career opportunities and connect with potential employers. Get to know the companies and organizations that are looking to hire tech talent.'
+ ],
+ ],
+ ]);
+
+ (new Kirki\Field\Repeater([
+ 'section' => $overview_section->id,
+ 'settings' => $overview_activities_setting->id,
+ 'default' => $overview_activities_setting->default,
+ 'label' => __('Overview Activities', 'devcon-msummit2024'),
+ 'row_label' => [
+ 'type' => 'field',
+ 'value' => __('Activity', 'devcon-msummit2024'),
+ 'field' => 'name'
+ ],
+ 'fields' => [
+ 'image' => [
+ 'type' => 'image',
+ 'label' => __('Image', 'devcon-msummit2024'),
+ 'default' => 'https://via.placeholder.com/285x280',
+ ],
+ 'name' => [
+ 'type' => 'text',
+ 'label' => __('Name', 'devcon-msummit2024'),
+ 'default' => 'Activity Name',
+ ],
+ 'description' => [
+ 'type' => 'textarea',
+ 'label' => __('Description', 'devcon-msummit2024'),
+ 'default' => 'Activity Description',
+ ],
+ ],
+ ]));
+
+ // === Speakers ===
+ $speakers_section = $wp_customize->add_section('devcon-msummit2024_speakers_section', [
+ 'title' => __('Speakers', 'devcon-msummit2024'),
+ 'panel' => $custom_landing_page_panel->id,
+ 'priority' => 25,
+ ]);
+
+ $speakers_setting = devcon_msummit2024_add_setting($wp_customize, 'speakers', [
+ 'default' => [
+ [
+ 'name' => 'John Doe',
+ 'position' => 'CEO, Company Name',
+ 'photo' => 'https://via.placeholder.com/150x150',
+ 'bio' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
+ ],
+ [
+ 'name' => 'Jane Doe',
+ 'position' => 'CTO, Company Name',
+ 'photo' => 'https://via.placeholder.com/150x150',
+ 'bio' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
+ ],
+ [
+ 'name' => 'John Smith',
+ 'position' => 'Lead Developer, Company Name',
+ 'photo' => 'https://via.placeholder.com/150x150',
+ 'bio' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
+ ],
+ [
+ 'name' => 'Jane Smith',
+ 'position' => 'Lead Designer, Company Name',
+ 'photo' => 'https://via.placeholder.com/150x150',
+ 'bio' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
+ ],
+ ],
+ ]);
+
+ (new Kirki\Field\Repeater([
+ 'section' => $speakers_section->id,
+ 'settings' => $speakers_setting->id,
+ 'default' => $speakers_setting->default,
+ 'label' => __('Speakers', 'devcon-msummit2024'),
+ 'row_label' => [
+ 'type' => 'field',
+ 'value' => __('Speaker', 'devcon-msummit2024'),
+ 'field' => 'name'
+ ],
+ 'fields' => [
+ 'name' => [
+ 'type' => 'text',
+ 'label' => __('Name', 'devcon-msummit2024'),
+ 'default' => 'Speaker Name',
+ ],
+ 'position' => [
+ 'type' => 'text',
+ 'label' => __('Position', 'devcon-msummit2024'),
+ 'default' => 'Speaker Position',
+ ],
+ 'photo' => [
+ 'type' => 'image',
+ 'label' => __('Photo', 'devcon-msummit2024'),
+ 'default' => 'https://via.placeholder.com/150x150',
+ ],
+ 'bio' => [
+ 'type' => 'textarea',
+ 'label' => __('Bio', 'devcon-msummit2024'),
+ 'default' => 'Speaker Bio',
+ ],
+ ],
+ ]));
+
+ // === Testimonials ===
+ $testimonials_section = $wp_customize->add_section('devcon-msummit2024_testimonials_section', [
+ 'title' => __('Testimonials', 'devcon-msummit2024'),
+ 'panel' => $custom_landing_page_panel->id,
+ 'priority' => 25,
+ ]);
+
+ $testimonials_setting = devcon_msummit2024_add_setting($wp_customize, 'testimonials', [
+ 'default' => [
+ [
+ 'quote' => "Attended last year's summit and it was amazing! Learned so much and made valuable connections. Can't wait for this year's event!",
+ 'name' => 'John C. Doe',
+ 'position' => 'CEO',
+ 'company' => 'Company ABC Inc.'
+ ],
+ [
+ 'quote' => "As a first-time attendee, I was blown away by the quality of the sessions and the knowledge of the speakers. Highly recommend the Mindanao DEVCON Summit!",
+ 'name' => 'Jane Smith',
+ 'position' => 'Attendee'
+ ],
+ [
+ 'quote' => "The Mindanao DEVCON Summit exceeded my expectations. The sessions were informative and the networking opportunities were invaluable. Looking forward to attending again! ",
+ 'name' => 'Mark Johnson',
+ 'position' => 'Volunteer'
+ ]
+ ],
+ ]);
+
+ (new Kirki\Field\Repeater([
+ 'section' => $testimonials_section->id,
+ 'settings' => $testimonials_setting->id,
+ 'default' => $testimonials_setting->default,
+ 'label' => __('Testimonials', 'devcon-msummit2024'),
+ 'row_label' => [
+ 'type' => 'field',
+ 'value' => __('Testimonial', 'devcon-msummit2024'),
+ 'field' => 'name'
+ ],
+ 'fields' => [
+ 'quote' => [
+ 'type' => 'textarea',
+ 'label' => __('Quote', 'devcon-msummit2024'),
+ 'default' => 'Testimonial Quote',
+ ],
+ 'name' => [
+ 'type' => 'text',
+ 'label' => __('Name', 'devcon-msummit2024'),
+ 'default' => 'Testimonial Name',
+ ],
+ 'position' => [
+ 'type' => 'text',
+ 'label' => __('Position', 'devcon-msummit2024'),
+ 'default' => 'Testimonial Position',
+ ],
+ 'company' => [
+ 'type' => 'text',
+ 'label' => __('Company', 'devcon-msummit2024'),
+ 'default' => 'Testimonial Company',
+ ],
+ ],
+ ]));
+
+ // === Frequently Asked Questions ===
+ $faq_section = $wp_customize->add_section('devcon-msummit2024_faq_section', [
+ 'title' => __('Frequently Asked Questions', 'devcon-msummit2024'),
+ 'panel' => $custom_landing_page_panel->id,
+ 'priority' => 25,
+ ]);
+
+ $faq_setting = devcon_msummit2024_add_setting($wp_customize, 'faq', [
+ 'default' => [
+ [
+ 'question' => 'What is the Mindanao DEVCON Summit?',
+ 'answer' => 'The Mindanao DEVCON Summit is an annual event that brings together tech enthusiasts, professionals, and industry leaders to share knowledge, insights, and best practices in the field of technology.'
+ ],
+ [
+ 'question' => 'Who can attend the summit?',
+ 'answer' => 'The Mindanao DEVCON Summit is open to anyone who is passionate about technology and innovation. Whether you are a student, professional, or tech enthusiast, you are welcome to join us!'
+ ],
+ [
+ 'question' => 'What can I expect from the summit?',
+ 'answer' => 'The Mindanao DEVCON Summit features a lineup of prominent speakers, engaging sessions, hands-on workshops, and networking opportunities. You can expect to gain valuable insights, learn new skills, and connect with industry professionals.'
+ ],
+ [
+ 'question' => 'How can I register for the summit?',
+ 'answer' => 'You can register for the Mindanao DEVCON Summit by visiting our website and purchasing your tickets online. Early bird rates and group discounts are available, so be sure to secure your spot today!'
+ ],
+ [
+ 'question' => 'How can I become a sponsor or partner?',
+ 'answer' => 'If you are interested in becoming a sponsor or partner for the Mindanao DEVCON Summit, please contact us for more information. We offer a range of sponsorship packages and opportunities for organizations looking to support the event.'
+ ],
+ ],
+ ]);
+
+ (new Kirki\Field\Repeater([
+ 'section' => $faq_section->id,
+ 'settings' => $faq_setting->id,
+ 'default' => $faq_setting->default,
+ 'label' => __('Frequently Asked Questions', 'devcon-msummit2024'),
+ 'row_label' => [
+ 'type' => 'field',
+ 'value' => __('Question', 'devcon-msummit2024'),
+ 'field' => 'question'
+ ],
+ 'fields' => [
+ 'question' => [
+ 'type' => 'text',
+ 'label' => __('Question', 'devcon-msummit2024'),
+ 'default' => 'Question',
+ ],
+ 'answer' => [
+ 'type' => 'textarea',
+ 'label' => __('Answer', 'devcon-msummit2024'),
+ 'default' => 'Answer',
+ ],
+ ],
+ ]));
+
+ // === Sponsors ===
+ $sponsors_section = $wp_customize->add_section('devcon-msummit2024_sponsors_section', [
+ 'title' => __('Sponsors', 'devcon-msummit2024'),
+ 'panel' => $custom_landing_page_panel->id,
+ 'priority' => 30,
+ ]);
+
+ // Sponsorship package (icon image, title, description, and slots left)
+ $sponsorship_packages_setting = devcon_msummit2024_add_setting($wp_customize, 'sponsorship_packages', [
+ 'default' => [
+ [
+ 'icon' => devcon_msummit2024_get_asset_url('sponsorship_packages/exhibitor.png', true),
+ 'title' => 'Exhibitor',
+ 'description' => 'This package includes: logo visibility on event materials, verbal acknowledgment on-site, website recognition, social media presence, a 45-second video loop, and 2 complimentary sponsor passes.',
+ 'slots_left' => 10
+ ],
+ [
+ 'icon' => devcon_msummit2024_get_asset_url('sponsorship_packages/bronze.png', true),
+ 'title' => 'Bronze',
+ 'description' => 'This package includes: 45-minute speaking slot, exhibit space (first-come, first-served), 45-sec video loop, onsite acknowledgment, literature inclusion, logo visibility, social media mentions, press release inclusion, and two complimentary sponsor passes.',
+ 'slots_left' => 10
+ ],
+ [
+ 'icon' => devcon_msummit2024_get_asset_url('sponsorship_packages/silver.png', true),
+ 'title' => 'Silver',
+ 'description' => 'This package includes: panel & 45-min speaking slots, exhibit space, 2-3 min AVP, 45-sec video loop, three standee placements, onsite acknowledgment, literature inclusion, logo visibility, social media mentions, press release, and 2 complimentary sponsor passes.',
+ 'slots_left' => 6
+ ],
+ [
+ 'icon' => devcon_msummit2024_get_asset_url('sponsorship_packages/gold.png', true),
+ 'title' => 'Gold',
+ 'description' => 'This package includes: keynote and panel slots, 45-min speaking slot, exhibit space, AVP, 45-sec video loop, five standee placements, onsite acknowledgment, literature inclusion, logo visibility, social media mentions, press release, attendee list, and three complimentary passes.',
+ 'slots_left' => 0
+ ],
+ [
+ 'icon' => devcon_msummit2024_get_asset_url('sponsorship_packages/platinum.png', true),
+ 'title' => 'Platinum',
+ 'description' => 'This package includes: 1 co-organized event, keynote and panel slots, a 45-min speaking slot, exhibit space, AVP, 45-sec video loop, six standee placements, onsite acknowledgment, literature inclusion, logo visibility, social media mentions, logo on event shirt, press release, attendee list, and six complimentary passes.',
+ 'slots_left' => 2
+ ],
+ [
+ 'icon' => devcon_msummit2024_get_asset_url('sponsorship_packages/copresenter.png', true),
+ 'title' => 'Co-presenter',
+ 'description' => 'This package includes the same benefits as all other sponsors + 1 year exposure on all DEVCON Davao events and 2 co-organized events.',
+ 'slots_left' => 1
+ ]
+ ],
+ ]);
+
+ (new Kirki\Field\Repeater([
+ 'section' => $sponsors_section->id,
+ 'settings' => $sponsorship_packages_setting->id,
+ 'default' => $sponsorship_packages_setting->default,
+ 'label' => __('Sponsorship Packages', 'devcon-msummit2024'),
+ 'row_label' => [
+ 'type' => 'field',
+ 'value' => __('Package', 'devcon-msummit2024'),
+ 'field' => 'title'
+ ],
+ 'fields' => [
+ 'icon' => [
+ 'type' => 'image',
+ 'label' => __('Icon', 'devcon-msummit2024'),
+ 'default' => devcon_msummit2024_get_asset_url('sponsorship_packages/exhibitor.png', true),
+ ],
+ 'title' => [
+ 'type' => 'text',
+ 'label' => __('Title', 'devcon-msummit2024'),
+ 'default' => 'Package Title',
+ ],
+ 'description' => [
+ 'type' => 'textarea',
+ 'label' => __('Description', 'devcon-msummit2024'),
+ 'default' => 'Package Description',
+ ],
+ 'slots_left' => [
+ 'type' => 'number',
+ 'label' => __('Slots Left', 'devcon-msummit2024'),
+ 'default' => 10,
+ ],
+ ],
+ ]));
+
+
+ // Sponsors list
+ $sponsors_setting = devcon_msummit2024_add_setting($wp_customize, 'sponsors', [
+ 'default' => [
+ [
+ 'name' => 'Microsoft',
+ 'logo' => 'https://via.placeholder.com/150x50',
+ 'url' => 'https://www.microsoft.com'
+ ],
+ [
+ 'name' => 'Google',
+ 'logo' => 'https://via.placeholder.com/150x50',
+ 'url' => 'https://www.google.com'
+ ],
+ [
+ 'name' => 'Facebook',
+ 'logo' => 'https://via.placeholder.com/150x50',
+ 'url' => 'https://www.facebook.com'
+ ],
+ [
+ 'name' => 'Amazon',
+ 'logo' => 'https://via.placeholder.com/150x50',
+ 'url' => 'https://www.amazon.com'
+ ],
+ [
+ 'name' => 'Apple',
+ 'logo' => 'https://via.placeholder.com/150x50',
+ 'url' => 'https://www.apple.com'
+ ],
+ ],
+ ]);
+
+ (new Kirki\Field\Repeater([
+ 'section' => $sponsors_section->id,
+ 'settings' => $sponsors_setting->id,
+ 'default' => $sponsors_setting->default,
+ 'label' => __('Sponsors', 'devcon-msummit2024'),
+ 'row_label' => [
+ 'type' => 'field',
+ 'value' => __('Sponsor', 'devcon-msummit2024'),
+ 'field' => 'name'
+ ],
+ 'fields' => [
+ 'name' => [
+ 'type' => 'text',
+ 'label' => __('Name', 'devcon-msummit2024'),
+ 'default' => 'Sponsor Name',
+ ],
+ 'logo' => [
+ 'type' => 'image',
+ 'label' => __('Logo', 'devcon-msummit2024'),
+ 'default' => 'https://via.placeholder.com/150x50',
+ ],
+ 'url' => [
+ 'type' => 'text',
+ 'label' => __('URL', 'devcon-msummit2024'),
+ 'default' => 'https://www.sponsor.com',
+ ],
+ ],
+ ]));
+}
+
+add_action('customize_register', 'devcon_msummit2024_customize_register');
+add_action('after_switch_theme', function () {
+ // load WP_Customize_Manager
+ include ABSPATH . '/wp-includes/class-wp-customize-manager.php';
+
+ do_action('customize_register', new WP_Customize_Manager());
+});
\ No newline at end of file
diff --git a/inc/template-functions.php b/inc/template-functions.php
old mode 100644
new mode 100755
diff --git a/inc/template-tags.php b/inc/template-tags.php
old mode 100644
new mode 100755
diff --git a/index.php b/index.php
old mode 100644
new mode 100755
diff --git a/languages/devcon-msummit2024.pot b/languages/devcon-msummit2024.pot
old mode 100644
new mode 100755
diff --git a/languages/readme.txt b/languages/readme.txt
old mode 100644
new mode 100755
diff --git a/package-lock.json b/package-lock.json
old mode 100644
new mode 100755
diff --git a/package.json b/package.json
old mode 100644
new mode 100755
diff --git a/patterns/footer.php b/patterns/footer.php
old mode 100644
new mode 100755
diff --git a/patterns/header.php b/patterns/header.php
old mode 100644
new mode 100755
diff --git a/phpcs.xml.dist b/phpcs.xml.dist
old mode 100644
new mode 100755
diff --git a/postcss.config.cjs b/postcss.config.cjs
old mode 100644
new mode 100755
diff --git a/readme.txt b/readme.txt
old mode 100644
new mode 100755
diff --git a/resources/assets/bg.webp b/resources/assets/bg.webp
old mode 100644
new mode 100755
diff --git a/resources/assets/devcon_dvo_vert.png b/resources/assets/devcon_dvo_vert.png
old mode 100644
new mode 100755
diff --git a/resources/assets/devcon_logo.png b/resources/assets/devcon_logo.png
old mode 100644
new mode 100755
diff --git a/resources/assets/devcon_logo_2.png b/resources/assets/devcon_logo_2.png
old mode 100644
new mode 100755
diff --git a/resources/assets/dots_left.png b/resources/assets/dots_left.png
old mode 100644
new mode 100755
diff --git a/resources/assets/dots_right.png b/resources/assets/dots_right.png
old mode 100644
new mode 100755
diff --git a/resources/assets/featured_speakers_bg.png b/resources/assets/featured_speakers_bg.png
old mode 100644
new mode 100755
diff --git a/resources/assets/featured_speakers_bg_half.png b/resources/assets/featured_speakers_bg_half.png
old mode 100644
new mode 100755
diff --git a/resources/assets/hero_waves.png b/resources/assets/hero_waves.png
old mode 100644
new mode 100755
diff --git a/resources/assets/hero_waves_half.png b/resources/assets/hero_waves_half.png
old mode 100644
new mode 100755
diff --git a/resources/assets/overview_bg.png b/resources/assets/overview_bg.png
old mode 100644
new mode 100755
diff --git a/resources/assets/overview_bg_half.png b/resources/assets/overview_bg_half.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sample_posts/1.png b/resources/assets/sample_posts/1.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sample_posts/2.png b/resources/assets/sample_posts/2.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sample_posts/3.png b/resources/assets/sample_posts/3.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sample_posts/4.png b/resources/assets/sample_posts/4.png
old mode 100644
new mode 100755
diff --git a/resources/assets/speaker_bg.png b/resources/assets/speaker_bg.png
old mode 100644
new mode 100755
diff --git a/resources/assets/speaker_sample.png b/resources/assets/speaker_sample.png
old mode 100644
new mode 100755
diff --git a/resources/assets/speaker_sample_2.png b/resources/assets/speaker_sample_2.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsors/bluesalmon.png b/resources/assets/sponsors/bluesalmon.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsors/ddc.png b/resources/assets/sponsors/ddc.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsors/dice.png b/resources/assets/sponsors/dice.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsors/dict.png b/resources/assets/sponsors/dict.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsors/ict_davao.png b/resources/assets/sponsors/ict_davao.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsors/ideas.png b/resources/assets/sponsors/ideas.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsors/mugna.png b/resources/assets/sponsors/mugna.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsors/pwa_pilipinas.png b/resources/assets/sponsors/pwa_pilipinas.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsors/sparcs.png b/resources/assets/sponsors/sparcs.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsors/street_webs.png b/resources/assets/sponsors/street_webs.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsors/uxdavao.png b/resources/assets/sponsors/uxdavao.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsorship_bg.png b/resources/assets/sponsorship_bg.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsorship_packages/bronze.png b/resources/assets/sponsorship_packages/bronze.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsorship_packages/copresenter.png b/resources/assets/sponsorship_packages/copresenter.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsorship_packages/exhibitor.png b/resources/assets/sponsorship_packages/exhibitor.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsorship_packages/gold.png b/resources/assets/sponsorship_packages/gold.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsorship_packages/platinum.png b/resources/assets/sponsorship_packages/platinum.png
old mode 100644
new mode 100755
diff --git a/resources/assets/sponsorship_packages/silver.png b/resources/assets/sponsorship_packages/silver.png
old mode 100644
new mode 100755
diff --git a/resources/assets/summit_logo.png b/resources/assets/summit_logo.png
old mode 100644
new mode 100755
diff --git a/resources/assets/testimonials_bg.png b/resources/assets/testimonials_bg.png
old mode 100644
new mode 100755
diff --git a/resources/assets/tickets_bg.png b/resources/assets/tickets_bg.png
old mode 100644
new mode 100755
diff --git a/resources/assets/tickets_bg_half.png b/resources/assets/tickets_bg_half.png
old mode 100644
new mode 100755
diff --git a/resources/assets/x-icon.png b/resources/assets/x-icon.png
old mode 100644
new mode 100755
diff --git a/resources/css/app.css b/resources/css/app.css
old mode 100644
new mode 100755
index b682d44..84fa4df
--- a/resources/css/app.css
+++ b/resources/css/app.css
@@ -573,7 +573,7 @@ body {
}
.section-heading {
- @apply flex flex-col items-center text-center;
+ @apply relative flex flex-col items-center text-center;
}
.section-heading h2 {
diff --git a/resources/js/customizer.js b/resources/js/customizer.js
old mode 100644
new mode 100755
diff --git a/resources/js/main.d.ts b/resources/js/main.d.ts
old mode 100644
new mode 100755
diff --git a/resources/js/main.ts b/resources/js/main.ts
old mode 100644
new mode 100755
diff --git a/resources/js/modules/accordion.ts b/resources/js/modules/accordion.ts
old mode 100644
new mode 100755
diff --git a/resources/js/modules/alternating_text.ts b/resources/js/modules/alternating_text.ts
old mode 100644
new mode 100755
index cb2cbd6..c064754
--- a/resources/js/modules/alternating_text.ts
+++ b/resources/js/modules/alternating_text.ts
@@ -1,13 +1,10 @@
import TypeIt from 'typeit';
-const texts = [
- 'Students',
- 'Developers',
- 'Professionals',
- 'Designers',
- 'Teachers',
- 'All'
-];
+declare const window: {
+ alternatingTexts: string[];
+} & Window;
+
+const texts = window.alternatingTexts ?? [];
jQuery(function() {
let typer = new TypeIt("#alternating-text", {
@@ -19,7 +16,7 @@ jQuery(function() {
typer = typer.delete(texts[i - 1].length).pause(1000);
}
- typer = typer.type(texts[i]).pause(texts[i] === 'All' ? 5000 : 3000);
+ typer = typer.type(texts[i]).pause(i === texts.length - 1 ? 5000 : 3000);
}
typer.go();
diff --git a/resources/js/modules/countdown.ts b/resources/js/modules/countdown.ts
old mode 100644
new mode 100755
diff --git a/resources/js/modules/marquee.ts b/resources/js/modules/marquee.ts
old mode 100644
new mode 100755
diff --git a/resources/js/navigation.js b/resources/js/navigation.js
old mode 100644
new mode 100755
diff --git a/screenshot.png b/screenshot.png
old mode 100644
new mode 100755
diff --git a/search.php b/search.php
old mode 100644
new mode 100755
diff --git a/single.php b/single.php
old mode 100644
new mode 100755
diff --git a/style.css b/style.css
old mode 100644
new mode 100755
diff --git a/tailwind.config.cjs b/tailwind.config.cjs
old mode 100644
new mode 100755
diff --git a/tsconfig.json b/tsconfig.json
old mode 100644
new mode 100755
diff --git a/vite.config.ts b/vite.config.ts
old mode 100644
new mode 100755