diff --git a/sites/intro-to-php/creating_a_data_class.step b/sites/intro-to-php/creating_a_data_class.step index ca0f83166..09433c43b 100644 --- a/sites/intro-to-php/creating_a_data_class.step +++ b/sites/intro-to-php/creating_a_data_class.step @@ -85,7 +85,7 @@ steps do source_code :php, <<-PHP foreach ($topics as $topic) { - echo "

" .$topic['title']. " (ID: " .$topic['id']. ")

"; + echo "

{$topic['title']} (ID: {$topic['id']})

"; echo "

"; echo nl2br($topic['description']); echo "

"; diff --git a/sites/intro-to-php/deleting_topics.step b/sites/intro-to-php/deleting_topics.step index 8f09052a7..21f40ef55 100644 --- a/sites/intro-to-php/deleting_topics.step +++ b/sites/intro-to-php/deleting_topics.step @@ -13,14 +13,14 @@ steps do source_code :php, <<-PHP " .$topic['title']. " (ID: " .$topic['id']. ")"; + echo "

{$topic['title']} (ID: {$topic['id']})

"; echo "

"; echo nl2br($topic['description']); echo "

"; - echo "

"; - echo "Edit"; + echo "

" + echo "Edit"; echo " | "; - echo "Delete"; + echo "Delete"; echo "

"; } ?> diff --git a/sites/intro-to-php/editing_topics.step b/sites/intro-to-php/editing_topics.step index c694c455a..857bdc047 100644 --- a/sites/intro-to-php/editing_topics.step +++ b/sites/intro-to-php/editing_topics.step @@ -13,11 +13,11 @@ steps do source_code :php, <<-PHP " .$topic['title']. " (ID: " .$topic['id']. ")"; + echo "

{$topic['title']} (ID: {$topic['id']})

"; echo "

"; echo nl2br($topic['description']); echo "

"; - echo "

Edit

"; + echo "

Edit

"; } ?> PHP diff --git a/sites/intro-to-php/styling_suggestotron.step b/sites/intro-to-php/styling_suggestotron.step index 1e38b56c1..717f5da78 100644 --- a/sites/intro-to-php/styling_suggestotron.step +++ b/sites/intro-to-php/styling_suggestotron.step @@ -27,14 +27,14 @@ steps do " .$topic['title']. " (ID: " .$topic['id']. ")"; + echo "

{$topic['title']} (ID: {$topic['id']})

"; echo "

"; echo nl2br($topic['description']); echo "

"; - echo "

"; - echo "Edit"; + echo "

+ echo "Edit"; echo " | "; - echo "Delete"; + echo "Delete"; echo "

"; } ?> @@ -72,9 +72,9 @@ steps do message "For example, by adding a simple class to our Edit and Delete links, we can make them look like buttons:" source_code :php, <<-PHP - echo "Edit"; + echo "Edit"; echo " "; - echo "Delete"; + echo "Delete"; PHP end