Jeśli jesteś właścicielem tej strony, możesz wyłączyć reklamę poniżej zmieniając pakiet na PRO lub VIP w panelu naszego hostingu już od 4zł!
Strony WWWSerwery VPSDomenyHostingDarmowy Hosting CBA.pl
// $HeadURL: https://joomgallery.org/svn/joomgallery/JG-1.5/Plugins/JoomContentPlu/trunk/joomplu.php $ // $Id: joomplu.php 3339 2011-09-26 14:04:03Z chraneco $ /******************************************************************************\ ** JoomGallery Content Plugin 'JoomPlu' 1.5 ** ** By: JoomGallery::ProjectTeam ** ** Copyright (C) 2009 - 2011 Patrick Alt ** ** Released under GNU GPL Public License ** ** License: http://www.gnu.org/copyleft/gpl.html ** \******************************************************************************/ /** ### Original Copyright: ### * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved. * @license GNU/GPL, see LICENSE.php * Joomla! is free software. This version may have been modified pursuant * to the GNU General Public License, and as distributed it includes or * is derivative of works licensed under the GNU General Public License or * other free or open source software licenses. * See COPYRIGHT.php for copyright notices and details. */ // Check to ensure this file is included in Joomla! defined('_JEXEC') or die('Restricted access'); jimport('joomla.plugin.plugin'); /** * JoomGallery Content Plugin * * Shows images from JoomGallery in content articles * * @package Joomla * @subpackage Content * @since 1.5.0 */ class plgContentJoomPlu extends JPlugin { /** * Constructor * * For php4 compatability we must not use the __constructor as a constructor for plugins * because func_get_args ( void ) returns a copy of all passed arguments NOT references. * This causes problems with cross-referencing necessary for the observer design pattern. * * @access protected * @param object $subject The object to observe * @param object $params The object that holds the plugin parameters * @return void * @since 1.5.0 */ function plgContentJoomPlu(&$subject, $params) { parent::__construct($subject, $params); // Load the language file $this->loadLanguage('', JPATH_ADMINISTRATOR); } /** * JoomPlu prepare content method * * Method is called by the view * * @access public * @param object The article object. Note: $article->text is also available * @param object The article params * @param int The 'page' number * @return void * @since 1.5.0 */ function onPrepareContent(&$article, &$params, $limitstart = 0) { // Simple performance check to determine whether bot should process further if(strpos($article->text, 'joomplu') === false) { return; } // Check existence of JoomGallery and include the interface class if(!file_exists(JPATH_ROOT.DS.'components'.DS.'com_joomgallery'.DS.'interface.php')) { $output = '

'.JText::_('JCP_JG_NOT_INSTALLED').'

'; $article->text = $output.$article->text; return; } require_once JPATH_ROOT.DS.'components'.DS.'com_joomgallery'.DS.'interface.php'; // Create interface object $this->_interface = new JoomInterface(); // Get user object $user = & JFactory::getUser(); // Include necessary style sheets if we are asked for it or if we have to if($this->params->get('use_gallery_styles') || strpos($article->text, 'joomplucat') !== false) { $this->_interface->getPageHeader(); } // Set image opening method if($this->params->get('openimage', 'default') != 'default') { $default_openimage = $this->params->get('openimage', 6); $this->_interface->addConfig('openimage', $default_openimage); } // Set default column number for displaying categories $this->_interface->addConfig('default_columns', $this->params->get('default_columns')); // Do we want to display hidden images and categories also? $this->_interface->addConfig('showhidden', $this->params->get('showhidden')); // Set additional default settings $this->_setConfig($this->params->get('additional_settings'), false); // Store config in order to be able to reset it later on with the params set above $this->_interface->storeConfig(); // Regular expressions $regex_img = '/href="joomplu:([0-9]+)([a-z,A-Z,0-9,%,=,|, ]*)"/'; $regex_alt = '/alt="joomplu:([0-9]+)([a-z, ]*)"/'; $regex_tag = '/{joomplu:([0-9]+)(.*?)}/'; $regex_cat = '/{joomplucat:([0-9]+)(.*)}/';//([a-z,=,",|, ]*) $regex_link = '/href="joomplulink:([0-9]+)([a-z,A-Z,0-9,%,=,|, ]*)"/'; // Main task 1 -> Search for image links if(preg_match_all($regex_img, $article->text, $matches, PREG_SET_ORDER)) { // For debug //echo '
';print_r($matches);echo '
'; foreach($matches as $match) { $this->_setConfig(str_replace(array('%20', '%7C'), array(' ', '|'), $match[2])); // Get image object $imgs[$match[1]] = $this->_interface->getPicture($match[1], $user->get('aid')); if(!is_null($imgs[$match[1]])) { if($this->_interface->getConfig('catlink')) { $output = 'href="'.$this->_interface->route('index.php?view=category&catid='.$imgs[$match[1]]->catid).'"'; } else { $type = false; if($this->_interface->getConfig('type') == 'orig') { if(file_exists($this->_interface->_ambit->getImg('orig_path', $imgs[$match[1]]))) { $type = 'orig'; } else { $type = 'img'; } } $output = 'href="'.$this->_interface->getImageLink($imgs[$match[1]], $type).'"'; } } // Image not found else { $output = 'href="javascript:alert(\''.JText::_('JCP_IMAGE_NOT_DISPLAYABLE', true).'\');"'; // Send system message if configured if($this->params->get('msg', 0)) { $this->_sendMessages($match[1], $article->id, $article->title); } } $this->_interface->resetConfig(); $article->text = str_replace($match[0], $output, $article->text); } } // Main task 2 -> Search for alt attributes if(preg_match_all($regex_alt, $article->text, $matches, PREG_SET_ORDER)) { // For debug //echo '
';print_r($matches);echo '
'; foreach($matches as $match) { $this->_setConfig($match[2]); $new = false; // Get image object if(!isset($imgs[$match[1]])) { $imgs[$match[1]] = $this->_interface->getPicture($match[1], $user->get('aid')); $new = true; } // Image found if(!is_null($imgs[$match[1]])) { $output = 'alt="'.$imgs[$match[1]]->imgtitle.'"'; } // Image not found else { $output = 'alt="'.JText::_('JCP_IMAGE_NOT_DISPLAYABLE').'"'; if($new) { // Send system message if configured if($this->params->get('msg', 0)) { $this->_sendMessages($match[1], $article->id, $article->title); } } } $this->_interface->resetConfig(); $article->text = str_replace($match[0], $output, $article->text); } } // Main task 3 -> Search for image tags // This is only still here for backward compatibility if(preg_match_all($regex_tag, $article->text, $matches, PREG_SET_ORDER)) { // For debug //echo '
';print_r($matches);echo '
'; foreach($matches as $match) { $this->_setConfig($match[2]); $new = false; // Get image object if(!isset($imgs[$match[1]])) { $imgs[$match[1]] = $this->_interface->getPicture($match[1], $user->get('aid')); $new = true; } // Image found if(!is_null($imgs[$match[1]])) { // Linked if(strpos($match[2], 'not linked') === false) { $linked = true; } else { $linked = false; } // Alignment if(strpos($match[2], 'right') === false) { if(strpos($match[2], 'left') === false) { $extra = null; } else { $extra = 'jg_floatleft';#$extra = 'align="left"'; } } else { $extra = 'jg_floatright';#$extra = 'align="right"'; } // Detail image or thumbnail if( strpos($match[2], 'detail') === false && strpos($match[2], 'img') === false && strpos($match[2], 'orig') === false) { $output = $this->_interface->displayThumb($imgs[$match[1]], $linked, $extra); } else { $output = $this->_interface->displayDetail($imgs[$match[1]], $linked, $extra); } } // Image not found else { $output = ''; //'

'.JText::_('JCP_IMAGE_NOT_DISPLAYABLE').'

'; // Send system message if configured if($new) { if($this->params->get('msg', 0)) { $this->_sendMessages($match[1], $article->id, $article->title); } } } $this->_interface->resetConfig(); $article->text = str_replace($match[0], $output, $article->text); } } // Main task 4 -> Search for category tags if(preg_match_all($regex_cat, $article->text, $matches, PREG_SET_ORDER)) { // For debug //echo '
';print_r($matches);echo '
'; $this->_interface->getPageHeader(); foreach($matches as $match) { $this->_setConfig($match[2]); $ordering = $this->_interface->getConfig('ordering'); switch($ordering) { case 'random': $ordering = 'RAND()'; break; default: $ordering = 'jg.ordering'; break; } $rows = $this->_interface->getPicsByCategory($match[1], $user->get('aid'), $ordering, $this->_interface->getConfig('limit')); $output = $this->_interface->displayThumbs($rows); $this->_interface->resetConfig(); $article->text = str_replace($match[0], $output, $article->text); } } // Main task 5 -> Search for links if(preg_match_all($regex_link, $article->text, $matches, PREG_SET_ORDER)) { // For debug //echo '
';print_r($matches);echo '
'; foreach($matches as $match) { $this->_setConfig(str_replace(array('%20', '%7C'), array(' ', '|'), $match[2])); $view = $this->_interface->getConfig('view'); switch($view) { case 'category': $query = '&catid='.$match[1]; break; case 'detail': $query = '&id='.$match[1]; break; default: $query = ''; break; } $output = 'href="'.$this->_interface->route('index.php?view='.$view.$query).'"'; $this->_interface->resetConfig(); $article->text = str_replace($match[0], $output, $article->text); } } } /** * Sets all given configuration settings in the interface * * @access protected * @param string The string containing the settings * @param boolean Determines whether the string has to be transformed into an ini string first * @return void * @since 1.5.0 */ function _setConfig($config_string, $build_ini = true) { if($build_ini) { $ini_string = str_replace('|', "\n", $config_string); } else { $ini_string = $config_string; } $params = new JParameter($ini_string); $params_array = $params->toArray(); foreach($params_array as $key => $value) { $this->_interface->addConfig(trim($key), trim($value)); } } /** * JoomPlu message sending method * * Method sends system messages to configured users * is called when an invalid image id was found in the article * * @access protected * @param int The image id * @param int The article id * @param string The article title * @return void * @since 1.5.0 */ function _sendMessages($pic_id, $article_id, $article_title) { $db = &JFactory::getDBO(); // Include messages class require_once JPATH_ADMINISTRATOR.DS.'components'.DS.'com_messages'.DS.'tables'.DS.'message.php'; // Create messages object $msg = new TableMessage($db); // Find users who want to receive messages if(!$this->params->get('msg_to', 0)) { $query = 'SELECT id FROM #__users WHERE sendEmail = 1'; $db->setQuery($query); $user_ids = $db->loadResultArray(); } else { $user_ids = explode(',',$this->params->get('msg_to', 0)); } foreach($user_ids as $user_id) { $user_to = &JFactory::getUser($user_id); // Ensure that a valid user was selected if(is_object($user_to) && $user_to->get('gid') > 22) { $message = JText::sprintf('JCP_MESSAGE_TEXT', $pic_id, $article_id, $article_title); // Check whether message was already sent $query = 'SELECT message FROM #__messages WHERE user_id_to = '.$user_id; $db->setQuery($query); $messages = $db->loadResultArray(); $sent = false; foreach($messages as $sent_message) { if($sent_message == $message) { $sent = true; // Breaks foreach because we have what we wanted break; } } if($sent) { // Next loop continue; } // Send message $msg->send($user_id, $user_id, JText::_('JCP_MESSAGE_SUBJECT'), $message); } } } } /** * @copyright Copyright (C) 2008 Cory Webb. All rights reserved. * @license GNU/GPL * * Special thanks to Simon Tiplady (http://www.stiplady.net) for help with the regular expressions. */ // Check to ensure this file is included in Joomla! defined( '_JEXEC' ) or die( 'Restricted access' ); jimport( 'joomla.plugin.plugin' ); /** * YouTube Video Embedder Content Plugin * */ class plgContentYoutubeEmbed extends JPlugin { /** * Constructor * * @param object $subject The object to observe * @param object $params The object that holds the plugin parameters */ function plgContentYoutubeEmbed( &$subject, $params ) { parent::__construct( $subject, $params ); } /** * Example prepare content method * * Method is called by the view * * @param object The article object. Note $article->text is also available * @param object The article params * @param int The 'page' number */ function onPrepareContent( &$article, &$params, $limitstart ) { global $mainframe; if ( JString::strpos( $article->text, 'http://www.youtube.com/' ) === false ) { return true; } $article->text = preg_replace('|(http://www.youtube.com/watch\?v=([a-zA-Z0-9_-]+))|e', '$this->youtubeCodeEmbed("\2")', $article->text); return true; } function youtubeCodeEmbed( $vCode ) { $plugin =& JPluginHelper::getPlugin('content', 'youtubeembed'); $params = new JParameter( $plugin->params ); $width = $params->get('width', 425); $height = $params->get('height', 344); return ''; } }

Składamy gorące podziękowania za pomoc w zorganizowaniu tegorocznego "Festynu Rodzinnego".

Lista sponsorów „Festyn Rodzinny 2014r.”

Dziękujemy wszystkim rodzicom za pomoc w zorganizowaniu „Loterii Fantowej”, a ponadto

sponsorami są:

1. Burmistrz Miasta Wojnicz

2. Starostwo Powiatowe w Tarnowie

3. Stowarzyszenie „Dajemy Nadzieję”

4. Stanisław Opioła – przychodnia weterynaryjna

5. Teresa i Witold Duman – „Dla domu i ogrodu”

6. Autoryzowany dealer PEUGEOT Józef Sowaszczególne podziękowanie

7. PGNiG oddział Tarnów

8. Stanisław Kruczyński – „WAGANT”

9. Salon fryzjerski „SAFONA”

10. Joanna i Albert Dziaduła

11. Joanna i Mirosław Borawscy

12. p. Ewa Aloksa

13. p. Anna Aloksa – Restauracja „Arte Espanol”

14. Sklep odzieżowy „RAMONA”

15. Sklep odzieżowy pani Edyty Migoń

16. „Kwiaciarnia” pani Anny Zielińskiej

17. Zakład krawiecki pani Barbary Kuboń

18. „M&R PRINTING EQUIPMENT Poland” Sp. z o.o.

19. F.H. “TEANEX” – Teresa i Andrzej Kluska

20. Firma „FLORPAK”

21. Barbara i Władysław Kupczyk

22. Marek Lenik

23. Centrala Ogrodnicza „PLANTA”

24. Delikatesy Centrum – p. Adriana Wójcik

25. Restauracja Wojnicka

26. Lodziarnia LIKS

27. p. Bogusia Bury

28. TRANSWIT – Witold Cygan

29. Zofia Kurek

30. Kinga Krupa

31. Diana Gieroń

32. Rejonowe Przedsięb. Wodociągów i Kanalizacji w Brzesku

33. Bank Spółdzielczy Rzemiosła o/Wojnicz – p. dyrektor Kazimiera Nosek

34. Urząd Miejski w Wojniczu

35. Elżbieta Szczerba – sklep ogrodniczo-przemysłowy „SPICHLERZ”

36.p. Mariusz Wesołowski

37. Firma „ATLAS”

38. Polskie Zrzeszenie Płytkarzy

39. p. Mirosław Kołodziej

40. Firma MATBUD i BUDOMAT

41. Restauracja „ESSENCIA”

42. Restauracja „MISSTERIUM”

43. Przychodnia Rehabilitacyjna – pani Elżbieta Piekarz

44. Firma SPAW –MAR

45. MH – GEO – p. Dorota Król

46. Piekarnia „Janina” państwa Ciuruś

47. Piekarnia „Lucynka”

48. Aneta i Piotr Sumara

49. Stacja Paliw STATOIL w Łoponiu

 

Składamy serdeczne podziękowanie na ręce pani ANNY ALOKSA za namalowanie postaci bajkowych w salach zabaw dla dzieci.

W ramach naszej strony stosujemy pliki cookies by umożliwić Ci wygodne korzystanie z serwisu. Jeśli nie zmienisz ustawień dotyczących cookies w Twojej przeglądarce, będą one umieszczane na Twoim komputerze. W każdej chwili możesz zmienić swoje ustawienia Dowiedz sie wiecej o plikach cookiesPolityka prywatnosci.

Akceptuje pliki cookies z tej strony.

EU Cookie Directive Module Information