C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\einstein\modules\mod_rssfeed.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
/**
* @version $Id: mod_rssfeed.php 1803 2006-01-14 13:48:02Z stingrey $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html 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.
*/

// no direct access
defined'_VALID_MOS' ) or die( 'Restricted access' );

if (!
defined'_JOS_RSSFEED_MODULE' )) {
    
/** ensure that functions are declared only once */
    
define'_JOS_RSSFEED_MODULE');    
    
    function 
output_rssfeed$link$img_default$img_file$img_alt$img_name  ) {    
        
$img mosAdminMenus::ImageCheck$img_default'/images/M_images/'$img_file'/images/M_images/'$img_alt$img_name );
        
?>
        <div align="center">
            <a href="<?php echo sefRelToAbs$link ); ?>">
                <?php echo $img ?></a>
        </div>
        <?php
    
}
}

global 
$mosConfig_live_site$mosConfig_absolute_path$cur_template;

$text                 $params->get'text',             '');
$moduleclass_sfx     $params->get'moduleclass_sfx',     '' );
$rss091              $params->get'rss091',             );
$rss10              $params->get'rss10',             );
$rss20              $params->get'rss20',             );
$atom                  $params->get'atom',             );
$opml                  $params->get'opml',             );
$rss091_image        $params->get'rss091_image',     '' );
$rss10_image        $params->get'rss10_image',         '' );
$rss20_image        $params->get'rss20_image',         '' );
$atom_image            $params->get'atom_image',         '' );
$opml_image            $params->get'opml_image',         '' );

$cur_template         $mainframe->getTemplate();
$t_path             $mosConfig_live_site .'/templates/'$cur_template .'/images/';
$d_path                $mosConfig_live_site .'/images/M_images/';

?>
<div class="syndicate<?php echo $moduleclass_sfx;?>">
    <?php
    
// text
    
if ( $text ) {
        
?>
        <div align="center" class="syndicate_text<?php echo $moduleclass_sfx;?>">
            <?php echo $text;?>
        </div>
        <?php
    
}

    
// rss091 link
    
if ( $rss091 ) {
        
$link 'index.php?option=com_rss&amp;feed=RSS0.91&amp;no_html=1';
        
output_rssfeed$link'rss091.gif'$rss091_image'RSS 0.91''RSS091' );
    }

    
// rss10 link
    
if ( $rss10 ) {
        
$link 'index.php?option=com_rss&amp;feed=RSS1.0&amp;no_html=1';
        
output_rssfeed$link'rss10.gif'$rss10_image'RSS 1.0''RSS10' );
    }
    
    
// rss20 link
    
if ( $rss20 ) {
        
$link 'index.php?option=com_rss&amp;feed=RSS2.0&amp;no_html=1';
        
output_rssfeed$link'rss20.gif'$rss20_image'RSS 2.0''RSS20' );
    }

    
// atom link
    
if ( $atom ) {
        
$link 'index.php?option=com_rss&amp;feed=ATOM0.3&amp;no_html=1';
        
output_rssfeed$link'atom03.gif'$atom_image'ATOM 0.3''ATOM03' );
    }
    
    
// opml link
    
if ( $opml ) {
        
$link 'index.php?option=com_rss&amp;feed=OPML&amp;no_html=1';
        
output_rssfeed$link'opml.png'$opml_image'OPML''OPML'  );
    }
    
?>
</div>