Jump to content

tyom3dan97

Neophyte
  • Posts

    1
  • Joined

  • Last visited

tyom3dan97's Achievements

Explorer

Explorer (1/14)

0

Reputation

  1. Здравствуйте, форумчане! Суть проблемы такова: в модуле News Calendar (календарь новостей) при наведении на дату, в которую публиковался материал всплывает блок с ссылкой на данный материал. Нужно сделать: чтоб ничего не всплывало, а сделать ссылкой на материал само число публикации. Догадываюсь, что дело в классах mc-items и hasitems. Но как сделать нужные изменения, даже не представляю. Прошу помощи! Собственно, сайт: school16eao.mcdir.ru Собственно, файлы php и css: <?php/*------------------------------------------------------------------------# mod_newscalendar - News Calendar# ------------------------------------------------------------------------# author Jesъs Vargas Garita# Copyright (C) 2010 www.joomlahill.com. All Rights Reserved.# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL# Websites: http://www.joomlahill.com# Technical Support: Forum - http://www.joomlahill.com/forum-------------------------------------------------------------------------*/ // no direct accessdefined('_JEXEC') or die; $doc = JFactory::getDocument();if (file_exists(JPATH_BASE.DS.'modules' . DS . 'mod_newscalendar' . DS . 'css' . DS . $params->get('stylesheet'))) { $stylesheet = $params->get('stylesheet', 'blue-arrows.css');} else { $stylesheet = 'blue-arrows.css';}$doc->addStyleSheet('modules/mod_newscalendar/css/' . $stylesheet);$script = "var sfolder = '" . JURI::base(true) . "';";$doc->addScriptDeclaration($script);$doc->addScript('modules/mod_newscalendar/assets/newscalendar.js');if (!$params->get('mid')) { $mid = $module->id;} else { $mid = $params->get('mid');}?><?php if ($cal->ajaxed == 0) : ?><div class="newscalendar" id="newscalendar<?php echo $mid; ?>"><?php endif; ?> <table class="nc-header" cellspacing="0"> <thead> <tr> <td width="20"><a href="javascript:void(0)" onClick="updateNewsCalendar(<?php echo $cal->curmonth; ?>,<?php echo $cal->curyear-1; ?>,<?php echo $mid; ?>)" class="back-yr"></a></td> <td width="20"><a href="javascript:void(0)" onClick="updateNewsCalendar(<?php echo ($cal->curmonth!=1?$cal->curmonth-1:12); ?>,<?php echo ($cal->curmonth!=1?$cal->curyear:$cal->curyear-1); ?>,<?php echo $mid; ?>)" class="back-mth"></a></td> <td align="center"><div id="monthyear_<?php echo $mid; ?>"><span class="monthname"><?php echo $cal->monthname; ?></span> <span class="yearname"><?php echo ($params->get('subyearname')?substr($cal->curyear,2):$cal->curyear); ?></span></div></td> <td width="20" align="right"><a href="javascript:void(0)" onClick="updateNewsCalendar(<?php echo ($cal->curmonth!=12?$cal->curmonth+1:1); ?>,<?php echo ($cal->curmonth!=12?$cal->curyear:$cal->curyear+1); ?>,<?php echo $mid; ?>)" class="fwd-mth"></a></td> <td width="20" align="right"><a href="javascript:void(0)" onClick="updateNewsCalendar(<?php echo $cal->curmonth; ?>,<?php echo $cal->curyear+1; ?>,<?php echo $mid; ?>)" class="fwd-yr"></a></td> </tr> </thead> </table> <table class="nc-body" cellspacing="0"> <thead> <tr> <?php for($i = $params->get('firstday'); $i <= $params->get('firstday')+6; $i++) : ?> <td class="dayname dayweek<?php echo (($i>6)?($i-6)$i+1)); ?>" align="center"><?php echo modNewsCalendarHelper::encode('MOD_NEWSCALENDAR_DAYNAME_' . $params->get('subdayname') . '_' . (($i>6)?($i-6)$i+1)),$params->get('encode'),$cal->ajaxed); ?></td> <?php endfor; ?></tr> </thead> <tbody> <?php $fday=$params->get('firstday'); for($i = 0; $i < count($cal->weeks); $i++) { ?><tr class="week<?php echo $i+1; ?>"> <?php for($j=0; $j < 7; $j++) { if(!empty($cal->weeks[$i][$j])) { $day = explode(' ',$cal->weeks[$i][$j]); $class = 'nc-day'; $ul = ''; if ( $day[1] ) { $class .= " outofmonth"; } else { $class .= " weekday".((($j+$fday)>6)?(($j+$fday)-6)$j+$fday+1)); if ($day[0]==date('j') && $cal->curmonth==date('m')) { $class .= " today"; } } if (isset($cal->items[$day[0]]) && !$day[1]) { $class .= " hasitems"; } ?><td><span class="<?php echo $class; ?>"><?php echo $day[0]; if (isset($cal->items[$day[0]]) && !$day[1]) { ?> <ul class="nc-items"><?php foreach ($cal->items[$day[0]] as $item) { ?> <li><a href="<?php echo preg_replace('/modules\/mod_newscalendar\/assets\//', '', $item->link); ?>"><?php echo $item->title; ?></a></li><?php } ?></ul> <?php } ?></span></td> <?php } else { ?> <td></td><?php } } ?> </tr> <?php } ?> </tbody> </table> <?php if ($cal->ajaxed == 0) : ?> <div class="bgimgcall"><img src="modules/mod_newscalendar/assets/opacity.png" /></div></div><?php endif; ?>/* * Module mod_newscalendar For Joomla * Version : 1.0.0 * Created by : Jesus Vargas * License : GNU/GPLv3 [url]http://www.gnu.org/licenses/gpl-3.0.html[/url] */ div.newscalendar { max-width: 250px; overflow: visible;}table.nc-header, table.nc-body { border: none; width: 100%;}table.nc-header tr, table.nc-body tr, table.nc-header td, table.nc-body td { border: none; } table.nc-header { margin: 5px 0;}table.nc-header a { background: url(../assets/arrows-blue.png) no-repeat 0 100%; height: 16px; display: block; width: 16px;}table.nc-header a.back-mth { background-position: 0 -32px; }table.nc-header a.fwd-mth { background-position: 0 -16px; }table.nc-header a.fwd-yr { background-position: 0 0; }table.nc-header .monthname, table.nc-header .yearname, table.nc-body .dayname { font-weight: bold;}.newscalendar span.weekday1 {}.newscalendar span.weekday2 {}.newscalendar span.weekday3 {}.newscalendar span.weekday4 {}.newscalendar span.weekday5 {}.newscalendar span.weekday6 { color: #FF3D3D;}.newscalendar span.weekday7 { color: #FF3D3D;}.newscalendar span.outofmonth { color: #CCCCCC;}.newscalendar span.today { font-weight: bold;}.newscalendar span.today ul li { font-weight: normal;}.newscalendar span.nc-day { position: relative; display: block; padding: 3px 2px; text-align: center;}.newscalendar ul.nc-items { background: url(../assets/opacity.png) repeat; position: absolute; left: auto!important; right: auto!important; top: auto!important; bottom: 15px!important; font-size: 0.8em; line-height: 1.1em; margin: 0!important; padding: 5px 10px; width: 180px; list-style: none; border: 1px solid #000; text-align: left; z-index: 100; box-shadow: 0 0 8px #333; border-radius: 5px; display: none;}.newscalendar .week1 ul.nc-items, .newscalendar .week2 ul.nc-items { top: 15px!important; bottom: auto!important;}.newscalendar span.weekday1 ul.nc-items { left: 0!important; }.newscalendar span.weekday2 ul.nc-items { left: -100%!important; }.newscalendar span.weekday3 ul.nc-items { left: -200%!important; }.newscalendar span.weekday4 ul.nc-items { left: -250%!important; }.newscalendar span.weekday5 ul.nc-items { right: -200%!important; }.newscalendar span.weekday6 ul.nc-items { right: -100%!important; }.newscalendar span.weekday7 ul.nc-items { right: 0!important; } span.nc-day ul.nc-items li { padding: 3px 5px;}span.nc-day ul.nc-items li a { background: none; display: block; color: #FFF;}span.nc-day ul.nc-items li a:hover { color: yellow;}span.nc-day:hover ul.nc-items { display: block;}.newscalendar span.hasitems { cursor: pointer; background: url(../assets/dot.png) no-repeat 50% 100%;}.bgimgcall { display: none;}
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy