Completed
Push — master ( 53ea58...16270d )
by Michael
04:51
created

footer.php (2 issues)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
/*
3
 You may not change or alter any portion of this comment or credits
4
 of supporting developers from this source code or any supporting source code
5
 which is considered copyrighted (c) material of the original comment or credit authors.
6
7
 This program is distributed in the hope that it will be useful,
8
 but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
 */
11
12
/**
13
 * @copyright       The XUUPS Project http://sourceforge.net/projects/xuups/
14
 * @license         http://www.fsf.org/copyleft/gpl.html GNU public license
15
 * @package         Publisher
16
 * @subpackage      Utils
17
 * @since           1.0
18
 * @author          trabis <[email protected]>
19
 * @author          The SmartFactory <www.smartfactory.ca>
20
 */
21
22
// defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
0 ignored issues
show
Unused Code Comprehensibility introduced by
70% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
23
24
$xoTheme->addStylesheet(PUBLISHER_URL . '/assets/css/publisher.css');
25
//$xoTheme->addStylesheet(PUBLISHER_URL . '/assets/css/jquery.popeye.style.css');
0 ignored issues
show
Unused Code Comprehensibility introduced by
52% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
26
//$xoTheme->addScript(XOOPS_URL . '/browse.php?Frameworks/jquery/jquery.js');
27
//$xoTheme->addScript(PUBLISHER_URL . '/assets/js/jquery.popeye-2.0.4.js');
28
//$xoTheme->addScript(PUBLISHER_URL . '/assets/js/publisher.js');
29
30
$xoopsTpl->assign('xoops_module_header', '<link rel="alternate" type="application/rss+xml" title="' . $publisher->getModule()->name() . '" href="' . PUBLISHER_URL . '/backend.php" />' . @$xoopsTpl->get_template_vars('xoops_module_header'));
31
32
$xoopsTpl->assign('publisher_adminpage', "<a href='" . PUBLISHER_URL . "/admin/index.php'>" . _MD_PUBLISHER_ADMIN_PAGE . '</a>');
33
$xoopsTpl->assign('isAdmin', $publisherIsAdmin);
34
$xoopsTpl->assign('moduleUrl', PUBLISHER_URL);
35
$xoopsTpl->assign('publisherImagesUrl', PUBLISHER_IMAGES_URL);
36
37
$xoopsTpl->assign('displayType', $publisher->getConfig('idxcat_items_display_type'));
38
39
// display_category_summary enabled by Freeform Solutions March 21 2006
40
$xoopsTpl->assign('display_category_summary', $publisher->getConfig('cat_display_summary'));
41
42
$xoopsTpl->assign('displayList', $publisher->getConfig('idxcat_items_display_type') === 'list');
43
$xoopsTpl->assign('displayFull', $publisher->getConfig('idxcat_items_display_type') === 'full');
44
$xoopsTpl->assign('module_dirname', $publisher->getModule()->dirname());
45
46
$xoopsTpl->assign('displaylastitem', $publisher->getConfig('idxcat_display_last_item'));
47
$xoopsTpl->assign('displaysubcatdsc', $publisher->getConfig('idxcat_display_subcat_dsc'));
48
$xoopsTpl->assign('publisher_display_breadcrumb', $publisher->getConfig('display_breadcrumb'));
49
$xoopsTpl->assign('collapsable_heading', $publisher->getConfig('idxcat_collaps_heading'));
50
$xoopsTpl->assign('display_comment_link', $publisher->getConfig('item_disp_comment_link'));
51
$xoopsTpl->assign('display_whowhen_link', $publisher->getConfig('item_disp_whowhen_link'));
52
$xoopsTpl->assign('displayarticlescount', $publisher->getConfig('idxcat_display_art_count'));
53
$xoopsTpl->assign('display_date_col', $publisher->getConfig('idxcat_display_date_col'));
54
$xoopsTpl->assign('display_hits_col', $publisher->getConfig('idxcat_display_hits_col'));
55
$xoopsTpl->assign('cat_list_image_width', $publisher->getConfig('cat_list_image_width'));
56
$xoopsTpl->assign('cat_main_image_width', $publisher->getConfig('cat_main_image_width'));
57