From e286794d238d6b430cf893ce5c2197e2f05dafc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CMangesh?= <“mangesh_m@tekditechonologies.com”> Date: Tue, 25 Aug 2020 23:20:17 +0530 Subject: [PATCH 1/2] Issue #164172 style: Certificate view design changes --- .../en-GB/en-GB.com_tjcertificate.ini | 5 + .../site/views/certificate/tmpl/default.php | 173 +++++++++++------- .../tmpl/default_social_sharing.php | 103 +++++++++++ 3 files changed, 215 insertions(+), 66 deletions(-) create mode 100644 src/components/com_tjcertificate/site/views/certificate/tmpl/default_social_sharing.php diff --git a/src/components/com_tjcertificate/site/languages/en-GB/en-GB.com_tjcertificate.ini b/src/components/com_tjcertificate/site/languages/en-GB/en-GB.com_tjcertificate.ini index 7b8f1575..1a97aed8 100644 --- a/src/components/com_tjcertificate/site/languages/en-GB/en-GB.com_tjcertificate.ini +++ b/src/components/com_tjcertificate/site/languages/en-GB/en-GB.com_tjcertificate.ini @@ -20,6 +20,11 @@ COM_TJCERTIFICATE_TEMPLATE_INVALID_DATE="Invalid expiry date! Enter in Y-m-d H:i COM_TJCERTIFICATE_CERTIFICATE_PRINT="Print" COM_TJCERTIFICATE_CERTIFICATE_DOWNLOAD_PDF="Save as PDF" COM_TJCERTIFICATE_CERTIFICATE_DOWNLOAD_FILE_NAME="Certificate_%s" +COM_TJCERTIFICATE_CERTIFICATE_DOWNLOAD_SHARE="Certificate Download & Share:" +COM_TJCERTIFICATE_CERTIFICATE_CERTIFICATE_RECIPIENT="Certificate Recipient:" +COM_TJCERTIFICATE_CERTIFICATE_ABOUT_THE_COURSE="About the Course:" +COM_TJCERTIFICATE_CERTIFICATE_DOWNLOAD_AS_IMAGE="Download as Image" +COM_TJCERTIFICATE_CERTIFICATE_COMPLETED_BY="Completed by " ;My certificate view COM_TJCERTIFICATE_CERTIFICATE_MY_VIEW_DEFAULT_TITLE="My Certificates" diff --git a/src/components/com_tjcertificate/site/views/certificate/tmpl/default.php b/src/components/com_tjcertificate/site/views/certificate/tmpl/default.php index 549a3114..5da1358e 100644 --- a/src/components/com_tjcertificate/site/views/certificate/tmpl/default.php +++ b/src/components/com_tjcertificate/site/views/certificate/tmpl/default.php @@ -14,6 +14,13 @@ use Joomla\CMS\Factory; use Joomla\CMS\Router\Route; use Joomla\CMS\Language\Text; +use Joomla\CMS\Uri\Uri; +use Joomla\CMS\HTML\HTMLHelper; + +HTMLHelper::StyleSheet('components/com_tjcertificate/assets/font-awesome-4.1.0/css/font-awesome.min.css'); +HTMLHelper::script('components/com_tjcertificate/assets/html2canvas/js/html2canvas.js'); +HTMLHelper::script('components/com_tjcertificate/assets/tjCertificate.js'); +HTMLHelper::script('components/com_tjcertificate/assets/css/tjCertificate.css'); if ($this->showSearchBox) { @@ -21,8 +28,9 @@