| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 78 | 2 | 4 | 0.971 | root |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 78 | 1 | components/com_newsfeeds/views/newsfeed/tmpl/default.php |
| 2 | 78 | 1 | templates/rhuk_milkyway/html/com_newsfeeds/newsfeed/default.php |
| ||||
<?php // no direct acces
defined( "_JEXEC") or exit;
?>
<?php
$lang= &JFactory::getLanguage();
$myrtl= $this->newsfeed->rtl;
if ($lang->isRTL()
&& $myrtl == 0) {
$direction= "direction:rtl !important;";
$align= "text-align:right !important;";
}
else if ($lang->isRTL()
&& $myrtl == 1) {
$direction= "direction:ltr !important;";
$align= "text-align:left !important;";
}
else if ($lang->isRTL()
&& $myrtl == 2) {
$direction= "direction:rtl !important;";
$align= "text-align:right !important;";
}
else if ($myrtl == 0) {
$direction= "direction:ltr !important;";
$align= "text-align:left !important;";
}
else if ($myrtl == 1) {
$direction= "direction:ltr !important;";
$align= "text-align:left !important;";
}
else if ($myrtl == 2) {
$direction= "direction:rtl !important;";
$align= "text-align:right !important;";
}
?>
<div style="<?php echo $direction; ?><?php echo $align; ?>">
<?php if ($this->params->get('show_page_title', 1)): ;
?>
<div class="componentheading<?php echo $this->params->get('pageclass_sfx');
?>" style="<?php echo $direction; ?><?php echo $align; ?>"><?php echo $this->escape($this->params->get('page_title')); ?></div>
<?php
endif; ?>
<table width="100%" class="contentpane<?php echo $this->params->get('pageclass_sfx'); ?>">
<tr>
<td class="componentheading<?php echo $this->params->get('pageclass_sfx'); ?>" style="<?php echo $direction; ?><?php echo $align; ?>">
<a href="<?php echo $this->newsfeed->channel['link']; ?>" target="_blank">
<?php echo str_replace(''', "'", $this->newsfeed->channel['title']); ?></a>
</td>
</tr>
<?php if ($this->params->get('show_feed_description')): ;
?>
<tr>
<td>
<?php echo str_replace(''', "'", $this->newsfeed->channel['description']); ?>
<br/>
<br/>
</td>
</tr>
<?php
endif; ?>
<?php if ( isset ($this->newsfeed->image['url'])
&& isset ($this->newsfeed->image['title'])
&& $this->params->get('show_feed_image')): ;
?>
<tr>
<td>
<img src="<?php echo $this->newsfeed->image['url']; ?>" alt="<?php echo $this->newsfeed->image['title']; ?>" />
</td>
</tr>
<?php
endif; ?>
<tr>
<td>
<ul>
<?php foreach ($this->newsfeed->items as $item): ;
?>
<li>
<?php if (!is_null($item->get_link())): ;
?>
<a href="<?php echo $item->get_link(); ?>" target="_blank">
<?php echo $item->get_title(); ?></a>
<?php
endif; ?>
<?php if ($this->params->get('show_item_description')
&& $item->get_description()): ;
?>
<br/>
<?php $text= $this->limitText($item->get_description(), $this->params->get('feed_word_count'));
echo str_replace(''', "'", $text);
?>
<br/>
<br/>
<?php
endif; ?>
</li>
<?php
endforeach
; ?>
</ul>
</td>
</tr>
</table>
</div>
|
| ||||
<?php // no direct acces
defined( "_JEXEC") or exit ('Restricted access');
?>
<?php
$lang= &JFactory::getLanguage();
$myrtl= $this->newsfeed->rtl;
if ($lang->isRTL()
&& $myrtl == 0) {
$direction= "direction:rtl !important;";
$align= "text-align:right !important;";
}
else if ($lang->isRTL()
&& $myrtl == 1) {
$direction= "direction:ltr !important;";
$align= "text-align:left !important;";
}
else if ($lang->isRTL()
&& $myrtl == 2) {
$direction= "direction:rtl !important;";
$align= "text-align:right !important;";
}
else if ($myrtl == 0) {
$direction= "direction:ltr !important;";
$align= "text-align:left !important;";
}
else if ($myrtl == 1) {
$direction= "direction:ltr !important;";
$align= "text-align:left !important;";
}
else if ($myrtl == 2) {
$direction= "direction:rtl !important;";
$align= "text-align:right !important;";
}
?>
<div style="<?php echo $direction; ?><?php echo $align; ?>">
<?php if ($this->params->get('show_page_title', 1)): ;
?>
<div class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" style="<?php echo $direction; ?><?php echo $align; ?>"><?php echo $this->escape($this->params->get('page_title')); ?></div>
<?php
endif; ?>
<table width="100%" class="contentpane<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>">
<tr>
<td class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx')); ?>" style="<?php echo $direction; ?><?php echo $align; ?>">
<a href="<?php echo $this->newsfeed->channel['link']; ?>" target="_blank">
<?php echo str_replace(''', "'", $this->newsfeed->channel['title']); ?></a>
</td>
</tr>
<?php if ( $this->params->get( 'show_feed_description')): ;
?>
<tr>
<td>
<?php echo str_replace(''', "'", $this->newsfeed->channel['description']); ?>
<br/>
<br/>
</td>
</tr>
<?php
endif; ?>
<?php if ( isset ($this->newsfeed->image['url'])
&& isset ($this->newsfeed->image['title'])
&& $this->params->get( 'show_feed_image')): ;
?>
<tr>
<td>
<img src="<?php echo $this->newsfeed->image['url']; ?>" alt="<?php echo $this->newsfeed->image['title']; ?>" />
</td>
</tr>
<?php
endif; ?>
<tr>
<td>
<ul>
<?php foreach ( $this->newsfeed->items as $item): ;
?>
<li>
<?php if ( !is_null( $item->get_link())): ;
?>
<a href="<?php echo $item->get_link(); ?>" target="_blank">
<?php echo $item->get_title(); ?></a>
<?php
endif; ?>
<?php if ( $this->params->get( 'show_item_description')
&& $item->get_description()): ;
?>
<br/>
<?php $text= $this->limitText($item->get_description(), $this->params->get( 'feed_word_count'));
echo str_replace(''', "'", $text);
?>
<br/>
<br/>
<?php
endif; ?>
</li>
<?php
endforeach
; ?>
</ul>
</td>
</tr>
</table>
</div>
|
| |||
<?php // no direct acces
defined( "_JEXEC") or [[#variable489c8840]];
?>
<?php
$lang= &JFactory::getLanguage();
$myrtl=$this->newsfeed->rtl;
if ($lang->isRTL()
&& $myrtl == 0) {
$direction="direction:rtl !important;";
$align="text-align:right !important;";
}
else if ($lang->isRTL()
&& $myrtl == 1) {
$direction="direction:ltr !important;";
$align="text-align:left !important;";
}
else if ($lang->isRTL()
&& $myrtl == 2) {
$direction="direction:rtl !important;";
$align="text-align:right !important;";
}
else if ($myrtl == 0) {
$direction="direction:ltr !important;";
$align="text-align:left !important;";
}
else if ($myrtl == 1) {
$direction="direction:ltr !important;";
$align="text-align:left !important;";
}
else if ($myrtl == 2) {
$direction="direction:rtl !important;";
$align="text-align:right !important;";
}
?>
<div style="<?php
echo $direction;
?><?php
echo $align;
?>">
<?php
if ($this->params->get('show_page_title',1)):
;
?>
<div class="componentheading<?php
echo [[#variable489c87a0]]-> [[#variable489c8720]]( [[#variable489c8700]]);
?>" style="<?php
echo $direction;
?><?php
echo $align;
?>"><?php
echo $this->escape($this->params->get('page_title'));
?></div>
<?php
endif;
?>
<table width="100%" class="contentpane<?php
echo [[#variable489c87a0]]-> [[#variable489c8720]]( [[#variable489c8700]]);
?>">
<tr>
<td class="componentheading<?php
echo [[#variable489c87a0]]-> [[#variable489c8720]]( [[#variable489c8700]]);
?>" style="<?php
echo $direction;
?><?php
echo $align;
?>">
<a href="<?php
echo $this->newsfeed->channel['link'];
?>" target="_blank">
<?php
echo str_replace(''',"'",$this->newsfeed->channel['title']);
?></a>
</td>
</tr>
<?php
if ($this->params->get('show_feed_description')):
;
?>
<tr>
<td>
<?php
echo str_replace(''',"'",$this->newsfeed->channel['description']);
?>
<br/>
<br/>
</td>
</tr>
<?php
endif;
?>
<?php
if ( isset ($this->newsfeed->image['url'])
&& isset ($this->newsfeed->image['title'])
&& $this->params->get('show_feed_image')):
;
?>
<tr>
<td>
<img src="<?php
echo $this->newsfeed->image['url'];
?>" alt="<?php
echo $this->newsfeed->image['title'];
?>" />
</td>
</tr>
<?php
endif;
?>
<tr>
<td>
<ul>
<?php
foreach ($this->newsfeed->items as $item):
;
?>
<li>
<?php
if (!is_null($item->get_link())):
;
?>
<a href="<?php
echo $item->get_link();
?>" target="_blank">
<?php
echo $item->get_title();
?></a>
<?php
endif;
?>
<?php
if ($this->params->get('show_item_description')
&& $item->get_description()):
;
?>
<br/>
<?php
$text=$this->limitText($item->get_description(),$this->params->get('feed_word_count'));
echo str_replace(''',"'",$text);
?>
<br/>
<br/>
<?php
endif;
?>
</li>
<?php
endforeach
;
?>
</ul>
</td>
</tr>
</table>
</div>
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#489c8840]] | exit |
| 1 | 2 | [[#489c8840]] | exit ('Restricted access') |
| 2 | 1 | [[#489c87a0]] | $this->params |
| 2 | 2 | [[#489c87a0]] | $this |
| 3 | 1 | [[#489c8720]] | get |
| 3 | 2 | [[#489c8720]] | escape |
| 4 | 1 | [[#489c8700]] | 'pageclass_sfx' |
| 4 | 2 | [[#489c8700]] | $this->params->get('pageclass_sfx') |