Advertisement
Guest User

Untitled

a guest
Mar 20th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package Joomla.Site
  4. * @subpackage mod_custom
  5. *
  6. * @copyright Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
  7. * @license GNU General Public License version 2 or later; see LICENSE.txt
  8. */
  9.  
  10. defined('_JEXEC') or die;
  11.  
  12. //get custom fields
  13. $image = $params->get('image');
  14. $title = $params->get('title');
  15. $address = $params->get('address');
  16. $phone = $params->get('phone');
  17. $email = $params->get('email');
  18. $hour = $params->get('hour');
  19. $btncall = $params->get('btncall');
  20. $emailus = $params->get('emailus');
  21. $link = $params->get('link');
  22. ?>
  23.  
  24.  
  25. <div class="custom<?php echo $moduleclass_sfx; ?>" <?php if ($params->get('backgroundimage')) : ?> style="background-image:url(<?php echo $params->get('backgroundimage'); ?>)"<?php endif; ?> >
  26. <div class="jn-row-fluid">
  27. <div class="jn-span-5">
  28. <div class="text-container">
  29. <h3 class="module-title"><?php echo $title; ?></h3>
  30. <span>Address:</span><br>
  31. <address class="address">
  32. <?php echo $address; ?>
  33. </address>
  34. <div class="phonemail">
  35. <span class="cell">Cell:</span> <a class="phone" href="tel:<?php echo $phone; ?>"><?php echo $phone; ?></a>
  36. </div>
  37. <div class="phonemail">
  38. <span class="mail">Mail:</span> <a class="email" href="mailto:<?php echo $email; ?>"><?php echo $email; ?></a>
  39. </div>
  40. <div class="hour">
  41. <?php echo $hour; ?>
  42. </div>
  43. <div class="buttons">
  44. <a class="btn-style-2" href="tel:<?php echo $phone; ?>"><?php echo $btncall; ?></a>
  45. <a class="btn-style-2" href="mailto:<?php echo $email; ?>"><?php echo $emailus; ?></a>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="jn-span-7">
  50. <a href="<?php echo $link; ?>" target="_blank" rel="alternate"><img class="jn-holder jn-holder-block" data-ratio="tv" src="<?php echo $image; ?>" alt="map"></a>
  51. </div>
  52. </div>
  53. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement