php echo inside echo shortcode. php code role management
-
Hello: I am using code
<?php if( $theme_usage == 'all' || $theme_usage == 'coupons' ): ?> <li class="<?php echo $subpage == 'my_coupons' ? 'active' : '' ?>"> <a href="<?php echo esc_url( couponxl_append_query_string( $permalink, array( 'subpage' => 'my_coupons' ), array( 'all' ) ) ); ?>"> <h4><?php _e( 'My Coupons', 'couponxl' ) ?></h4> <p><small><?php _e( 'Check here coupons you have submitted or add new one', 'couponxl' ) ?></small></p> </a> </li> <?php endif; ?> <?php if( $theme_usage == 'all' || $theme_usage == 'deals' ): ?> <li class="<?php echo $subpage == 'my_deals' ? 'active' : '' ?>"> <a href="<?php echo esc_url( couponxl_append_query_string( $permalink, array( 'subpage' => 'my_deals' ), array( 'all' ) ) ); ?>"> <h4><?php _e( 'My Deals', 'couponxl' ) ?></h4> <p><small><?php _e( 'Check here deals you have submitted or add new one', 'couponxl' ) ?></small></p> </a> </li> <?php endif; ?>
I am need shordcode:
<?php echo do_shortcode('[private role="administrator"]Text for Administrators[/private]') ?>
And I am need working code:
<?php echo do_shortcode('[private role="administrator"]' , ' <?php if( $theme_usage == 'all' || $theme_usage == 'coupons' ): ?> <li class="<?php echo $subpage == 'my_coupons' ? 'active' : '' ?>"> <a href="<?php echo esc_url( couponxl_append_query_string( $permalink, array( 'subpage' => 'my_coupons' ), array( 'all' ) ) ); ?>"> <h4><?php _e( 'My Coupons', 'couponxl' ) ?></h4> <p><small><?php _e( 'Check here coupons you have submitted or add new one', 'couponxl' ) ?></small></p> </a> </li> <?php endif; ?> <?php if( $theme_usage == 'all' || $theme_usage == 'deals' ): ?> <li class="<?php echo $subpage == 'my_deals' ? 'active' : '' ?>"> <a href="<?php echo esc_url( couponxl_append_query_string( $permalink, array( 'subpage' => 'my_deals' ), array( 'all' ) ) ); ?>"> <h4><?php _e( 'My Deals', 'couponxl' ) ?></h4> <p><small><?php _e( 'Check here deals you have submitted or add new one', 'couponxl' ) ?></small></p> </a> </li> <?php endif; ?> ' , '[/private]') ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘php echo inside echo shortcode. php code role management’ is closed to new replies.