esc_html__( 'Theme Capability Demonstration', 'aamla' ), ]; $aamla_demo_ques = [ [ 'section' => 'demo', 'link' => 'resort-demo', 'question' => esc_html__( 'Resort Demo', 'aamla' ), ], [ 'section' => 'demo', 'link' => 'personalized-business-solutions', 'question' => esc_html__( 'Business Consultancy Demo', 'aamla' ), ], [ 'section' => 'demo', 'link' => 'shop', 'question' => esc_html__( 'WooCommerce Shop', 'aamla' ), ], [ 'section' => 'demo', 'link' => 'uncategorized/welcome-to-the-gutenberg-editor', 'question' => esc_html__( 'Gutenberg', 'aamla' ), ], [ 'section' => 'demo', 'link' => 'blog', 'question' => esc_html__( 'Blog Index Page', 'aamla' ), ], ]; foreach ( $aamla_demo_blocks as $doc_id => $doc_label ) { printf( '

%s

', $doc_label ); // WPCS xss ok. Variable already escaped. foreach ( $aamla_demo_ques as $doc ) { if ( $doc['section'] === $doc_id ) { if ( isset( $doc['link'] ) ) { $aamla_link = AAMLA_URI . 'demo-aamla/' . $doc['link']; printf( '

%2$s

', $aamla_link, $doc['question'] ); // WPCS xss ok. Variables already escaped. } else { printf( '

%s

', $doc['question'] ); // WPCS xss ok. Variables already escaped. } if ( isset( $doc['desc'] ) && $doc['desc'] ) { printf( '

%s

', $doc['desc'] ); // WPCS xss ok. Variables already escaped. } } } echo '
'; }