diff --git a/README.MD b/README.MD index a0161ed..49b1a67 100644 --- a/README.MD +++ b/README.MD @@ -2,7 +2,7 @@ -![Phoca PDF](https://github.com/PhocaCz/PhocaPDF/blob/master/phocapdf.png) +![Phoca PDF](https://github.com/PhocaCz/PhocaPDF/blob/master/phocapdf.png?raw=true) # Phoca PDF @@ -61,7 +61,7 @@ Phoca PDF is Joomla! CMS component. It helps to set and create PDF documents in ## Version -3.0.10 +3.0.11 diff --git a/admin/files/com_content/views/article/view.pdf.php b/admin/files/com_content/views/article/view.pdf.php index 7243dc5..3c1bf7e 100644 --- a/admin/files/com_content/views/article/view.pdf.php +++ b/admin/files/com_content/views/article/view.pdf.php @@ -148,6 +148,15 @@ function display($tpl = null) $document = JFactory::getDocument(); $document->setHeader($this->getHeaderText($item, $params)); + + // Change the item output - e.g. add intro image to the content + JPluginHelper::importPlugin('phocapdf', 'content'); + + //$content = new JObject(); + //JFactory::getApplication()->triggerEvent('onBeforeCreatePDFContent', array (&$content)); + //JFactory::getApplication()->triggerEvent('onBeforeRenderOutputContent', array (&$item, $content)); + JFactory::getApplication()->triggerEvent('onBeforeRenderOutputContent', array (&$item)); + echo $item->text; $document->setArticleText($item->article_text); diff --git a/admin/install/mysql/index.html b/admin/install/mysql/index.html deleted file mode 100644 index ea9e94c..0000000 --- a/admin/install/mysql/index.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/admin/install/mysql/install.utf8.sql b/admin/install/mysql/install.utf8.sql deleted file mode 100644 index e69de29..0000000 diff --git a/admin/install/mysql/uninstall.utf8.sql b/admin/install/mysql/uninstall.utf8.sql deleted file mode 100644 index e69de29..0000000 diff --git a/manifest.xml b/manifest.xml index a2c8c3d..d52cc3a 100644 --- a/manifest.xml +++ b/manifest.xml @@ -7,10 +7,10 @@ - Phoca PDF plugins. ]]> com_phocapdf component - 3.0.10 - http://www.phoca.cz/version/index.php?phocapdf=3.0.10 + 3.0.11 + http://www.phoca.cz/version/index.php?phocapdf=3.0.11 - https://github.com/PhocaCz/PhocaPDF/releases/download/3.0.10/com_phocapdf_v3.0.10.zip + https://github.com/PhocaCz/PhocaPDF/releases/download/3.0.11/com_phocapdf_v3.0.11.zip stable diff --git a/phocapdf-release.png b/phocapdf-release.png index db6e649..ad8ae9d 100644 Binary files a/phocapdf-release.png and b/phocapdf-release.png differ diff --git a/phocapdf.xml b/phocapdf.xml index e33c006..27fd1db 100644 --- a/phocapdf.xml +++ b/phocapdf.xml @@ -2,12 +2,12 @@ com_phocapdf Jan Pavelka (www.phoca.cz) - 17/05/2020 + 30/11/2020 https://www.phoca.cz Jan Pavelka GNU/GPL - 3.0.10 + 3.0.11 COM_PHOCAPDF_XML_DESCRIPTION script.php PhocaPDF