%2$s

' . '' . ''; return $template; } } /** * Change Account Orders Column * * @since 1.0 */ if ( ! function_exists( 'alpus_change_orders_column' ) ) { function alpus_change_orders_column( $columns ) { $columns['order-actions'] = 'Action'; return $columns; } } /** * Get layout theme options map * * @since 1.0 */ function alpus_get_layout_default_args( $res, $layout_name ) { if ( 'archive_product' == $layout_name ) { $res = array( 'products_column' => 3, 'products_gap' => 'lg', ); } elseif ( 'single_product' == $layout_name ) { $res = array( 'single_product_type' => 'horizontal', 'single_product_sticky' => true, 'single_product_sticky_mobile' => true, 'products_load' => '', 'product_data_type' => 'tab', 'products_gap' => 'lg', ); } elseif ( 'archive_' == substr( $layout_name, 0, 8 ) ) { $res = array( 'posts_filter' => false, 'posts_column' => 1, ); } elseif ( 'single_' == substr( $layout_name, 0, 7 ) ) { $res = array( 'single_image_size' => 'full', // for single post featured image. ); } /** * Filters layout theme option map. * * @since 1.0 */ return $res; } /** * Set default post args * * @since 1.0 */ if ( ! function_exists( 'alpus_post_loop_args' ) ) { function alpus_post_loop_args( $args ) { if ( empty( $args ) ) { $args = array(); } $args = array_merge( $args, array( 'excerpt_length' => 43, 'overlay' => '', ) ); return $args; } }