diff --git a/admin/about/page-github.php b/admin/about/page-github.php index 991566c..d66ef92 100644 --- a/admin/about/page-github.php +++ b/admin/about/page-github.php @@ -1,6 +1,6 @@

- ', '' ); ?> + ', '' ); ?>

diff --git a/admin/about/page-page-builder.php b/admin/about/page-page-builder.php index 6680ba0..1244c69 100644 --- a/admin/about/page-page-builder.php +++ b/admin/about/page-page-builder.php @@ -1,5 +1,5 @@

- ', '' ); ?> + ', '' ); ?>

diff --git a/admin/about/page-support.php b/admin/about/page-support.php index 4898d60..b2276b3 100644 --- a/admin/about/page-support.php +++ b/admin/about/page-support.php @@ -1,4 +1,4 @@

- ', '' ); ?> + ', '' ); ?>

diff --git a/comments.php b/comments.php index 3429eff..1cfb622 100644 --- a/comments.php +++ b/comments.php @@ -43,7 +43,7 @@ ); } ?> - + esc_html__( 'https://purothemes.com/themes/polestar/', 'polestar' ), - 'polestarLabel' => esc_html__( 'Buy Premium Version', 'polestar' ), - ) - ); -} -add_action( 'customize_controls_enqueue_scripts', 'polestar_upsell_notice' ); -endif; - /** * Add our SiteOrigin Premium affiliate ID. */ diff --git a/inc/layouts/one-pager.jpg b/inc/layouts/one-pager.jpg new file mode 100644 index 0000000..6faf458 Binary files /dev/null and b/inc/layouts/one-pager.jpg differ diff --git a/inc/layouts/one-pager.json b/inc/layouts/one-pager.json new file mode 100644 index 0000000..103c381 --- /dev/null +++ b/inc/layouts/one-pager.json @@ -0,0 +1 @@ +{"widgets":[{"frames":[{"content":"

Business Consulting
with limitless potential

\n

From resource planning and conflict management to strategic planning and market research,
our experts offer the best advice.

\n

[buttons]

\n","content_selected_editor":"tinymce","buttons":[{"button":{"text":"LET'S TALK","url":"#","button_icon":{"icon_selected":"","icon_color":false,"icon":0,"icon_placement":"left","so_field_container_state":"closed"},"design":{"width":false,"width_unit":"px","theme":"flat","button_color":"#4d8ffb","text_color":false,"hover":true,"font":"default","font_size":"1.15","rounding":"0","padding":"1","so_field_container_state":"open"},"attributes":{"id":"","classes":"","title":"","onclick":"","rel":"","so_field_container_state":"closed"},"new_window":false}}],"background":{"image":0,"image_fallback":"https://demo.purothemes.com/polestar/wp-content/uploads/sites/4/2018/06/business-consultant.jpg","size":"full","image_type":"cover","opacity":60,"color":"#222222","url":"","so_field_container_state":"open","new_window":false,"videos":[]}}],"controls":{"speed":800,"timeout":8000,"nav_color_hex":"#FFFFFF","nav_style":"thin","nav_size":25,"swipe":true,"so_field_container_state":"closed","nav_always_show_mobile":false,"background_video_mobile":false},"design":{"height":false,"height_unit":"px","height_responsive":false,"height_responsive_unit":"px","padding":"300px","padding_unit":"px","extra_top_padding":"0px","extra_top_padding_unit":"px","padding_sides":"20px","padding_sides_unit":"px","width":"1280px","width_unit":"px","heading_font":"","heading_color":"#FFFFFF","heading_size":"5em","heading_size_unit":"em","fittext":true,"fittext_compressor":0,"heading_shadow":0,"text_color":"#ffffff","text_size":"1.5em","text_size_unit":"em","text_font":"","text_shadow":0,"link_color":false,"link_color_hover":false,"so_field_container_state":"closed"},"_sow_form_id":"5870ca6e25a29","_sow_form_timestamp":"1569684799080","so_sidebar_emulator_id":"sow-hero-33910000","option_name":"widget_sow-hero","panels_info":{"class":"SiteOrigin_Widget_Hero_Widget","raw":false,"grid":0,"cell":0,"id":0,"widget_id":"d69ac93a-684d-4569-92f7-3c16877746d3","style":{"background_image_attachment":false,"background_display":"tile"}}},{"headline":{"text":"WHAT WE DO...","destination_url":"","tag":"h1","color":"#292929","hover_color":false,"font":"default","font_size":"4em","font_size_unit":"em","align":"left","line_height":false,"line_height_unit":"px","margin":"0px","margin_unit":"px","so_field_container_state":"closed","new_window":false},"sub_headline":{"text":"We offer a variety of services to our clients including","destination_url":"","tag":"p","color":"#404040","hover_color":false,"font":"default","font_size":"1.4em","font_size_unit":"em","align":"left","line_height":false,"line_height_unit":"px","margin":"0%","margin_unit":"%","so_field_container_state":"closed","new_window":false},"divider":{"style":"none","color":"#404040","thickness":2,"align":"center","width":"10%","width_unit":"%","margin":false,"margin_unit":"px","so_field_container_state":"closed"},"order":["headline","sub_headline","divider"],"_sow_form_id":"5870da3c0b983","fittext":false,"fittext_compressor":0,"so_sidebar_emulator_id":"sow-headline-33910001","option_name":"widget_sow-headline","panels_info":{"class":"SiteOrigin_Widget_Headline_Widget","raw":false,"grid":1,"cell":0,"id":1,"widget_id":"5b0c0aea-bc6b-4533-8cec-c34d54cf5a99","style":{"background_display":"tile"}}},{"features":[{"container_color":"#404040","container_position":"top","icon":"elegantline-linegraph","icon_title":"MARKET RESEARCH","icon_color":"#404040","icon_image":0,"icon_image_size":"full","title":"MARKET RESEARCH","text":"

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cur tantas regiones barbarorum pedibus obiit, tot maria transmisit.

\n","text_selected_editor":"tinymce","more_text":"","more_url":""},{"container_color":"#404040","container_position":"top","icon":"elegantline-strategy","icon_title":"STRATEGIC PLANNING","icon_color":"#404040","icon_image":0,"icon_image_size":"full","title":"STRATEGIC PLANNING","text":"

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cur tantas regiones barbarorum pedibus obiit, tot maria transmisit.

\n","text_selected_editor":"tinymce","more_text":"","more_url":""},{"container_color":"#404040","container_position":"top","icon":"elegantline-profile-male","icon_title":"RESOURCES PLANNING","icon_color":"#404040","icon_image":0,"icon_image_size":"full","title":"RESOURCES PLANNING","text":"

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cur tantas regiones barbarorum pedibus obiit, tot maria transmisit.

\n","text_selected_editor":"tinymce","more_text":"","more_url":""},{"container_color":"#404040","container_position":"top","icon":"elegantline-sad","icon_title":"CONFLICT MANAGEMENT","icon_color":"#404040","icon_image":0,"icon_image_size":"full","title":"CONFLICT MANAGEMENT","text":"

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cur tantas regiones barbarorum pedibus obiit, tot maria transmisit.

\n","text_selected_editor":"tinymce","more_text":"","more_url":""},{"container_color":"#404040","container_position":"top","icon":"elegantline-attachment","icon_title":"LEADERSHIP TRAINING","icon_color":"#404040","icon_image":0,"icon_image_size":"full","title":"LEADERSHIP TRAINING","text":"

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cur tantas regiones barbarorum pedibus obiit, tot maria transmisit.

\n","text_selected_editor":"tinymce","more_text":"","more_url":""},{"container_color":"#404040","container_position":"top","icon":"elegantline-lightbulb","icon_title":"EXIT PLANNING","icon_color":"#404040","icon_image":0,"icon_image_size":"full","title":"EXIT PLANNING","text":"

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cur tantas regiones barbarorum pedibus obiit, tot maria transmisit.

\n","text_selected_editor":"tinymce","more_text":"","more_url":""}],"fonts":{"title_options":{"font":"default","size":"1.4em","size_unit":"em","color":false,"so_field_container_state":"closed"},"text_options":{"font":"default","size":false,"size_unit":"px","color":false,"so_field_container_state":"closed"},"more_text_options":{"font":"default","size":false,"size_unit":"px","color":false,"so_field_container_state":"closed"},"so_field_container_state":"open"},"container_shape":"","container_size":"100px","container_size_unit":"px","icon_size":"65px","icon_size_unit":"px","per_row":3,"responsive":true,"_sow_form_id":"59075fbed5e25","title_link":false,"icon_link":false,"new_window":false,"icon_size_custom":false,"so_sidebar_emulator_id":"sow-features-33910002","option_name":"widget_sow-features","panels_info":{"class":"SiteOrigin_Widget_Features_Widget","raw":false,"grid":1,"cell":0,"id":2,"widget_id":"51c81ef3-f78d-475d-9acd-8eeb80b2394d","style":{"padding":"3% 0% 0% 0%","background_display":"tile"}}},{"headline":{"text":"2,785","destination_url":"","tag":"h1","color":"#ffffff","hover_color":false,"font":"default","font_size":"4em","font_size_unit":"em","align":"center","line_height":false,"line_height_unit":"px","margin":"0px","margin_unit":"px","so_field_container_state":"closed","new_window":false},"sub_headline":{"text":"Leaders Trained","destination_url":"","tag":"p","color":"#ffffff","hover_color":false,"font":"default","font_size":"1.4em","font_size_unit":"em","align":"center","line_height":false,"line_height_unit":"px","margin":"0%","margin_unit":"%","so_field_container_state":"closed","new_window":false},"divider":{"style":"none","color":"#292929","thickness":2,"align":"center","width":"10%","width_unit":"%","margin":false,"margin_unit":"px","so_field_container_state":"closed"},"order":["headline","sub_headline","divider"],"_sow_form_id":"590765510d485","fittext":false,"fittext_compressor":0,"so_sidebar_emulator_id":"sow-headline-33910003","option_name":"widget_sow-headline","panels_info":{"class":"SiteOrigin_Widget_Headline_Widget","raw":false,"grid":2,"cell":0,"id":3,"widget_id":"5b0c0aea-bc6b-4533-8cec-c34d54cf5a99","style":{"background_display":"tile"}}},{"headline":{"text":"1,378","destination_url":"","tag":"h1","color":"#ffffff","hover_color":false,"font":"default","font_size":"4em","font_size_unit":"em","align":"center","line_height":false,"line_height_unit":"px","margin":"0px","margin_unit":"px","so_field_container_state":"closed","new_window":false},"sub_headline":{"text":"Satisfied Clients","destination_url":"","tag":"p","color":"#ffffff","hover_color":false,"font":"default","font_size":"1.4em","font_size_unit":"em","align":"center","line_height":false,"line_height_unit":"px","margin":"0%","margin_unit":"%","so_field_container_state":"closed","new_window":false},"divider":{"style":"none","color":"#292929","thickness":2,"align":"center","width":"10%","width_unit":"%","margin":false,"margin_unit":"px","so_field_container_state":"closed"},"order":["headline","sub_headline","divider"],"_sow_form_id":"590765d9bb8a4","fittext":false,"fittext_compressor":0,"so_sidebar_emulator_id":"sow-headline-33910004","option_name":"widget_sow-headline","panels_info":{"class":"SiteOrigin_Widget_Headline_Widget","raw":false,"grid":2,"cell":1,"id":4,"widget_id":"5b0c0aea-bc6b-4533-8cec-c34d54cf5a99","style":{"background_display":"tile"}}},{"headline":{"text":"21","destination_url":"","tag":"h1","color":"#ffffff","hover_color":false,"font":"default","font_size":"4em","font_size_unit":"em","align":"center","line_height":false,"line_height_unit":"px","margin":"0px","margin_unit":"px","so_field_container_state":"closed","new_window":false},"sub_headline":{"text":"Awards Won","destination_url":"","tag":"p","color":"#ffffff","hover_color":false,"font":"default","font_size":"1.4em","font_size_unit":"em","align":"center","line_height":false,"line_height_unit":"px","margin":"0%","margin_unit":"%","so_field_container_state":"closed","new_window":false},"divider":{"style":"none","color":"#292929","thickness":2,"align":"center","width":"10%","width_unit":"%","margin":false,"margin_unit":"px","so_field_container_state":"closed"},"order":["headline","sub_headline","divider"],"_sow_form_id":"59076601c275e","fittext":false,"fittext_compressor":0,"so_sidebar_emulator_id":"sow-headline-33910005","option_name":"widget_sow-headline","panels_info":{"class":"SiteOrigin_Widget_Headline_Widget","raw":false,"grid":2,"cell":2,"id":5,"widget_id":"5b0c0aea-bc6b-4533-8cec-c34d54cf5a99","style":{"background_display":"tile"}}},{"headline":{"text":"15","destination_url":"","tag":"h1","color":"#ffffff","hover_color":false,"font":"default","font_size":"4em","font_size_unit":"em","align":"center","line_height":false,"line_height_unit":"px","margin":"0px","margin_unit":"px","so_field_container_state":"closed","new_window":false},"sub_headline":{"text":"Consultants","destination_url":"","tag":"p","color":"#ffffff","hover_color":false,"font":"default","font_size":"1.4em","font_size_unit":"em","align":"center","line_height":false,"line_height_unit":"px","margin":"0%","margin_unit":"%","so_field_container_state":"closed","new_window":false},"divider":{"style":"none","color":"#292929","thickness":2,"align":"center","width":"10%","width_unit":"%","margin":false,"margin_unit":"px","so_field_container_state":"closed"},"order":["headline","sub_headline","divider"],"_sow_form_id":"59076617231f7","fittext":false,"fittext_compressor":0,"so_sidebar_emulator_id":"sow-headline-33910006","option_name":"widget_sow-headline","panels_info":{"class":"SiteOrigin_Widget_Headline_Widget","raw":false,"grid":2,"cell":3,"id":6,"widget_id":"5b0c0aea-bc6b-4533-8cec-c34d54cf5a99","style":{"background_display":"tile"}}},{"headline":{"text":"WHAT THEY SAY...","destination_url":"","tag":"h1","color":"#404040","hover_color":false,"font":"default","font_size":"4em","font_size_unit":"em","align":"left","line_height":false,"line_height_unit":"px","margin":"0px","margin_unit":"px","so_field_container_state":"closed","new_window":false},"sub_headline":{"text":"What are our clients are saying about us?","destination_url":"","tag":"p","color":"#404040","hover_color":false,"font":"default","font_size":"1.4em","font_size_unit":"em","align":"left","line_height":false,"line_height_unit":"px","margin":"0%","margin_unit":"%","so_field_container_state":"open","new_window":false},"divider":{"style":"none","color":"#292929","thickness":2,"align":"center","width":"10%","width_unit":"%","margin":false,"margin_unit":"px","so_field_container_state":"closed"},"order":["headline","sub_headline","divider"],"_sow_form_id":"5870f4e9c49fa","fittext":false,"fittext_compressor":0,"so_sidebar_emulator_id":"sow-headline-33910007","option_name":"widget_sow-headline","panels_info":{"class":"SiteOrigin_Widget_Headline_Widget","raw":false,"grid":3,"cell":0,"id":7,"widget_id":"5b0c0aea-bc6b-4533-8cec-c34d54cf5a99","style":{"background_display":"tile"}}},{"title":"","testimonials":[{"name":"JAMES SMITH","location":"","image":376,"text":"

Et suas dissentiet accommodare mea, utamur disputando id nec. Ne diam dolore posidonium est, pri te errem accusamus appellantur. Dolore ignota integre mel cu, facer melius euismod no eam.

\n","text_selected_editor":"tinymce","url":"","link_name":false,"link_image":false,"new_window":false},{"name":"JANE ADAMS","location":"","image":377,"text":"

Et suas dissentiet accommodare mea, utamur disputando id nec. Ne diam dolore posidonium est, pri te errem accusamus appellantur. Dolore ignota integre mel cu, facer melius euismod no eam.

\n","text_selected_editor":"tinymce","url":"","link_name":false,"link_image":false,"new_window":false},{"name":"MICHAEL CLAY","location":"","image":378,"text":"

Et suas dissentiet accommodare mea, utamur disputando id nec. Ne diam dolore posidonium est, pri te errem accusamus appellantur. Dolore ignota integre mel cu, facer melius euismod no eam.

\n","text_selected_editor":"tinymce","url":"","link_name":false,"link_image":false,"new_window":false}],"settings":{"per_line":2,"responsive":{"tablet":{"per_line":2,"image_size":50,"width":800,"so_field_container_state":"open"},"mobile":{"per_line":1,"image_size":50,"width":480,"so_field_container_state":"open"},"so_field_container_state":"closed"},"so_field_container_state":"open"},"design":{"image":{"image_shape":"round","image_size":60,"so_field_container_state":"closed"},"colors":{"testimonial_background":false,"text_background":"#f0f0f0","text_color":"#444444","so_field_container_state":"closed"},"padding":10,"border_radius":4,"user_position":"left","layout":"side","so_field_container_state":"open"},"_sow_form_id":"590771308c89f","_sow_form_timestamp":"1529072208635","so_sidebar_emulator_id":"sow-testimonials-33910008","option_name":"widget_sow-testimonials","panels_info":{"class":"SiteOrigin_Widgets_Testimonials_Widget","raw":false,"grid":3,"cell":0,"id":8,"widget_id":"7578f862-5078-4c9d-981d-701f9c0f26fd","style":{"padding":"3% 0% 0% 0%","background_image_attachment":false,"background_display":"tile"}}},{"headline":{"text":"NEW FROM THE BLOG...","destination_url":"","tag":"h1","color":"#404040","hover_color":false,"font":"default","font_size":"4em","font_size_unit":"em","align":"left","line_height":false,"line_height_unit":"px","margin":"0px","margin_unit":"px","so_field_container_state":"closed","new_window":false},"sub_headline":{"text":"Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris","destination_url":"","tag":"p","color":"#404040","hover_color":false,"font":"default","font_size":"1.4em","font_size_unit":"em","align":"left","line_height":false,"line_height_unit":"px","margin":"0%","margin_unit":"%","so_field_container_state":"closed","new_window":false},"divider":{"style":"none","color":"#292929","thickness":2,"align":"center","width":"10%","width_unit":"%","margin":false,"margin_unit":"px","so_field_container_state":"closed"},"order":["headline","sub_headline","divider"],"_sow_form_id":"5870fbbb56bf4","fittext":false,"fittext_compressor":0,"so_sidebar_emulator_id":"sow-headline-33910009","option_name":"widget_sow-headline","panels_info":{"class":"SiteOrigin_Widget_Headline_Widget","raw":false,"grid":4,"cell":0,"id":9,"widget_id":"5b0c0aea-bc6b-4533-8cec-c34d54cf5a99","style":{"background_display":"tile"}}},{"title":"","image_size":"sow-carousel-default","posts":"","_sow_form_id":"590776675c84d","default_thumbnail":0,"so_sidebar_emulator_id":"sow-post-carousel-33910010","option_name":"widget_sow-post-carousel","panels_info":{"class":"SiteOrigin_Widget_PostCarousel_Widget","raw":false,"grid":4,"cell":0,"id":10,"widget_id":"823abc0c-4211-4a40-9736-9d1195029b9b","style":{"padding":"3% 0% 0% 0%","background_display":"tile"}}},{"headline":{"text":"Optimizing every area of your business!","destination_url":"","tag":"h1","color":"#ffffff","hover_color":false,"font":"Open Sans:600","font_size":"5em","font_size_unit":"em","align":"center","line_height":false,"line_height_unit":"px","margin":"0px","margin_unit":"px","so_field_container_state":"closed","new_window":false},"sub_headline":{"text":"From market research, design and prototyping to production and delivery, we cover it all.","destination_url":"","tag":"h3","color":"#ffffff","hover_color":false,"font":"Open Sans:300","font_size":"1.5em","font_size_unit":"em","align":"center","line_height":false,"line_height_unit":"px","margin":false,"margin_unit":"%","so_field_container_state":"closed","new_window":false},"divider":{"style":"none","color":"#292929","thickness":2,"align":"center","width":"10%","width_unit":"%","margin":false,"margin_unit":"px","so_field_container_state":"closed"},"order":["headline","sub_headline","divider"],"fittext_compressor":0,"_sow_form_id":"5873e408597e9","_sow_form_timestamp":"","fittext":false,"so_sidebar_emulator_id":"sow-headline-33910011","option_name":"widget_sow-headline","panels_info":{"class":"SiteOrigin_Widget_Headline_Widget","raw":false,"grid":5,"cell":0,"id":11,"widget_id":"5b0c0aea-bc6b-4533-8cec-c34d54cf5a99","style":{"background_image_attachment":false,"background_display":"tile"}}},{"headline":{"text":"GET IN TOUCH...","destination_url":"","tag":"h1","color":"#292929","hover_color":false,"font":"default","font_size":"4em","font_size_unit":"em","align":"left","line_height":false,"line_height_unit":"px","margin":"0px","margin_unit":"px","so_field_container_state":"open","new_window":false},"sub_headline":{"text":"To arrange a consultation or workshop, send us a message. ","destination_url":"","tag":"p","color":"#292929","hover_color":false,"font":"default","font_size":"1.4em","font_size_unit":"em","align":"left","line_height":false,"line_height_unit":"px","margin":"0%","margin_unit":"%","so_field_container_state":"closed","new_window":false},"divider":{"style":"none","color":"#292929","thickness":2,"align":"center","width":"10%","width_unit":"%","margin":false,"margin_unit":"px","so_field_container_state":"closed"},"order":["headline","sub_headline","divider"],"_sow_form_id":"5873e6be851cc","fittext":false,"fittext_compressor":0,"so_sidebar_emulator_id":"sow-headline-33910012","option_name":"widget_sow-headline","panels_info":{"class":"SiteOrigin_Widget_Headline_Widget","raw":false,"grid":6,"cell":0,"id":12,"widget_id":"5b0c0aea-bc6b-4533-8cec-c34d54cf5a99","style":{"background_display":"tile"}}},{"title":"Contact Us","settings":{"to":"example@consultant.com","from":"support@siteorigin.com","default_subject":"","subject_prefix":"","success_message":"

Thanks for contacting us. We'll get back to you shortly.

\n","success_message_selected_editor":"tinymce","submit_text":"Submit","submit_id":"","onclick":"","required_field_indicator_message":"","so_field_container_state":"closed","required_field_indicator":false,"log_ip_address":false},"fields":[{"type":"name","label":"Your Name","description":"","required":{"required":true,"missing_message":"Please enter your name","so_field_container_state":"open"},"options":[]},{"type":"email","label":"Your Email","description":"","required":{"required":true,"missing_message":"Please enter a valid email address","so_field_container_state":"open"},"options":[]},{"type":"subject","label":"Subject","description":"","required":{"required":true,"missing_message":"Please enter a subject","so_field_container_state":"open"},"options":[]},{"type":"textarea","label":"Message","description":"","required":{"required":true,"missing_message":"Please write something","so_field_container_state":"open"},"options":[]}],"spam":{"recaptcha":{"site_key":"","secret_key":"","theme":"light","type":"image","size":"normal","so_field_container_state":"open","use_captcha":false},"akismet":{"use_akismet":true,"spam_action":"error","so_field_container_state":"open"},"so_field_container_state":"closed"},"design":{"container":{"background":false,"padding":"0px","padding_unit":"px","border_color":false,"border_width":"0px","border_width_unit":"px","border_style":"solid","so_field_container_state":"closed"},"labels":{"font":"Open Sans:300","size":false,"size_unit":"px","color":false,"position":"above","width":false,"width_unit":"px","align":"left","so_field_container_state":"closed"},"fields":{"font":"default","font_size":false,"font_size_unit":"px","color":false,"margin":false,"margin_unit":"px","padding":false,"padding_unit":"px","height":false,"height_unit":"px","background":false,"border_color":false,"border_width":false,"border_width_unit":"px","border_style":"solid","border_radius":0,"so_field_container_state":"closed"},"descriptions":{"size":"0.9em","size_unit":"em","color":"#999999","style":"italic","so_field_container_state":"closed"},"errors":{"background":"#fce4e5","border_color":"#ec666a","text_color":"#ec666a","padding":"5px","padding_unit":"px","margin":"10px","margin_unit":"px","so_field_container_state":"closed"},"submit":{"styled":true,"background_color":"#4d8ffb","background_gradient":0,"border_color":false,"border_style":"solid","border_width":"0px","border_width_unit":"px","border_radius":0,"text_color":"#ffffff","font_size":"1.15em","font_size_unit":"em","weight":"500","padding":"15px","padding_unit":"px","width":false,"width_unit":"px","align":"left","inset_highlight":0,"so_field_container_state":"open"},"focus":{"style":"solid","color":false,"width":"1px","width_unit":"px","so_field_container_state":"closed"},"so_field_container_state":"open"},"_sow_form_id":"5873e77c1f309","_sow_form_timestamp":"1529072373683","display_title":false,"so_sidebar_emulator_id":"sow-contact-form-33910013","option_name":"widget_sow-contact-form","panels_info":{"class":"SiteOrigin_Widgets_ContactForm_Widget","raw":false,"grid":6,"cell":0,"id":13,"widget_id":"10fcbae1-079b-4382-8880-00d5ed3d330a","style":{"padding":"5% 0% 0% 0%","background_image_attachment":false,"background_display":"tile"}}}],"grids":[{"cells":1,"style":{"background_image_attachment":false,"background_display":"tile","lsow_dark_bg":"","bottom_margin":"0px","row_stretch":"full-stretched","cell_alignment":"flex-start"},"color_label":2,"label":"Main Hero"},{"cells":1,"style":{"id":"services","padding":"10% 0% 10% 0%","mobile_padding":"45px 0px 45px 0px","background":"#ffffff","background_image_attachment":false,"background_display":"tile","lsow_dark_bg":"","bottom_margin":"0px","row_stretch":"full","cell_alignment":"flex-start"},"color_label":3,"label":"What We Do"},{"cells":4,"style":{"id":"statistics","padding":"10% 0% 10% 0%","mobile_padding":"45px 0px 45px 0px","background":"#171717","background_image_attachment":false,"background_display":"tile","border_color":"#171717","lsow_dark_bg":"","bottom_margin":"0px","row_stretch":"full","cell_alignment":"center"},"color_label":4,"label":"Stats"},{"cells":1,"style":{"id":"testimonials","padding":"10% 0% 10% 0%","mobile_padding":"45px 0px 45px 0px","background":"#f9f9f9","background_image_attachment":false,"background_display":"tile","border_color":"#f9f9f9","lsow_dark_bg":"","bottom_margin":"0px","row_stretch":"full","cell_alignment":"flex-start"},"color_label":5,"label":"What They Say"},{"cells":1,"style":{"id":"blog","padding":"10% 0% 10% 0%","mobile_padding":"45px 0px 45px 0px","background":"#ffffff","background_image_attachment":false,"background_display":"tile","lsow_dark_bg":"","bottom_margin":"0px","row_stretch":"full","cell_alignment":"flex-start"},"color_label":1,"label":"From The Blog"},{"cells":1,"style":{"id":"parallax","padding":"20% 0% 20% 0%","background_image_attachment":false,"background_image_attachment_fallback":"https://demo.purothemes.com/polestar/wp-content/uploads/sites/4/2018/06/optimizing.jpg","background_display":"parallax","lsow_dark_bg":"","bottom_margin":"0px","row_stretch":"full","cell_alignment":"center"},"color_label":2,"label":"Headline with Parallax"},{"cells":1,"style":{"id":"contact","padding":"10% 0% 10% 0%","mobile_padding":"45px 0px 45px 0px","background":"#ffffff","background_image_attachment":false,"background_display":"tile","lsow_dark_bg":"","row_stretch":"full","cell_alignment":"flex-start"},"color_label":3,"label":"Get In Touch"}],"grid_cells":[{"grid":0,"index":0,"weight":1,"style":[]},{"grid":1,"index":0,"weight":1,"style":[]},{"grid":2,"index":0,"weight":0.25,"style":[]},{"grid":2,"index":1,"weight":0.25,"style":[]},{"grid":2,"index":2,"weight":0.25,"style":[]},{"grid":2,"index":3,"weight":0.25,"style":[]},{"grid":3,"index":0,"weight":1,"style":[]},{"grid":4,"index":0,"weight":1,"style":[]},{"grid":5,"index":0,"weight":1,"style":[]},{"grid":6,"index":0,"weight":1,"style":[]}],"name":"One Pager"} \ No newline at end of file diff --git a/js/jquery.theme.js b/js/jquery.theme.js index 1006296..ea2d745 100644 --- a/js/jquery.theme.js +++ b/js/jquery.theme.js @@ -1,7 +1,7 @@ /** * File jquery.theme.js. * - * Handles the primary JavaScript functions for the theme. + * Handles the primary JavaScript functions for the theme - (c) Puro, freely distributable under the terms of the GPL 2.0 license. */ /* globals jQuery, polestar */ @@ -32,9 +32,9 @@ jQuery( function( $ ) { } ); } ); - // Setup FitVids for entry content, Page Builder by SiteOrigin and WooCommerce. Ignore Tableau. + // Setup FitVids for entry content, video post formats, SiteOrigin panels and WooCommerce pages. Ignore Tableau. if ( typeof $.fn.fitVids !== 'undefined' ) { - $( '.entry-content, .entry-content .panel, .woocommerce #main' ).fitVids( { ignore: '.tableauViz' } ); + $( '.entry-content, .entry-content .panel, .entry-video, .woocommerce #main' ).fitVids( { ignore: '.tableauViz' } ); } // FlexSlider. @@ -126,7 +126,7 @@ jQuery( function( $ ) { } ); // Main menu current menu item indication. - jQuery( document ).ready( function( $ ) { + $( document ).ready( function( $ ) { if ( window.location.hash ) { return; } else { @@ -172,19 +172,22 @@ jQuery( function( $ ) { } // Smooth scroll from internal page anchors. - var adminBarHeight = $( '#wpadminbar' ).outerHeight(), - isAdminBar = $( 'body' ).hasClass( 'admin-bar' ), - isStickyHeader = $( 'header' ).hasClass( 'sticky' ), - headerHeight; - - // Header height. 2px to account for header shadow. - if ( isStickyHeader && isAdminBar && jQuery( window ).width() > 600 ) { // From 600px the admin bar isn't sticky so we shouldn't take its height into account. - headerHeight = adminBarHeight + $( 'header' ).outerHeight() - 2; - } else if ( isStickyHeader ) { - headerHeight = $( 'header' ).outerHeight() - 2; - } else { - headerHeight = 0; - } + headerHeight = function() { + var adminBarHeight = $( '#wpadminbar' ).outerHeight(), + isAdminBar = $( 'body' ).hasClass( 'admin-bar' ), + isStickyHeader = $( 'header' ).hasClass( 'sticky' ), + headerHeight; + + // Header height. 1px to account for header shadow. + if ( isStickyHeader && isAdminBar && $( window ).width() > 600 ) { // From 600px the admin bar isn't sticky so we shouldn't take its height into account. + headerHeight = adminBarHeight + $( 'header' ).outerHeight() - 1; + } else if ( isStickyHeader ) { + headerHeight = $( 'header' ).outerHeight() - 1; + } else { + headerHeight = 0; + } + return headerHeight; + }; $.fn.polestarSmoothScroll = function() { @@ -199,37 +202,48 @@ jQuery( function( $ ) { var alink = this; // This button pressed. // Check if there is a section that had same id as the button pressed. - if ( jQuery( '.panel-grid [id*=' + idName + ']' ).length > 0 ) { - jQuery( '#site-navigation .current' ).removeClass('current'); - jQuery( alink).parent( 'li' ).addClass( 'current' ); + if ( $( '.panel-grid [id*=' + idName + ']' ).length > 0 ) { + $( '#site-navigation .current' ).removeClass( 'current' ); + $( alink ).parent( 'li' ).addClass( 'current' ); } else { - jQuery( '#site-navigation .current' ).removeClass( 'current' ); + $( '#site-navigation .current' ).removeClass( 'current' ); } if ( location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname ) { - var target = jQuery( this.hash ); - target = target.length ? target : jQuery( '[name=' + this.hash.slice( 1 ) +']' ); + var target = $( this.hash ); + target = target.length ? target : $( '[name=' + this.hash.slice( 1 ) +']' ); if ( target.length ) { - jQuery( 'html, body' ).animate( { - scrollTop: target.offset().top - headerHeight - }, 1200 ); + $( 'html, body' ).animate( { + scrollTop: target.offset().top - headerHeight() + }, + { + duration: 1200, + start: function() { + $( 'html, body' ).on( 'wheel touchmove', function() { + $( 'html, body' ).stop().off( 'wheel touchmove' ); + } ); + }, + complete: function() { + $( 'html, body' ).finish().off( 'wheel touchmove' ); + }, + } ); return false; } } } ); }; - jQuery( window ).load( function() { + $( window ).load( function() { $( '#site-navigation a[href*="#"]:not([href="#"]), .comments-link a[href*="#"]:not([href="#"]), .puro-scroll[href*="#"]:not([href="#"])' ).polestarSmoothScroll(); } ); // Adjust for sticky header when linking from external anchors. - jQuery( window ).load( function() { + $( window ).load( function() { if ( location.pathname.replace( /^\//,'' ) == window.location.pathname.replace( /^\//,'' ) && location.hostname == window.location.hostname ) { - var target = jQuery( window.location.hash ); + var target = $( window.location.hash ); if ( target.length ) { - jQuery( 'html, body' ).animate( { - scrollTop: target.offset().top - headerHeight + $( 'html, body' ).animate( { + scrollTop: target.offset().top - headerHeight() }, 0 ); return false; } @@ -240,44 +254,44 @@ jQuery( function( $ ) { function polestarSelected() { // Cursor position. - var scrollTop = jQuery( window ).scrollTop(); + var scrollTop = $( window ).scrollTop(); // Used for checking if the cursor is in one section or not. var isInOneSection = 'no'; // For all sections check if the cursor is inside a section. - jQuery( '.panel-row-style' ).each( function() { + $( '.panel-row-style' ).each( function() { // Section ID. - var thisID = '#' + jQuery( this ).attr( 'id' ); + var thisID = '#' + $( this ).attr( 'id' ); - // Distance between top and our section. Minus 2px to compensate for an extra pixel produced when a Page Builder row bottom margin is set to 0. - var offset = jQuery( this ).offset().top - 2; + // Distance between top and our section. Minus 1px to compensate for an extra pixel produced when a Page Builder row bottom margin is set to 0. + var offset = $( this ).offset().top - 1; // Section height. - var thisHeight = jQuery( this ).outerHeight(); + var thisHeight = $( this ).outerHeight(); // Where the section begins. - var thisBegin = offset - headerHeight; + var thisBegin = offset - headerHeight(); // Where the section ends. - var thisEnd = offset + thisHeight - headerHeight; + var thisEnd = offset + thisHeight - headerHeight(); // If position of the cursor is inside of the this section. if ( scrollTop >= thisBegin && scrollTop <= thisEnd ) { isInOneSection = 'yes'; - jQuery( '#site-navigation .current' ).removeClass( 'current' ); + $( '#site-navigation .current' ).removeClass( 'current' ); // Find the menu button with the same ID section. - jQuery( '#site-navigation a[href$="' + thisID + '"]' ).parent( 'li' ).addClass( 'current' ); // Find the menu button with the same ID section. + $( '#site-navigation a[href$="' + thisID + '"]' ).parent( 'li' ).addClass( 'current' ); // Find the menu button with the same ID section. return false; } if ( isInOneSection === 'no' ) { - jQuery( '#site-navigation .current' ).removeClass( 'current' ); + $( '#site-navigation .current' ).removeClass( 'current' ); } } ); } - jQuery( window ).on( 'scroll', polestarSelected ); + $( window ).on( 'scroll', polestarSelected ); // Mobile menu. var $mobileMenu = false; @@ -299,7 +313,7 @@ jQuery( function( $ ) { if ( $( '.main-navigation .shopping-cart' ).length ) { $mobileMenu.append( $( '.main-navigation .shopping-cart .shopping-cart-link' ).clone() ); } - + $mobileMenu.find( '#primary-menu' ).show().css( 'opacity', 1 ); $mobileMenu.find( '.menu-item-has-children > a' ).addClass( 'has-dropdown' ); $mobileMenu.find( '.page_item_has_children > a' ).addClass( 'has-dropdown' ); diff --git a/js/polestar-upsell.js b/js/polestar-upsell.js deleted file mode 100644 index 0be0ee5..0000000 --- a/js/polestar-upsell.js +++ /dev/null @@ -1,39 +0,0 @@ -/** - * File polestar-premium.js. - * - * Upsell notice. - */ -( function( $ ) { - - // Add upgrade message. - if ( 'undefined' !== typeof polestar10n ) { - upsell = $( '' ) - .attr( 'href', polestar10n.polestarURL ) - .attr( 'target', '_blank' ) - .text( polestar10n.polestarLabel ) - .css({ - 'display' : 'inline-block', - 'background-color' : '#4d8ffb', - 'color' : '#fff', - 'text-decoration' : 'none', - 'text-transform' : 'uppercase', - 'margin-top' : '6px', - 'padding' : '4px 6px', - 'font-size': '10px', - 'letter-spacing': '1px', - 'line-height': '1.5', - 'clear' : 'both' - }) - ; - - setTimeout(function () { - $( '#accordion-section-themes h3' ).append( upsell ); - }, 200); - - // Remove accordion click event. - $( '.polestar-premium-link' ).on( 'click', function( e ) { - e.stopPropagation(); - }); - } - -} )( jQuery ); diff --git a/loops/loop-blog.php b/loops/loop-blog.php index 308a659..71c627f 100644 --- a/loops/loop-blog.php +++ b/loops/loop-blog.php @@ -31,8 +31,8 @@ endwhile; the_posts_pagination( array( - 'prev_text' => '', - 'next_text' => '' + 'prev_text' => '', + 'next_text' => '' ) ); else : diff --git a/readme.txt b/readme.txt index d05495f..a811e85 100644 --- a/readme.txt +++ b/readme.txt @@ -150,6 +150,12 @@ Released under [GPL version 2](https://www.gnu.org/licenses/old-licenses/gpl-2.0 == Changelog == += 1.3.10 - 30 September 2019 = +* Ensured FitVids targets `entry-video` for video post format. +* Changed sticky header height calculation to allow for re-calculation. +* Fixed smooth scroll sticky anchor when mobile menu in use. +* Minor about page and code formatting fixes. + = 1.3.9 - 02 September 2019 = * Added new core `wp_body_open` hook. * Minor WC product data tab styling adjustments. diff --git a/sass/site/primary/_comments.scss b/sass/site/primary/_comments.scss index d105c47..d03747f 100644 --- a/sass/site/primary/_comments.scss +++ b/sass/site/primary/_comments.scss @@ -32,7 +32,7 @@ .avatar-container { float: left; - + @media (max-width: 480px) { display: none; } @@ -229,7 +229,7 @@ clear: both; margin: 0 0 8px; overflow: auto; - + &:last-of-type { margin-bottom: 0; } diff --git a/template-parts/content-page.php b/template-parts/content-page.php index 1d8dda3..c501c65 100644 --- a/template-parts/content-page.php +++ b/template-parts/content-page.php @@ -16,7 +16,7 @@
- +