first commit
This commit is contained in:
102
components/com_dvtr_employees/tmpl/employee/default.php
Normal file
102
components/com_dvtr_employees/tmpl/employee/default.php
Normal file
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
/**
|
||||
* @version CVS: 1.0.0
|
||||
* @package Com_Dvtr_employees
|
||||
* @author Pawel Potoniec <pawel@devatri.pl>
|
||||
* @copyright 2025 Pawel Potoniec
|
||||
|
||||
*/
|
||||
|
||||
// No direct access
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
use \Joomla\CMS\HTML\HTMLHelper;
|
||||
use \Joomla\CMS\Factory;
|
||||
use \Joomla\CMS\Uri\Uri;
|
||||
use \Joomla\CMS\Router\Route;
|
||||
use \Joomla\CMS\Language\Text;
|
||||
use \Joomla\CMS\Session\Session;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-8">
|
||||
<!--<div class="name">
|
||||
<h1><?php /*echo $this->item->name; */?> </h1>
|
||||
</div>-->
|
||||
<div class="desc">
|
||||
<?php
|
||||
echo JHtml::_('content.prepare', $this->item->description);
|
||||
?>
|
||||
</div>
|
||||
<div class="publications">
|
||||
<?php
|
||||
echo JHtml::_('content.prepare', $this->item->publications);
|
||||
?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<div class="avatar">
|
||||
<img src="<?php echo $this->item->avatar ? $this->item->avatar : '/images/O%20instytucie/avatar.png'; ?>" alt="avatar"/>
|
||||
</div>
|
||||
<div class="name">
|
||||
<strong><?php echo $this->item->name; ?></strong>
|
||||
</div>
|
||||
<!-- <div class="url">
|
||||
<?php /*if(!empty($this->item->url)):*/?>
|
||||
<a href="<?php /*echo $this->item->url */?>">
|
||||
<?php /*echo $this->item->url */?>
|
||||
</a>
|
||||
<?php /*endif;*/?>
|
||||
</div>-->
|
||||
<div class="contact_data">
|
||||
|
||||
<?php
|
||||
echo JHtml::_('content.prepare', $this->item->contact_data);
|
||||
?>
|
||||
</div>
|
||||
<div class="achievements">
|
||||
<strong><?php echo $this->item->achievements_label;?></strong><br/>
|
||||
<?php
|
||||
echo JHtml::_('content.prepare', $this->item->achievements);
|
||||
?>
|
||||
</div>
|
||||
<div class="social-media">
|
||||
<?php if(!empty($this->item->social_linkedin)):?>
|
||||
<a href="<?php echo $this->item->social_linkedin ?>">
|
||||
<!-- <i class="fa fa-linkedin"></i>-->
|
||||
|
||||
<img src="/media/com_quantummanager/images/icons/action/linkedin-logo.svg"/>
|
||||
</a>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if(!empty($this->item->social_facebook)):?>
|
||||
<a href="<?php echo $this->item->social_facebook ?>">
|
||||
<!-- <i class="fa fa-facebook"></i>-->
|
||||
<img src="/media/com_quantummanager/images/icons/action/facebook-logo.svg"/>
|
||||
</a>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if(!empty($this->item->social_instagram)):?>
|
||||
<a href="<?php echo $this->item->social_instagram ?>">
|
||||
<!-- <i class="fa fa-facebook"></i>-->
|
||||
<img src="/media/com_quantummanager/images/icons/action/instagram-logo.svg"/>
|
||||
</a>
|
||||
<?php endif;?>
|
||||
|
||||
<?php if(!empty($this->item->social_twitter)):?>
|
||||
<a href="<?php echo $this->item->social_twitter ?>">
|
||||
<!-- <i class="fa fa-facebook"></i>-->
|
||||
<img src="/media/com_quantummanager/images/icons/action/twitter-logo-on-black-background.svg"/>
|
||||
</a>
|
||||
<?php endif;?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
24
components/com_dvtr_employees/tmpl/employee/default.xml
Normal file
24
components/com_dvtr_employees/tmpl/employee/default.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<metadata>
|
||||
<layout title="COM_DVTR_EMPLOYEES_TITLE_ITEM_VIEW_EMPLOYEE" option="View">
|
||||
<message>
|
||||
<![CDATA[COM_DVTR_EMPLOYEES_TITLE_ITEM_VIEW_EMPLOYEE_DESC]]>
|
||||
</message>
|
||||
</layout>
|
||||
<fields name="request">
|
||||
<fieldset
|
||||
name="request"
|
||||
label="COM_DVTR_EMPLOYEES_FIELDSET_ITEM_ID_SELECT_LABEL">
|
||||
<field
|
||||
name="id"
|
||||
query="SELECT `id`, `name` FROM #__employees_ ORDER BY `id`"
|
||||
type="sql"
|
||||
key_field="id"
|
||||
value_field="name"
|
||||
label="COM_DVTR_EMPLOYEES_ITEM_ID_SELECT_LABEL"
|
||||
require="true"
|
||||
description="JGLOBAL_SHOW_TITLE_DESC">
|
||||
</field>
|
||||
</fieldset>
|
||||
</fields>
|
||||
</metadata>
|
||||
1
components/com_dvtr_employees/tmpl/employee/index.html
Normal file
1
components/com_dvtr_employees/tmpl/employee/index.html
Normal file
@@ -0,0 +1 @@
|
||||
<html><body></body></html>
|
||||
Reference in New Issue
Block a user