Новости Joomla

Joomla официально признана цифровым общественным благом Joomla с гордостью сообщает, что была...

Joomla официально признана цифровым общественным благом 🙏🎉Joomla с гордостью сообщает, что была официально признана цифровым общественным благом (Digital Public Good, DPG) Альянсом цифровых общественных благ (Digital Public Goods Alliance, DPGA) — инициативой, поддерживаемой Организацией Объединённых Наций.Это признание ставит Joomla! в ряд международных open-source проектов, которые разделяют ценности открытости, прозрачности, защиты данных и социального воздействия. Важно отметить, что статус цифрового общественного блага присвоен самому программному решению Joomla!, а не организации Joomla как юридическому лицу.Альянс цифровых общественных благ (DPGA) ведёт международный реестр цифровых общественных благ и оценивает проекты на основе чётко определённых стандартов. Его миссия — поддержка открытых технологий, способствующих достижению Целей устойчивого развития ООН (UN SDGs) и решению глобальных задач развития. 🌐Чтобы получить статус цифрового общественного блага, проект должен соответствовать Стандарту цифровых общественных благ (Digital Public Goods Standard), который включает следующие критерии:✔️ Открытое лицензирование (например, использование признанных open-source лицензий)✔️ Защита данных и безопасность✔️ Соответствие правовым и этическим нормам✔️ Вклад в достижение Целей устойчивого развития ООН✔️ Прозрачное управление и долгосрочная устойчивость✔️ Активное вовлечение сообществаПолучение статуса цифрового общественного блага — процесс далеко не автоматический. Joomla прошла тщательную процедуру оценки, которая потребовала предоставления подробной документации и доказательств соответствия строгим стандартам.Благодаря самоотверженной работе множества участников сообщества, этот результат стал наглядным подтверждением универсальности и открытости Joomla, а также бесчисленных способов, с помощью которых она помогает людям создавать веб-решения.Это достижение подчёркивает позицию Joomla как одной из самых надёжных и гибких open-source CMS в мире — системы, которая продолжает давать возможность разработчикам, организациям и государственным структурам создавать открытые, безопасные и инклюзивные цифровые решения.Оригинал новости

0 Пользователей и 1 Гость просматривают эту тему.
  • 2 Ответов
  • 1267 Просмотров
*

Dashulya

  • Новичок
  • 2
  • 0 / 0
Помогите разобраться с модулями...при добавлении ещё одного логотипа в шаблон a4joomla-winter-free через div в index.php, остальные позиции модулей немного поменялись. На главной странице все замечательно, удалось все подстроить под себя, но на остальных страницах, когда модуль слайдшоу изчезает появляется пустота, а хотелось бы, как было в шаблоне изначально...
*

Dashulya

  • Новичок
  • 2
  • 0 / 0
Код
<?php // no direct access 
/**
 * @package                Template for Joomla
 * @copyright        Copyright (C) 2012 a4joomla.com
 * @license                GNU General Public License version 2 or later
 */
defined( '_JEXEC' ) or die( 'Restricted access' );
$showLeftColumn = (bool) $this->countModules('position-7');
$showRightColumn = (bool) $this->countModules('position-6');
$showRightColumn &= JRequest::getCmd('layout')!= 'edit';

$headerType = $this->params->get("headerType","1");
$myimage = $this->params->get("myimage","winter1.jpg");
$myfolder = $this->params->get("myfolder","sampledata");
$duration = $this->params->get("duration","800");
$delay = $this->params->get("delay","4000");
$imageWidth = $this->params->get("imageWidth","900");
$imageHeight = $this->params->get("imageHeight","350");
$forceresize = $this->params->get("forceresize","0");
$showControl = $this->params->get("showControl", "true");
$display = $this->params->get("display","sequence");
$arrowColor = $this->params->get("arrowColor","white");

$frontpagediv="0";
if ($headerType == "0" || $headerType == "1") {
$lang =& JFactory::getLanguage();
$locale = $lang->getTag();
$menu = JSite::getMenu();
if ($menu->getActive() == $menu->getDefault($locale)) {
$frontpagediv="1";
}
} elseif ($headerType == "2" || $headerType == "3") {
$frontpagediv="1";
}

$imgrootdir = "templates/".$this->template."/images/";
$margin = 40;
$outermargin = 40;
$logoText = $this->params->get("logoText","Winter");
$slogan = $this->params->get("slogan","Template from a4joomla.com");
$mytwitter = $this->params->get("myTwitter", "Yes");
$twitterurl = $this->params->get("twitterUrl");
$myfacebook = $this->params->get("myFacebook", "Yes");
$facebookurl = $this->params->get("facebookUrl");
$myfeed = $this->params->get("myFeed", "Yes");
$feedurl = $this->params->get("feedUrl");
$mygoogle = $this->params->get("myGoogle", "Yes");
$googleurl = $this->params->get("googleUrl");
$myyoutube = $this->params->get("myYoutube", "Yes");
$youtubeurl = $this->params->get("youtubeUrl");
$pageWidth = $this->params->get("pageWidth", "980");
$pageWidth = $pageWidth - $outermargin;
$rightColumnWidth = $this->params->get("rightColumnWidth", "190");
$leftColumnWidth = $this->params->get("leftColumnWidth", "190");
$logoWidth = $this->params->get("logoWidth", "260");

$widthdiff = 80;
if ($forceresize == "1") {
$imageHeight = round($imageHeight * ($pageWidth + $outermargin - $widthdiff) / $imageWidth);
$imageWidth = $pageWidth + $outermargin - $widthdiff;
}
$controlPosition = 50 - 2500/$imageHeight;

$headerrightWidth = $pageWidth + $outermargin - $logoWidth - 100;

if ($showLeftColumn && $showRightColumn) {
   $contentWidth = $pageWidth - $leftColumnWidth - $rightColumnWidth - 3*$margin;
} elseif (!$showLeftColumn && $showRightColumn) {
   $contentWidth = $pageWidth - $rightColumnWidth - 2*$margin ;
} elseif ($showLeftColumn && !$showRightColumn) {
   $contentWidth = $pageWidth - $leftColumnWidth - 2*$margin ;
} else {
   $contentWidth = $pageWidth - $margin ;
}
JHTML::_('behavior.framework', true); 
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >

<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/grey.css" type="text/css" />
<!--[if IE 6]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie6.css" type="text/css" />
<style type="text/css">
img, div, a, input { behavior: url(<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/iepngfix.htc) }
#search input.inputbox { behavior:none;}
</style>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/iepngfix_tilebg.js" type="text/javascript"></script>
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/ie67.css" type="text/css" />
<![endif]-->
<!--[if lte IE 8]>
<style type="text/css">
#search input.inputbox { behavior: url(<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/PIE.php) }
</style>
<![endif]-->
<style type="text/css">
<?php if ($frontpagediv == "1" && $headerType != "4") : ?>
 #header {
border-bottom: 0;
 }
<?php endif; ?>

 #logo {
   
      width:<?php echo $logoWidth; ?>px;
 }
 #headerright {
    width:<?php echo $headerrightWidth; ?>px;
 }
 #slideshow-container {
width:<?php echo $pageWidth + $outermargin - $widthdiff; ?>px;
height:<?php echo $imageHeight; ?>px;
 }
 #slideshow-container img {
width:<?php echo $imageWidth; ?>px;
height:<?php echo $imageHeight; ?>px;
 }
 #slcontrol {
width:<?php echo $imageWidth; ?>px;
top:<?php echo $controlPosition; ?>%;
 }
 a#slprev {
    background: url("<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/previous-<?php echo $arrowColor; ?>.png") no-repeat scroll left center transparent;
 }
 a#slnext {
    background: url("<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/next-<?php echo $arrowColor; ?>.png") no-repeat scroll right center transparent;
 }
</style>
<script src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/verysimpleslideshow.js" type="text/javascript"></script>
<?php if (($headerType == "1" || $headerType == "3") && $frontpagediv == "1") : ?>
<script type="text/javascript">
window.addEvent('domready',function() {
var slideshow = new VerySimpleSlideshow({
container: 'slideshow-container',
elements: '#slideshow-container img',
showControls: <?php echo $showControl; ?>,
transDelay: <?php echo $delay; ?>,
transDuration: <?php echo $duration; ?>
});
slideshow.start(); 
});
</script>
<?php endif; ?>
</head>
<body>


<div id="allwrap" class="gainlayout" style="width:<?php echo $pageWidth + $outermargin; ?>px;">

<div id="header" class="gainlayout">   
     
<div id="logo1"><a href="http://troatt.ru/" title="Троицкий агротехнический техникум"> <img src="http://troatt.ru/templates/a4joomla-winter-free/images/logo.png" alt="Logo">
</div> 

<div id="logo" class="gainlayout">
          <h2><a href="<?php echo JURI::base(); ?>" title="<?php echo htmlspecialchars($logoText); ?>"><?php echo htmlspecialchars($logoText); ?></a></h2>
<h3><?php echo htmlspecialchars($slogan); ?></h3>
      </div>

<div id="headerright" class="gainlayout">
      <div id="hsocial" class="gainlayout">
<?php if($this->countModules('position-0')) : ?>
<div id="search" class="gainlayout">
<jdoc:include type="modules" name="position-0" style="xhtml" />
<div class="clr"></div> 
</div>
<?php endif; ?>
<?php if($myyoutube == "Yes") : ?>
<a class="myyoutube" href="<?php echo $youtubeurl; ?>"><img src="<?php echo $imgrootdir ?>/youtube.png"  border="0" alt="Youtube" title="Youtube" /></a>
<?php endif; ?>
<?php if($myfeed == "Yes") : ?>
<a class="myfeed" href="<?php echo $feedurl; ?>"><img src="<?php echo $imgrootdir ?>/feed.png"  border="0" alt="Feed" title="Feed" /></a>
<?php endif; ?>
<?php if($mytwitter == "Yes") : ?>
<a class="mytwitter" href="<?php echo $twitterurl; ?>"><img src="<?php echo $imgrootdir ?>/twitter.png"  border="0" alt="Twitter" title="Twitter" /></a>
<?php endif; ?>
<?php if($mygoogle == "Yes") : ?>
<a class="mygoogle" href="<?php echo $googleurl; ?>"><img src="<?php echo $imgrootdir ?>/google.png"  border="0" alt="Google plus" title="Google plus" /></a>
<?php endif; ?>
<?php if($myfacebook == "Yes") : ?>
<a class="myfacebook" href="<?php echo $facebookurl; ?>"><img src="<?php echo $imgrootdir ?>/facebook.png"  border="0" alt="Facebook" title="Facebook" /></a>
<?php endif; ?>
<div class="clr"></div>
</div>
<?php if($this->countModules('position-1')) : ?>
           <div id="topmenu" class="gainlayout">
             <jdoc:include type="modules" name="position-1" style="xhtml" />
             <div class="clr"></div>
           </div>
        <?php endif; ?>
        <div class="clr"></div>
      </div>
      <div class="clr"></div>
</div>

<div id="wrap" class="gainlayout">

<?php
    if ($frontpagediv == "1" && $headerType != "4") {
  echo '<div id="slideshow-container">';

if ($headerType == "0" || $headerType == "2") {
echo '<img src="'.$imgrootdir.$myimage.'" alt="" />';
} elseif ($headerType == "1" || $headerType == "3") {
$picDir= $imgrootdir.$myfolder;
$picDir .="/";
if (file_exists($picDir) && is_readable($picDir)) {
$folder = opendir($picDir);
} else {
echo '<div class="message">Error! Please check the parameter settings and make sure you have entered a valid image folder path!</div>';
return;
}
$allowed_types = array("jpg","JPG","jpeg","JPEG","gif","GIF","png","PNG","bmp","BMP");
$index = array();
while ($file = readdir ($folder)) {
if(in_array(substr(strtolower($file), strrpos($file,".") + 1),$allowed_types)) {array_push($index,$file);}
}
closedir($folder);
if($display == 'random') {shuffle($index);} else {sort($index);}

foreach ($index as $file) {
$finalpath = $picDir.$file;
// output
echo '<img src="'.$finalpath.'" alt="'.$file.'" />';
}
if ($showControl) echo '<div id="slcontrol"> </div>';
}
  echo '</div>';
    } ?>

 
<?php if($this->countModules('position-2')) : ?>
  <div id="pathway" class="gainlayout">
        <jdoc:include type="modules" name="position-2" />
      <div class="clr"></div>
  </div>
  <?php endif; ?>

  <div id="cbody" class="gainlayout">
  <?php if($showLeftColumn) : ?>
  <div id="sidebar" style="width:<?php echo $leftColumnWidth; ?>px;">     
      <jdoc:include type="modules" name="position-7" style="xhtml" />   
  </div>
  <?php endif; ?>
  <div id="content60" style="width:<?php echo $contentWidth; ?>px;">   
      <div id="content" class="gainlayout">
<jdoc:include type="message" />
<jdoc:include type="component" />
      </div>
  </div>
  <?php if($showRightColumn) : ?>
  <div id="sidebar-2" style="width:<?php echo $rightColumnWidth; ?>px;">     
      <jdoc:include type="modules" name="position-6" style="xhtml" />     
  </div>
  <?php endif; ?>
  <div class="clr"></div>
  </div>
 
<!--end of wrap-->
</div>
   
<!--end of allwrap-->
</div>
<div id="footerwrap" class="gainlayout">
  <div id="footer" class="gainlayout" style="width:<?php echo $pageWidth + $outermargin; ?>px;"> 
       <?php if($this->countModules('position-14')) : ?>
         <jdoc:include type="modules" name="position-14" style="xhtml" />   
       <?php endif; ?>
  </div>
<div id="a4j"><a href="http://a4joomla.com/"><?php echo JText::_('http://www.troatt.ru/ © Все права защищены');?></a></div> 

 
</div>


</body>
</html>
*

Shustry

  • Moderator
  • 6434
  • 745 / 3
А что куда добавили?
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Ширина модулей в зависимости от количества опубликованных позиций (Решение)

Автор Fedor Vlasenko

Ответов: 17
Просмотров: 11169
Последний ответ 07.01.2020, 14:46:05
от Progressive
Выравнивание модулей внутри позиции.

Автор user

Ответов: 8
Просмотров: 12052
Последний ответ 28.04.2016, 10:26:01
от ambrazura
[Решено] Вывод модулей с позиции left в шаблоне vt_farm

Автор TV_Master

Ответов: 7
Просмотров: 2530
Последний ответ 06.02.2016, 19:39:40
от Омск
Показ выдачи поиска или запрет показа опред. модулей при его выдаче

Автор kushiy

Ответов: 0
Просмотров: 1306
Последний ответ 17.09.2015, 17:19:18
от kushiy
Выравнивание позиций или выравнивание модулей в позиции?

Автор CrazyPedro

Ответов: 5
Просмотров: 1607
Последний ответ 30.04.2015, 11:00:45
от CrazyPedro