Skip to content
Our Lady of Grace Parish

  • Home
  • Our Parish
  • Sacraments
  • Schools
  • Contacts

Phone Phone: 01782 782121Location Contact UsEmail Email Us
Our Lady of Grace Parish
Home » Churches

Churches

Churches

  • English Martyrs’, Biddulph

    English Martyrs’, Biddulph

    Read More English Martyrs’, BiddulphContinue

  • St Joseph’s, Goldenhill

    St Joseph’s, Goldenhill

    Read More St Joseph’s, GoldenhillContinue

  • St Patrick’s, Packmoor

    St Patrick’s, Packmoor

    Read More St Patrick’s, PackmoorContinue

Diocese
createElement(‘div’); $container->setAttribute(‘class’, ‘diocese_container’); // RPECK 23/03/2024 – Check to see if a link is present // If the link exists, we need to add it to the DOMDocument so the image is clickable if(array_key_exists(‘diocese_url’,$diocese) && !empty($diocese[‘diocese_url’])) { // RPECK 23/03/2024 – Add the anchor element to DOMDocument // Gives us the ability to allocate the correct attributes etc $link = $dom->createElement(‘a’); $link->setAttribute(‘href’, $diocese[‘diocese_url’]); $link->setAttribute(‘title’, $diocese[‘diocese_name’]); $link->setAttribute(‘target’, ‘_blank’); // RPECK 23/03/2024 – Append to container // This ensures we have the correct values to output $container->appendChild($link); } // RPECK 23/03/2024 – Create an image element // This is the primary focus of the system. It should only be created if the Diocese ‘image’ value exists if(array_key_exists(‘diocese_logo’,$diocese) && !empty($diocese[‘diocese_logo’])) { // RPECK 23/03/2024 – Add the image element to DOMDocument // Gives us the ability to allocate the correct attributes etc $image = $dom->createElement(‘img’); $image->setAttribute(‘src’, $diocese[‘diocese_logo’][‘url’]); // RPECK 23/03/2024 – Append to container // This ensures we have the correct values to output if(isset($link)) { // RPECK 23/03/2024 – If the link exists, append the image to it, rather than the container // This ensures we are able to output the various elements inside the link $link->appendChild($image); } else { // RPECK 23/03/2024 – If the link does not exist, append the image to the container instead $container->appendChild($image); } } // RPECK 23/03/2024 – Append the container to the main $dom document // After doing this, we can output the HTML as required $dom->appendChild($container); // RPECK 23/03/2024 – Clear the $link variable // Ws conflicting with the way the system was showing unset($link, $image, $container); } // RPECK 23/03/2024 – If we are at this point, output the DOMDocument HTML echo $dom->saveHTML(); }
Read Catholic News
Gallery
Contact
Send us a message using the form and information listed below.

  • Home
  • Privacy Policy
  • Cookie Policy (EU)

Powered by Parish Websites

|

Designed by ActonBV

Scroll to top
Search
  • Home
  • Our Parish
  • Sacraments
  • Schools
  • Contacts
Phone Phone: 01782 782121Email Email Us
Search