From 38dd36e875f8ea5e757856157987819ebf931294 Mon Sep 17 00:00:00 2001 From: Diego Rojas Date: Wed, 10 May 2017 10:47:00 -0300 Subject: [PATCH] changed domain name for all functions e translations, fix footer bug --- 404.php | 12 +- archive.php | 4 +- assets/css/customizer.css | 10 +- assets/css/editor-style.css | 2 +- assets/js/customizer-liveview.js | 6 +- assets/js/customizer.js | 60 +- assets/js/theme.js | 46 +- assets/sass/_structure.scss | 16 +- assets/sass/style.scss | 10 +- changelog.md | 152 +- comments.php | 20 +- footer-contact.php | 86 +- footer.php | 67 +- functions.php | 180 +-- header.php | 12 +- home.php | 6 +- inc/customizer-controls.php | 54 +- inc/customizer-selective-refresh.php | 158 +-- inc/customizer.php | 1706 +++++++++++------------ inc/dashboard.php | 104 +- inc/extras.php | 44 +- inc/template-tags.php | 256 ++-- index.php | 4 +- languages/en_US.pot | 16 +- languages/pt_BR.po | 20 +- page.php | 2 +- readme.txt | 88 +- rtl.css | 2 +- search.php | 4 +- section-parts/section-contact.php | 86 +- section-parts/section-featuredpage.php | 36 +- section-parts/section-features.php | 30 +- section-parts/section-gallery.php | 32 +- section-parts/section-hero.php | 50 +- section-parts/section-news.php | 44 +- section-parts/section-services.php | 42 +- section-parts/section-team.php | 42 +- section-parts/section-videolightbox.php | 26 +- section-parts/section-yourslider.php | 40 +- sidebar-page.php | 2 +- sidebar.php | 2 +- single.php | 8 +- style.css | 86 +- template-frontpage.php | 20 +- template-parts/content-list.php | 6 +- template-parts/content-none.php | 10 +- template-parts/content-page.php | 4 +- template-parts/content-search.php | 2 +- template-parts/content-single.php | 6 +- template-parts/content.php | 10 +- template-withsidebar.php | 4 +- woocommerce.php | 4 +- wpml-config.xml | 194 +-- 53 files changed, 1844 insertions(+), 2089 deletions(-) diff --git a/404.php b/404.php index e889f57..4cef56d 100755 --- a/404.php +++ b/404.php @@ -4,7 +4,7 @@ * * @link https://codex.wordpress.org/Creating_an_Error_404_Page * - * @package OnePress + * @package coletivo */ get_header(); ?> @@ -12,7 +12,7 @@ @@ -23,15 +23,15 @@
-

+

- +
-

+

    ' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'onepress' ), convert_smilies( ':)' ) ) . '

    '; + $archive_content = '

    ' . sprintf( esc_html__( 'Try looking in the monthly archives. %1$s', 'coletivo' ), convert_smilies( ':)' ) ) . '

    '; the_widget( 'WP_Widget_Archives', 'dropdown=1', "after_title=$archive_content" ); ?> diff --git a/archive.php b/archive.php index 1f3c0c2..4828bb2 100755 --- a/archive.php +++ b/archive.php @@ -4,7 +4,7 @@ * * @link https://codex.wordpress.org/Template_Hierarchy * - * @package OnePress + * @package coletivo */ get_header(); ?> @@ -18,7 +18,7 @@
- +
diff --git a/assets/css/customizer.css b/assets/css/customizer.css index ee9adc8..074886c 100755 --- a/assets/css/customizer.css +++ b/assets/css/customizer.css @@ -1,8 +1,8 @@ -li[id*="accordion-panel-onepress"] > .accordion-section-title{ +li[id*="accordion-panel-coletivo"] > .accordion-section-title{ padding-left: 30px; } -li#accordion-panel-onepress_options > .accordion-section-title, -li#accordion-panel-onepress_typo > .accordion-section-title +li#accordion-panel-coletivo_options > .accordion-section-title, +li#accordion-panel-coletivo_typo > .accordion-section-title { padding-left: 14px; } @@ -108,7 +108,7 @@ li#accordion-panel-onepress_typo > .accordion-section-title display: block; margin-top: 15px; } -.accordion-section-title .onepress-notice { +.accordion-section-title .coletivo-notice { font-size: 10px; text-transform: uppercase; float: right; @@ -127,7 +127,7 @@ body .wp-full-overlay{ z-index: 9999; } -.wp-js-editor-active textarea, .onepress-editor-added textarea{ +.wp-js-editor-active textarea, .coletivo-editor-added textarea{ display: none; } diff --git a/assets/css/editor-style.css b/assets/css/editor-style.css index 9db27b9..cb81cf8 100755 --- a/assets/css/editor-style.css +++ b/assets/css/editor-style.css @@ -1,5 +1,5 @@ /* -Theme Name: OnePress +Theme Name: Coletivo Description: Used to style the TinyMCE editor. */ diff --git a/assets/js/customizer-liveview.js b/assets/js/customizer-liveview.js index ab338fd..1c4d010 100755 --- a/assets/js/customizer-liveview.js +++ b/assets/js/customizer-liveview.js @@ -10,7 +10,7 @@ // Site footer bg - wp.customize( 'onepress_footer_bg', function( value ) { + wp.customize( 'coletivo_footer_bg', function( value ) { value.bind( function( to ) { $( '.site-footer' ).css( { 'background': to @@ -19,7 +19,7 @@ } ); // Site footer info bg - wp.customize( 'onepress_footer_info_bg', function( value ) { + wp.customize( 'coletivo_footer_info_bg', function( value ) { value.bind( function( to ) { $( '.site-footer .site-info, .site-footer .btt a' ).css( { 'background': to @@ -65,7 +65,7 @@ // Site footer widgets - wp.customize( 'onepress_btt_disable', function( value ) { + wp.customize( 'coletivo_btt_disable', function( value ) { value.bind( function( to ) { if ( to === true || to == 'true' ) { $( '.site-footer .btt ' ).hide(); diff --git a/assets/js/customizer.js b/assets/js/customizer.js index c2808b3..db7fb01 100755 --- a/assets/js/customizer.js +++ b/assets/js/customizer.js @@ -599,7 +599,7 @@ var format = $context.attr('data-title-format') || ''; // Custom for special ID - if (control.id === 'onepress_section_order_styling') { + if (control.id === 'coletivo_section_order_styling') { if ($context.find('input.add_by').val() !== 'click') { format = '[live_title]'; } @@ -630,7 +630,7 @@ var format = $context.attr('data-title-format') || ''; // custom for special ID - if (control.id === 'onepress_section_order_styling') { + if (control.id === 'coletivo_section_order_styling') { if ($context.find('input.add_by').val() !== 'click') { format = '[live_title]'; } @@ -739,7 +739,7 @@ }); // Custom for special IDs - if ( control.id === 'onepress_section_order_styling' ) { + if ( control.id === 'coletivo_section_order_styling' ) { if ($context.find('input.add_by').val() !== 'click') { $context.addClass('no-changeable'); // Remove because we never use @@ -1032,7 +1032,7 @@ jQuery( document ).ready( function( $ ){ var control = this; control.container = container; - control.container.addClass( 'onepress-editor-added' ); + control.container.addClass( 'coletivo-editor-added' ); control.editing_area = $( 'textarea' , control.container ); if ( control.editing_area.hasClass( 'wp-editor-added' ) ) { return false; @@ -1243,9 +1243,9 @@ jQuery( document ).ready( function( $ ){ jQuery( window ).ready( function( $ ){ - if ( typeof onepress_customizer_settings !== "undefined" ) { - if (onepress_customizer_settings.number_action > 0) { - $('.control-section-themes h3.accordion-section-title').append('' + onepress_customizer_settings.number_action + ''); + if ( typeof coletivo_customizer_settings !== "undefined" ) { + if (coletivo_customizer_settings.number_action > 0) { + $('.control-section-themes h3.accordion-section-title').append('' + coletivo_customizer_settings.number_action + ''); } } @@ -1253,62 +1253,62 @@ jQuery( window ).ready( function( $ ){ /** * For Hero layout content settings */ - $( 'select[data-customize-setting-link="onepress_hero_layout"]').on( 'change on_custom_load', function(){ + $( 'select[data-customize-setting-link="coletivo_hero_layout"]').on( 'change on_custom_load', function(){ var v = $( this).val() || ''; - $( "li[id^='customize-control-onepress_hcl']").hide(); - $( "li[id^='customize-control-onepress_hcl"+v+"']").show(); + $( "li[id^='customize-control-coletivo_hcl']").hide(); + $( "li[id^='customize-control-coletivo_hcl"+v+"']").show(); } ); - $( 'select[data-customize-setting-link="onepress_hero_layout"]').trigger( 'on_custom_load' ); + $( 'select[data-customize-setting-link="coletivo_hero_layout"]').trigger( 'on_custom_load' ); /** * For Gallery content settings */ - $( 'select[data-customize-setting-link="onepress_gallery_source"]').on( 'change on_custom_load', function(){ + $( 'select[data-customize-setting-link="coletivo_gallery_source"]').on( 'change on_custom_load', function(){ var v = $( this).val() || ''; - $( "li[id^='customize-control-onepress_gallery_source_']").hide(); - $( "li[id^='customize-control-onepress_gallery_api_']").hide(); - $( "li[id^='customize-control-onepress_gallery_settings_']").hide(); - $( "li[id^='customize-control-onepress_gallery_source_"+v+"']").show(); - $( "li[id^='customize-control-onepress_gallery_api_"+v+"']").show(); - $( "li[id^='customize-control-onepress_gallery_settings_"+v+"']").show(); + $( "li[id^='customize-control-coletivo_gallery_source_']").hide(); + $( "li[id^='customize-control-coletivo_gallery_api_']").hide(); + $( "li[id^='customize-control-coletivo_gallery_settings_']").hide(); + $( "li[id^='customize-control-coletivo_gallery_source_"+v+"']").show(); + $( "li[id^='customize-control-coletivo_gallery_api_"+v+"']").show(); + $( "li[id^='customize-control-coletivo_gallery_settings_"+v+"']").show(); } ); - $( 'select[data-customize-setting-link="onepress_gallery_source"]').trigger( 'on_custom_load' ); + $( 'select[data-customize-setting-link="coletivo_gallery_source"]').trigger( 'on_custom_load' ); /** * For Gallery display settings */ - $( 'select[data-customize-setting-link="onepress_gallery_display"]').on( 'change on_custom_load', function(){ + $( 'select[data-customize-setting-link="coletivo_gallery_display"]').on( 'change on_custom_load', function(){ var v = $( this).val() || ''; switch ( v ) { case 'slider': - $( "#customize-control-onepress_g_row_height, #customize-control-onepress_g_col, #customize-control-onepress_g_spacing").hide(); + $( "#customize-control-coletivo_g_row_height, #customize-control-coletivo_g_col, #customize-control-coletivo_g_spacing").hide(); break; case 'justified': - $( "#customize-control-onepress_g_col, #customize-control-onepress_g_spacing").hide(); - $( "#customize-control-onepress_g_row_height").show(); + $( "#customize-control-coletivo_g_col, #customize-control-coletivo_g_spacing").hide(); + $( "#customize-control-coletivo_g_row_height").show(); break; case 'carousel': - $( "#customize-control-onepress_g_row_height, #customize-control-onepress_g_col").hide(); - $( "#customize-control-onepress_g_col, #customize-control-onepress_g_spacing").show(); + $( "#customize-control-coletivo_g_row_height, #customize-control-coletivo_g_col").hide(); + $( "#customize-control-coletivo_g_col, #customize-control-coletivo_g_spacing").show(); break; case 'masonry': - $( "#customize-control-onepress_g_row_height").hide(); - $( "#customize-control-onepress_g_col, #customize-control-onepress_g_spacing").show(); + $( "#customize-control-coletivo_g_row_height").hide(); + $( "#customize-control-coletivo_g_col, #customize-control-coletivo_g_spacing").show(); break; default: - $( "#customize-control-onepress_g_row_height").hide(); - $( "#customize-control-onepress_g_col, #customize-control-onepress_g_spacing").show(); + $( "#customize-control-coletivo_g_row_height").hide(); + $( "#customize-control-coletivo_g_col, #customize-control-coletivo_g_spacing").show(); } } ); - $( 'select[data-customize-setting-link="onepress_gallery_display"]').trigger( 'on_custom_load' ); + $( 'select[data-customize-setting-link="coletivo_gallery_display"]').trigger( 'on_custom_load' ); } ); diff --git a/assets/js/theme.js b/assets/js/theme.js index c875e95..1094af9 100755 --- a/assets/js/theme.js +++ b/assets/js/theme.js @@ -80,7 +80,7 @@ var isMobile = { * * Helps with accessibility for keyboard only users. * - * Learn more: https://github.com/Automattic/OnePress/pull/136 + * Learn more: https://github.com/Automattic/coletivo/pull/136 */ ( function() { var is_webkit = navigator.userAgent.toLowerCase().indexOf( 'webkit' ) > -1, @@ -115,7 +115,7 @@ var isMobile = { */ jQuery( document ).ready( function( $ ) { - if ( onepress_js_settings.onepress_disable_sticky_header != '1' ) { + if ( coletivo_js_settings.coletivo_disable_sticky_header != '1' ) { var is_top_header = $( '#page > .site-header').length ? true : false; $('.site-header').eq(0).wrap( ' -
- - -
+
-
@@ -125,17 +101,17 @@
- +
- +
@@ -144,11 +120,11 @@ diff --git a/footer.php b/footer.php index 3231681..7cbcd04 100755 --- a/footer.php +++ b/footer.php @@ -6,50 +6,28 @@ * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * - * @package OnePress + * @package coletivo */ ?>
+ if ( $coletivo_social_disable != '1' ) : ?>
diff --git a/functions.php b/functions.php index 58bfcf2..3e7ca31 100755 --- a/functions.php +++ b/functions.php @@ -1,13 +1,13 @@ esc_html__( 'Primary Menu', 'onepress' ), - 'secondary' => esc_html__( 'Page Menu', 'onepress' ), + 'primary' => esc_html__( 'Primary Menu', 'coletivo' ), + 'secondary' => esc_html__( 'Page Menu', 'coletivo' ), ) ); /* @@ -75,7 +75,7 @@ function onepress_setup() { /* * This theme styles the visual editor to resemble the theme style. */ - add_editor_style( array( 'assets/css/editor-style.css', onepress_fonts_url() ) ); + add_editor_style( array( 'assets/css/editor-style.css', coletivo_fonts_url() ) ); /* * WooCommerce support. @@ -100,7 +100,7 @@ function onepress_setup() { } endif; -add_action( 'after_setup_theme', 'onepress_setup' ); +add_action( 'after_setup_theme', 'coletivo_setup' ); /** * Set the content width in pixels, based on the theme's design and stylesheet. @@ -109,24 +109,24 @@ function onepress_setup() { * * @global int $content_width */ -function onepress_content_width() { - $GLOBALS['content_width'] = apply_filters( 'onepress_content_width', 800 ); +function coletivo_content_width() { + $GLOBALS['content_width'] = apply_filters( 'coletivo_content_width', 800 ); } -add_action( 'after_setup_theme', 'onepress_content_width', 0 ); +add_action( 'after_setup_theme', 'coletivo_content_width', 0 ); /** * Register widget area. * * @link https://developer.wordpress.org/themes/functionality/sidebars/#registering-a-sidebar */ -add_action( 'widgets_init', 'onepress_widgets_init' ); -function onepress_widgets_init() { +add_action( 'widgets_init', 'coletivo_widgets_init' ); +function coletivo_widgets_init() { register_sidebar( array( - 'name' => esc_html__( 'Sidebar', 'onepress' ), + 'name' => esc_html__( 'Sidebar', 'coletivo' ), 'id' => 'sidebar-1', - 'description' => esc_html__('Default sidebar for blog template', 'onepress'), + 'description' => esc_html__('Default sidebar for blog template', 'coletivo'), 'before_widget' => '', 'before_title' => '

', @@ -135,9 +135,9 @@ function onepress_widgets_init() { register_sidebar( array( - 'name' => esc_html__( 'Page', 'onepress' ), + 'name' => esc_html__( 'Page', 'coletivo' ), 'id' => 'sidebar-2', - 'description' => esc_html__('Sidebar for template With Sidebar', 'onepress'), + 'description' => esc_html__('Sidebar for template With Sidebar', 'coletivo'), 'before_widget' => '', 'before_title' => '

', @@ -149,96 +149,96 @@ function onepress_widgets_init() { /** * Enqueue scripts and styles. */ -function onepress_scripts() { - wp_enqueue_style( 'onepress-fonts', onepress_fonts_url(), array(), null ); - wp_enqueue_style( 'onepress-animate', get_template_directory_uri() .'/assets/css/animate.min.css', array(), '1.0.0' ); - wp_enqueue_style( 'onepress-fa', get_template_directory_uri() .'/assets/css/font-awesome.min.css', array(), '4.4.0' ); - wp_enqueue_style( 'onepress-bootstrap', get_template_directory_uri() .'/assets/css/bootstrap.min.css', false, '4.0.0' ); - wp_enqueue_style( 'onepress-style', get_template_directory_uri().'/style.css' ); +function coletivo_scripts() { + wp_enqueue_style( 'coletivo-fonts', coletivo_fonts_url(), array(), null ); + wp_enqueue_style( 'coletivo-animate', get_template_directory_uri() .'/assets/css/animate.min.css', array(), '1.0.0' ); + wp_enqueue_style( 'coletivo-fa', get_template_directory_uri() .'/assets/css/font-awesome.min.css', array(), '4.4.0' ); + wp_enqueue_style( 'coletivo-bootstrap', get_template_directory_uri() .'/assets/css/bootstrap.min.css', false, '4.0.0' ); + wp_enqueue_style( 'coletivo-style', get_template_directory_uri().'/style.css' ); if ( is_child_theme() ) { - wp_enqueue_style( 'onepress-style-child', get_stylesheet_directory_uri() .'/style.css' ); + wp_enqueue_style( 'coletivo-style-child', get_stylesheet_directory_uri() .'/style.css' ); } wp_enqueue_script( 'jquery' ); - wp_enqueue_script( 'onepress-js-plugins', get_template_directory_uri() . '/assets/js/plugins.js', array(), '1.0.0', true ); - wp_enqueue_script( 'onepress-js-bootstrap', get_template_directory_uri() . '/assets/js/bootstrap.min.js', array(), '4.0.0', true ); - wp_enqueue_script( 'onepress-theme', get_template_directory_uri() . '/assets/js/theme.js', array(), '20120206', true ); + wp_enqueue_script( 'coletivo-js-plugins', get_template_directory_uri() . '/assets/js/plugins.js', array(), '1.0.0', true ); + wp_enqueue_script( 'coletivo-js-bootstrap', get_template_directory_uri() . '/assets/js/bootstrap.min.js', array(), '4.0.0', true ); + wp_enqueue_script( 'coletivo-theme', get_template_directory_uri() . '/assets/js/theme.js', array(), '20120206', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } // Animation from settings. - $onepress_js_settings = array( - 'onepress_disable_animation' => get_theme_mod( 'onepress_animation_disable' ), - 'onepress_disable_sticky_header' => get_theme_mod( 'onepress_sticky_header_disable' ), - 'onepress_vertical_align_menu' => get_theme_mod( 'onepress_vertical_align_menu' ), - 'hero_animation' => get_theme_mod( 'onepress_hero_option_animation', 'flipInX' ), - 'hero_speed' => intval( get_theme_mod( 'onepress_hero_option_speed', 5000 ) ), + $coletivo_js_settings = array( + 'coletivo_disable_animation' => get_theme_mod( 'coletivo_animation_disable' ), + 'coletivo_disable_sticky_header' => get_theme_mod( 'coletivo_sticky_header_disable' ), + 'coletivo_vertical_align_menu' => get_theme_mod( 'coletivo_vertical_align_menu' ), + 'hero_animation' => get_theme_mod( 'coletivo_hero_option_animation', 'flipInX' ), + 'hero_speed' => intval( get_theme_mod( 'coletivo_hero_option_speed', 5000 ) ), ); - wp_localize_script( 'jquery', 'onepress_js_settings', $onepress_js_settings ); + wp_localize_script( 'jquery', 'coletivo_js_settings', $coletivo_js_settings ); // Load gallery scripts - $galley_disable = get_theme_mod( 'onepress_gallery_disable' ) == 1 ? true : false; + $galley_disable = get_theme_mod( 'coletivo_gallery_disable' ) == 1 ? true : false; if ( ! $galley_disable || is_customize_preview() ) { - $onepress_js_settings['gallery_enable'] = 1; - $display = get_theme_mod( 'onepress_gallery_display', 'grid' ); + $coletivo_js_settings['gallery_enable'] = 1; + $display = get_theme_mod( 'coletivo_gallery_display', 'grid' ); if ( ! is_customize_preview() ) { switch ( $display ) { case 'masonry': - wp_enqueue_script('onepress-gallery-masonry', get_template_directory_uri() . '/assets/js/isotope.pkgd.min.js'); + wp_enqueue_script('coletivo-gallery-masonry', get_template_directory_uri() . '/assets/js/isotope.pkgd.min.js'); break; case 'justified': - wp_enqueue_script('onepress-gallery-justified', get_template_directory_uri() . '/assets/js/jquery.justifiedGallery.min.js'); + wp_enqueue_script('coletivo-gallery-justified', get_template_directory_uri() . '/assets/js/jquery.justifiedGallery.min.js'); break; case 'slider': case 'carousel': - wp_enqueue_script('onepress-gallery-carousel', get_template_directory_uri() . '/assets/js/owl.carousel.min.js'); + wp_enqueue_script('coletivo-gallery-carousel', get_template_directory_uri() . '/assets/js/owl.carousel.min.js'); break; default: break; } } else { - wp_enqueue_script('onepress-gallery-masonry', get_template_directory_uri() . '/assets/js/isotope.pkgd.min.js'); - wp_enqueue_script('onepress-gallery-justified', get_template_directory_uri() . '/assets/js/jquery.justifiedGallery.min.js'); - wp_enqueue_script('onepress-gallery-carousel', get_template_directory_uri() . '/assets/js/owl.carousel.min.js'); + wp_enqueue_script('coletivo-gallery-masonry', get_template_directory_uri() . '/assets/js/isotope.pkgd.min.js'); + wp_enqueue_script('coletivo-gallery-justified', get_template_directory_uri() . '/assets/js/jquery.justifiedGallery.min.js'); + wp_enqueue_script('coletivo-gallery-carousel', get_template_directory_uri() . '/assets/js/owl.carousel.min.js'); } } - wp_enqueue_style( 'onepress-gallery-lightgallery', get_template_directory_uri().'/assets/css/lightgallery.css' ); - wp_enqueue_script( 'onepress-theme', get_template_directory_uri() . '/assets/js/theme.js' ); + wp_enqueue_style( 'coletivo-gallery-lightgallery', get_template_directory_uri().'/assets/css/lightgallery.css' ); + wp_enqueue_script( 'coletivo-theme', get_template_directory_uri() . '/assets/js/theme.js' ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); } if ( is_front_page() && is_page_template( 'template-frontpage.php' ) ) { - if ( get_theme_mod( 'onepress_header_scroll_logo' ) ) { - $onepress_js_settings['is_home'] = 1; + if ( get_theme_mod( 'coletivo_header_scroll_logo' ) ) { + $coletivo_js_settings['is_home'] = 1; } } - wp_localize_script( 'jquery', 'onepress_js_settings', $onepress_js_settings ); + wp_localize_script( 'jquery', 'coletivo_js_settings', $coletivo_js_settings ); } -add_action( 'wp_enqueue_scripts', 'onepress_scripts' ); +add_action( 'wp_enqueue_scripts', 'coletivo_scripts' ); -if ( ! function_exists( 'onepress_fonts_url' ) ) : +if ( ! function_exists( 'coletivo_fonts_url' ) ) : /** * Register default Google fonts */ - function onepress_fonts_url() { + function coletivo_fonts_url() { $fonts_url = ''; /* Translators: If there are characters in your language that are not * supported by Open Sans, translate this to 'off'. Do not translate * into your own language. */ - $open_sans = _x( 'on', 'Open Sans font: on or off', 'onepress' ); + $open_sans = _x( 'on', 'Open Sans font: on or off', 'coletivo' ); /* Translators: If there are characters in your language that are not * supported by Raleway, translate this to 'off'. Do not translate * into your own language. */ - $raleway = _x( 'on', 'Raleway font: on or off', 'onepress' ); + $raleway = _x( 'on', 'Raleway font: on or off', 'coletivo' ); if ( 'off' !== $raleway || 'off' !== $open_sans ) { $font_families = array(); @@ -263,20 +263,20 @@ function onepress_fonts_url() { } endif; -if ( ! function_exists( 'onepress_admin_scripts' ) ) : +if ( ! function_exists( 'coletivo_admin_scripts' ) ) : /** * Enqueue scripts for admin page only: Theme info page */ - function onepress_admin_scripts( $hook ) { - if ( $hook === 'widgets.php' || $hook === 'appearance_page_ft_onepress' ) { - wp_enqueue_style( 'onepress-admin-css', get_template_directory_uri() . '/assets/css/admin.css' ); + function coletivo_admin_scripts( $hook ) { + if ( $hook === 'widgets.php' || $hook === 'appearance_page_ft_coletivo' ) { + wp_enqueue_style( 'coletivo-admin-css', get_template_directory_uri() . '/assets/css/admin.css' ); } } endif; -add_action( 'admin_enqueue_scripts', 'onepress_admin_scripts' ); +add_action( 'admin_enqueue_scripts', 'coletivo_admin_scripts' ); -if ( ! function_exists( 'onepress_register_required_plugins' ) ) : +if ( ! function_exists( 'coletivo_register_required_plugins' ) ) : /** * Register the required plugins for this theme. * @@ -291,7 +291,7 @@ function onepress_admin_scripts( $hook ) { * This function is hooked into tgmpa_init, which is fired within the * TGM_Plugin_Activation class constructor. */ - function onepress_register_required_plugins() { + function coletivo_register_required_plugins() { /* * Array of plugin arrays. Required keys are name and slug. * If the source is NOT from the .org repo, then source is also required. @@ -331,29 +331,29 @@ function onepress_register_required_plugins() { 'message' => '', // Message to output right before the plugins table. 'strings' => array( - 'page_title' => esc_html__( 'Install Required Plugins', 'onepress' ), - 'menu_title' => esc_html__( 'Install Plugins', 'onepress' ), - 'installing' => esc_html__( 'Installing Plugin: %s', 'onepress' ), // %s = plugin name. - 'oops' => esc_html__( 'Something went wrong with the plugin API.', 'onepress' ), - 'notice_can_install_required' => _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.', 'onepress' ), // %1$s = plugin name(s). - 'notice_can_install_recommended' => _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.', 'onepress' ), // %1$s = plugin name(s). - 'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %1$s plugin.', 'Sorry, but you do not have the correct permissions to install the %1$s plugins.', 'onepress' ), // %1$s = plugin name(s). - 'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'onepress' ), // %1$s = plugin name(s). - 'notice_ask_to_update_maybe' => _n_noop( 'There is an update available for: %1$s.', 'There are updates available for the following plugins: %1$s.', 'onepress' ), // %1$s = plugin name(s). - 'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %1$s plugin.', 'Sorry, but you do not have the correct permissions to update the %1$s plugins.', 'onepress' ), // %1$s = plugin name(s). - 'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'onepress' ), // %1$s = plugin name(s). - 'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'onepress' ), // %1$s = plugin name(s). - 'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %1$s plugin.', 'Sorry, but you do not have the correct permissions to activate the %1$s plugins.', 'onepress' ), // %1$s = plugin name(s). - 'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins', 'onepress' ), - 'update_link' => _n_noop( 'Begin updating plugin', 'Begin updating plugins', 'onepress' ), - 'activate_link' => _n_noop( 'Begin activating plugin', 'Begin activating plugins', 'onepress' ), - 'return' => esc_html__( 'Return to Required Plugins Installer', 'onepress' ), - 'plugin_activated' => esc_html__( 'Plugin activated successfully.', 'onepress' ), - 'activated_successfully' => esc_html__( 'The following plugin was activated successfully:', 'onepress' ), - 'plugin_already_active' => esc_html__( 'No action taken. Plugin %1$s was already active.', 'onepress' ), // %1$s = plugin name(s). - 'plugin_needs_higher_version' => esc_html__( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'onepress' ), // %1$s = plugin name(s). - 'complete' => esc_html__( 'All plugins installed and activated successfully. %1$s', 'onepress' ), // %s = dashboard link. - 'contact_admin' => esc_html__( 'Please contact the administrator of this site for help.', 'onepress' ), + 'page_title' => esc_html__( 'Install Required Plugins', 'coletivo' ), + 'menu_title' => esc_html__( 'Install Plugins', 'coletivo' ), + 'installing' => esc_html__( 'Installing Plugin: %s', 'coletivo' ), // %s = plugin name. + 'oops' => esc_html__( 'Something went wrong with the plugin API.', 'coletivo' ), + 'notice_can_install_required' => _n_noop( 'This theme requires the following plugin: %1$s.', 'This theme requires the following plugins: %1$s.', 'coletivo' ), // %1$s = plugin name(s). + 'notice_can_install_recommended' => _n_noop( 'This theme recommends the following plugin: %1$s.', 'This theme recommends the following plugins: %1$s.', 'coletivo' ), // %1$s = plugin name(s). + 'notice_cannot_install' => _n_noop( 'Sorry, but you do not have the correct permissions to install the %1$s plugin.', 'Sorry, but you do not have the correct permissions to install the %1$s plugins.', 'coletivo' ), // %1$s = plugin name(s). + 'notice_ask_to_update' => _n_noop( 'The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: %1$s.', 'The following plugins need to be updated to their latest version to ensure maximum compatibility with this theme: %1$s.', 'coletivo' ), // %1$s = plugin name(s). + 'notice_ask_to_update_maybe' => _n_noop( 'There is an update available for: %1$s.', 'There are updates available for the following plugins: %1$s.', 'coletivo' ), // %1$s = plugin name(s). + 'notice_cannot_update' => _n_noop( 'Sorry, but you do not have the correct permissions to update the %1$s plugin.', 'Sorry, but you do not have the correct permissions to update the %1$s plugins.', 'coletivo' ), // %1$s = plugin name(s). + 'notice_can_activate_required' => _n_noop( 'The following required plugin is currently inactive: %1$s.', 'The following required plugins are currently inactive: %1$s.', 'coletivo' ), // %1$s = plugin name(s). + 'notice_can_activate_recommended' => _n_noop( 'The following recommended plugin is currently inactive: %1$s.', 'The following recommended plugins are currently inactive: %1$s.', 'coletivo' ), // %1$s = plugin name(s). + 'notice_cannot_activate' => _n_noop( 'Sorry, but you do not have the correct permissions to activate the %1$s plugin.', 'Sorry, but you do not have the correct permissions to activate the %1$s plugins.', 'coletivo' ), // %1$s = plugin name(s). + 'install_link' => _n_noop( 'Begin installing plugin', 'Begin installing plugins', 'coletivo' ), + 'update_link' => _n_noop( 'Begin updating plugin', 'Begin updating plugins', 'coletivo' ), + 'activate_link' => _n_noop( 'Begin activating plugin', 'Begin activating plugins', 'coletivo' ), + 'return' => esc_html__( 'Return to Required Plugins Installer', 'coletivo' ), + 'plugin_activated' => esc_html__( 'Plugin activated successfully.', 'coletivo' ), + 'activated_successfully' => esc_html__( 'The following plugin was activated successfully:', 'coletivo' ), + 'plugin_already_active' => esc_html__( 'No action taken. Plugin %1$s was already active.', 'coletivo' ), // %1$s = plugin name(s). + 'plugin_needs_higher_version' => esc_html__( 'Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.', 'coletivo' ), // %1$s = plugin name(s). + 'complete' => esc_html__( 'All plugins installed and activated successfully. %1$s', 'coletivo' ), // %s = dashboard link. + 'contact_admin' => esc_html__( 'Please contact the administrator of this site for help.', 'coletivo' ), 'nag_type' => 'updated', // Determines admin notice type - can only be 'updated', 'update-nag' or 'error'. ), @@ -363,7 +363,7 @@ function onepress_register_required_plugins() { } endif; -add_action( 'tgmpa_register', 'onepress_register_required_plugins' ); +add_action( 'tgmpa_register', 'coletivo_register_required_plugins' ); /** * Custom template tags for this theme. diff --git a/header.php b/header.php index 30a4809..8b8a5bd 100755 --- a/header.php +++ b/header.php @@ -6,7 +6,7 @@ * * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials * - * @package OnePress + * @package coletivo */ ?> @@ -20,14 +20,14 @@ > - +
- + diff --git a/home.php b/home.php index 38fcd7d..9939090 100755 --- a/home.php +++ b/home.php @@ -8,9 +8,9 @@ * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#front-page-display * - * @package OnePress + * @package coletivo */ -$blog_style = get_theme_mod( 'onepress_blog_page_style', 'grid' ); +$blog_style = get_theme_mod( 'coletivo_blog_page_style', 'grid' ); $container_class = 'container'; if ( 'list' === $blog_style ) { $container_class = 'container right-sidebar'; @@ -23,7 +23,7 @@

- +
diff --git a/inc/customizer-controls.php b/inc/customizer-controls.php index e16f29e..675d102 100755 --- a/inc/customizer-controls.php +++ b/inc/customizer-controls.php @@ -2,10 +2,10 @@ /*-----------------------------------------------------------------------------------*/ -/* OnePress Customizer Controls +/* Coletivo Customizer Controls /*-----------------------------------------------------------------------------------*/ -class OnePress_Misc_Control extends WP_Customize_Control { +class Coletivo_Misc_Control extends WP_Customize_Control { public $settings = 'blogname'; @@ -34,7 +34,7 @@ public function render_content() { } } -class One_Press_Textarea_Custom_Control extends WP_Customize_Control +class Coletivo_Textarea_Custom_Control extends WP_Customize_Control { public function render_content() { ?> @@ -49,8 +49,8 @@ public function render_content() { } } -if ( ! function_exists( 'onepress_sanitize_checkbox' ) ) { - function onepress_sanitize_checkbox( $input ) { +if ( ! function_exists( 'coletivo_sanitize_checkbox' ) ) { + function coletivo_sanitize_checkbox( $input ) { if ( $input == 1 ) { return 1; } else { @@ -65,14 +65,14 @@ function onepress_sanitize_checkbox( $input ) { * @param $string * @return string */ -function onepress_sanitize_css($string) { +function coletivo_sanitize_css($string) { $string = preg_replace( '@<(script|style)[^>]*?>.*?@si', '', $string ); $string = strip_tags($string); return trim( $string ); } -function onepress_sanitize_color_alpha( $color ){ +function coletivo_sanitize_color_alpha( $color ){ $color = str_replace( '#', '', $color ); if ( '' === $color ){ return ''; @@ -107,7 +107,7 @@ function onepress_sanitize_color_alpha( $color ){ * @param $setting object $wp_customize * @return bool|mixed|string|void */ -function onepress_sanitize_repeatable_data_field( $input , $setting ){ +function coletivo_sanitize_repeatable_data_field( $input , $setting ){ $control = $setting->manager->get_control( $setting->id ); $fields = $control->fields; @@ -140,10 +140,10 @@ function onepress_sanitize_repeatable_data_field( $input , $setting ){ $data[ $i ][ $id ] = sanitize_hex_color_no_hash( $value ); break; case 'coloralpha': - $data[ $i ][ $id ] = onepress_sanitize_color_alpha( $value ); + $data[ $i ][ $id ] = coletivo_sanitize_color_alpha( $value ); break; case 'checkbox': - $data[ $i ][ $id ] = onepress_sanitize_checkbox( $value ); + $data[ $i ][ $id ] = coletivo_sanitize_checkbox( $value ); break; case 'select': $data[ $i ][ $id ] = ''; @@ -208,7 +208,7 @@ function onepress_sanitize_repeatable_data_field( $input , $setting ){ } -class OnePress_Editor_Custom_Control extends WP_Customize_Control +class coletivo_Editor_Custom_Control extends WP_Customize_Control { /** * The type of customize control being rendered. @@ -263,7 +263,7 @@ public function render_content() { * You should have received a copy of the GNU General Public License * along with this Alpha Color Picker. If not, see . */ -class OnePress_Alpha_Color_Control extends WP_Customize_Control { +class coletivo_Alpha_Color_Control extends WP_Customize_Control { /** * Official control name. @@ -332,7 +332,7 @@ public function render_content() { * @since 1.0.0 * @access public */ -class Onepress_Customize_Repeatable_Control extends WP_Customize_Control { +class coletivo_Customize_Repeatable_Control extends WP_Customize_Control { /** * The type of customize control being rendered. @@ -393,13 +393,13 @@ public function __construct( $manager, $id, $args = array() ) } if ( ! isset( $args['allow_unlimited'] ) || $args['allow_unlimited'] != false ) { - $this->max_item = apply_filters( 'onepress_reepeatable_max_item', absint( $args['max_item'] ) ); + $this->max_item = apply_filters( 'coletivo_reepeatable_max_item', absint( $args['max_item'] ) ); } else { $this->max_item = absint( $args['max_item'] ); } $this->changeable = isset( $args['changeable'] ) && $args['changeable'] == 'no' ? 'no' : 'yes'; - $this->default_empty_title = isset( $args['default_empty_title'] ) && $args['default_empty_title'] != '' ? $args['default_empty_title'] : esc_html__( 'Item', 'onepress' ); + $this->default_empty_title = isset( $args['default_empty_title'] ) && $args['default_empty_title'] != '' ? $args['default_empty_title'] : esc_html__( 'Item', 'coletivo' ); } @@ -499,7 +499,7 @@ public function render_content() {
    - +
    -

    +

    @@ -630,8 +630,8 @@ public static function js_item(){ <# } #>
    - - + +
    @@ -652,7 +652,7 @@ public static function js_item(){ - + <# } #> @@ -664,9 +664,9 @@ public static function js_item(){
    - | + | - +

    @@ -685,7 +685,7 @@ public static function js_item(){ } -function onepress_enqueue_editor(){ +function coletivo_enqueue_editor(){ if( ! isset( $GLOBALS['__wp_mce_editor__'] ) || ! $GLOBALS['__wp_mce_editor__'] ) { $GLOBALS['__wp_mce_editor__'] = true; ?> @@ -697,7 +697,7 @@ function onepress_enqueue_editor(){ } -class OnePress_Editor_Scripts +class coletivo_Editor_Scripts { /** * Enqueue scripts/styles. @@ -736,11 +736,11 @@ function onepres_customizer_control_scripts(){ wp_enqueue_script( 'wp-color-picker' ); wp_enqueue_style( 'wp-color-picker' ); - wp_enqueue_script( 'onepress-customizer', get_template_directory_uri() . '/assets/js/customizer.js', array( 'customize-controls', 'wp-color-picker' ) ); - wp_enqueue_style( 'onepress-customizer', get_template_directory_uri() . '/assets/css/customizer.css' ); + wp_enqueue_script( 'coletivo-customizer', get_template_directory_uri() . '/assets/js/customizer.js', array( 'customize-controls', 'wp-color-picker' ) ); + wp_enqueue_style( 'coletivo-customizer', get_template_directory_uri() . '/assets/css/customizer.css' ); } add_action( 'customize_controls_enqueue_scripts', 'onepres_customizer_control_scripts', 99 ); -add_action( 'customize_controls_enqueue_scripts', array( 'OnePress_Editor_Scripts', 'enqueue' ), 95 ); +add_action( 'customize_controls_enqueue_scripts', array( 'coletivo_Editor_Scripts', 'enqueue' ), 95 ); diff --git a/inc/customizer-selective-refresh.php b/inc/customizer-selective-refresh.php index d28121a..4ee341f 100755 --- a/inc/customizer-selective-refresh.php +++ b/inc/customizer-selective-refresh.php @@ -8,7 +8,7 @@ * @param $template_names * @return string */ -function onepress_customizer_load_template( $template_names ){ +function coletivo_customizer_load_template( $template_names ){ $located = ''; $is_child = get_stylesheet_directory() != get_template_directory() ; @@ -23,8 +23,8 @@ function onepress_customizer_load_template( $template_names ){ $located = get_stylesheet_directory() . '/' . $template_name; break; - } elseif ( defined( 'ONEPRESS_PLUS_PATH' ) && file_exists( ONEPRESS_PLUS_PATH . $template_name ) ) { // Check part in the plugin - $located = ONEPRESS_PLUS_PATH . $template_name; + } elseif ( defined( 'coletivo_PLUS_PATH' ) && file_exists( coletivo_PLUS_PATH . $template_name ) ) { // Check part in the plugin + $located = coletivo_PLUS_PATH . $template_name; break; } elseif ( file_exists( get_template_directory() . '/' . $template_name) ) { // current_theme $located = get_template_directory() . '/' . $template_name; @@ -43,10 +43,10 @@ function onepress_customizer_load_template( $template_names ){ * @param array $section * @return string */ -function onepress_get_customizer_section_content( $section_tpl, $section = array() ){ +function coletivo_get_customizer_section_content( $section_tpl, $section = array() ){ ob_start(); - $GLOBALS['onepress_is_selective_refresh'] = true; - $file = onepress_customizer_load_template( $section_tpl ); + $GLOBALS['coletivo_is_selective_refresh'] = true; + $file = coletivo_customizer_load_template( $section_tpl ); if ( $file ) { include $file; } @@ -62,7 +62,7 @@ function onepress_get_customizer_section_content( $section_tpl, $section = array * * @param $wp_customize */ -function onepress_customizer_partials( $wp_customize ) { +function coletivo_customizer_partials( $wp_customize ) { // Abort if selective refresh is not available. if ( ! isset( $wp_customize->selective_refresh ) ) { @@ -76,7 +76,7 @@ function onepress_customizer_partials( $wp_customize ) { 'id' => 'hero', 'selector' => '.hero-slideshow-wrapper', 'settings' => array( - 'onepress_hero_images', + 'coletivo_hero_images', ), ), @@ -85,11 +85,11 @@ function onepress_customizer_partials( $wp_customize ) { 'id' => 'features', 'selector' => '.section-features', 'settings' => array( - 'onepress_features_boxes', - 'onepress_features_title', - 'onepress_features_subtitle', - 'onepress_features_desc', - 'onepress_features_layout', + 'coletivo_features_boxes', + 'coletivo_features_title', + 'coletivo_features_subtitle', + 'coletivo_features_desc', + 'coletivo_features_layout', ), ), @@ -98,7 +98,7 @@ function onepress_customizer_partials( $wp_customize ) { 'id' => 'yourslider', 'selector' => '.section-yourslider', 'settings' => array( - 'onepress_yourslider_shortcode', + 'coletivo_yourslider_shortcode', ), ), @@ -107,11 +107,11 @@ function onepress_customizer_partials( $wp_customize ) { 'id' => 'services', 'selector' => '.section-services', 'settings' => array( - 'onepress_services', - 'onepress_services_title', - 'onepress_services_subtitle', - 'onepress_services_desc', - 'onepress_service_layout', + 'coletivo_services', + 'coletivo_services_title', + 'coletivo_services_subtitle', + 'coletivo_services_desc', + 'coletivo_service_layout', ), ), @@ -120,12 +120,12 @@ function onepress_customizer_partials( $wp_customize ) { 'id' => 'news', 'selector' => '.section-news', 'settings' => array( - 'onepress_news_title', - 'onepress_news_subtitle', - 'onepress_news_desc', - 'onepress_news_number', - 'onepress_news_more_link', - 'onepress_news_more_text', + 'coletivo_news_title', + 'coletivo_news_subtitle', + 'coletivo_news_desc', + 'coletivo_news_number', + 'coletivo_news_more_link', + 'coletivo_news_more_text', ), ), @@ -134,17 +134,17 @@ function onepress_customizer_partials( $wp_customize ) { 'id' => 'contact', 'selector' => '.section-contact', 'settings' => array( - 'onepress_contact_title', - 'onepress_contact_subtitle', - 'onepress_contact_desc', - 'onepress_contact_cf7', - 'onepress_contact_cf7_disable', - 'onepress_contact_text', - 'onepress_contact_address_title', - 'onepress_contact_address', - 'onepress_contact_phone', - 'onepress_contact_email', - 'onepress_contact_fax', + 'coletivo_contact_title', + 'coletivo_contact_subtitle', + 'coletivo_contact_desc', + 'coletivo_contact_cf7', + 'coletivo_contact_cf7_disable', + 'coletivo_contact_text', + 'coletivo_contact_address_title', + 'coletivo_contact_address', + 'coletivo_contact_phone', + 'coletivo_contact_email', + 'coletivo_contact_fax', ), ), @@ -153,8 +153,8 @@ function onepress_customizer_partials( $wp_customize ) { 'id' => 'videolightbox', 'selector' => '.section-videolightbox', 'settings' => array( - 'onepress_videolightbox_title', - 'onepress_videolightbox_url', + 'coletivo_videolightbox_title', + 'coletivo_videolightbox_url', ), ), @@ -163,17 +163,17 @@ function onepress_customizer_partials( $wp_customize ) { 'id' => 'gallery', 'selector' => '.section-gallery', 'settings' => array( - 'onepress_gallery_source_page', - 'onepress_gallery_layout', - 'onepress_gallery_display', - 'onepress_g_number', - 'onepress_g_row_height', - 'onepress_g_col', - 'onepress_g_readmore_link', - 'onepress_g_readmore_text', - 'onepress_gallery_title', - 'onepress_gallery_subtitle', - 'onepress_gallery_desc', + 'coletivo_gallery_source_page', + 'coletivo_gallery_layout', + 'coletivo_gallery_display', + 'coletivo_g_number', + 'coletivo_g_row_height', + 'coletivo_g_col', + 'coletivo_g_readmore_link', + 'coletivo_g_readmore_text', + 'coletivo_gallery_title', + 'coletivo_gallery_subtitle', + 'coletivo_gallery_desc', ), ), @@ -182,16 +182,16 @@ function onepress_customizer_partials( $wp_customize ) { 'id' => 'team', 'selector' => '.section-team', 'settings' => array( - 'onepress_team_members', - 'onepress_team_title', - 'onepress_team_subtitle', - 'onepress_team_desc', - 'onepress_team_layout', + 'coletivo_team_members', + 'coletivo_team_title', + 'coletivo_team_subtitle', + 'coletivo_team_desc', + 'coletivo_team_layout', ), ), ); - $selective_refresh_keys = apply_filters( 'onepress_customizer_partials_selective_refresh_keys', $selective_refresh_keys ); + $selective_refresh_keys = apply_filters( 'coletivo_customizer_partials_selective_refresh_keys', $selective_refresh_keys ); foreach ( $selective_refresh_keys as $section ) { foreach ( $section['settings'] as $key ) { @@ -203,44 +203,44 @@ function onepress_customizer_partials( $wp_customize ) { $wp_customize->selective_refresh->add_partial( 'section-'.$section['id'] , array( 'selector' => $section['selector'], 'settings' => $section['settings'], - 'render_callback' => 'onepress_selective_refresh_render_section_content', + 'render_callback' => 'coletivo_selective_refresh_render_section_content', )); } // Logo, description and favicon $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; - $wp_customize->get_setting( 'onepress_hide_sitetitle' )->transport = 'postMessage'; - $wp_customize->get_setting( 'onepress_hide_tagline' )->transport = 'postMessage'; + $wp_customize->get_setting( 'coletivo_hide_sitetitle' )->transport = 'postMessage'; + $wp_customize->get_setting( 'coletivo_hide_tagline' )->transport = 'postMessage'; $wp_customize->selective_refresh->add_partial( 'header_brand', array( 'selector' => '.site-header .site-branding', - 'settings' => array( 'blogname', 'blogdescription', 'onepress_hide_sitetitle', 'onepress_hide_tagline' ), - 'render_callback' => 'onepress_site_logo', + 'settings' => array( 'blogname', 'blogdescription', 'coletivo_hide_sitetitle', 'coletivo_hide_tagline' ), + 'render_callback' => 'coletivo_site_logo', ) ); // Footer social icons - $wp_customize->selective_refresh->add_partial( 'onepress_social_profiles', array( + $wp_customize->selective_refresh->add_partial( 'coletivo_social_profiles', array( 'selector' => '.footer-social .footer-social-icons', - 'settings' => array( 'onepress_social_profiles', ), - 'render_callback' => 'onepress_get_social_profiles', + 'settings' => array( 'coletivo_social_profiles', ), + 'render_callback' => 'coletivo_get_social_profiles', ) ); // Footer social heading - $wp_customize->selective_refresh->add_partial( 'onepress_social_footer_title', array( + $wp_customize->selective_refresh->add_partial( 'coletivo_social_footer_title', array( 'selector' => '', - 'settings' => array( 'onepress_social_footer_title' ), - 'render_callback' => 'onepress_selective_refresh_social_footer_title', + 'settings' => array( 'coletivo_social_footer_title' ), + 'render_callback' => 'coletivo_selective_refresh_social_footer_title', ) ); // Featured Page Content - $wp_customize->selective_refresh->add_partial( 'onepress_featuredpage_content_source', array( + $wp_customize->selective_refresh->add_partial( 'coletivo_featuredpage_content_source', array( 'selector' => '.section-featuredpage', - 'settings' => array( 'onepress_featuredpage_content_source', 'onepress_featuredpage_more_text' ), - 'render_callback' => 'onepress_selective_refresh_featured_page', + 'settings' => array( 'coletivo_featuredpage_content_source', 'coletivo_featuredpage_more_text' ), + 'render_callback' => 'coletivo_selective_refresh_featured_page', ) ); } -add_action( 'customize_register', 'onepress_customizer_partials', 50 ); +add_action( 'customize_register', 'coletivo_customizer_partials', 50 ); @@ -250,24 +250,24 @@ function onepress_customizer_partials( $wp_customize ) { * @param $partial * @param array $container_context */ -function onepress_selective_refresh_render_section_content( $partial, $container_context = array() ) { +function coletivo_selective_refresh_render_section_content( $partial, $container_context = array() ) { $tpl = 'section-parts/'.$partial->id.'.php'; - $GLOBALS['onepress_is_selective_refresh'] = true; - $file = onepress_customizer_load_template( $tpl ); + $GLOBALS['coletivo_is_selective_refresh'] = true; + $file = coletivo_customizer_load_template( $tpl ); if ( $file ) { include $file; } } -function onepress_selective_refresh_social_footer_title(){ - return get_theme_mod( 'onepress_social_footer_title' ); +function coletivo_selective_refresh_social_footer_title(){ + return get_theme_mod( 'coletivo_social_footer_title' ); } -function onepress_selective_refresh_newsletter_title(){ - return get_theme_mod( 'onepress_newsletter_title' ); +function coletivo_selective_refresh_newsletter_title(){ + return get_theme_mod( 'coletivo_newsletter_title' ); } -function onepress_selective_refresh_featured_page( $partial = '', $container_context = '') { - return onepress_get_customizer_section_content( array( ' +function coletivo_selective_refresh_featured_page( $partial = '', $container_context = '') { + return coletivo_get_customizer_section_content( array( ' section-parts/section-featuredpage.php' ), array() ); } \ No newline at end of file diff --git a/inc/customizer.php b/inc/customizer.php index eb9df54..f17899f 100755 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -1,8 +1,8 @@ remove_section( 'background_image' ); // Custom WP default control & settings. - $wp_customize->get_section( 'title_tagline' )->title = esc_html__('Site Title, Tagline & Logo', 'onepress'); + $wp_customize->get_section( 'title_tagline' )->title = esc_html__('Site Title, Tagline & Logo', 'coletivo'); $wp_customize->get_setting( 'blogname' )->transport = 'postMessage'; $wp_customize->get_setting( 'blogdescription' )->transport = 'postMessage'; $wp_customize->get_setting( 'header_textcolor' )->transport = 'postMessage'; @@ -28,12 +28,12 @@ function onepress_customize_register( $wp_customize ) { /** * Hook to add other customize */ - do_action( 'onepress_customize_before_register', $wp_customize ); + do_action( 'coletivo_customize_before_register', $wp_customize ); $pages = get_pages(); $option_pages = array(); - $option_pages[0] = __( 'Select page', 'onepress' ); + $option_pages[0] = __( 'Select page', 'coletivo' ); foreach( $pages as $p ){ $option_pages[ $p->ID ] = $p->post_title; } @@ -44,7 +44,7 @@ function onepress_customize_register( $wp_customize ) { 'number' => '', ) ); - $option_users[0] = __( 'Select member', 'onepress' ); + $option_users[0] = __( 'Select member', 'coletivo' ); foreach( $users as $user ){ $option_users[ $user->ID ] = $user->display_name; } @@ -53,33 +53,33 @@ function onepress_customize_register( $wp_customize ) { /* Site Identity. /*------------------------------------------------------------------------*/ - $is_old_logo = get_theme_mod( 'onepress_site_image_logo' ); + $is_old_logo = get_theme_mod( 'coletivo_site_image_logo' ); - $wp_customize->add_setting( 'onepress_hide_sitetitle', + $wp_customize->add_setting( 'coletivo_hide_sitetitle', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => $is_old_logo ? 1: 0, ) ); $wp_customize->add_control( - 'onepress_hide_sitetitle', + 'coletivo_hide_sitetitle', array( - 'label' => esc_html__('Hide site title', 'onepress'), + 'label' => esc_html__('Hide site title', 'coletivo'), 'section' => 'title_tagline', 'type' => 'checkbox', ) ); - $wp_customize->add_setting( 'onepress_hide_tagline', + $wp_customize->add_setting( 'coletivo_hide_tagline', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => $is_old_logo ? 1: 0, ) ); $wp_customize->add_control( - 'onepress_hide_tagline', + 'coletivo_hide_tagline', array( - 'label' => esc_html__('Hide site tagline', 'onepress'), + 'label' => esc_html__('Hide site tagline', 'coletivo'), 'section' => 'title_tagline', 'type' => 'checkbox', @@ -89,106 +89,106 @@ function onepress_customize_register( $wp_customize ) { /*------------------------------------------------------------------------*/ /* Site Options /*------------------------------------------------------------------------*/ - $wp_customize->add_panel( 'onepress_options', + $wp_customize->add_panel( 'coletivo_options', array( 'priority' => 22, 'capability' => 'edit_theme_options', 'theme_supports' => '', - 'title' => esc_html__( 'Theme Options', 'onepress' ), + 'title' => esc_html__( 'Theme Options', 'coletivo' ), 'description' => '', ) ); /* Global Settings ----------------------------------------------------------------------*/ - $wp_customize->add_section( 'onepress_global_settings' , + $wp_customize->add_section( 'coletivo_global_settings' , array( 'priority' => 3, - 'title' => esc_html__( 'Global', 'onepress' ), + 'title' => esc_html__( 'Global', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_options', + 'panel' => 'coletivo_options', ) ); // Footer custom Text - $wp_customize->add_setting( 'onepress_footer_text', + $wp_customize->add_setting( 'coletivo_footer_text', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__( 'Few Rights Reserved', 'onepress' ), + 'default' => esc_html__( 'Few Rights Reserved', 'coletivo' ), 'transport' => 'refresh', ) ); - $wp_customize->add_control( 'onepress_footer_text', + $wp_customize->add_control( 'coletivo_footer_text', array( 'type' => 'text', - 'label' => esc_html__('Footer Text', 'onepress'), - 'section' => 'onepress_global_settings', + 'label' => esc_html__('Footer Text', 'coletivo'), + 'section' => 'coletivo_global_settings', 'description' => '' ) ); // Footer custom Link - $wp_customize->add_setting( 'onepress_footer_text_link', + $wp_customize->add_setting( 'coletivo_footer_text_link', array( 'sanitize_callback' => 'esc_url', - 'default' => esc_url( home_url( '/' )).esc_html__('', 'onepress'), + 'default' => esc_url( home_url( '/' )).esc_html__('', 'coletivo'), 'transport' => 'refresh', ) ); - $wp_customize->add_control( 'onepress_footer_text_link', + $wp_customize->add_control( 'coletivo_footer_text_link', array( 'type' =>'text', - 'label' => esc_html__('Footer Link', 'onepress'), - 'section' => 'onepress_global_settings', + 'label' => esc_html__('Footer Link', 'coletivo'), + 'section' => 'coletivo_global_settings', 'description' => '' ) ); // Disable Sticky Header - $wp_customize->add_setting( 'onepress_sticky_header_disable', + $wp_customize->add_setting( 'coletivo_sticky_header_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_sticky_header_disable', + $wp_customize->add_control( 'coletivo_sticky_header_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Disable Sticky Header?', 'onepress'), - 'section' => 'onepress_global_settings', - 'description' => esc_html__('Check this box to disable sticky header when scroll.', 'onepress') + 'label' => esc_html__('Disable Sticky Header?', 'coletivo'), + 'section' => 'coletivo_global_settings', + 'description' => esc_html__('Check this box to disable sticky header when scroll.', 'coletivo') ) ); // Disable Animation - $wp_customize->add_setting( 'onepress_animation_disable', + $wp_customize->add_setting( 'coletivo_animation_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_animation_disable', + $wp_customize->add_control( 'coletivo_animation_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Disable animation effect?', 'onepress'), - 'section' => 'onepress_global_settings', - 'description' => esc_html__('Check this box to disable all element animation when scroll.', 'onepress') + 'label' => esc_html__('Disable animation effect?', 'coletivo'), + 'section' => 'coletivo_global_settings', + 'description' => esc_html__('Check this box to disable all element animation when scroll.', 'coletivo') ) ); // Disable Animation - $wp_customize->add_setting( 'onepress_btt_disable', + $wp_customize->add_setting( 'coletivo_btt_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', 'transport' => 'postMessage' ) ); - $wp_customize->add_control( 'onepress_btt_disable', + $wp_customize->add_control( 'coletivo_btt_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Hide footer back to top?', 'onepress'), - 'section' => 'onepress_global_settings', - 'description' => esc_html__('Check this box to hide footer back to top button.', 'onepress') + 'label' => esc_html__('Hide footer back to top?', 'coletivo'), + 'section' => 'coletivo_global_settings', + 'description' => esc_html__('Check this box to hide footer back to top button.', 'coletivo') ) ); @@ -196,51 +196,51 @@ function onepress_customize_register( $wp_customize ) { /* Colors ----------------------------------------------------------------------*/ - $wp_customize->add_section( 'onepress_colors_settings' , + $wp_customize->add_section( 'coletivo_colors_settings' , array( 'priority' => 4, - 'title' => esc_html__( 'Site Colors', 'onepress' ), + 'title' => esc_html__( 'Site Colors', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_options', + 'panel' => 'coletivo_options', ) ); // Primary Color - $wp_customize->add_setting( 'onepress_primary_color', array('sanitize_callback' => 'sanitize_hex_color_no_hash', 'sanitize_js_callback' => 'maybe_hash_hex_color', 'default' => '#03c4eb' ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepress_primary_color', + $wp_customize->add_setting( 'coletivo_primary_color', array('sanitize_callback' => 'sanitize_hex_color_no_hash', 'sanitize_js_callback' => 'maybe_hash_hex_color', 'default' => '#03c4eb' ) ); + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'coletivo_primary_color', array( - 'label' => esc_html__( 'Primary Color', 'onepress' ), - 'section' => 'onepress_colors_settings', + 'label' => esc_html__( 'Primary Color', 'coletivo' ), + 'section' => 'coletivo_colors_settings', 'description' => '', 'priority' => 1 ) )); // Footer BG Color - $wp_customize->add_setting( 'onepress_footer_bg', array( + $wp_customize->add_setting( 'coletivo_footer_bg', array( 'sanitize_callback' => 'sanitize_hex_color_no_hash', 'sanitize_js_callback' => 'maybe_hash_hex_color', 'default' => '', 'transport' => 'postMessage' ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepress_footer_bg', + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'coletivo_footer_bg', array( - 'label' => esc_html__( 'Footer Background', 'onepress' ), - 'section' => 'onepress_colors_settings', + 'label' => esc_html__( 'Footer Background', 'coletivo' ), + 'section' => 'coletivo_colors_settings', 'description' => '', ) )); // Footer Widgets Color - $wp_customize->add_setting( 'onepress_footer_info_bg', array( + $wp_customize->add_setting( 'coletivo_footer_info_bg', array( 'sanitize_callback' => 'sanitize_hex_color_no_hash', 'sanitize_js_callback' => 'maybe_hash_hex_color', 'default' => '', 'transport' => 'postMessage' ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepress_footer_info_bg', + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'coletivo_footer_info_bg', array( - 'label' => esc_html__( 'Footer Info Background', 'onepress' ), - 'section' => 'onepress_colors_settings', + 'label' => esc_html__( 'Footer Info Background', 'coletivo' ), + 'section' => 'coletivo_colors_settings', 'description' => '', ) )); @@ -249,230 +249,230 @@ function onepress_customize_register( $wp_customize ) { /* Header ----------------------------------------------------------------------*/ - $wp_customize->add_section( 'onepress_header_settings' , + $wp_customize->add_section( 'coletivo_header_settings' , array( 'priority' => 5, - 'title' => esc_html__( 'Header', 'onepress' ), + 'title' => esc_html__( 'Header', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_options', + 'panel' => 'coletivo_options', ) ); // Header BG Color - $wp_customize->add_setting( 'onepress_header_bg_color', + $wp_customize->add_setting( 'coletivo_header_bg_color', array( 'sanitize_callback' => 'sanitize_hex_color_no_hash', 'sanitize_js_callback' => 'maybe_hash_hex_color', 'default' => '' ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepress_header_bg_color', + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'coletivo_header_bg_color', array( - 'label' => esc_html__( 'Background Color', 'onepress' ), - 'section' => 'onepress_header_settings', + 'label' => esc_html__( 'Background Color', 'coletivo' ), + 'section' => 'coletivo_header_settings', 'description' => '', ) )); // Site Title Color - $wp_customize->add_setting( 'onepress_logo_text_color', + $wp_customize->add_setting( 'coletivo_logo_text_color', array( 'sanitize_callback' => 'sanitize_hex_color_no_hash', 'sanitize_js_callback' => 'maybe_hash_hex_color', 'default' => '' ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepress_logo_text_color', + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'coletivo_logo_text_color', array( - 'label' => esc_html__( 'Site Title Color', 'onepress' ), - 'section' => 'onepress_header_settings', - 'description' => esc_html__( 'Only set if you don\'t use an image logo.', 'onepress' ), + 'label' => esc_html__( 'Site Title Color', 'coletivo' ), + 'section' => 'coletivo_header_settings', + 'description' => esc_html__( 'Only set if you don\'t use an image logo.', 'coletivo' ), ) )); // Header Menu Color - $wp_customize->add_setting( 'onepress_menu_color', + $wp_customize->add_setting( 'coletivo_menu_color', array( 'sanitize_callback' => 'sanitize_hex_color_no_hash', 'sanitize_js_callback' => 'maybe_hash_hex_color', 'default' => '' ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepress_menu_color', + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'coletivo_menu_color', array( - 'label' => esc_html__( 'Menu Link Color', 'onepress' ), - 'section' => 'onepress_header_settings', + 'label' => esc_html__( 'Menu Link Color', 'coletivo' ), + 'section' => 'coletivo_header_settings', 'description' => '', ) )); // Header Menu Hover Color - $wp_customize->add_setting( 'onepress_menu_hover_color', + $wp_customize->add_setting( 'coletivo_menu_hover_color', array( 'sanitize_callback' => 'sanitize_hex_color_no_hash', 'sanitize_js_callback' => 'maybe_hash_hex_color', 'default' => '' ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepress_menu_hover_color', + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'coletivo_menu_hover_color', array( - 'label' => esc_html__( 'Menu Link Hover/Active Color', 'onepress' ), - 'section' => 'onepress_header_settings', + 'label' => esc_html__( 'Menu Link Hover/Active Color', 'coletivo' ), + 'section' => 'coletivo_header_settings', 'description' => '', ) )); // Header Menu Hover BG Color - $wp_customize->add_setting( 'onepress_menu_hover_bg_color', + $wp_customize->add_setting( 'coletivo_menu_hover_bg_color', array( 'sanitize_callback' => 'sanitize_hex_color_no_hash', 'sanitize_js_callback' => 'maybe_hash_hex_color', 'default' => '' ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepress_menu_hover_bg_color', + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'coletivo_menu_hover_bg_color', array( - 'label' => esc_html__( 'Menu Link Hover/Active BG Color', 'onepress' ), - 'section' => 'onepress_header_settings', + 'label' => esc_html__( 'Menu Link Hover/Active BG Color', 'coletivo' ), + 'section' => 'coletivo_header_settings', 'description' => '', ) )); // Reponsive Mobie button color - $wp_customize->add_setting( 'onepress_menu_toggle_button_color', + $wp_customize->add_setting( 'coletivo_menu_toggle_button_color', array( 'sanitize_callback' => 'sanitize_hex_color_no_hash', 'sanitize_js_callback' => 'maybe_hash_hex_color', 'default' => '' ) ); - $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'onepress_menu_toggle_button_color', + $wp_customize->add_control( new WP_Customize_Color_Control( $wp_customize, 'coletivo_menu_toggle_button_color', array( - 'label' => esc_html__( 'Responsive Menu Button Color', 'onepress' ), - 'section' => 'onepress_header_settings', + 'label' => esc_html__( 'Responsive Menu Button Color', 'coletivo' ), + 'section' => 'coletivo_header_settings', 'description' => '', ) )); // Vertical align menu - $wp_customize->add_setting( 'onepress_vertical_align_menu', + $wp_customize->add_setting( 'coletivo_vertical_align_menu', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_vertical_align_menu', + $wp_customize->add_control( 'coletivo_vertical_align_menu', array( 'type' => 'checkbox', - 'label' => esc_html__('Center vertical align for menu', 'onepress'), - 'section' => 'onepress_header_settings', - 'description' => esc_html__('If you use logo and your logo is too tall, check this box to auto vertical align menu.', 'onepress') + 'label' => esc_html__('Center vertical align for menu', 'coletivo'), + 'section' => 'coletivo_header_settings', + 'description' => esc_html__('If you use logo and your logo is too tall, check this box to auto vertical align menu.', 'coletivo') ) ); // Header Transparent - $wp_customize->add_setting( 'onepress_header_transparent', + $wp_customize->add_setting( 'coletivo_header_transparent', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', - 'active_callback' => 'onepress_showon_frontpage' + 'active_callback' => 'coletivo_showon_frontpage' ) ); - $wp_customize->add_control( 'onepress_header_transparent', + $wp_customize->add_control( 'coletivo_header_transparent', array( 'type' => 'checkbox', - 'label' => esc_html__('Header Transparent', 'onepress'), - 'section' => 'onepress_header_settings', - 'description' => esc_html__('Apply for front page template only.', 'onepress') + 'label' => esc_html__('Header Transparent', 'coletivo'), + 'section' => 'coletivo_header_settings', + 'description' => esc_html__('Apply for front page template only.', 'coletivo') ) ); /* Social Settings ----------------------------------------------------------------------*/ - $wp_customize->add_section( 'onepress_social' , + $wp_customize->add_section( 'coletivo_social' , array( 'priority' => 6, - 'title' => esc_html__( 'Social Profiles', 'onepress' ), + 'title' => esc_html__( 'Social Profiles', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_options', + 'panel' => 'coletivo_options', ) ); // Disable Social - $wp_customize->add_setting( 'onepress_social_disable', + $wp_customize->add_setting( 'coletivo_social_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '1', ) ); - $wp_customize->add_control( 'onepress_social_disable', + $wp_customize->add_control( 'coletivo_social_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Hide Footer Social?', 'onepress'), - 'section' => 'onepress_social', - 'description' => esc_html__('Check this box to hide footer social section.', 'onepress') + 'label' => esc_html__('Hide Footer Social?', 'coletivo'), + 'section' => 'coletivo_social', + 'description' => esc_html__('Check this box to hide footer social section.', 'coletivo') ) ); - $wp_customize->add_setting( 'onepress_social_footer_guide', + $wp_customize->add_setting( 'coletivo_social_footer_guide', array( - 'sanitize_callback' => 'onepress_sanitize_text' + 'sanitize_callback' => 'coletivo_sanitize_text' ) ); - $wp_customize->add_control( new OnePress_Misc_Control( $wp_customize, 'onepress_social_footer_guide', + $wp_customize->add_control( new coletivo_Misc_Control( $wp_customize, 'coletivo_social_footer_guide', array( - 'section' => 'onepress_social', + 'section' => 'coletivo_social', 'type' => 'custom_message', - 'description' => esc_html__( 'These social profiles setting below will display at the footer of your site.', 'onepress' ) + 'description' => esc_html__( 'These social profiles setting below will display at the footer of your site.', 'coletivo' ) ) )); // Footer Social Title - $wp_customize->add_setting( 'onepress_social_footer_title', + $wp_customize->add_setting( 'coletivo_social_footer_title', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__( 'Keep Updated', 'onepress' ), + 'default' => esc_html__( 'Keep Updated', 'coletivo' ), 'transport' => 'postMessage', ) ); - $wp_customize->add_control( 'onepress_social_footer_title', + $wp_customize->add_control( 'coletivo_social_footer_title', array( - 'label' => esc_html__('Social Footer Title', 'onepress'), - 'section' => 'onepress_social', + 'label' => esc_html__('Social Footer Title', 'coletivo'), + 'section' => 'coletivo_social', 'description' => '' ) ); // Socials $wp_customize->add_setting( - 'onepress_social_profiles', + 'coletivo_social_profiles', array( //'default' => '', - 'sanitize_callback' => 'onepress_sanitize_repeatable_data_field', + 'sanitize_callback' => 'coletivo_sanitize_repeatable_data_field', 'transport' => 'postMessage', // refresh or postMessage ) ); $wp_customize->add_control( - new Onepress_Customize_Repeatable_Control( + new coletivo_Customize_Repeatable_Control( $wp_customize, - 'onepress_social_profiles', + 'coletivo_social_profiles', array( - 'label' => esc_html__('Socials', 'onepress'), + 'label' => esc_html__('Socials', 'coletivo'), 'description' => '', - 'section' => 'onepress_social', + 'section' => 'coletivo_social', 'live_title_id' => 'network', // apply for unput text and textarea only - 'title_format' => esc_html__('[live_title]', 'onepress'), // [live_title] + 'title_format' => esc_html__('[live_title]', 'coletivo'), // [live_title] 'max_item' => 5, // Maximum item can add - 'limited_msg' => esc_html__( 'Only 5 social networks allowed', 'onepress' ), + 'limited_msg' => esc_html__( 'Only 5 social networks allowed', 'coletivo' ), 'fields' => array( 'network' => array( - 'title' => esc_html__('Social network', 'onepress'), + 'title' => esc_html__('Social network', 'coletivo'), 'type' =>'text', ), 'icon' => array( - 'title' => esc_html__('Icon', 'onepress'), + 'title' => esc_html__('Icon', 'coletivo'), 'type' =>'icon', ), 'link' => array( - 'title' => esc_html__('URL', 'onepress'), + 'title' => esc_html__('URL', 'coletivo'), 'type' =>'text', ), ), @@ -484,16 +484,16 @@ function onepress_customize_register( $wp_customize ) { /* Hero options ----------------------------------------------------------------------*/ $wp_customize->add_section( - 'onepress_hero_options', + 'coletivo_hero_options', array( - 'title' => __( 'Hero Options', 'onepress' ), - 'panel' => 'onepress_options', + 'title' => __( 'Hero Options', 'coletivo' ), + 'panel' => 'coletivo_options', ) ); $wp_customize->add_setting( - 'onepress_hero_option_animation', + 'coletivo_hero_option_animation', array( 'default' => 'flipInX', 'sanitize_callback' => 'sanitize_text_field', @@ -517,10 +517,10 @@ function onepress_customize_register( $wp_customize ) { } $wp_customize->add_control( - 'onepress_hero_option_animation', + 'coletivo_hero_option_animation', array( - 'label' => __( 'Text animation', 'onepress' ), - 'section' => 'onepress_hero_options', + 'label' => __( 'Text animation', 'coletivo' ), + 'section' => 'coletivo_hero_options', 'type' => 'select', 'choices' => $animations, ) @@ -528,7 +528,7 @@ function onepress_customize_register( $wp_customize ) { $wp_customize->add_setting( - 'onepress_hero_option_speed', + 'coletivo_hero_option_speed', array( 'default' => '5000', 'sanitize_callback' => 'sanitize_text_field', @@ -536,11 +536,11 @@ function onepress_customize_register( $wp_customize ) { ); $wp_customize->add_control( - 'onepress_hero_option_speed', + 'coletivo_hero_option_speed', array( - 'label' => __( 'Speed', 'onepress' ), - 'description' => esc_html__( 'The delay between the changing of each phrase in milliseconds.', 'onepress' ), - 'section' => 'onepress_hero_options', + 'label' => __( 'Speed', 'coletivo' ), + 'description' => esc_html__( 'The delay between the changing of each phrase in milliseconds.', 'coletivo' ), + 'section' => 'coletivo_hero_options', ) ); @@ -548,116 +548,116 @@ function onepress_customize_register( $wp_customize ) { /* Section: Hero /*------------------------------------------------------------------------*/ - $wp_customize->add_panel( 'onepress_hero_panel' , + $wp_customize->add_panel( 'coletivo_hero_panel' , array( 'priority' => 130, - 'title' => esc_html__( 'Section: Hero', 'onepress' ), + 'title' => esc_html__( 'Section: Hero', 'coletivo' ), 'description' => '', - 'active_callback' => 'onepress_showon_frontpage' + 'active_callback' => 'coletivo_showon_frontpage' ) ); // Hero settings - $wp_customize->add_section( 'onepress_hero_settings' , + $wp_customize->add_section( 'coletivo_hero_settings' , array( 'priority' => 3, - 'title' => esc_html__( 'Hero Settings', 'onepress' ), + 'title' => esc_html__( 'Hero Settings', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_hero_panel', + 'panel' => 'coletivo_hero_panel', ) ); // Show section - $wp_customize->add_setting( 'onepress_hero_disable', + $wp_customize->add_setting( 'coletivo_hero_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_hero_disable', + $wp_customize->add_control( 'coletivo_hero_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Hide this section?', 'onepress'), - 'section' => 'onepress_hero_settings', - 'description' => esc_html__('Check this box to hide this section.', 'onepress'), + 'label' => esc_html__('Hide this section?', 'coletivo'), + 'section' => 'coletivo_hero_settings', + 'description' => esc_html__('Check this box to hide this section.', 'coletivo'), ) ); // Section ID - $wp_customize->add_setting( 'onepress_hero_id', + $wp_customize->add_setting( 'coletivo_hero_id', array( - 'sanitize_callback' => 'onepress_sanitize_text', - 'default' => esc_html__('hero', 'onepress'), + 'sanitize_callback' => 'coletivo_sanitize_text', + 'default' => esc_html__('hero', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_hero_id', + $wp_customize->add_control( 'coletivo_hero_id', array( - 'label' => esc_html__('Section ID:', 'onepress'), - 'section' => 'onepress_hero_settings', - 'description' => esc_html__( 'The section id, we will use this for link anchor.', 'onepress' ) + 'label' => esc_html__('Section ID:', 'coletivo'), + 'section' => 'coletivo_hero_settings', + 'description' => esc_html__( 'The section id, we will use this for link anchor.', 'coletivo' ) ) ); // Show hero full screen - $wp_customize->add_setting( 'onepress_hero_fullscreen', + $wp_customize->add_setting( 'coletivo_hero_fullscreen', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_hero_fullscreen', + $wp_customize->add_control( 'coletivo_hero_fullscreen', array( 'type' => 'checkbox', - 'label' => esc_html__('Make hero section full screen', 'onepress'), - 'section' => 'onepress_hero_settings', - 'description' => esc_html__('Check this box to make hero section full screen.', 'onepress'), + 'label' => esc_html__('Make hero section full screen', 'coletivo'), + 'section' => 'coletivo_hero_settings', + 'description' => esc_html__('Check this box to make hero section full screen.', 'coletivo'), ) ); // Hero content padding top - $wp_customize->add_setting( 'onepress_hero_pdtop', + $wp_customize->add_setting( 'coletivo_hero_pdtop', array( - 'sanitize_callback' => 'onepress_sanitize_text', - 'default' => esc_html__('10', 'onepress'), + 'sanitize_callback' => 'coletivo_sanitize_text', + 'default' => esc_html__('10', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_hero_pdtop', + $wp_customize->add_control( 'coletivo_hero_pdtop', array( - 'label' => esc_html__('Padding Top:', 'onepress'), - 'section' => 'onepress_hero_settings', - 'description' => esc_html__( 'The hero content padding top in percent (%).', 'onepress' ), - 'active_callback' => 'onepress_hero_fullscreen_callback' + 'label' => esc_html__('Padding Top:', 'coletivo'), + 'section' => 'coletivo_hero_settings', + 'description' => esc_html__( 'The hero content padding top in percent (%).', 'coletivo' ), + 'active_callback' => 'coletivo_hero_fullscreen_callback' ) ); // Hero content padding bottom - $wp_customize->add_setting( 'onepress_hero_pdbotom', + $wp_customize->add_setting( 'coletivo_hero_pdbotom', array( - 'sanitize_callback' => 'onepress_sanitize_text', - 'default' => esc_html__('10', 'onepress'), + 'sanitize_callback' => 'coletivo_sanitize_text', + 'default' => esc_html__('10', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_hero_pdbotom', + $wp_customize->add_control( 'coletivo_hero_pdbotom', array( - 'label' => esc_html__('Padding Bottom:', 'onepress'), - 'section' => 'onepress_hero_settings', - 'description' => esc_html__( 'The hero content padding bottom in percent (%).', 'onepress' ), - 'active_callback' => 'onepress_hero_fullscreen_callback' + 'label' => esc_html__('Padding Bottom:', 'coletivo'), + 'section' => 'coletivo_hero_settings', + 'description' => esc_html__( 'The hero content padding bottom in percent (%).', 'coletivo' ), + 'active_callback' => 'coletivo_hero_fullscreen_callback' ) ); - $wp_customize->add_section( 'onepress_hero_images' , + $wp_customize->add_section( 'coletivo_hero_images' , array( 'priority' => 6, - 'title' => esc_html__( 'Hero Background Media', 'onepress' ), + 'title' => esc_html__( 'Hero Background Media', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_hero_panel', + 'panel' => 'coletivo_hero_panel', ) ); $wp_customize->add_setting( - 'onepress_hero_images', + 'coletivo_hero_images', array( - 'sanitize_callback' => 'onepress_sanitize_repeatable_data_field', + 'sanitize_callback' => 'coletivo_sanitize_repeatable_data_field', 'transport' => 'refresh', // refresh or postMessage 'default' => json_encode( array( array( @@ -670,19 +670,19 @@ function onepress_customize_register( $wp_customize ) { ) ); $wp_customize->add_control( - new Onepress_Customize_Repeatable_Control( + new coletivo_Customize_Repeatable_Control( $wp_customize, - 'onepress_hero_images', + 'coletivo_hero_images', array( - 'label' => esc_html__('Background Images', 'onepress'), + 'label' => esc_html__('Background Images', 'coletivo'), 'description' => '', 'priority' => 40, - 'section' => 'onepress_hero_images', - 'title_format' => esc_html__( 'Background', 'onepress'), // [live_title] + 'section' => 'coletivo_hero_images', + 'title_format' => esc_html__( 'Background', 'coletivo'), // [live_title] 'max_item' => 5, // Maximum item can add 'fields' => array( 'image' => array( - 'title' => esc_html__('Background Image', 'onepress'), + 'title' => esc_html__('Background Image', 'coletivo'), 'type' =>'media', 'default' => array( 'url' => get_template_directory_uri().'/assets/images/coletivo1.jpg', @@ -697,19 +697,19 @@ function onepress_customize_register( $wp_customize ) { ); // Overlay color - $wp_customize->add_setting( 'onepress_hero_overlay_color', + $wp_customize->add_setting( 'coletivo_hero_overlay_color', array( - 'sanitize_callback' => 'onepress_sanitize_color_alpha', + 'sanitize_callback' => 'coletivo_sanitize_color_alpha', 'default' => 'rgba(0,0,0,.3)', 'transport' => 'refresh', // refresh or postMessage ) ); - $wp_customize->add_control( new OnePress_Alpha_Color_Control( + $wp_customize->add_control( new coletivo_Alpha_Color_Control( $wp_customize, - 'onepress_hero_overlay_color', + 'coletivo_hero_overlay_color', array( - 'label' => esc_html__('Background Overlay Color', 'onepress'), - 'section' => 'onepress_hero_images', + 'label' => esc_html__('Background Overlay Color', 'coletivo'), + 'section' => 'coletivo_hero_images', 'priority' => 130, ) ) @@ -717,192 +717,192 @@ function onepress_customize_register( $wp_customize ) { // Parallax - $wp_customize->add_setting( 'onepress_hero_parallax', + $wp_customize->add_setting( 'coletivo_hero_parallax', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => 0, 'transport' => 'refresh', // refresh or postMessage ) ); $wp_customize->add_control( - 'onepress_hero_parallax', + 'coletivo_hero_parallax', array( - 'label' => esc_html__('Enable parallax effect (apply for first BG image only)', 'onepress'), - 'section' => 'onepress_hero_images', + 'label' => esc_html__('Enable parallax effect (apply for first BG image only)', 'coletivo'), + 'section' => 'coletivo_hero_images', 'type' => 'checkbox', 'priority' => 50, 'description' => '', ) ); - $wp_customize->add_section( 'onepress_hero_content_layout1' , + $wp_customize->add_section( 'coletivo_hero_content_layout1' , array( 'priority' => 9, - 'title' => esc_html__( 'Hero Content Layout', 'onepress' ), + 'title' => esc_html__( 'Hero Content Layout', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_hero_panel', + 'panel' => 'coletivo_hero_panel', ) ); // Hero Layout - $wp_customize->add_setting( 'onepress_hero_layout', + $wp_customize->add_setting( 'coletivo_hero_layout', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '1', ) ); - $wp_customize->add_control( 'onepress_hero_layout', + $wp_customize->add_control( 'coletivo_hero_layout', array( - 'label' => esc_html__('Display Layout', 'onepress'), - 'section' => 'onepress_hero_content_layout1', + 'label' => esc_html__('Display Layout', 'coletivo'), + 'section' => 'coletivo_hero_content_layout1', 'description' => '', 'type' => 'select', 'choices' => array( - '1' => esc_html__('Layout 1', 'onepress' ), - '2' => esc_html__('Layout 2', 'onepress' ), + '1' => esc_html__('Layout 1', 'coletivo' ), + '2' => esc_html__('Layout 2', 'coletivo' ), ), ) ); // For Hero layout ------------------------ // Large Text - $wp_customize->add_setting( 'onepress_hcl1_largetext', + $wp_customize->add_setting( 'coletivo_hcl1_largetext', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'mod' => 'html', - 'default' => __('We are OnePress | One Page | Responsive | Perfection', 'onepress'), + 'default' => __('We are coletivo | One Page | Responsive | Perfection', 'coletivo'), ) ); - $wp_customize->add_control( new OnePress_Editor_Custom_Control( + $wp_customize->add_control( new coletivo_Editor_Custom_Control( $wp_customize, - 'onepress_hcl1_largetext', + 'coletivo_hcl1_largetext', array( - 'label' => esc_html__('Large Text', 'onepress'), - 'section' => 'onepress_hero_content_layout1', - 'description' => esc_html__('Text Rotating Guide: Put your rotate texts separate by "|" into ..., go to Customizer->Site Option->Animate to control rotate animation.', 'onepress'), + 'label' => esc_html__('Large Text', 'coletivo'), + 'section' => 'coletivo_hero_content_layout1', + 'description' => esc_html__('Text Rotating Guide: Put your rotate texts separate by "|" into ..., go to Customizer->Site Option->Animate to control rotate animation.', 'coletivo'), ) )); // Small Text - $wp_customize->add_setting( 'onepress_hcl1_smalltext', + $wp_customize->add_setting( 'coletivo_hcl1_smalltext', array( - 'sanitize_callback' => 'onepress_sanitize_text', - 'default' => __('Morbi tempus porta nunc pharetra quisque ligula imperdiet posuere
    vitae felis proin sagittis leo ac tellus blandit sollicitudin quisque vitae placerat.', 'onepress'), + 'sanitize_callback' => 'coletivo_sanitize_text', + 'default' => __('Morbi tempus porta nunc pharetra quisque ligula imperdiet posuere
    vitae felis proin sagittis leo ac tellus blandit sollicitudin quisque vitae placerat.', 'coletivo'), ) ); - $wp_customize->add_control( new OnePress_Editor_Custom_Control( + $wp_customize->add_control( new coletivo_Editor_Custom_Control( $wp_customize, - 'onepress_hcl1_smalltext', + 'coletivo_hcl1_smalltext', array( - 'label' => esc_html__('Small Text', 'onepress'), - 'section' => 'onepress_hero_content_layout1', + 'label' => esc_html__('Small Text', 'coletivo'), + 'section' => 'coletivo_hero_content_layout1', 'mod' => 'html', - 'description' => esc_html__('You can use text rotate slider in this textarea too.', 'onepress'), + 'description' => esc_html__('You can use text rotate slider in this textarea too.', 'coletivo'), ) )); // Button #1 Text - $wp_customize->add_setting( 'onepress_hcl1_btn1_text', + $wp_customize->add_setting( 'coletivo_hcl1_btn1_text', array( - 'sanitize_callback' => 'onepress_sanitize_text', - 'default' => esc_html__('About Us', 'onepress'), + 'sanitize_callback' => 'coletivo_sanitize_text', + 'default' => esc_html__('About Us', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_hcl1_btn1_text', + $wp_customize->add_control( 'coletivo_hcl1_btn1_text', array( - 'label' => esc_html__('Button #1 Text', 'onepress'), - 'section' => 'onepress_hero_content_layout1' + 'label' => esc_html__('Button #1 Text', 'coletivo'), + 'section' => 'coletivo_hero_content_layout1' ) ); // Button #1 Link - $wp_customize->add_setting( 'onepress_hcl1_btn1_link', + $wp_customize->add_setting( 'coletivo_hcl1_btn1_link', array( 'sanitize_callback' => 'esc_url', - 'default' => esc_url( home_url( '/' )).esc_html__('#about', 'onepress'), + 'default' => esc_url( home_url( '/' )).esc_html__('#about', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_hcl1_btn1_link', + $wp_customize->add_control( 'coletivo_hcl1_btn1_link', array( - 'label' => esc_html__('Button #1 Link', 'onepress'), - 'section' => 'onepress_hero_content_layout1' + 'label' => esc_html__('Button #1 Link', 'coletivo'), + 'section' => 'coletivo_hero_content_layout1' ) ); // Button #1 Style - $wp_customize->add_setting( 'onepress_hcl1_btn1_style', + $wp_customize->add_setting( 'coletivo_hcl1_btn1_style', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => 'btn-theme-primary', ) ); - $wp_customize->add_control( 'onepress_hcl1_btn1_style', + $wp_customize->add_control( 'coletivo_hcl1_btn1_style', array( - 'label' => esc_html__('Button #1 style', 'onepress'), - 'section' => 'onepress_hero_content_layout1', + 'label' => esc_html__('Button #1 style', 'coletivo'), + 'section' => 'coletivo_hero_content_layout1', 'type' => 'select', 'choices' => array( - 'btn-theme-primary' => esc_html__('Button Primary', 'onepress'), - 'btn-secondary-outline' => esc_html__('Button Secondary', 'onepress'), - 'btn-default' => esc_html__('Button', 'onepress'), - 'btn-primary' => esc_html__('Primary', 'onepress'), - 'btn-success' => esc_html__('Success', 'onepress'), - 'btn-info' => esc_html__('Info', 'onepress'), - 'btn-warning' => esc_html__('Warning', 'onepress'), - 'btn-danger' => esc_html__('Danger', 'onepress'), + 'btn-theme-primary' => esc_html__('Button Primary', 'coletivo'), + 'btn-secondary-outline' => esc_html__('Button Secondary', 'coletivo'), + 'btn-default' => esc_html__('Button', 'coletivo'), + 'btn-primary' => esc_html__('Primary', 'coletivo'), + 'btn-success' => esc_html__('Success', 'coletivo'), + 'btn-info' => esc_html__('Info', 'coletivo'), + 'btn-warning' => esc_html__('Warning', 'coletivo'), + 'btn-danger' => esc_html__('Danger', 'coletivo'), ) ) ); // Button #2 Text - $wp_customize->add_setting( 'onepress_hcl1_btn2_text', + $wp_customize->add_setting( 'coletivo_hcl1_btn2_text', array( - 'sanitize_callback' => 'onepress_sanitize_text', - 'default' => esc_html__('Get Started', 'onepress'), + 'sanitize_callback' => 'coletivo_sanitize_text', + 'default' => esc_html__('Get Started', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_hcl1_btn2_text', + $wp_customize->add_control( 'coletivo_hcl1_btn2_text', array( - 'label' => esc_html__('Button #2 Text', 'onepress'), - 'section' => 'onepress_hero_content_layout1' + 'label' => esc_html__('Button #2 Text', 'coletivo'), + 'section' => 'coletivo_hero_content_layout1' ) ); // Button #2 Link - $wp_customize->add_setting( 'onepress_hcl1_btn2_link', + $wp_customize->add_setting( 'coletivo_hcl1_btn2_link', array( 'sanitize_callback' => 'esc_url', - 'default' => esc_url( home_url( '/' )).esc_html__('#contact', 'onepress'), + 'default' => esc_url( home_url( '/' )).esc_html__('#contact', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_hcl1_btn2_link', + $wp_customize->add_control( 'coletivo_hcl1_btn2_link', array( - 'label' => esc_html__('Button #2 Link', 'onepress'), - 'section' => 'onepress_hero_content_layout1' + 'label' => esc_html__('Button #2 Link', 'coletivo'), + 'section' => 'coletivo_hero_content_layout1' ) ); // Button #1 Style - $wp_customize->add_setting( 'onepress_hcl1_btn2_style', + $wp_customize->add_setting( 'coletivo_hcl1_btn2_style', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => 'btn-secondary-outline', ) ); - $wp_customize->add_control( 'onepress_hcl1_btn2_style', + $wp_customize->add_control( 'coletivo_hcl1_btn2_style', array( - 'label' => esc_html__('Button #1 style', 'onepress'), - 'section' => 'onepress_hero_content_layout1', + 'label' => esc_html__('Button #1 style', 'coletivo'), + 'section' => 'coletivo_hero_content_layout1', 'type' => 'select', 'choices' => array( - 'btn-theme-primary' => esc_html__('Button Primary', 'onepress'), - 'btn-secondary-outline' => esc_html__('Button Secondary', 'onepress'), - 'btn-default' => esc_html__('Button', 'onepress'), - 'btn-primary' => esc_html__('Primary', 'onepress'), - 'btn-success' => esc_html__('Success', 'onepress'), - 'btn-info' => esc_html__('Info', 'onepress'), - 'btn-warning' => esc_html__('Warning', 'onepress'), - 'btn-danger' => esc_html__('Danger', 'onepress'), + 'btn-theme-primary' => esc_html__('Button Primary', 'coletivo'), + 'btn-secondary-outline' => esc_html__('Button Secondary', 'coletivo'), + 'btn-default' => esc_html__('Button', 'coletivo'), + 'btn-primary' => esc_html__('Primary', 'coletivo'), + 'btn-success' => esc_html__('Success', 'coletivo'), + 'btn-info' => esc_html__('Info', 'coletivo'), + 'btn-warning' => esc_html__('Warning', 'coletivo'), + 'btn-danger' => esc_html__('Danger', 'coletivo'), ) ) ); @@ -911,37 +911,37 @@ function onepress_customize_register( $wp_customize ) { /* Layout 2 ---- */ // Layout 22 content text - $wp_customize->add_setting( 'onepress_hcl2_content', + $wp_customize->add_setting( 'coletivo_hcl2_content', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'mod' => 'html', 'default' => wp_kses_post( '

    Business Website'."\n".'Made Simple.

    '."\n".'We provide creative solutions to clients around the world,'."\n".'creating things that get attention and meaningful.'."\n\n".'Get Started' ), ) ); - $wp_customize->add_control( new OnePress_Editor_Custom_Control( + $wp_customize->add_control( new coletivo_Editor_Custom_Control( $wp_customize, - 'onepress_hcl2_content', + 'coletivo_hcl2_content', array( - 'label' => esc_html__('Content Text', 'onepress'), - 'section' => 'onepress_hero_content_layout1', + 'label' => esc_html__('Content Text', 'coletivo'), + 'section' => 'coletivo_hero_content_layout1', 'description' => '', ) )); // Layout 2 image - $wp_customize->add_setting( 'onepress_hcl2_image', + $wp_customize->add_setting( 'coletivo_hcl2_image', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'mod' => 'html', - 'default' => get_template_directory_uri().'/assets/images/onepress_responsive.png', + 'default' => get_template_directory_uri().'/assets/images/coletivo_responsive.png', ) ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, - 'onepress_hcl2_image', + 'coletivo_hcl2_image', array( - 'label' => esc_html__('Image', 'onepress'), - 'section' => 'onepress_hero_content_layout1', + 'label' => esc_html__('Image', 'coletivo'), + 'section' => 'coletivo_hero_content_layout1', 'description' => '', ) )); @@ -949,184 +949,184 @@ function onepress_customize_register( $wp_customize ) { /*------------------------------------------------------------------------*/ /* Section: Features /*------------------------------------------------------------------------*/ - $wp_customize->add_panel( 'onepress_features' , + $wp_customize->add_panel( 'coletivo_features' , array( 'priority' => 132, - 'title' => esc_html__( 'Section: Features', 'onepress' ), + 'title' => esc_html__( 'Section: Features', 'coletivo' ), 'description' => '', - 'active_callback' => 'onepress_showon_frontpage' + 'active_callback' => 'coletivo_showon_frontpage' ) ); - $wp_customize->add_section( 'onepress_features_settings' , + $wp_customize->add_section( 'coletivo_features_settings' , array( 'priority' => 3, - 'title' => esc_html__( 'Section Settings', 'onepress' ), + 'title' => esc_html__( 'Section Settings', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_features', + 'panel' => 'coletivo_features', ) ); // Show Content - $wp_customize->add_setting( 'onepress_features_disable', + $wp_customize->add_setting( 'coletivo_features_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_features_disable', + $wp_customize->add_control( 'coletivo_features_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Hide this section?', 'onepress'), - 'section' => 'onepress_features_settings', - 'description' => esc_html__('Check this box to hide this section.', 'onepress'), + 'label' => esc_html__('Hide this section?', 'coletivo'), + 'section' => 'coletivo_features_settings', + 'description' => esc_html__('Check this box to hide this section.', 'coletivo'), ) ); // Section ID - $wp_customize->add_setting( 'onepress_features_id', + $wp_customize->add_setting( 'coletivo_features_id', array( - 'sanitize_callback' => 'onepress_sanitize_text', - 'default' => esc_html__('features', 'onepress'), + 'sanitize_callback' => 'coletivo_sanitize_text', + 'default' => esc_html__('features', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_features_id', + $wp_customize->add_control( 'coletivo_features_id', array( - 'label' => esc_html__('Section ID:', 'onepress'), - 'section' => 'onepress_features_settings', - 'description' => esc_html__( 'The section id, we will use this for link anchor.', 'onepress' ) + 'label' => esc_html__('Section ID:', 'coletivo'), + 'section' => 'coletivo_features_settings', + 'description' => esc_html__( 'The section id, we will use this for link anchor.', 'coletivo' ) ) ); // Title - $wp_customize->add_setting( 'onepress_features_title', + $wp_customize->add_setting( 'coletivo_features_title', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Features', 'onepress'), + 'default' => esc_html__('Features', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_features_title', + $wp_customize->add_control( 'coletivo_features_title', array( - 'label' => esc_html__('Section Title', 'onepress'), - 'section' => 'onepress_features_settings', + 'label' => esc_html__('Section Title', 'coletivo'), + 'section' => 'coletivo_features_settings', 'description' => '', ) ); // Sub Title - $wp_customize->add_setting( 'onepress_features_subtitle', + $wp_customize->add_setting( 'coletivo_features_subtitle', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Section subtitle', 'onepress'), + 'default' => esc_html__('Section subtitle', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_features_subtitle', + $wp_customize->add_control( 'coletivo_features_subtitle', array( - 'label' => esc_html__('Section Subtitle', 'onepress'), - 'section' => 'onepress_features_settings', + 'label' => esc_html__('Section Subtitle', 'coletivo'), + 'section' => 'coletivo_features_settings', 'description' => '', ) ); // Description - $wp_customize->add_setting( 'onepress_features_desc', + $wp_customize->add_setting( 'coletivo_features_desc', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( new OnePress_Editor_Custom_Control( + $wp_customize->add_control( new coletivo_Editor_Custom_Control( $wp_customize, - 'onepress_features_desc', + 'coletivo_features_desc', array( - 'label' => esc_html__('Section Description', 'onepress'), - 'section' => 'onepress_features_settings', + 'label' => esc_html__('Section Description', 'coletivo'), + 'section' => 'coletivo_features_settings', 'description' => '', ) )); // Features layout - $wp_customize->add_setting( 'onepress_features_layout', + $wp_customize->add_setting( 'coletivo_features_layout', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '3', ) ); - $wp_customize->add_control( 'onepress_features_layout', + $wp_customize->add_control( 'coletivo_features_layout', array( - 'label' => esc_html__('Features Layout Setting', 'onepress'), - 'section' => 'onepress_features_settings', + 'label' => esc_html__('Features Layout Setting', 'coletivo'), + 'section' => 'coletivo_features_settings', 'description' => '', 'type' => 'select', 'choices' => array( - '3' => esc_html__( '4 Columns', 'onepress' ), - '4' => esc_html__( '3 Columns', 'onepress' ), - '6' => esc_html__( '2 Columns', 'onepress' ), + '3' => esc_html__( '4 Columns', 'coletivo' ), + '4' => esc_html__( '3 Columns', 'coletivo' ), + '6' => esc_html__( '2 Columns', 'coletivo' ), ), ) ); - $wp_customize->add_section( 'onepress_features_content' , + $wp_customize->add_section( 'coletivo_features_content' , array( 'priority' => 6, - 'title' => esc_html__( 'Section Content', 'onepress' ), + 'title' => esc_html__( 'Section Content', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_features', + 'panel' => 'coletivo_features', ) ); // Order & Styling $wp_customize->add_setting( - 'onepress_features_boxes', + 'coletivo_features_boxes', array( //'default' => '', - 'sanitize_callback' => 'onepress_sanitize_repeatable_data_field', + 'sanitize_callback' => 'coletivo_sanitize_repeatable_data_field', 'transport' => 'refresh', // refresh or postMessage ) ); $wp_customize->add_control( - new Onepress_Customize_Repeatable_Control( + new coletivo_Customize_Repeatable_Control( $wp_customize, - 'onepress_features_boxes', + 'coletivo_features_boxes', array( - 'label' => esc_html__('Features content', 'onepress'), + 'label' => esc_html__('Features content', 'coletivo'), 'description' => '', - 'section' => 'onepress_features_content', + 'section' => 'coletivo_features_content', 'live_title_id' => 'title', // apply for unput text and textarea only - 'title_format' => esc_html__('[live_title]', 'onepress'), // [live_title] + 'title_format' => esc_html__('[live_title]', 'coletivo'), // [live_title] 'max_item' => 6, // Maximum item can add - 'limited_msg' => esc_html__( 'Only 6 features allowed', 'onepress' ), + 'limited_msg' => esc_html__( 'Only 6 features allowed', 'coletivo' ), 'fields' => array( 'title' => array( - 'title' => esc_html__('Title', 'onepress'), + 'title' => esc_html__('Title', 'coletivo'), 'type' =>'text', ), 'icon_type' => array( - 'title' => esc_html__('Custom icon', 'onepress'), + 'title' => esc_html__('Custom icon', 'coletivo'), 'type' =>'select', 'options' => array( - 'icon' => esc_html__('Icon', 'onepress'), - 'image' => esc_html__('image', 'onepress'), + 'icon' => esc_html__('Icon', 'coletivo'), + 'image' => esc_html__('image', 'coletivo'), ), ), 'icon' => array( - 'title' => esc_html__('Icon', 'onepress'), + 'title' => esc_html__('Icon', 'coletivo'), 'type' =>'icon', 'required' => array( 'icon_type', '=', 'icon' ), ), 'image' => array( - 'title' => esc_html__('Image', 'onepress'), + 'title' => esc_html__('Image', 'coletivo'), 'type' =>'media', 'required' => array( 'icon_type', '=', 'image' ), ), 'desc' => array( - 'title' => esc_html__('Description', 'onepress'), + 'title' => esc_html__('Description', 'coletivo'), 'type' =>'editor', ), 'link' => array( - 'title' => esc_html__('Custom Link', 'onepress'), + 'title' => esc_html__('Custom Link', 'coletivo'), 'type' =>'text', ), ), @@ -1138,109 +1138,109 @@ function onepress_customize_register( $wp_customize ) { /*------------------------------------------------------------------------*/ /* Section: Your Slider /*------------------------------------------------------------------------*/ - $wp_customize->add_panel( 'onepress_yourslider' , + $wp_customize->add_panel( 'coletivo_yourslider' , array( 'priority' => 134, - 'title' => esc_html__( 'Section: Your Slider', 'onepress' ), + 'title' => esc_html__( 'Section: Your Slider', 'coletivo' ), 'description' => '', - 'active_callback' => 'onepress_showon_frontpage' + 'active_callback' => 'coletivo_showon_frontpage' ) ); - $wp_customize->add_section( 'onepress_yourslider_settings' , + $wp_customize->add_section( 'coletivo_yourslider_settings' , array( 'priority' => 3, - 'title' => esc_html__( 'Section Settings', 'onepress' ), + 'title' => esc_html__( 'Section Settings', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_yourslider', + 'panel' => 'coletivo_yourslider', ) ); // Show Content - $wp_customize->add_setting( 'onepress_yourslider_disable', + $wp_customize->add_setting( 'coletivo_yourslider_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_yourslider_disable', + $wp_customize->add_control( 'coletivo_yourslider_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Hide this section?', 'onepress'), - 'section' => 'onepress_yourslider_settings', - 'description' => esc_html__('Check this box to hide this section.', 'onepress'), + 'label' => esc_html__('Hide this section?', 'coletivo'), + 'section' => 'coletivo_yourslider_settings', + 'description' => esc_html__('Check this box to hide this section.', 'coletivo'), ) ); // Section ID - $wp_customize->add_setting( 'onepress_yourslider_id', + $wp_customize->add_setting( 'coletivo_yourslider_id', array( - 'sanitize_callback' => 'onepress_sanitize_text', - 'default' => esc_html__('yourslider', 'onepress'), + 'sanitize_callback' => 'coletivo_sanitize_text', + 'default' => esc_html__('yourslider', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_yourslider_id', + $wp_customize->add_control( 'coletivo_yourslider_id', array( - 'label' => esc_html__('Section ID:', 'onepress'), - 'section' => 'onepress_yourslider_settings', - 'description' => esc_html__( 'The section id, we will use this for link anchor.', 'onepress' ) + 'label' => esc_html__('Section ID:', 'coletivo'), + 'section' => 'coletivo_yourslider_settings', + 'description' => esc_html__( 'The section id, we will use this for link anchor.', 'coletivo' ) ) ); - $wp_customize->add_section( 'onepress_yourslider_content' , + $wp_customize->add_section( 'coletivo_yourslider_content' , array( 'priority' => 6, - 'title' => esc_html__( 'Section Content', 'onepress' ), + 'title' => esc_html__( 'Section Content', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_yourslider', + 'panel' => 'coletivo_yourslider', ) ); // Title - $wp_customize->add_setting( 'onepress_yourslider_title', + $wp_customize->add_setting( 'coletivo_yourslider_title', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Your Slider', 'onepress'), + 'default' => esc_html__('Your Slider', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_yourslider_title', + $wp_customize->add_control( 'coletivo_yourslider_title', array( - 'label' => esc_html__('Section Title', 'onepress'), - 'section' => 'onepress_yourslider_content', + 'label' => esc_html__('Section Title', 'coletivo'), + 'section' => 'coletivo_yourslider_content', 'description' => '', ) ); // Sub Title - $wp_customize->add_setting( 'onepress_yourslider_subtitle', + $wp_customize->add_setting( 'coletivo_yourslider_subtitle', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('See all we Do', 'onepress'), + 'default' => esc_html__('See all we Do', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_yourslider_subtitle', + $wp_customize->add_control( 'coletivo_yourslider_subtitle', array( - 'label' => esc_html__('Section Subtitle', 'onepress'), - 'section' => 'onepress_yourslider_content', + 'label' => esc_html__('Section Subtitle', 'coletivo'), + 'section' => 'coletivo_yourslider_content', 'description' => '', ) ); // Description - $wp_customize->add_setting( 'onepress_yourslider_shortcode', + $wp_customize->add_setting( 'coletivo_yourslider_shortcode', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_yourslider_shortcode', + $wp_customize->add_control( 'coletivo_yourslider_shortcode', array( - 'label' => esc_html__('Slider Shortcode', 'onepress'), - 'section' => 'onepress_yourslider_content', - 'description' => __( 'In order to display a Slider install the plugin of your preference and then copy the shortcode and paste it here, the shortcode will be like this [metaslider id=XXX] or this [brasa_slider id="123"]', 'onepress' ) + 'label' => esc_html__('Slider Shortcode', 'coletivo'), + 'section' => 'coletivo_yourslider_content', + 'description' => __( 'In order to display a Slider install the plugin of your preference and then copy the shortcode and paste it here, the shortcode will be like this [metaslider id=XXX] or this [brasa_slider id="123"]', 'coletivo' ) ) ); @@ -1248,76 +1248,76 @@ function onepress_customize_register( $wp_customize ) { /*------------------------------------------------------------------------*/ /* Section: Featured Page /*------------------------------------------------------------------------*/ - $wp_customize->add_panel( 'onepress_featuredpage' , + $wp_customize->add_panel( 'coletivo_featuredpage' , array( 'priority' => 136, - 'title' => esc_html__( 'Section: Page Featured', 'onepress' ), + 'title' => esc_html__( 'Section: Page Featured', 'coletivo' ), 'description' => '', - 'active_callback' => 'onepress_showon_frontpage' + 'active_callback' => 'coletivo_showon_frontpage' ) ); - $wp_customize->add_section( 'onepress_featuredpage_settings' , + $wp_customize->add_section( 'coletivo_featuredpage_settings' , array( 'priority' => 3, - 'title' => esc_html__( 'Section Settings', 'onepress' ), + 'title' => esc_html__( 'Section Settings', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_featuredpage', + 'panel' => 'coletivo_featuredpage', ) ); // Show Content - $wp_customize->add_setting( 'onepress_featuredpage_disable', + $wp_customize->add_setting( 'coletivo_featuredpage_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_featuredpage_disable', + $wp_customize->add_control( 'coletivo_featuredpage_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Hide this section?', 'onepress'), - 'section' => 'onepress_featuredpage_settings', - 'description' => esc_html__('Check this box to hide this section.', 'onepress'), + 'label' => esc_html__('Hide this section?', 'coletivo'), + 'section' => 'coletivo_featuredpage_settings', + 'description' => esc_html__('Check this box to hide this section.', 'coletivo'), ) ); // Section ID - $wp_customize->add_setting( 'onepress_featuredpage_id', + $wp_customize->add_setting( 'coletivo_featuredpage_id', array( - 'sanitize_callback' => 'onepress_sanitize_text', - 'default' => esc_html__('featuredpage', 'onepress'), + 'sanitize_callback' => 'coletivo_sanitize_text', + 'default' => esc_html__('featuredpage', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_featuredpage_id', + $wp_customize->add_control( 'coletivo_featuredpage_id', array( - 'label' => esc_html__('Section ID:', 'onepress'), - 'section' => 'onepress_featuredpage_settings', - 'description' => esc_html__( 'The section id, we will use this for link anchor.', 'onepress' ) + 'label' => esc_html__('Section ID:', 'coletivo'), + 'section' => 'coletivo_featuredpage_settings', + 'description' => esc_html__( 'The section id, we will use this for link anchor.', 'coletivo' ) ) ); - $wp_customize->add_section( 'onepress_featuredpage_content' , + $wp_customize->add_section( 'coletivo_featuredpage_content' , array( 'priority' => 6, - 'title' => esc_html__( 'Section Content', 'onepress' ), - 'panel' => 'onepress_featuredpage', + 'title' => esc_html__( 'Section Content', 'coletivo' ), + 'panel' => 'coletivo_featuredpage', ) ); // Select Page - $wp_customize->add_setting('onepress_featuredpage_content', + $wp_customize->add_setting('coletivo_featuredpage_content', array( 'default' => '', 'sanitize_callback' => 'sanitize_text_field', ) ); - $wp_customize->add_control( 'onepress_featuredpage_content', + $wp_customize->add_control( 'coletivo_featuredpage_content', array( - 'label' => esc_html__('Featured Page', 'onepress'), - 'section' => 'onepress_featuredpage_content', - 'description' => esc_html__( 'You need to select a Featured Image for a background in full size.', 'onepress' ), + 'label' => esc_html__('Featured Page', 'coletivo'), + 'section' => 'coletivo_featuredpage_content', + 'description' => esc_html__( 'You need to select a Featured Image for a background in full size.', 'coletivo' ), 'type' => 'select', 'choices' => $option_pages, 'fields' => array( @@ -1326,36 +1326,36 @@ function onepress_customize_register( $wp_customize ) { ) ); // Featured page content source - $wp_customize->add_setting( 'onepress_featuredpage_content_source', + $wp_customize->add_setting( 'coletivo_featuredpage_content_source', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'content', ) ); - $wp_customize->add_control( 'onepress_featuredpage_content_source', + $wp_customize->add_control( 'coletivo_featuredpage_content_source', array( - 'label' => esc_html__('Content source', 'onepress'), - 'section' => 'onepress_featuredpage_content', + 'label' => esc_html__('Content source', 'coletivo'), + 'section' => 'coletivo_featuredpage_content', 'type' => 'select', 'choices' => array( - 'content' => esc_html__( 'Full Page Content', 'onepress' ), - 'excerpt' => esc_html__( 'Page Excerpt', 'onepress' ), + 'content' => esc_html__( 'Full Page Content', 'coletivo' ), + 'excerpt' => esc_html__( 'Page Excerpt', 'coletivo' ), ), ) ); // More Button - $wp_customize->add_setting( 'onepress_featuredpage_more_text', + $wp_customize->add_setting( 'coletivo_featuredpage_more_text', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Discover', 'onepress'), + 'default' => esc_html__('Discover', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_featuredpage_more_text', + $wp_customize->add_control( 'coletivo_featuredpage_more_text', array( - 'label' => esc_html__('Featured Page Button Text', 'onepress'), - 'section' => 'onepress_featuredpage_content', + 'label' => esc_html__('Featured Page Button Text', 'coletivo'), + 'section' => 'coletivo_featuredpage_content', 'description' => '', ) ); @@ -1364,184 +1364,184 @@ function onepress_customize_register( $wp_customize ) { /*------------------------------------------------------------------------*/ /* Section: Services /*------------------------------------------------------------------------*/ - $wp_customize->add_panel( 'onepress_services' , + $wp_customize->add_panel( 'coletivo_services' , array( 'priority' => 138, - 'title' => esc_html__( 'Section: Services', 'onepress' ), + 'title' => esc_html__( 'Section: Services', 'coletivo' ), 'description' => '', - 'active_callback' => 'onepress_showon_frontpage' + 'active_callback' => 'coletivo_showon_frontpage' ) ); - $wp_customize->add_section( 'onepress_service_settings' , + $wp_customize->add_section( 'coletivo_service_settings' , array( 'priority' => 3, - 'title' => esc_html__( 'Section Settings', 'onepress' ), + 'title' => esc_html__( 'Section Settings', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_services', + 'panel' => 'coletivo_services', ) ); // Show Content - $wp_customize->add_setting( 'onepress_services_disable', + $wp_customize->add_setting( 'coletivo_services_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_services_disable', + $wp_customize->add_control( 'coletivo_services_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Hide this section?', 'onepress'), - 'section' => 'onepress_service_settings', - 'description' => esc_html__('Check this box to hide this section.', 'onepress'), + 'label' => esc_html__('Hide this section?', 'coletivo'), + 'section' => 'coletivo_service_settings', + 'description' => esc_html__('Check this box to hide this section.', 'coletivo'), ) ); // Section ID - $wp_customize->add_setting( 'onepress_services_id', + $wp_customize->add_setting( 'coletivo_services_id', array( - 'sanitize_callback' => 'onepress_sanitize_text', - 'default' => esc_html__('services', 'onepress'), + 'sanitize_callback' => 'coletivo_sanitize_text', + 'default' => esc_html__('services', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_services_id', + $wp_customize->add_control( 'coletivo_services_id', array( - 'label' => esc_html__('Section ID:', 'onepress'), - 'section' => 'onepress_service_settings', - 'description' => esc_html__( 'The section id, we will use this for link anchor.' , 'onepress') + 'label' => esc_html__('Section ID:', 'coletivo'), + 'section' => 'coletivo_service_settings', + 'description' => esc_html__( 'The section id, we will use this for link anchor.' , 'coletivo') ) ); // Title - $wp_customize->add_setting( 'onepress_services_title', + $wp_customize->add_setting( 'coletivo_services_title', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Our Services', 'onepress'), + 'default' => esc_html__('Our Services', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_services_title', + $wp_customize->add_control( 'coletivo_services_title', array( - 'label' => esc_html__('Section Title', 'onepress'), - 'section' => 'onepress_service_settings', + 'label' => esc_html__('Section Title', 'coletivo'), + 'section' => 'coletivo_service_settings', 'description' => '', ) ); // Sub Title - $wp_customize->add_setting( 'onepress_services_subtitle', + $wp_customize->add_setting( 'coletivo_services_subtitle', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Section subtitle', 'onepress'), + 'default' => esc_html__('Section subtitle', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_services_subtitle', + $wp_customize->add_control( 'coletivo_services_subtitle', array( - 'label' => esc_html__('Section Subtitle', 'onepress'), - 'section' => 'onepress_service_settings', + 'label' => esc_html__('Section Subtitle', 'coletivo'), + 'section' => 'coletivo_service_settings', 'description' => '', ) ); // Description - $wp_customize->add_setting( 'onepress_services_desc', + $wp_customize->add_setting( 'coletivo_services_desc', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( new OnePress_Editor_Custom_Control( + $wp_customize->add_control( new coletivo_Editor_Custom_Control( $wp_customize, - 'onepress_services_desc', + 'coletivo_services_desc', array( - 'label' => esc_html__('Section Description', 'onepress'), - 'section' => 'onepress_service_settings', + 'label' => esc_html__('Section Description', 'coletivo'), + 'section' => 'coletivo_service_settings', 'description' => '', ) )); // Services layout - $wp_customize->add_setting( 'onepress_service_layout', + $wp_customize->add_setting( 'coletivo_service_layout', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '6', ) ); - $wp_customize->add_control( 'onepress_service_layout', + $wp_customize->add_control( 'coletivo_service_layout', array( - 'label' => esc_html__('Services Layout Setting', 'onepress'), - 'section' => 'onepress_service_settings', + 'label' => esc_html__('Services Layout Setting', 'coletivo'), + 'section' => 'coletivo_service_settings', 'description' => '', 'type' => 'select', 'choices' => array( - '3' => esc_html__( '4 Columns', 'onepress' ), - '4' => esc_html__( '3 Columns', 'onepress' ), - '6' => esc_html__( '2 Columns', 'onepress' ), + '3' => esc_html__( '4 Columns', 'coletivo' ), + '4' => esc_html__( '3 Columns', 'coletivo' ), + '6' => esc_html__( '2 Columns', 'coletivo' ), ), ) ); - $wp_customize->add_section( 'onepress_service_content' , + $wp_customize->add_section( 'coletivo_service_content' , array( 'priority' => 6, - 'title' => esc_html__( 'Section Content', 'onepress' ), + 'title' => esc_html__( 'Section Content', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_services', + 'panel' => 'coletivo_services', ) ); // Section service content. $wp_customize->add_setting( - 'onepress_services', + 'coletivo_services', array( - 'sanitize_callback' => 'onepress_sanitize_repeatable_data_field', + 'sanitize_callback' => 'coletivo_sanitize_repeatable_data_field', 'transport' => 'refresh', // refresh or postMessage ) ); $wp_customize->add_control( - new Onepress_Customize_Repeatable_Control( + new coletivo_Customize_Repeatable_Control( $wp_customize, - 'onepress_services', + 'coletivo_services', array( - 'label' => esc_html__('Service content', 'onepress'), + 'label' => esc_html__('Service content', 'coletivo'), 'description' => '', - 'section' => 'onepress_service_content', + 'section' => 'coletivo_service_content', 'live_title_id' => 'content_page', // apply for unput text and textarea only - 'title_format' => esc_html__('[live_title]', 'onepress'), // [live_title] + 'title_format' => esc_html__('[live_title]', 'coletivo'), // [live_title] 'max_item' => 12, // Maximum item can add - 'limited_msg' => esc_html__( 'Only 12 Services highlights allowed ', 'onepress' ), + 'limited_msg' => esc_html__( 'Only 12 Services highlights allowed ', 'coletivo' ), 'fields' => array( 'icon_type' => array( - 'title' => esc_html__('Custom icon', 'onepress'), + 'title' => esc_html__('Custom icon', 'coletivo'), 'type' =>'select', 'options' => array( - 'icon' => esc_html__('Icon', 'onepress'), - 'image' => esc_html__('image', 'onepress'), + 'icon' => esc_html__('Icon', 'coletivo'), + 'image' => esc_html__('image', 'coletivo'), ), ), 'icon' => array( - 'title' => esc_html__('Icon', 'onepress'), + 'title' => esc_html__('Icon', 'coletivo'), 'type' =>'icon', 'required' => array( 'icon_type', '=', 'icon' ), ), 'image' => array( - 'title' => esc_html__('Image', 'onepress'), + 'title' => esc_html__('Image', 'coletivo'), 'type' =>'media', 'required' => array( 'icon_type', '=', 'image' ), ), 'content_page' => array( - 'title' => esc_html__('Select a page', 'onepress'), + 'title' => esc_html__('Select a page', 'coletivo'), 'type' =>'select', 'options' => $option_pages ), 'enable_link' => array( - 'title' => esc_html__('Link to single page', 'onepress'), + 'title' => esc_html__('Link to single page', 'coletivo'), 'type' =>'checkbox', ), ), @@ -1554,90 +1554,90 @@ function onepress_customize_register( $wp_customize ) { /*------------------------------------------------------------------------*/ /* Section: Video Lightbox /*------------------------------------------------------------------------*/ - $wp_customize->add_panel( 'onepress_videolightbox' , + $wp_customize->add_panel( 'coletivo_videolightbox' , array( 'priority' => 140, - 'title' => esc_html__( 'Section: Video Lightbox', 'onepress' ), + 'title' => esc_html__( 'Section: Video Lightbox', 'coletivo' ), 'description' => '', - 'active_callback' => 'onepress_showon_frontpage' + 'active_callback' => 'coletivo_showon_frontpage' ) ); - $wp_customize->add_section( 'onepress_videolightbox_settings' , + $wp_customize->add_section( 'coletivo_videolightbox_settings' , array( 'priority' => 3, - 'title' => esc_html__( 'Section Settings', 'onepress' ), + 'title' => esc_html__( 'Section Settings', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_videolightbox', + 'panel' => 'coletivo_videolightbox', ) ); // Show Content - $wp_customize->add_setting( 'onepress_videolightbox_disable', + $wp_customize->add_setting( 'coletivo_videolightbox_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_videolightbox_disable', + $wp_customize->add_control( 'coletivo_videolightbox_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Hide this section?', 'onepress'), - 'section' => 'onepress_videolightbox_settings', - 'description' => esc_html__('Check this box to hide this section.', 'onepress'), + 'label' => esc_html__('Hide this section?', 'coletivo'), + 'section' => 'coletivo_videolightbox_settings', + 'description' => esc_html__('Check this box to hide this section.', 'coletivo'), ) ); // Section ID - $wp_customize->add_setting( 'onepress_videolightbox_id', + $wp_customize->add_setting( 'coletivo_videolightbox_id', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => 'videolightbox', ) ); - $wp_customize->add_control( 'onepress_videolightbox_id', + $wp_customize->add_control( 'coletivo_videolightbox_id', array( - 'label' => esc_html__('Section ID:', 'onepress'), - 'section' => 'onepress_videolightbox_settings', - 'description' => esc_html__('The section id, we will use this for link anchor.', 'onepress' ) + 'label' => esc_html__('Section ID:', 'coletivo'), + 'section' => 'coletivo_videolightbox_settings', + 'description' => esc_html__('The section id, we will use this for link anchor.', 'coletivo' ) ) ); // Title - $wp_customize->add_setting( 'onepress_videolightbox_title', + $wp_customize->add_setting( 'coletivo_videolightbox_title', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( new OnePress_Editor_Custom_Control( + $wp_customize->add_control( new coletivo_Editor_Custom_Control( $wp_customize, - 'onepress_videolightbox_title', + 'coletivo_videolightbox_title', array( - 'label' => esc_html__('Section heading', 'onepress'), - 'section' => 'onepress_videolightbox_settings', + 'label' => esc_html__('Section heading', 'coletivo'), + 'section' => 'coletivo_videolightbox_settings', 'description' => '', ) )); // Video URL - $wp_customize->add_setting( 'onepress_videolightbox_url', + $wp_customize->add_setting( 'coletivo_videolightbox_url', array( 'sanitize_callback' => 'esc_url_raw', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_videolightbox_url', + $wp_customize->add_control( 'coletivo_videolightbox_url', array( - 'label' => esc_html__('Video url', 'onepress'), - 'section' => 'onepress_videolightbox_settings', - 'description' => esc_html__('Paste Youtube or Vimeo url here', 'onepress'), + 'label' => esc_html__('Video url', 'coletivo'), + 'section' => 'coletivo_videolightbox_settings', + 'description' => esc_html__('Paste Youtube or Vimeo url here', 'coletivo'), ) ); // Parallax image - $wp_customize->add_setting( 'onepress_videolightbox_image', + $wp_customize->add_setting( 'coletivo_videolightbox_image', array( 'sanitize_callback' => 'esc_url_raw', 'default' => '', @@ -1645,224 +1645,224 @@ function onepress_customize_register( $wp_customize ) { ); $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, - 'onepress_videolightbox_image', + 'coletivo_videolightbox_image', array( - 'label' => esc_html__('Background image', 'onepress'), - 'section' => 'onepress_videolightbox_settings', + 'label' => esc_html__('Background image', 'coletivo'), + 'section' => 'coletivo_videolightbox_settings', ) )); /*------------------------------------------------------------------------*/ /* Section: Gallery /*------------------------------------------------------------------------*/ - $wp_customize->add_panel( 'onepress_gallery' , + $wp_customize->add_panel( 'coletivo_gallery' , array( 'priority' => 142, - 'title' => esc_html__( 'Section: Gallery', 'onepress' ), + 'title' => esc_html__( 'Section: Gallery', 'coletivo' ), 'description' => '', - 'active_callback' => 'onepress_showon_frontpage' + 'active_callback' => 'coletivo_showon_frontpage' ) ); - $wp_customize->add_section( 'onepress_gallery_settings' , + $wp_customize->add_section( 'coletivo_gallery_settings' , array( 'priority' => 3, - 'title' => esc_html__( 'Section Settings', 'onepress' ), + 'title' => esc_html__( 'Section Settings', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_gallery', + 'panel' => 'coletivo_gallery', ) ); // Show Content - $wp_customize->add_setting( 'onepress_gallery_disable', + $wp_customize->add_setting( 'coletivo_gallery_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => 1, ) ); - $wp_customize->add_control( 'onepress_gallery_disable', + $wp_customize->add_control( 'coletivo_gallery_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Hide this section?', 'onepress'), - 'section' => 'onepress_gallery_settings', - 'description' => esc_html__('Check this box to hide this section.', 'onepress'), + 'label' => esc_html__('Hide this section?', 'coletivo'), + 'section' => 'coletivo_gallery_settings', + 'description' => esc_html__('Check this box to hide this section.', 'coletivo'), ) ); // Section ID - $wp_customize->add_setting( 'onepress_gallery_id', + $wp_customize->add_setting( 'coletivo_gallery_id', array( - 'sanitize_callback' => 'onepress_sanitize_text', - 'default' => esc_html__('gallery', 'onepress'), + 'sanitize_callback' => 'coletivo_sanitize_text', + 'default' => esc_html__('gallery', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_gallery_id', + $wp_customize->add_control( 'coletivo_gallery_id', array( - 'label' => esc_html__('Section ID:', 'onepress'), - 'section' => 'onepress_gallery_settings', - 'description' => esc_html__( 'The section id, we will use this for link anchor.', 'onepress' ) + 'label' => esc_html__('Section ID:', 'coletivo'), + 'section' => 'coletivo_gallery_settings', + 'description' => esc_html__( 'The section id, we will use this for link anchor.', 'coletivo' ) ) ); // Title - $wp_customize->add_setting( 'onepress_gallery_title', + $wp_customize->add_setting( 'coletivo_gallery_title', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Gallery', 'onepress'), + 'default' => esc_html__('Gallery', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_gallery_title', + $wp_customize->add_control( 'coletivo_gallery_title', array( - 'label' => esc_html__('Section Title', 'onepress'), - 'section' => 'onepress_gallery_settings', + 'label' => esc_html__('Section Title', 'coletivo'), + 'section' => 'coletivo_gallery_settings', 'description' => '', ) ); // Sub Title - $wp_customize->add_setting( 'onepress_gallery_subtitle', + $wp_customize->add_setting( 'coletivo_gallery_subtitle', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Section subtitle', 'onepress'), + 'default' => esc_html__('Section subtitle', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_gallery_subtitle', + $wp_customize->add_control( 'coletivo_gallery_subtitle', array( - 'label' => esc_html__('Section Subtitle', 'onepress'), - 'section' => 'onepress_gallery_settings', + 'label' => esc_html__('Section Subtitle', 'coletivo'), + 'section' => 'coletivo_gallery_settings', 'description' => '', ) ); // Description - $wp_customize->add_setting( 'onepress_gallery_desc', + $wp_customize->add_setting( 'coletivo_gallery_desc', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( new OnePress_Editor_Custom_Control( + $wp_customize->add_control( new coletivo_Editor_Custom_Control( $wp_customize, - 'onepress_gallery_desc', + 'coletivo_gallery_desc', array( - 'label' => esc_html__('Section Description', 'onepress'), - 'section' => 'onepress_gallery_settings', + 'label' => esc_html__('Section Description', 'coletivo'), + 'section' => 'coletivo_gallery_settings', 'description' => '', ) )); - $wp_customize->add_section( 'onepress_gallery_content' , + $wp_customize->add_section( 'coletivo_gallery_content' , array( 'priority' => 6, - 'title' => esc_html__( 'Section Content', 'onepress' ), + 'title' => esc_html__( 'Section Content', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_gallery', + 'panel' => 'coletivo_gallery', ) ); // Source page settings - $wp_customize->add_setting( 'onepress_gallery_source_page', + $wp_customize->add_setting( 'coletivo_gallery_source_page', array( - 'sanitize_callback' => 'onepress_sanitize_number', + 'sanitize_callback' => 'coletivo_sanitize_number', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_gallery_source_page', + $wp_customize->add_control( 'coletivo_gallery_source_page', array( - 'label' => esc_html__('Select Gallery Page', 'onepress'), - 'section' => 'onepress_gallery_content', + 'label' => esc_html__('Select Gallery Page', 'coletivo'), + 'section' => 'coletivo_gallery_content', 'type' => 'select', 'priority' => 10, 'choices' => $option_pages, - 'description' => esc_html__('Select a page which have content contain [gallery] shortcode.', 'onepress'), + 'description' => esc_html__('Select a page which have content contain [gallery] shortcode.', 'coletivo'), ) ); // Gallery Layout - $wp_customize->add_setting( 'onepress_gallery_layout', + $wp_customize->add_setting( 'coletivo_gallery_layout', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'default', ) ); - $wp_customize->add_control( 'onepress_gallery_layout', + $wp_customize->add_control( 'coletivo_gallery_layout', array( - 'label' => esc_html__('Layout', 'onepress'), - 'section' => 'onepress_gallery_content', + 'label' => esc_html__('Layout', 'coletivo'), + 'section' => 'coletivo_gallery_content', 'type' => 'select', 'priority' => 40, 'choices' => array( - 'default' => esc_html__('Default, inside container', 'onepress'), - 'full-width' => esc_html__('Full Width', 'onepress'), + 'default' => esc_html__('Default, inside container', 'coletivo'), + 'full-width' => esc_html__('Full Width', 'coletivo'), ) ) ); // Gallery Display - $wp_customize->add_setting( 'onepress_gallery_display', + $wp_customize->add_setting( 'coletivo_gallery_display', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 'default', ) ); - $wp_customize->add_control( 'onepress_gallery_display', + $wp_customize->add_control( 'coletivo_gallery_display', array( - 'label' => esc_html__('Display', 'onepress'), - 'section' => 'onepress_gallery_content', + 'label' => esc_html__('Display', 'coletivo'), + 'section' => 'coletivo_gallery_content', 'type' => 'select', 'priority' => 50, 'choices' => array( - 'grid' => esc_html__('Grid', 'onepress'), - 'carousel' => esc_html__('Carousel', 'onepress'), - 'slider' => esc_html__('Slider', 'onepress'), - 'justified' => esc_html__('Justified', 'onepress'), + 'grid' => esc_html__('Grid', 'coletivo'), + 'carousel' => esc_html__('Carousel', 'coletivo'), + 'slider' => esc_html__('Slider', 'coletivo'), + 'justified' => esc_html__('Justified', 'coletivo'), ) ) ); // Gallery grid spacing - $wp_customize->add_setting( 'onepress_g_spacing', + $wp_customize->add_setting( 'coletivo_g_spacing', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 20, ) ); - $wp_customize->add_control( 'onepress_g_spacing', + $wp_customize->add_control( 'coletivo_g_spacing', array( - 'label' => esc_html__('Item Spacing', 'onepress'), - 'section' => 'onepress_gallery_content', + 'label' => esc_html__('Item Spacing', 'coletivo'), + 'section' => 'coletivo_gallery_content', 'priority' => 55, ) ); // Gallery grid spacing - $wp_customize->add_setting( 'onepress_g_row_height', + $wp_customize->add_setting( 'coletivo_g_row_height', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 120, ) ); - $wp_customize->add_control( 'onepress_g_row_height', + $wp_customize->add_control( 'coletivo_g_row_height', array( - 'label' => esc_html__('Row Height', 'onepress'), - 'section' => 'onepress_gallery_content', + 'label' => esc_html__('Row Height', 'coletivo'), + 'section' => 'coletivo_gallery_content', 'priority' => 57, ) ); // Gallery grid gird col - $wp_customize->add_setting( 'onepress_g_col', + $wp_customize->add_setting( 'coletivo_g_col', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '4', ) ); - $wp_customize->add_control( 'onepress_g_col', + $wp_customize->add_control( 'coletivo_g_col', array( - 'label' => esc_html__('Layout columns', 'onepress'), - 'section' => 'onepress_gallery_content', + 'label' => esc_html__('Layout columns', 'coletivo'), + 'section' => 'coletivo_gallery_content', 'priority' => 60, 'type' => 'select', 'choices' => array( @@ -1878,61 +1878,61 @@ function onepress_customize_register( $wp_customize ) { ); // Gallery max number - $wp_customize->add_setting( 'onepress_g_number', + $wp_customize->add_setting( 'coletivo_g_number', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => 10, ) ); - $wp_customize->add_control( 'onepress_g_number', + $wp_customize->add_control( 'coletivo_g_number', array( - 'label' => esc_html__('Number items', 'onepress'), - 'section' => 'onepress_gallery_content', + 'label' => esc_html__('Number items', 'coletivo'), + 'section' => 'coletivo_gallery_content', 'priority' => 65, ) ); // Gallery grid spacing - $wp_customize->add_setting( 'onepress_g_lightbox', + $wp_customize->add_setting( 'coletivo_g_lightbox', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => 1, ) ); - $wp_customize->add_control( 'onepress_g_lightbox', + $wp_customize->add_control( 'coletivo_g_lightbox', array( - 'label' => esc_html__('Enable Lightbox', 'onepress'), - 'section' => 'onepress_gallery_content', + 'label' => esc_html__('Enable Lightbox', 'coletivo'), + 'section' => 'coletivo_gallery_content', 'priority' => 70, 'type' => 'checkbox', ) ); // Gallery readmore link - $wp_customize->add_setting( 'onepress_g_readmore_link', + $wp_customize->add_setting( 'coletivo_g_readmore_link', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_g_readmore_link', + $wp_customize->add_control( 'coletivo_g_readmore_link', array( - 'label' => esc_html__('Read More Link', 'onepress'), - 'section' => 'onepress_gallery_content', + 'label' => esc_html__('Read More Link', 'coletivo'), + 'section' => 'coletivo_gallery_content', 'priority' => 90, 'type' => 'text', ) ); - $wp_customize->add_setting( 'onepress_g_readmore_text', + $wp_customize->add_setting( 'coletivo_g_readmore_text', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('View More', 'onepress'), + 'default' => esc_html__('View More', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_g_readmore_text', + $wp_customize->add_control( 'coletivo_g_readmore_text', array( - 'label' => esc_html__('Read More Text', 'onepress'), - 'section' => 'onepress_gallery_content', + 'label' => esc_html__('Read More Text', 'coletivo'), + 'section' => 'coletivo_gallery_content', 'priority' => 100, 'type' => 'text', ) @@ -1942,161 +1942,161 @@ function onepress_customize_register( $wp_customize ) { /*------------------------------------------------------------------------*/ /* Section: Team /*------------------------------------------------------------------------*/ - $wp_customize->add_panel( 'onepress_team' , + $wp_customize->add_panel( 'coletivo_team' , array( 'priority' => 144, - 'title' => esc_html__( 'Section: Team', 'onepress' ), + 'title' => esc_html__( 'Section: Team', 'coletivo' ), 'description' => '', - 'active_callback' => 'onepress_showon_frontpage' + 'active_callback' => 'coletivo_showon_frontpage' ) ); - $wp_customize->add_section( 'onepress_team_settings' , + $wp_customize->add_section( 'coletivo_team_settings' , array( 'priority' => 3, - 'title' => esc_html__( 'Section Settings', 'onepress' ), + 'title' => esc_html__( 'Section Settings', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_team', + 'panel' => 'coletivo_team', ) ); // Show Content - $wp_customize->add_setting( 'onepress_team_disable', + $wp_customize->add_setting( 'coletivo_team_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_team_disable', + $wp_customize->add_control( 'coletivo_team_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Hide this section?', 'onepress'), - 'section' => 'onepress_team_settings', - 'description' => esc_html__('Check this box to hide this section.', 'onepress'), + 'label' => esc_html__('Hide this section?', 'coletivo'), + 'section' => 'coletivo_team_settings', + 'description' => esc_html__('Check this box to hide this section.', 'coletivo'), ) ); // Section ID - $wp_customize->add_setting( 'onepress_team_id', + $wp_customize->add_setting( 'coletivo_team_id', array( - 'sanitize_callback' => 'onepress_sanitize_text', - 'default' => esc_html__('team', 'onepress'), + 'sanitize_callback' => 'coletivo_sanitize_text', + 'default' => esc_html__('team', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_team_id', + $wp_customize->add_control( 'coletivo_team_id', array( - 'label' => esc_html__('Section ID:', 'onepress'), - 'section' => 'onepress_team_settings', - 'description' => esc_html__( 'The section id, we will use this for link anchor.' , 'onepress') + 'label' => esc_html__('Section ID:', 'coletivo'), + 'section' => 'coletivo_team_settings', + 'description' => esc_html__( 'The section id, we will use this for link anchor.' , 'coletivo') ) ); // Title - $wp_customize->add_setting( 'onepress_team_title', + $wp_customize->add_setting( 'coletivo_team_title', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Our Team', 'onepress'), + 'default' => esc_html__('Our Team', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_team_title', + $wp_customize->add_control( 'coletivo_team_title', array( - 'label' => esc_html__('Section Title', 'onepress'), - 'section' => 'onepress_team_settings', + 'label' => esc_html__('Section Title', 'coletivo'), + 'section' => 'coletivo_team_settings', 'description' => '', ) ); // Sub Title - $wp_customize->add_setting( 'onepress_team_subtitle', + $wp_customize->add_setting( 'coletivo_team_subtitle', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Section subtitle', 'onepress'), + 'default' => esc_html__('Section subtitle', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_team_subtitle', + $wp_customize->add_control( 'coletivo_team_subtitle', array( - 'label' => esc_html__('Section Subtitle', 'onepress'), - 'section' => 'onepress_team_settings', + 'label' => esc_html__('Section Subtitle', 'coletivo'), + 'section' => 'coletivo_team_settings', 'description' => '', ) ); // Description - $wp_customize->add_setting( 'onepress_team_desc', + $wp_customize->add_setting( 'coletivo_team_desc', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( new OnePress_Editor_Custom_Control( + $wp_customize->add_control( new coletivo_Editor_Custom_Control( $wp_customize, - 'onepress_team_desc', + 'coletivo_team_desc', array( - 'label' => esc_html__('Section Description', 'onepress'), - 'section' => 'onepress_team_settings', + 'label' => esc_html__('Section Description', 'coletivo'), + 'section' => 'coletivo_team_settings', 'description' => '', ) )); // Team layout - $wp_customize->add_setting( 'onepress_team_layout', + $wp_customize->add_setting( 'coletivo_team_layout', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '3', ) ); - $wp_customize->add_control( 'onepress_team_layout', + $wp_customize->add_control( 'coletivo_team_layout', array( - 'label' => esc_html__('Team Layout Setting', 'onepress'), - 'section' => 'onepress_team_settings', + 'label' => esc_html__('Team Layout Setting', 'coletivo'), + 'section' => 'coletivo_team_settings', 'description' => '', 'type' => 'select', 'choices' => array( - '3' => esc_html__( '4 Columns', 'onepress' ), - '4' => esc_html__( '3 Columns', 'onepress' ), - '6' => esc_html__( '2 Columns', 'onepress' ), + '3' => esc_html__( '4 Columns', 'coletivo' ), + '4' => esc_html__( '3 Columns', 'coletivo' ), + '6' => esc_html__( '2 Columns', 'coletivo' ), ), ) ); - $wp_customize->add_section( 'onepress_team_content' , + $wp_customize->add_section( 'coletivo_team_content' , array( 'priority' => 6, - 'title' => esc_html__( 'Section Content', 'onepress' ), + 'title' => esc_html__( 'Section Content', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_team', + 'panel' => 'coletivo_team', ) ); // Team member settings $wp_customize->add_setting( - 'onepress_team_members', + 'coletivo_team_members', array( - 'sanitize_callback' => 'onepress_sanitize_repeatable_data_field', + 'sanitize_callback' => 'coletivo_sanitize_repeatable_data_field', 'transport' => 'refresh', // refresh or postMessage ) ); $wp_customize->add_control( - new Onepress_Customize_Repeatable_Control( + new coletivo_Customize_Repeatable_Control( $wp_customize, - 'onepress_team_members', + 'coletivo_team_members', array( - 'label' => esc_html__('Team members', 'onepress'), + 'label' => esc_html__('Team members', 'coletivo'), 'description' => '', - 'section' => 'onepress_team_content', + 'section' => 'coletivo_team_content', //'live_title_id' => 'user_id', // apply for unput text and textarea only - 'title_format' => esc_html__( '[live_title]', 'onepress'), // [live_title] + 'title_format' => esc_html__( '[live_title]', 'coletivo'), // [live_title] 'max_item' => 9, // Maximum item can add - 'limited_msg' => esc_html__( 'Only 9 members allowed', 'onepress' ), + 'limited_msg' => esc_html__( 'Only 9 members allowed', 'coletivo' ), 'fields' => array( 'user_id' => array( - 'title' => esc_html__('User media', 'onepress'), + 'title' => esc_html__('User media', 'coletivo'), 'type' =>'media', 'desc' => '', ), 'link' => array( - 'title' => esc_html__('Custom Link', 'onepress'), + 'title' => esc_html__('Custom Link', 'coletivo'), 'type' =>'text', 'desc' => '', ), @@ -2109,154 +2109,154 @@ function onepress_customize_register( $wp_customize ) { /*------------------------------------------------------------------------*/ /* Section: News /*------------------------------------------------------------------------*/ - $wp_customize->add_panel( 'onepress_news' , + $wp_customize->add_panel( 'coletivo_news' , array( 'priority' => 146, - 'title' => esc_html__( 'Section: News', 'onepress' ), + 'title' => esc_html__( 'Section: News', 'coletivo' ), 'description' => '', - 'active_callback' => 'onepress_showon_frontpage' + 'active_callback' => 'coletivo_showon_frontpage' ) ); - $wp_customize->add_section( 'onepress_news_settings' , + $wp_customize->add_section( 'coletivo_news_settings' , array( 'priority' => 3, - 'title' => esc_html__( 'Section Settings', 'onepress' ), + 'title' => esc_html__( 'Section Settings', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_news', + 'panel' => 'coletivo_news', ) ); // Show Content - $wp_customize->add_setting( 'onepress_news_disable', + $wp_customize->add_setting( 'coletivo_news_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_news_disable', + $wp_customize->add_control( 'coletivo_news_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Hide this section?', 'onepress'), - 'section' => 'onepress_news_settings', - 'description' => esc_html__('Check this box to hide this section.', 'onepress'), + 'label' => esc_html__('Hide this section?', 'coletivo'), + 'section' => 'coletivo_news_settings', + 'description' => esc_html__('Check this box to hide this section.', 'coletivo'), ) ); // Section ID - $wp_customize->add_setting( 'onepress_news_id', + $wp_customize->add_setting( 'coletivo_news_id', array( - 'sanitize_callback' => 'onepress_sanitize_text', - 'default' => esc_html__('news', 'onepress'), + 'sanitize_callback' => 'coletivo_sanitize_text', + 'default' => esc_html__('news', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_news_id', + $wp_customize->add_control( 'coletivo_news_id', array( - 'label' => esc_html__('Section ID:', 'onepress'), - 'section' => 'onepress_news_settings', - 'description' => esc_html__( 'The section id, we will use this for link anchor.', 'onepress' ) + 'label' => esc_html__('Section ID:', 'coletivo'), + 'section' => 'coletivo_news_settings', + 'description' => esc_html__( 'The section id, we will use this for link anchor.', 'coletivo' ) ) ); // Title - $wp_customize->add_setting( 'onepress_news_title', + $wp_customize->add_setting( 'coletivo_news_title', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Latest News', 'onepress'), + 'default' => esc_html__('Latest News', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_news_title', + $wp_customize->add_control( 'coletivo_news_title', array( - 'label' => esc_html__('Section Title', 'onepress'), - 'section' => 'onepress_news_settings', + 'label' => esc_html__('Section Title', 'coletivo'), + 'section' => 'coletivo_news_settings', 'description' => '', ) ); // Sub Title - $wp_customize->add_setting( 'onepress_news_subtitle', + $wp_customize->add_setting( 'coletivo_news_subtitle', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Section subtitle', 'onepress'), + 'default' => esc_html__('Section subtitle', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_news_subtitle', + $wp_customize->add_control( 'coletivo_news_subtitle', array( - 'label' => esc_html__('Section Subtitle', 'onepress'), - 'section' => 'onepress_news_settings', + 'label' => esc_html__('Section Subtitle', 'coletivo'), + 'section' => 'coletivo_news_settings', 'description' => '', ) ); // Description - $wp_customize->add_setting( 'onepress_news_desc', + $wp_customize->add_setting( 'coletivo_news_desc', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( new OnePress_Editor_Custom_Control( + $wp_customize->add_control( new coletivo_Editor_Custom_Control( $wp_customize, - 'onepress_news_desc', + 'coletivo_news_desc', array( - 'label' => esc_html__('Section Description', 'onepress'), - 'section' => 'onepress_news_settings', + 'label' => esc_html__('Section Description', 'coletivo'), + 'section' => 'coletivo_news_settings', 'description' => '', ) )); // hr - $wp_customize->add_setting( 'onepress_news_settings_hr', + $wp_customize->add_setting( 'coletivo_news_settings_hr', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', ) ); - $wp_customize->add_control( new OnePress_Misc_Control( $wp_customize, 'onepress_news_settings_hr', + $wp_customize->add_control( new coletivo_Misc_Control( $wp_customize, 'coletivo_news_settings_hr', array( - 'section' => 'onepress_news_settings', + 'section' => 'coletivo_news_settings', 'type' => 'hr' ) )); // Number of post to show. - $wp_customize->add_setting( 'onepress_news_number', + $wp_customize->add_setting( 'coletivo_news_number', array( - 'sanitize_callback' => 'onepress_sanitize_number', + 'sanitize_callback' => 'coletivo_sanitize_number', 'default' => '3', ) ); - $wp_customize->add_control( 'onepress_news_number', + $wp_customize->add_control( 'coletivo_news_number', array( - 'label' => esc_html__('Number of post to show', 'onepress'), - 'section' => 'onepress_news_settings', + 'label' => esc_html__('Number of post to show', 'coletivo'), + 'section' => 'coletivo_news_settings', 'description' => '', ) ); // Blog Button - $wp_customize->add_setting( 'onepress_news_more_link', + $wp_customize->add_setting( 'coletivo_news_more_link', array( 'sanitize_callback' => 'esc_url', 'default' => '#', ) ); - $wp_customize->add_control( 'onepress_news_more_link', + $wp_customize->add_control( 'coletivo_news_more_link', array( - 'label' => esc_html__('More News button link', 'onepress'), - 'section' => 'onepress_news_settings', - 'description' => esc_html__( 'It should be your blog page link.', 'onepress' ) + 'label' => esc_html__('More News button link', 'coletivo'), + 'section' => 'coletivo_news_settings', + 'description' => esc_html__( 'It should be your blog page link.', 'coletivo' ) ) ); - $wp_customize->add_setting( 'onepress_news_more_text', + $wp_customize->add_setting( 'coletivo_news_more_text', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Read Our Blog', 'onepress'), + 'default' => esc_html__('Read Our Blog', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_news_more_text', + $wp_customize->add_control( 'coletivo_news_more_text', array( - 'label' => esc_html__('More News Button Text', 'onepress'), - 'section' => 'onepress_news_settings', + 'label' => esc_html__('More News Button Text', 'coletivo'), + 'section' => 'coletivo_news_settings', 'description' => '', ) ); @@ -2264,314 +2264,314 @@ function onepress_customize_register( $wp_customize ) { /*------------------------------------------------------------------------*/ /* Section: Contact /*------------------------------------------------------------------------*/ - $wp_customize->add_panel( 'onepress_contact' , + $wp_customize->add_panel( 'coletivo_contact' , array( 'priority' => 148, - 'title' => esc_html__( 'Section: Contact', 'onepress' ), + 'title' => esc_html__( 'Section: Contact', 'coletivo' ), 'description' => '', - 'active_callback' => 'onepress_showon_frontpage' + 'active_callback' => 'coletivo_showon_frontpage' ) ); - $wp_customize->add_section( 'onepress_contact_settings' , + $wp_customize->add_section( 'coletivo_contact_settings' , array( 'priority' => 3, - 'title' => esc_html__( 'Section Settings', 'onepress' ), + 'title' => esc_html__( 'Section Settings', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_contact', + 'panel' => 'coletivo_contact', ) ); // Show Content - $wp_customize->add_setting( 'onepress_contact_disable', + $wp_customize->add_setting( 'coletivo_contact_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_contact_disable', + $wp_customize->add_control( 'coletivo_contact_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Hide this section?', 'onepress'), - 'section' => 'onepress_contact_settings', - 'description' => esc_html__('Check this box to hide this section.', 'onepress'), + 'label' => esc_html__('Hide this section?', 'coletivo'), + 'section' => 'coletivo_contact_settings', + 'description' => esc_html__('Check this box to hide this section.', 'coletivo'), ) ); // Section ID - $wp_customize->add_setting( 'onepress_contact_id', + $wp_customize->add_setting( 'coletivo_contact_id', array( - 'sanitize_callback' => 'onepress_sanitize_text', - 'default' => esc_html__('contact', 'onepress'), + 'sanitize_callback' => 'coletivo_sanitize_text', + 'default' => esc_html__('contact', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_contact_id', + $wp_customize->add_control( 'coletivo_contact_id', array( - 'label' => esc_html__('Section ID:', 'onepress'), - 'section' => 'onepress_contact_settings', - 'description' => esc_html__( 'The section id, we will use this for link anchor.', 'onepress' ) + 'label' => esc_html__('Section ID:', 'coletivo'), + 'section' => 'coletivo_contact_settings', + 'description' => esc_html__( 'The section id, we will use this for link anchor.', 'coletivo' ) ) ); // Title - $wp_customize->add_setting( 'onepress_contact_title', + $wp_customize->add_setting( 'coletivo_contact_title', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Get in touch', 'onepress'), + 'default' => esc_html__('Get in touch', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_contact_title', + $wp_customize->add_control( 'coletivo_contact_title', array( - 'label' => esc_html__('Section Title', 'onepress'), - 'section' => 'onepress_contact_settings', + 'label' => esc_html__('Section Title', 'coletivo'), + 'section' => 'coletivo_contact_settings', 'description' => '', ) ); // Sub Title - $wp_customize->add_setting( 'onepress_contact_subtitle', + $wp_customize->add_setting( 'coletivo_contact_subtitle', array( 'sanitize_callback' => 'sanitize_text_field', - 'default' => esc_html__('Section subtitle', 'onepress'), + 'default' => esc_html__('Section subtitle', 'coletivo'), ) ); - $wp_customize->add_control( 'onepress_contact_subtitle', + $wp_customize->add_control( 'coletivo_contact_subtitle', array( - 'label' => esc_html__('Section Subtitle', 'onepress'), - 'section' => 'onepress_contact_settings', + 'label' => esc_html__('Section Subtitle', 'coletivo'), + 'section' => 'coletivo_contact_settings', 'description' => '', ) ); // Description - $wp_customize->add_setting( 'onepress_contact_desc', + $wp_customize->add_setting( 'coletivo_contact_desc', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( new OnePress_Editor_Custom_Control( + $wp_customize->add_control( new coletivo_Editor_Custom_Control( $wp_customize, - 'onepress_contact_desc', + 'coletivo_contact_desc', array( - 'label' => esc_html__('Section Description', 'onepress'), - 'section' => 'onepress_contact_settings', + 'label' => esc_html__('Section Description', 'coletivo'), + 'section' => 'coletivo_contact_settings', 'description' => '', ) )); - $wp_customize->add_section( 'onepress_contact_content' , + $wp_customize->add_section( 'coletivo_contact_content' , array( 'priority' => 6, - 'title' => esc_html__( 'Section Content', 'onepress' ), + 'title' => esc_html__( 'Section Content', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_contact', + 'panel' => 'coletivo_contact', ) ); // Contact form 7 guide. - $wp_customize->add_setting( 'onepress_contact_cf7_guide', + $wp_customize->add_setting( 'coletivo_contact_cf7_guide', array( - 'sanitize_callback' => 'onepress_sanitize_text' + 'sanitize_callback' => 'coletivo_sanitize_text' ) ); - $wp_customize->add_control( new OnePress_Misc_Control( $wp_customize, 'onepress_contact_cf7_guide', + $wp_customize->add_control( new coletivo_Misc_Control( $wp_customize, 'coletivo_contact_cf7_guide', array( - 'section' => 'onepress_contact_content', + 'section' => 'coletivo_contact_content', 'type' => 'custom_message', - 'description' => __( 'In order to display contact form install Contact Form 7 plugin and then copy the contact form shortcode and paste it here, the shortcode will be like this [contact-form-7 id="xxxx" title="Example Contact Form"]', 'onepress' ) + 'description' => __( 'In order to display contact form install Contact Form 7 plugin and then copy the contact form shortcode and paste it here, the shortcode will be like this [contact-form-7 id="xxxx" title="Example Contact Form"]', 'coletivo' ) ) )); // Contact Form 7 Shortcode - $wp_customize->add_setting( 'onepress_contact_cf7', + $wp_customize->add_setting( 'coletivo_contact_cf7', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_contact_cf7', + $wp_customize->add_control( 'coletivo_contact_cf7', array( - 'label' => esc_html__('Contact Form 7 Shortcode.', 'onepress'), - 'section' => 'onepress_contact_content', + 'label' => esc_html__('Contact Form 7 Shortcode.', 'coletivo'), + 'section' => 'coletivo_contact_content', 'description' => '', ) ); // Show CF7 - $wp_customize->add_setting( 'onepress_contact_cf7_disable', + $wp_customize->add_setting( 'coletivo_contact_cf7_disable', array( - 'sanitize_callback' => 'onepress_sanitize_checkbox', + 'sanitize_callback' => 'coletivo_sanitize_checkbox', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_contact_cf7_disable', + $wp_customize->add_control( 'coletivo_contact_cf7_disable', array( 'type' => 'checkbox', - 'label' => esc_html__('Hide contact form completely.', 'onepress'), - 'section' => 'onepress_contact_content', - 'description' => esc_html__('Check this box to hide contact form.', 'onepress'), + 'label' => esc_html__('Hide contact form completely.', 'coletivo'), + 'section' => 'coletivo_contact_content', + 'description' => esc_html__('Check this box to hide contact form.', 'coletivo'), ) ); // Contact Text Alternative - $wp_customize->add_setting( 'onepress_contact_address_title2', + $wp_customize->add_setting( 'coletivo_contact_address_title2', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_contact_address_title2', + $wp_customize->add_control( 'coletivo_contact_address_title2', array( - 'label' => esc_html__('Contact Box Title Alternative', 'onepress'), - 'section' => 'onepress_contact_content', + 'label' => esc_html__('Contact Box Title Alternative', 'coletivo'), + 'section' => 'coletivo_contact_content', 'description' => '', ) ); - $wp_customize->add_setting( 'onepress_contact_text2', + $wp_customize->add_setting( 'coletivo_contact_text2', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( new OnePress_Editor_Custom_Control( + $wp_customize->add_control( new coletivo_Editor_Custom_Control( $wp_customize, - 'onepress_contact_text2', + 'coletivo_contact_text2', array( - 'label' => esc_html__('Contact Text Alternative', 'onepress'), - 'section' => 'onepress_contact_content', + 'label' => esc_html__('Contact Text Alternative', 'coletivo'), + 'section' => 'coletivo_contact_content', 'description' => '', ) )); // hr - $wp_customize->add_setting( 'onepress_contact_text_hr', array( 'sanitize_callback' => 'onepress_sanitize_text' ) ); - $wp_customize->add_control( new OnePress_Misc_Control( $wp_customize, 'onepress_contact_text_hr', + $wp_customize->add_setting( 'coletivo_contact_text_hr', array( 'sanitize_callback' => 'coletivo_sanitize_text' ) ); + $wp_customize->add_control( new coletivo_Misc_Control( $wp_customize, 'coletivo_contact_text_hr', array( - 'section' => 'onepress_contact_content', + 'section' => 'coletivo_contact_content', 'type' => 'hr' ) )); // Contact Text - $wp_customize->add_setting( 'onepress_contact_address_title', + $wp_customize->add_setting( 'coletivo_contact_address_title', array( 'sanitize_callback' => 'sanitize_text_field', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_contact_address_title', + $wp_customize->add_control( 'coletivo_contact_address_title', array( - 'label' => esc_html__('Contact Box Title', 'onepress'), - 'section' => 'onepress_contact_content', + 'label' => esc_html__('Contact Box Title', 'coletivo'), + 'section' => 'coletivo_contact_content', 'description' => '', ) ); - $wp_customize->add_setting( 'onepress_contact_text', + $wp_customize->add_setting( 'coletivo_contact_text', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( new OnePress_Editor_Custom_Control( + $wp_customize->add_control( new coletivo_Editor_Custom_Control( $wp_customize, - 'onepress_contact_text', + 'coletivo_contact_text', array( - 'label' => esc_html__('Contact Text 2', 'onepress'), - 'section' => 'onepress_contact_content', + 'label' => esc_html__('Contact Text 2', 'coletivo'), + 'section' => 'coletivo_contact_content', 'description' => '', ) )); // Address Box // Contact Address - $wp_customize->add_setting( 'onepress_contact_address', + $wp_customize->add_setting( 'coletivo_contact_address', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_contact_address', + $wp_customize->add_control( 'coletivo_contact_address', array( - 'label' => esc_html__('Address', 'onepress'), - 'section' => 'onepress_contact_content', + 'label' => esc_html__('Address', 'coletivo'), + 'section' => 'coletivo_contact_content', 'description' => '', ) ); // Contact Phone - $wp_customize->add_setting( 'onepress_contact_phone', + $wp_customize->add_setting( 'coletivo_contact_phone', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_contact_phone', + $wp_customize->add_control( 'coletivo_contact_phone', array( - 'label' => esc_html__('Phone', 'onepress'), - 'section' => 'onepress_contact_content', + 'label' => esc_html__('Phone', 'coletivo'), + 'section' => 'coletivo_contact_content', 'description' => '', ) ); // Contact Email - $wp_customize->add_setting( 'onepress_contact_email', + $wp_customize->add_setting( 'coletivo_contact_email', array( 'sanitize_callback' => 'sanitize_email', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_contact_email', + $wp_customize->add_control( 'coletivo_contact_email', array( - 'label' => esc_html__('Email', 'onepress'), - 'section' => 'onepress_contact_content', + 'label' => esc_html__('Email', 'coletivo'), + 'section' => 'coletivo_contact_content', 'description' => '', ) ); // Contact Fax - $wp_customize->add_setting( 'onepress_contact_fax', + $wp_customize->add_setting( 'coletivo_contact_fax', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_contact_fax', + $wp_customize->add_control( 'coletivo_contact_fax', array( - 'label' => esc_html__('Fax', 'onepress'), - 'section' => 'onepress_contact_content', + 'label' => esc_html__('Fax', 'coletivo'), + 'section' => 'coletivo_contact_content', 'description' => '', ) ); // Blog page - $wp_customize->add_section( 'onepress_blog_page' , + $wp_customize->add_section( 'coletivo_blog_page' , array( 'priority' => 6, - 'title' => esc_html__( 'Blog Settings', 'onepress' ), + 'title' => esc_html__( 'Blog Settings', 'coletivo' ), 'description' => '', - 'panel' => 'onepress_options' + 'panel' => 'coletivo_options' ) ); - $wp_customize->add_setting( 'onepress_blog_page_style', + $wp_customize->add_setting( 'coletivo_blog_page_style', array( - 'sanitize_callback' => 'onepress_sanitize_text', + 'sanitize_callback' => 'coletivo_sanitize_text', 'default' => '', ) ); - $wp_customize->add_control( 'onepress_blog_page_style', + $wp_customize->add_control( 'coletivo_blog_page_style', array( - 'label' => esc_html__( 'Blog style', 'onepress' ), - 'section' => 'onepress_blog_page', + 'label' => esc_html__( 'Blog style', 'coletivo' ), + 'section' => 'coletivo_blog_page', 'description' => '', 'type' => 'radio', 'default' => 'grid', 'choices' => array( - 'grid' => __( 'Grid', 'onepress'), - 'list' => __( 'List', 'onepress' ), + 'grid' => __( 'Grid', 'coletivo'), + 'list' => __( 'List', 'coletivo' ), ), ) ); @@ -2579,10 +2579,10 @@ function onepress_customize_register( $wp_customize ) { /** * Hook to add other customize */ - do_action( 'onepress_customize_after_register', $wp_customize ); + do_action( 'coletivo_customize_after_register', $wp_customize ); } -add_action( 'customize_register', 'onepress_customize_register' ); +add_action( 'customize_register', 'coletivo_customize_register' ); /** * Selective refresh */ @@ -2590,10 +2590,10 @@ function onepress_customize_register( $wp_customize ) { /*------------------------------------------------------------------------*/ -/* OnePress Sanitize Functions. +/* coletivo Sanitize Functions. /*------------------------------------------------------------------------*/ -function onepress_sanitize_file_url( $file_url ) { +function coletivo_sanitize_file_url( $file_url ) { $output = ''; $filetype = wp_check_filetype( $file_url ); if ( $filetype["ext"] ) { @@ -2609,8 +2609,8 @@ function onepress_sanitize_file_url( $file_url ) { * @param $control * @return bool */ -function onepress_hero_fullscreen_callback ( $control ) { - if ( $control->manager->get_setting('onepress_hero_fullscreen')->value() == '' ) { +function coletivo_hero_fullscreen_callback ( $control ) { + if ( $control->manager->get_setting('coletivo_hero_fullscreen')->value() == '' ) { return true; } else { return false; @@ -2618,11 +2618,11 @@ function onepress_hero_fullscreen_callback ( $control ) { } -function onepress_sanitize_number( $input ) { +function coletivo_sanitize_number( $input ) { return balanceTags( $input ); } -function onepress_sanitize_hex_color( $color ) { +function coletivo_sanitize_hex_color( $color ) { if ( $color === '' ) { return ''; } @@ -2632,7 +2632,7 @@ function onepress_sanitize_hex_color( $color ) { return null; } -function onepress_sanitize_checkbox( $input ) { +function coletivo_sanitize_checkbox( $input ) { if ( $input == 1 ) { return 1; } else { @@ -2640,59 +2640,59 @@ function onepress_sanitize_checkbox( $input ) { } } -function onepress_sanitize_text( $string ) { +function coletivo_sanitize_text( $string ) { return wp_kses_post( balanceTags( $string ) ); } -function onepress_sanitize_html_input( $string ) { +function coletivo_sanitize_html_input( $string ) { return wp_kses_allowed_html( $string ); } -function onepress_showon_frontpage() { +function coletivo_showon_frontpage() { return is_page_template( 'template-frontpage.php' ); } /** * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. */ -function onepress_customize_preview_js() { - wp_enqueue_script( 'onepress_customizer_liveview', get_template_directory_uri() . '/assets/js/customizer-liveview.js', array( 'customize-preview', 'customize-selective-refresh' ), false, true ); +function coletivo_customize_preview_js() { + wp_enqueue_script( 'coletivo_customizer_liveview', get_template_directory_uri() . '/assets/js/customizer-liveview.js', array( 'customize-preview', 'customize-selective-refresh' ), false, true ); } -add_action( 'customize_preview_init', 'onepress_customize_preview_js', 65 ); +add_action( 'customize_preview_init', 'coletivo_customize_preview_js', 65 ); add_action( 'customize_controls_enqueue_scripts', 'opneress_customize_js_settings' ); function opneress_customize_js_settings(){ - if ( ! function_exists( 'onepress_get_actions_required' ) ) { + if ( ! function_exists( 'coletivo_get_actions_required' ) ) { return; } - $actions = onepress_get_actions_required(); + $actions = coletivo_get_actions_required(); $n = array_count_values( $actions ); $number_action = 0; if ( $n && isset( $n['active'] ) ) { $number_action = $n['active']; } - wp_localize_script( 'customize-controls', 'onepress_customizer_settings', array( + wp_localize_script( 'customize-controls', 'coletivo_customizer_settings', array( 'number_action' => $number_action, - 'is_plus_activated' => class_exists( 'OnePress_PLus' ) ? 'y' : 'n', - 'action_url' => admin_url( 'themes.php?page=ft_onepress&tab=actions_required' ) + 'is_plus_activated' => class_exists( 'coletivo_PLus' ) ? 'y' : 'n', + 'action_url' => admin_url( 'themes.php?page=ft_coletivo&tab=actions_required' ) ) ); } /** * Customizer Icon picker */ -function onepress_customize_controls_enqueue_scripts(){ +function coletivo_customize_controls_enqueue_scripts(){ wp_localize_script( 'customize-controls', 'C_Icon_Picker', apply_filters( 'c_icon_picker_js_setup', array( - 'search' => esc_html__( 'Search', 'onepress' ), + 'search' => esc_html__( 'Search', 'coletivo' ), 'fonts' => array( 'font-awesome' => array( // Name of icon - 'name' => esc_html__( 'Font Awesome', 'onepress' ), + 'name' => esc_html__( 'Font Awesome', 'coletivo' ), // prefix class example for font-awesome fa-fa-{name} 'prefix' => 'fa', // font url @@ -2705,4 +2705,4 @@ function onepress_customize_controls_enqueue_scripts(){ ) ); } -add_action( 'customize_controls_enqueue_scripts', 'onepress_customize_controls_enqueue_scripts' ); \ No newline at end of file +add_action( 'customize_controls_enqueue_scripts', 'coletivo_customize_controls_enqueue_scripts' ); \ No newline at end of file diff --git a/inc/dashboard.php b/inc/dashboard.php index 4f3bf2b..d8a3696 100755 --- a/inc/dashboard.php +++ b/inc/dashboard.php @@ -3,11 +3,11 @@ * Add theme dashboard page */ -add_action('admin_menu', 'onepress_theme_info'); -function onepress_theme_info() { - //$theme_data = wp_get_theme('onepress'); +add_action('admin_menu', 'coletivo_theme_info'); +function coletivo_theme_info() { + //$theme_data = wp_get_theme('coletivo'); - $actions = onepress_get_actions_required(); + $actions = coletivo_get_actions_required(); $n = array_count_values( $actions ); $number_count = 0; if ( $n && isset( $n['active'] ) ) { @@ -15,14 +15,14 @@ function onepress_theme_info() { } if ( $number_count > 0 ){ - $update_label = sprintf( _n( '%1$s action required', '%1$s actions required', $number_count, 'onepress' ), $number_count ); + $update_label = sprintf( _n( '%1$s action required', '%1$s actions required', $number_count, 'coletivo' ), $number_count ); $count = "" . number_format_i18n($number_count) . ""; - $menu_title = sprintf( esc_html__('OnePress Theme %s', 'onepress'), $count ); + $menu_title = sprintf( esc_html__('coletivo Theme %s', 'coletivo'), $count ); } else { - $menu_title = esc_html__('OnePress Theme', 'onepress'); + $menu_title = esc_html__('Coletivo Theme', 'coletivo'); } - add_theme_page( esc_html__( 'OnePress Dashboard', 'onepress' ), $menu_title, 'edit_theme_options', 'ft_onepress', 'onepress_theme_info_page'); + add_theme_page( esc_html__( 'Coletivo Dashboard', 'coletivo' ), $menu_title, 'edit_theme_options', 'ft_coletivo', 'coletivo_theme_info_page'); } @@ -31,11 +31,11 @@ function onepress_theme_info() { * * @return bool|null */ -function onepress_admin_notice() { - if ( ! function_exists( 'onepress_get_actions_required' ) ) { +function coletivo_admin_notice() { + if ( ! function_exists( 'coletivo_get_actions_required' ) ) { return false; } - $actions = onepress_get_actions_required(); + $actions = coletivo_get_actions_required(); $n = array_count_values( $actions ); $number_action = 0; if ( $n && isset( $n['active'] ) ) { @@ -45,33 +45,33 @@ function onepress_admin_notice() { $theme_data = wp_get_theme(); ?>
    -

    Welcome page', 'onepress' ), $theme_data->Name, admin_url( 'themes.php?page=ft_onepress' ) ); ?>

    +

    Welcome page', 'coletivo' ), $theme_data->Name, admin_url( 'themes.php?page=ft_coletivo' ) ); ?>

    -

    Version ); ?>

    -
    - FameThemes +

    Version ); ?>

    +
    + #RedeLivre @@ -106,25 +106,25 @@ function onepress_theme_info_page() {
    @@ -142,53 +142,53 @@ function onepress_theme_info_page() { '', 'page_template' ) ) ?> - + -

    Name ); ?>

    -

    +

    Name ); ?>

    +

    - + '', 'id' => '')); $url = ''; @@ -90,7 +90,7 @@ function onepress_get_media_url($media = array()) * * @return array|mixed|void */ -function onepress_get_actions_required( ) { +function coletivo_get_actions_required( ) { $actions = array(); $front_page = get_option( 'page_on_front' ); @@ -108,8 +108,8 @@ function onepress_get_actions_required( ) { } } - $actions = apply_filters( 'onepress_get_actions_required', $actions ); - $actions_dismiss = get_option( 'onepress_actions_dismiss' ); + $actions = apply_filters( 'coletivo_get_actions_required', $actions ); + $actions_dismiss = get_option( 'coletivo_actions_dismiss' ); if ( $actions_dismiss && is_array( $actions_dismiss ) ) { foreach ( $actions_dismiss as $k => $v ) { @@ -122,7 +122,7 @@ function onepress_get_actions_required( ) { return $actions; } -add_action('switch_theme', 'onepress_reset_actions_required'); -function onepress_reset_actions_required () { - delete_option('onepress_actions_dismiss'); +add_action('switch_theme', 'coletivo_reset_actions_required'); +function coletivo_reset_actions_required () { + delete_option('coletivo_actions_dismiss'); } diff --git a/inc/template-tags.php b/inc/template-tags.php index cff7cbf..9b96bc6 100755 --- a/inc/template-tags.php +++ b/inc/template-tags.php @@ -4,7 +4,7 @@ * * Eventually, some of the functionality here could be replaced by core features. * - * @package OnePress + * @package coletivo */ /** @@ -12,8 +12,8 @@ * @since 1.2.1 */ -if ( ! function_exists( 'onepress_site_logo' ) ) { - function onepress_site_logo(){ +if ( ! function_exists( 'coletivo_site_logo' ) ) { + function coletivo_site_logo(){ $classes = array(); $html = '' ; $classes['logo'] = 'no-logo-img'; @@ -27,8 +27,8 @@ function onepress_site_logo(){ } } - $hide_sitetile = get_theme_mod( 'onepress_hide_sitetitle', 0 ); - $hide_tagline = get_theme_mod( 'onepress_hide_tagline', 0 ); + $hide_sitetile = get_theme_mod( 'coletivo_hide_sitetitle', 0 ); + $hide_tagline = get_theme_mod( 'coletivo_hide_tagline', 0 ); if ( ! $hide_sitetile ) { $classes['title'] = 'has-title'; @@ -53,26 +53,26 @@ function onepress_site_logo(){ } } -add_action( 'onepress_site_start', 'onepress_site_header' ); -if ( ! function_exists( 'onepress_site_header' ) ) { +add_action( 'coletivo_site_start', 'coletivo_site_header' ); +if ( ! function_exists( 'coletivo_site_header' ) ) { /** * Display site header */ - function onepress_site_header(){ + function coletivo_site_header(){ ?> comment_approved ) : ?> -

    +

    @@ -262,7 +262,7 @@ function onepress_comment( $comment, $args, $depth ) { } endif; -if ( ! function_exists( 'onepress_hex_to_rgba' ) ) { +if ( ! function_exists( 'coletivo_hex_to_rgba' ) ) { /** * Convert hex color to rgba color * @@ -272,7 +272,7 @@ function onepress_comment( $comment, $args, $depth ) { * @param int $alpha * @return bool|string */ - function onepress_hex_to_rgba( $color, $alpha = 1) + function coletivo_hex_to_rgba( $color, $alpha = 1) { $color = str_replace('#', '', $color); if ('' === $color) { @@ -305,22 +305,22 @@ function onepress_hex_to_rgba( $color, $alpha = 1) } } -add_action( 'wp_enqueue_scripts', 'onepress_custom_inline_style', 100 ); -if ( ! function_exists( 'onepress_custom_inline_style' ) ) { +add_action( 'wp_enqueue_scripts', 'coletivo_custom_inline_style', 100 ); +if ( ! function_exists( 'coletivo_custom_inline_style' ) ) { /** * Add custom css to header * * @change 1.1.5 */ - function onepress_custom_inline_style( ) { + function coletivo_custom_inline_style( ) { /** * Custom hero section css */ - $hero_bg_color = get_theme_mod( 'onepress_hero_overlay_color', '#000000' ); + $hero_bg_color = get_theme_mod( 'coletivo_hero_overlay_color', '#000000' ); // Deprecate form v 1.1.5 - $hero_bg_color = onepress_hex_to_rgba( $hero_bg_color, get_theme_mod( 'onepress_hero_overlay_opacity' , .3 ) ); + $hero_bg_color = coletivo_hex_to_rgba( $hero_bg_color, get_theme_mod( 'coletivo_hero_overlay_opacity' , .3 ) ); ob_start(); ?> @@ -367,11 +367,11 @@ function onepress_custom_inline_style( ) { /** * Theme Color */ - $primary = get_theme_mod( 'onepress_primary_color' ); + $primary = get_theme_mod( 'coletivo_primary_color' ); if ( $primary != '' ) { ?> - a, .screen-reader-text:hover, .screen-reader-text:active, .screen-reader-text:focus, .header-social a, .onepress-menu a:hover, - .onepress-menu ul li a:hover, .onepress-menu li.onepress-current-item > a, .onepress-menu ul li.current-menu-item > a, .onepress-menu > li a.menu-actived, - .onepress-menu.onepress-menu-mobile li.onepress-current-item > a, .site-footer a, .site-footer .footer-social a:hover, .site-footer .btt a:hover, + a, .screen-reader-text:hover, .screen-reader-text:active, .screen-reader-text:focus, .header-social a, .coletivo-menu a:hover, + .coletivo-menu ul li a:hover, .coletivo-menu li.coletivo-current-item > a, .coletivo-menu ul li.current-menu-item > a, .coletivo-menu > li a.menu-actived, + .coletivo-menu.coletivo-menu-mobile li.coletivo-current-item > a, .site-footer a, .site-footer .footer-social a:hover, .site-footer .btt a:hover, .highlight, #comments .comment .comment-wrapper .comment-meta .comment-time:hover, #comments .comment .comment-wrapper .comment-meta .comment-reply-link:hover, #comments .comment .comment-wrapper .comment-meta .comment-edit-link:hover, .btn-theme-primary-outline, .sidebar .widget a:hover, .section-services .service-item .service-image i, .counter_item .counter__number, .team-member .member-thumb .member-profile a:hover, .icon-background-default @@ -393,7 +393,7 @@ function onepress_custom_inline_style( ) { /** * Header background */ - $header_bg_color = get_theme_mod( 'onepress_header_bg_color' ); + $header_bg_color = get_theme_mod( 'coletivo_header_bg_color' ); if ( $header_bg_color ) { ?> .site-header { @@ -406,10 +406,10 @@ function onepress_custom_inline_style( ) { /** * Menu color */ - $menu_color = get_theme_mod( 'onepress_menu_color' ); + $menu_color = get_theme_mod( 'coletivo_menu_color' ); if ( $menu_color ) { ?> - .onepress-menu > li > a { + .coletivo-menu > li > a { color: #; } - .onepress-menu > li > a:hover, - .onepress-menu > li.onepress-current-item > a{ + .coletivo-menu > li > a:hover, + .coletivo-menu > li.coletivo-current-item > a{ color: #; -webkit-transition: all 0.5s ease-in-out; -moz-transition: all 0.5s ease-in-out; @@ -435,15 +435,15 @@ function onepress_custom_inline_style( ) { /** * Menu hover background color */ - $menu_hover_bg = get_theme_mod( 'onepress_menu_hover_bg_color' ); + $menu_hover_bg = get_theme_mod( 'coletivo_menu_hover_bg_color' ); if ( $menu_hover_bg ) { ?> @media screen and (min-width: 1140px) { - .onepress-menu > li:last-child > a { + .coletivo-menu > li:last-child > a { padding-right: 17px; } - .onepress-menu > li > a:hover, - .onepress-menu > li.onepress-current-item > a + .coletivo-menu > li > a:hover, + .coletivo-menu > li.coletivo-current-item > a { background: #; -webkit-transition: all 0.5s ease-in-out; @@ -458,7 +458,7 @@ function onepress_custom_inline_style( ) { /** * Reponsive Mobie button color */ - $menu_button_color = get_theme_mod( 'onepress_menu_toggle_button_color' ); + $menu_button_color = get_theme_mod( 'coletivo_menu_toggle_button_color' ); if ( $menu_button_color ) { ?> #nav-toggle span, #nav-toggle span::before, #nav-toggle span::after, @@ -471,20 +471,20 @@ function onepress_custom_inline_style( ) { /** * Site Title */ - $onepress_logo_text_color = get_theme_mod( 'onepress_logo_text_color' ); - if ( $onepress_logo_text_color ) { + $coletivo_logo_text_color = get_theme_mod( 'coletivo_logo_text_color' ); + if ( $coletivo_logo_text_color ) { ?> .site-branding .site-title, .site-branding .site-text-logo { - color: #; + color: #; } .site-footer { - background-color: #; + background-color: #; } .site-footer .footer-connect .follow-heading { color: rgba(255, 255, 255, 0.9); @@ -492,11 +492,11 @@ function onepress_custom_inline_style( ) { .site-footer .site-info, .site-footer .btt a{ - background-color: #; + background-color: #; } .site-footer .site-info { color: rgba(255, 255, 255, 0.7); @@ -507,7 +507,7 @@ function onepress_custom_inline_style( ) { .gallery-carousel .g-item{ @@ -544,26 +544,26 @@ function onepress_custom_inline_style( ) { $css ); - $custom = get_option( 'onepress_custom_css' ); + $custom = get_option( 'coletivo_custom_css' ); if ( $custom ){ $css.= "\n/* --- Begin custom CSS --- */\n". $custom."\n/* --- End custom CSS --- */\n"; } - wp_add_inline_style( 'onepress-style', $css ); + wp_add_inline_style( 'coletivo-style', $css ); } } -if ( ! function_exists( 'onepress_get_section_featuredpage_data' ) ) { +if ( ! function_exists( 'coletivo_get_section_featuredpage_data' ) ) { /** * Get Featured Page data * * @return array */ - function onepress_get_section_featuredpage_data() + function coletivo_get_section_featuredpage_data() { - $id = get_theme_mod('onepress_featuredpage_content'); + $id = get_theme_mod('coletivo_featuredpage_content'); if ( ! $id ) { return false; } @@ -573,14 +573,14 @@ function onepress_get_section_featuredpage_data() } -if ( ! function_exists( 'onepress_get_section_services_data' ) ) { +if ( ! function_exists( 'coletivo_get_section_services_data' ) ) { /** * Get services data * @return array */ - function onepress_get_section_services_data() + function coletivo_get_section_services_data() { - $services = get_theme_mod('onepress_services'); + $services = get_theme_mod('coletivo_services'); if (is_string($services)) { $services = json_decode($services, true); } @@ -605,15 +605,15 @@ function onepress_get_section_services_data() } } -if ( ! function_exists( 'onepress_get_section_team_data' ) ) { +if ( ! function_exists( 'coletivo_get_section_team_data' ) ) { /** * Get team members * * @return array */ - function onepress_get_section_team_data() + function coletivo_get_section_team_data() { - $members = get_theme_mod('onepress_team_members'); + $members = get_theme_mod('coletivo_team_members'); if (is_string($members)) { $members = json_decode($members, true); } @@ -624,16 +624,16 @@ function onepress_get_section_team_data() } } -if ( ! function_exists( 'onepress_get_features_data' ) ) { +if ( ! function_exists( 'coletivo_get_features_data' ) ) { /** * Get features data * * @since 1.1.4 * @return array */ - function onepress_get_features_data() + function coletivo_get_features_data() { - $array = get_theme_mod('onepress_features_boxes'); + $array = get_theme_mod('coletivo_features_boxes'); if (is_string($array)) { $array = json_decode($array, true); } @@ -657,16 +657,16 @@ function onepress_get_features_data() } } -if ( ! function_exists( 'onepress_get_social_profiles' ) ) { +if ( ! function_exists( 'coletivo_get_social_profiles' ) ) { /** * Get social profiles * * @since 1.1.4 * @return bool|array */ - function onepress_get_social_profiles() + function coletivo_get_social_profiles() { - $array = get_theme_mod('onepress_social_profiles'); + $array = get_theme_mod('coletivo_social_profiles'); if (is_string($array)) { $array = json_decode($array, true); } @@ -709,7 +709,7 @@ function onepress_get_social_profiles() } -if ( ! function_exists( 'onepress_get_section_gallery_data' ) ) { +if ( ! function_exists( 'coletivo_get_section_gallery_data' ) ) { /** * Get Gallery data * @@ -717,12 +717,12 @@ function onepress_get_social_profiles() * * @return array */ - function onepress_get_section_gallery_data() + function coletivo_get_section_gallery_data() { - $source = 'page'; // get_theme_mod( 'onepress_gallery_source' ); - if( has_filter( 'onepress_get_section_gallery_data' ) ) { - $data = apply_filters( 'onepress_get_section_gallery_data', false ); + $source = 'page'; // get_theme_mod( 'coletivo_gallery_source' ); + if( has_filter( 'coletivo_get_section_gallery_data' ) ) { + $data = apply_filters( 'coletivo_get_section_gallery_data', false ); return $data; } @@ -730,7 +730,7 @@ function onepress_get_section_gallery_data() switch ( $source ) { default: - $page_id = get_theme_mod( 'onepress_gallery_source_page' ); + $page_id = get_theme_mod( 'coletivo_gallery_source_page' ); $images = ''; if ( $page_id ) { $gallery = get_post_gallery( $page_id , false ); @@ -739,7 +739,7 @@ function onepress_get_section_gallery_data() } } - $image_thumb_size = apply_filters( 'onepress_gallery_page_img_size', 'onepress-small' ); + $image_thumb_size = apply_filters( 'coletivo_gallery_page_img_size', 'coletivo-small' ); if ( ! empty( $images ) ) { $images = explode( ',', $images ); @@ -785,8 +785,8 @@ function onepress_get_section_gallery_data() * @param bool|true $inner * @return string */ -function onepress_gallery_html( $data, $inner = true, $size = 'thumbnail' ) { - $max_item = get_theme_mod( 'onepress_g_number', 10 ); +function coletivo_gallery_html( $data, $inner = true, $size = 'thumbnail' ) { + $max_item = get_theme_mod( 'coletivo_g_number', 10 ); $html = ''; if ( ! is_array( $data ) ) { return $html; @@ -832,24 +832,24 @@ function onepress_gallery_html( $data, $inner = true, $size = 'thumbnail' ) { * @param bool|true $echo * @return string */ -function onepress_gallery_generate( $echo = true ){ +function coletivo_gallery_generate( $echo = true ){ $div = ''; - $data = onepress_get_section_gallery_data(); - $display_type = get_theme_mod( 'onepress_gallery_display', 'grid' ); - $lightbox = get_theme_mod( 'onepress_g_lightbox', 1 ); + $data = coletivo_get_section_gallery_data(); + $display_type = get_theme_mod( 'coletivo_gallery_display', 'grid' ); + $lightbox = get_theme_mod( 'coletivo_g_lightbox', 1 ); $class = ''; if ( $lightbox ) { $class = ' enable-lightbox '; } - $col = absint( get_theme_mod( 'onepress_g_col', 4 ) ); + $col = absint( get_theme_mod( 'coletivo_g_col', 4 ) ); if ( $col <= 0 ) { $col = 4; } switch( $display_type ) { case 'masonry': - $html = onepress_gallery_html( $data ); + $html = coletivo_gallery_html( $data ); if ( $html ) { $div .= '
    - + - + -
    class=""> +
    class="">
    - +

    @@ -48,9 +48,9 @@ ?>

    - + - +
    @@ -59,8 +59,8 @@ ?>
    - - + +
    - -
    - class=""> + +
    + class=""> - +
    @@ -28,7 +28,7 @@ class="
    $f ) { $media = ''; $f = wp_parse_args( $f, array( @@ -40,7 +40,7 @@ class=" '', ) ); if ( $f['icon_type'] == 'image' && $f['image'] ){ - $url = onepress_get_media_url( $f['image'] ); + $url = coletivo_get_media_url( $f['image'] ); if ( $url ) { $media = ''; } @@ -66,9 +66,9 @@ class="
    - + - +
    \ No newline at end of file diff --git a/section-parts/section-gallery.php b/section-parts/section-gallery.php index 25091ef..168ef56 100644 --- a/section-parts/section-gallery.php +++ b/section-parts/section-gallery.php @@ -1,22 +1,22 @@ - -
    - class=""> + +
    + class=""> - +
    @@ -29,12 +29,12 @@ class=" - - + +
    '')); - $_u = onepress_get_media_url($m['image']); + $_u = coletivo_get_media_url($m['image']); if ( $_u ) { $images[] = $_u; } @@ -37,26 +37,26 @@ $images = array( get_template_directory_uri().'/assets/images/coletivo1.jpg' ); } -$is_parallax = get_theme_mod( 'onepress_hero_parallax' ) == 1 && ! empty( $images ) ; +$is_parallax = get_theme_mod( 'coletivo_hero_parallax' ) == 1 && ! empty( $images ) ; if ( $is_parallax ) { echo '
    '; } ?> - -
    " class="hero-slideshow-wrapper "> Business Website'."\n".'Made Simple.'."\n".'We provide creative solutions to clients around the world,'."\n".'creating things that get attention and meaningful.'."\n\n".'Get Started' ) ); - $hcl2_image = get_theme_mod( 'onepress_hcl2_image', get_template_directory_uri().'/assets/images/onepress_responsive.png' ); + $hcl2_content = get_theme_mod( 'coletivo_hcl2_content', wp_kses_post( '

    Business Website'."\n".'Made Simple.

    '."\n".'We provide creative solutions to clients around the world,'."\n".'creating things that get attention and meaningful.'."\n\n".'Get Started' ) ); + $hcl2_image = get_theme_mod( 'coletivo_hcl2_image', get_template_directory_uri().'/assets/images/coletivo_responsive.png' ); ?>
    >
    @@ -71,15 +71,15 @@ WordPress | Free | Responsive | Perfect', 'onepress' )); - $hcl1_smalltext = get_theme_mod( 'onepress_hcl1_smalltext', wp_kses_post('Morbi tempus porta nunc pharetra quisque ligula imperdiet posuere
    vitae felis proin sagittis leo ac tellus blandit sollicitudin quisque vitae placerat.', 'onepress') ); - $hcl1_btn1_text = get_theme_mod( 'onepress_hcl1_btn1_text', esc_html__('Our Services', 'onepress') ); - $hcl1_btn1_link = get_theme_mod( 'onepress_hcl1_btn1_link', esc_url( home_url( '/' )).esc_html__('#services', 'onepress') ); - $hcl1_btn2_text = get_theme_mod( 'onepress_hcl1_btn2_text', esc_html__('Get Started', 'onepress') ); - $hcl1_btn2_link = get_theme_mod( 'onepress_hcl1_btn2_link', esc_url( home_url( '/' )).esc_html__('#contact', 'onepress') ); + $hcl1_largetext = get_theme_mod( 'coletivo_hcl1_largetext', wp_kses_post('We are WordPress | Free | Responsive | Perfect', 'coletivo' )); + $hcl1_smalltext = get_theme_mod( 'coletivo_hcl1_smalltext', wp_kses_post('Morbi tempus porta nunc pharetra quisque ligula imperdiet posuere
    vitae felis proin sagittis leo ac tellus blandit sollicitudin quisque vitae placerat.', 'coletivo') ); + $hcl1_btn1_text = get_theme_mod( 'coletivo_hcl1_btn1_text', esc_html__('Our Services', 'coletivo') ); + $hcl1_btn1_link = get_theme_mod( 'coletivo_hcl1_btn1_link', esc_url( home_url( '/' )).esc_html__('#services', 'coletivo') ); + $hcl1_btn2_text = get_theme_mod( 'coletivo_hcl1_btn2_text', esc_html__('Get Started', 'coletivo') ); + $hcl1_btn2_link = get_theme_mod( 'coletivo_hcl1_btn2_link', esc_url( home_url( '/' )).esc_html__('#contact', 'coletivo') ); - $btn_1_style = get_theme_mod( 'onepress_hcl1_btn1_style', 'btn-theme-primary' ); - $btn_2_style = get_theme_mod( 'onepress_hcl1_btn2_style', 'btn-secondary-outline' ); + $btn_1_style = get_theme_mod( 'coletivo_hcl1_btn1_style', 'btn-theme-primary' ); + $btn_2_style = get_theme_mod( 'coletivo_hcl1_btn2_style', 'btn-secondary-outline' ); ?>
    >
    diff --git a/section-parts/section-news.php b/section-parts/section-news.php index d4b5bc4..00cf535 100755 --- a/section-parts/section-news.php +++ b/section-parts/section-news.php @@ -1,28 +1,28 @@ - - -
    class=""> + +
    class=""> - +
    - +
    - ' . esc_html( $onepress_news_subtitle ) . ''; ?> - ' . esc_html( $onepress_news_title ) . ''; ?> + ' . esc_html( $coletivo_news_subtitle ) . ''; ?> + ' . esc_html( $coletivo_news_title ) . ''; ?> ' . apply_filters( 'the_content', wp_kses_post( $desc ) ) . '
    '; } ?> @@ -35,7 +35,7 @@ $onepress_news_number, + 'posts_per_page' => $coletivo_news_number, 'suppress_filters' => 0, ) ); @@ -58,9 +58,9 @@ - +
    - +
    @@ -70,8 +70,8 @@
    - - + +
    - - -
    - class=""> + + +
    + class=""> - +
    - +
    - ' . esc_html($onepress_service_subtitle) . ''; ?> - ' . esc_html($onepress_service_title) . ''; ?> + ' . esc_html($coletivo_service_subtitle) . ''; ?> + ' . esc_html($coletivo_service_title) . ''; ?> ' . apply_filters( 'the_content', wp_kses_post( $desc ) ) . '
    '; } ?> @@ -59,7 +59,7 @@ class="
    '; } @@ -93,7 +93,7 @@ class="
    @@ -114,8 +114,8 @@ class="
    - - + +
    - - -
    - class=""> + + +
    + class=""> - +
    - +
    - ' . esc_html($onepress_team_subtitle) . ''; ?> - ' . esc_html($onepress_team_title) . ''; ?> + ' . esc_html($coletivo_team_subtitle) . ''; ?> + ' . esc_html($coletivo_team_title) . ''; ?> ' . apply_filters( 'the_content', wp_kses_post( $desc ) ) . '
    '; } ?> @@ -45,7 +45,7 @@ class=" '', ) ); - $image_attributes = wp_get_attachment_image_src( $user_id['id'], 'onepress-small' ); + $image_attributes = wp_get_attachment_image_src( $user_id['id'], 'coletivo-small' ); if ( $image_attributes ) { $image = $image_attributes[0]; $data = get_post( $user_id['id'] ); @@ -60,7 +60,7 @@ class=" - +
    post_title ); ?>
    @@ -76,8 +76,8 @@ class="
    - - + +
    '; echo '
    '; } ?> -
    - class=""> +
    + class=""> - +
    @@ -33,9 +33,9 @@ class="
    - + - +
    - - -
    - class=""> - + +
    + class=""> +
    - +
    - ' . esc_html($onepress_yourslider_subtitle) . ''; ?> - ' . esc_html($onepress_yourslider_title) . ''; ?> -

    ' . apply_filters( 'the_content', wp_kses_post( $onepress_yourslider_shortcode ) ) . '

    '; + ' . esc_html($coletivo_yourslider_subtitle) . ''; ?> + ' . esc_html($coletivo_yourslider_title) . ''; ?> +

    ' . apply_filters( 'the_content', wp_kses_post( $coletivo_yourslider_shortcode ) ) . '

    '; } ?>
    - - + +
    diff --git a/single.php b/single.php index 0ea63eb..4548740 100755 --- a/single.php +++ b/single.php @@ -4,7 +4,7 @@ * * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post * - * @package OnePress + * @package coletivo */ get_header(); ?> @@ -21,12 +21,12 @@
    ', '' ); ?>
    - - + +
    diff --git a/style.css b/style.css index 281455b..54d530b 100755 --- a/style.css +++ b/style.css @@ -7,13 +7,13 @@ Description: Coletivo theme is an outstanding creative and flexible WordPress on Version: 1.4.1 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html -Text Domain: onepress +Text Domain: coletivo Tags: one-column, two-columns, right-sidebar, custom-menu, featured-images, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready, e-commerce, blog, portfolio This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. -OnePress is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc. +Coletivo is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc. Underscores is distributed under the terms of the GNU GPL v2 or later. Normalizing styles have been helped along thanks to the fine work of @@ -745,7 +745,7 @@ input[type="radio"], input[type="checkbox"] { } @media screen and (min-width: 1140px) { - .header-transparent .no-scroll .site-header .onepress-menu > li > a { + .header-transparent .no-scroll .site-header .coletivo-menu > li > a { color: rgba(255, 255, 255, 0.9); } } @@ -888,17 +888,17 @@ input[type="radio"], input[type="checkbox"] { } /* Site Navigation */ -.onepress-menu, .onepress-menu * { +.coletivo-menu, .coletivo-menu * { margin: 0; padding: 0; list-style: none; } -.onepress-menu { +.coletivo-menu { float: right; } -.onepress-menu ul { +.coletivo-menu ul { position: absolute; display: none; top: 100%; @@ -906,49 +906,49 @@ input[type="radio"], input[type="checkbox"] { z-index: 99; } -.onepress-menu ul ul { +.coletivo-menu ul ul { top: 0; left: 100%; } -.onepress-menu li { +.coletivo-menu li { position: relative; } -.onepress-menu > li { +.coletivo-menu > li { float: left; } -.onepress-menu li:hover > ul, .onepress-menu li.sfHover > ul { +.coletivo-menu li:hover > ul, .coletivo-menu li.sfHover > ul { display: block; } -.onepress-menu a { +.coletivo-menu a { display: block; position: relative; } -.onepress-menu ul { +.coletivo-menu ul { min-width: 12em; *width: 12em; border: 1px solid #e9e9e9; border-top: none; } -.onepress-menu li { +.coletivo-menu li { white-space: nowrap; *white-space: normal; -webkit-transition: background .2s; transition: background .2s; } -.onepress-menu li:hover, -.onepress-menu li.sfHover { +.coletivo-menu li:hover, +.coletivo-menu li.sfHover { -webkit-transition: none; transition: none; } -.onepress-menu a { +.coletivo-menu a { color: #333333; font-family: "Raleway", Helvetica, Arial, sans-serif; padding-left: 17px; @@ -961,15 +961,15 @@ input[type="radio"], input[type="checkbox"] { letter-spacing: 1px; } -.onepress-menu a:hover { +.coletivo-menu a:hover { color: #03c4eb; } -.onepress-menu ul li { +.coletivo-menu ul li { line-height: 26px; } -.onepress-menu ul li a { +.coletivo-menu ul li a { border-top: 1px solid #e9e9e9; padding: 8px 18px; color: #999999; @@ -979,27 +979,27 @@ input[type="radio"], input[type="checkbox"] { letter-spacing: 0; } -.onepress-menu ul li a:hover { +.coletivo-menu ul li a:hover { color: #03c4eb; } -.onepress-menu li.onepress-current-item > a { +.coletivo-menu li.coletivo-current-item > a { color: #03c4eb; } -.onepress-menu ul li.current-menu-item > a { +.coletivo-menu ul li.current-menu-item > a { color: #03c4eb; } -.onepress-menu > li:last-child > a { +.coletivo-menu > li:last-child > a { padding-right: 0px; } -.onepress-menu > li a.menu-actived { +.coletivo-menu > li a.menu-actived { color: #03c4eb; } -.onepress-menu .nav-toggle-subarrow { +.coletivo-menu .nav-toggle-subarrow { display: none; } @@ -1012,11 +1012,11 @@ input[type="radio"], input[type="checkbox"] { .main-navigation { position: static; } - .main-navigation .onepress-menu { + .main-navigation .coletivo-menu { width: 100% !important; display: none; } - .onepress-menu.onepress-menu-mobile { + .coletivo-menu.coletivo-menu-mobile { display: block !important; position: absolute; top: 75px; @@ -1026,54 +1026,54 @@ input[type="radio"], input[type="checkbox"] { z-index: 100; border-bottom: 1px solid #e9e9e9; } - .onepress-menu.onepress-menu-mobile > li > a { + .coletivo-menu.coletivo-menu-mobile > li > a { padding: 12px 20px; } - .onepress-menu.onepress-menu-mobile li:hover ul { + .coletivo-menu.coletivo-menu-mobile li:hover ul { display: none; } - .onepress-menu.onepress-menu-mobile ul { + .coletivo-menu.coletivo-menu-mobile ul { box-shadow: none; padding-bottom: 0; border: none; position: relative; } - .onepress-menu.onepress-menu-mobile ul li:last-child { + .coletivo-menu.coletivo-menu-mobile ul li:last-child { border-bottom: none; } - .onepress-menu.onepress-menu-mobile ul li a { + .coletivo-menu.coletivo-menu-mobile ul li a { padding: 12px 35px; border-top: none; } - .onepress-menu.onepress-menu-mobile ul li a:hover { + .coletivo-menu.coletivo-menu-mobile ul li a:hover { background: transparent; } - .onepress-menu.onepress-menu-mobile ul li li a { + .coletivo-menu.coletivo-menu-mobile ul li li a { padding: 12px 70px; border-top: none; } - .onepress-menu.onepress-menu-mobile ul li li li a { + .coletivo-menu.coletivo-menu-mobile ul li li li a { padding: 12px 105px; } - .onepress-menu.onepress-menu-mobile ul ul { + .coletivo-menu.coletivo-menu-mobile ul ul { left: 0px; } - .onepress-menu.onepress-menu-mobile li { + .coletivo-menu.coletivo-menu-mobile li { line-height: 20px; background: #FFFFFF; border-top: 1px solid #e9e9e9; width: 100% !important; } - .onepress-menu.onepress-menu-mobile li.onepress-current-item > a { + .coletivo-menu.coletivo-menu-mobile li.coletivo-current-item > a { color: #03c4eb; } - .onepress-menu.onepress-menu-mobile a { + .coletivo-menu.coletivo-menu-mobile a { color: #777777; } - .onepress-menu.onepress-menu-mobile a:hover { + .coletivo-menu.coletivo-menu-mobile a:hover { color: #000000; } - .onepress-menu.onepress-menu-mobile .nav-toggle-subarrow { + .coletivo-menu.coletivo-menu-mobile .nav-toggle-subarrow { display: block; color: #999999; border-left: 1px solid #e9e9e9; @@ -1087,10 +1087,10 @@ input[type="radio"], input[type="checkbox"] { z-index: 10; font-size: 22px; } - .onepress-menu.onepress-menu-mobile .nav-toggle-dropdown > .nav-toggle-subarrow .fa-angle-down:before { + .coletivo-menu.coletivo-menu-mobile .nav-toggle-dropdown > .nav-toggle-subarrow .fa-angle-down:before { content: "\f106" !important; } - .onepress-menu.onepress-menu-mobile .nav-toggle-dropdown > ul { + .coletivo-menu.coletivo-menu-mobile .nav-toggle-dropdown > ul { display: block !important; } #nav-toggle { diff --git a/template-frontpage.php b/template-frontpage.php index ec7c35b..379671f 100755 --- a/template-frontpage.php +++ b/template-frontpage.php @@ -2,7 +2,7 @@ /** *Template Name: Frontpage * - * @package OnePress + * @package coletivo */ get_header(); ?> @@ -11,11 +11,11 @@
    diff --git a/template-parts/content-list.php b/template-parts/content-list.php index 78384df..cc7dd9b 100755 --- a/template-parts/content-list.php +++ b/template-parts/content-list.php @@ -4,7 +4,7 @@ * * @link https://codex.wordpress.org/Template_Hierarchy * - * @package OnePress + * @package coletivo */ ?> @@ -14,7 +14,7 @@ '; } @@ -35,7 +35,7 @@ ?> '