Php vs Html
-
Hi,
I’m very confused by the use of hard to read and “verbose” php code I find in wordpress instead of pure, simple html.
See<div class="site-info"> <?php do_action( 'twentyfourteen_credits' ); ?> <a href="<?php echo esc_url( __( 'https://www.ads-software.com/', 'twentyfourteen' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'twentyfourteen' ), 'WordPress' ); ?></a>. Copyright ?<?php echo date( 'Y' ); ?> </div>
instead of
<div class="site-info"> <a href="https://www.ads-software.com">Proudly powered by WordPress</a>. Copyright ?2015 </div>
And since more people know html than php, I wonder if there is a purpose for making WordPress coding so complicated. Or is it just php for php’s sake?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Php vs Html’ is closed to new replies.