Skip to content

Commit

Permalink
Fix: Substituição de variáveis globais do WordPress
Browse files Browse the repository at this point in the history
  • Loading branch information
rodineicosta committed May 9, 2021
1 parent 799ef7f commit 02cf488
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions inc/customizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,11 +294,11 @@ function coletivo_customize_controls_enqueue_scripts() {
* @return int
*/
function coletivo_get_customizer_priority( $panel ) {
$panel = str_replace( array( 'coletivo_', '_panel' ), '', $panel );
$order = get_theme_mod( 'coletivo_sections_order', 'hero,features,yourslider,featuredpage,services,portfolio,videolightbox,gallery,team,news,contact,social' );
$index = 129;
$order = explode( ',', $order );
foreach ( $order as $key => $value ) {
$panel = str_replace( array( 'coletivo_', '_panel' ), '', $panel );
$section_order = get_theme_mod( 'coletivo_sections_order', 'hero,features,yourslider,featuredpage,services,portfolio,videolightbox,gallery,team,news,contact,social' );
$index = 129;
$section_order = explode( ',', $section_order );
foreach ( $section_order as $key => $value ) {
$index++;
if ( $panel === $value ) {
break;
Expand Down
6 changes: 3 additions & 3 deletions template-frontpage.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

if ( ! has_action( 'coletivo_frontpage_section_parts' ) ) {

$order = get_theme_mod( 'coletivo_sections_order', 'hero,features,yourslider,featuredpage,services,portfolio,videolightbox,gallery,team,news,contact,social' );
$order = explode( ',', $order );
$sections = apply_filters( 'coletivo_frontpage_sections_order', $order );
$section_order = get_theme_mod( 'coletivo_sections_order', 'hero,features,yourslider,featuredpage,services,portfolio,videolightbox,gallery,team,news,contact,social' );
$section_order = explode( ',', $section_order );
$sections = apply_filters( 'coletivo_frontpage_sections_order', $section_order );

foreach ( $sections as $section ) {

Expand Down

0 comments on commit 02cf488

Please sign in to comment.