iProperty Tool Bar

Phoca PDF - creating PDF documents in Joomla! CMS
ratafia
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 28 Oct 2014, 11:16

iProperty Tool Bar

Post by ratafia »

Hello Everyone !

Trying, well, very hard... to include PDF plugin into iProperty (Real Estate Component).
As I am not a PHP developer, barely an acceptable HTML/CSS one these days... I need your help.

This is the code you get into default_iptoolbar.php

Code: Select all

<?php
defined( '_JEXEC' ) or die( 'Restricted access');
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers');
JHtml::_('bootstrap.modal');
?>

<ul class="nav nav-tabs ip-actions hidden-tablet hidden-phone pull-right">
    <?php if ($this->ipauth->canEditProp($this->p->id)): ?>           
        <li> <?php echo JHtml::_('icon.edit', $this->p, 'property', true,  array('class'=>'btn hasTooltip')); ?></li>
    <?php endif; ?>
    <?php if ($this->settings->show_print): ?> 
        <li> <?php echo JHtml::_('icon.print_popup', $this->p, array('class'=>'btn hasTooltip'), 820, 480); ?></li>
    <?php endif; ?>
    <?php if ($this->p->price AND $this->p->price != '0.00' AND $this->settings->show_mtgcalc): ?>
        <li> <?php echo JHtml::_('icon.generic_button', '#calcModal', 'icon-search', array('title'=>JText::_('COM_IPROPERTY_MTG_CALCULATOR'), 'role'=>'button', 'data-toggle'=>'modal', 'class'=>'btn hasTooltip btn-fade')); ?></li>
    <?php endif; ?>
    <?php if ($this->settings->show_saveproperty): ?>
        <li> <?php echo JHtml::_('icon.generic_button', '#saveModal', 'icon-save', array('title'=>JText::_('COM_IPROPERTY_SAVE'), 'role'=>'button', 'data-toggle'=>'modal', 'class'=>'btn hasTooltip btn-fade')); ?></li>
        <li> <?php echo JHtml::_('icon.generic_button', JRoute::_(ipropertyHelperRoute::getIpuserRoute()), 'icon-list', array('title'=>JText::_('COM_IPROPERTY_MY_FAVORITES').'::'.JText::_( 'COM_IPROPERTY_MY_FAVORITES_TIP'), 'class'=>'btn hasTooltip')); ?></li>
    <?php endif; ?>
</ul>
<?php echo $this->loadTemplate('calculator'); ?>
<?php echo $this->loadTemplate('usersave'); ?> 
<div class="clearfix"></div>
Can anyone tell me if is it possible to include de PDF icon, and where ???

Thanks to anyone who will save my a**
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: iProperty Tool Bar

Post by Jan »

Hi, adding a PDF icon code to the html is cca 1% of work which needs to be done. Or is there any pdf plugin for your component ready?

:idea:

Jan
If you find Phoca extensions useful, please support the project
ratafia
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 28 Oct 2014, 11:16

Re: iProperty Tool Bar

Post by ratafia »

Hi Jan,

Unfortunately, there is not any plugin available. I am fully aware this should be easy but I still can't manage to do so. Thanks for your reply

Raph
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: iProperty Tool Bar

Post by Jan »

Hi, yes, it is not so easy, the content of the extension needs to be output as raw and must be filtered because of PDF (PDF is static document and HTML is dynamic - so there is really large conversion :idea: :-(

Jan
If you find Phoca extensions useful, please support the project
Post Reply