| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 52 | 2 | 5 | 0.962 | php_sequence[2] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 52 | 41 | templates/rhuk_milkyway/html/com_content/category/blog.php |
| 2 | 52 | 41 | templates/rhuk_milkyway/html/com_content/section/blog.php |
| ||||
<?php
$startIntroArticles= $this->pagination->limitstart + $this->params->get('num_leading_articles');
$numIntroArticles= $startIntroArticles+ $this->params->get('num_intro_articles');
if (($numIntroArticles != $startIntroArticles)
&& ($i< $this->total)): ;
?>
<tr>
<td valign="top">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<?php $divider= '';
if ($this->params->def('multi_column_order', 0)): // order across, like front page
for ($z= 0; $z< $this->params->def('num_columns', 2); $z ++):
if ($z> 0): $divider= " column_separator";
endif; ?>
<?php $rows= (int) ($this->params->get('num_intro_articles', 4)/ $this->params->get('num_columns'));
$cols= ($this->params->get('num_intro_articles', 4)% $this->params->get('num_columns'));
?>
<td valign="top" width="<?php
echo intval(100/ $this->params->get('num_columns'));?>%" class="article_column<?php
echo $divider;?>">
<?php
$loop= (($z< $cols)
? 1
: 0)+ $rows;
for ($y= 0; $y< $loop; $y ++):
$target= $i+ ($y* $this->params->get('num_columns'))+ $z;
if ($target< $this->total
&& $target< ($numIntroArticles)):
$this->item = &$this->getItem($target, $this->params);
echo $this->loadTemplate('item');
endif;
endfor
;
?></td>
<?php
endfor
; $i= $i+ $this->params->get('num_intro_articles');
else : // otherwise, order down, same as before (default behaviour)
for ($z= 0; $z< $this->params->get('num_columns'); $z ++):
if ($z> 0): $divider= " column_separator";
endif; ?>
<td valign="top" width="<?php echo intval(100/ $this->params->get('num_columns'));?>%" class="article_column<?php echo $divider;?>">
<?php for ($y= 0; $y< ($this->params->get('num_intro_articles')/ $this->params->get('num_columns')); $y ++):
if ($i< $this->total
&& $i< ($numIntroArticles)):
$this->item = &$this->getItem($i, $this->params);
echo $this->loadTemplate('item');
$i ++;
endif;
endfor
;
?>
</td>
<?php
endfor
;
endif;
?>
</tr>
</table>
</td>
</tr>
<?php
endif; ?>
|
| ||||
<?php
$startIntroArticles= $this->pagination->limitstart + $this->params->get('num_leading_articles');
$numIntroArticles= $startIntroArticles+ $this->params->get('num_intro_articles', 4);
if (($numIntroArticles != $startIntroArticles)
&& ($i< $this->total)): ;
?>
<tr>
<td valign="top">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<?php $divider= '';
if ($this->params->def('multi_column_order', 0)): // order across, like front page
for ($z= 0; $z< $this->params->def('num_columns', 2); $z ++):
if ($z> 0): $divider= " column_separator";
endif; ?>
<?php $rows= (int) ($this->params->get('num_intro_articles', 4)/ $this->params->get('num_columns'));
$cols= ($this->params->get('num_intro_articles', 4)% $this->params->get('num_columns'));
?>
<td valign="top" width="<?php
echo intval(100/ $this->params->get('num_columns'));?>%" class="article_column<?php
echo $divider;?>">
<?php
$loop= (($z< $cols)
? 1
: 0)+ $rows;
for ($y= 0; $y< $loop; $y ++):
$target= $i+ ($y* $this->params->get('num_columns'))+ $z;
if ($target< $this->total
&& $target< ($numIntroArticles)):
$this->item = &$this->getItem($target, $this->params);
echo $this->loadTemplate('item');
endif;
endfor
;
?></td>
<?php
endfor
; $i= $i+ $this->params->get('num_intro_articles', 4);
else : // otherwise, order down, same as before (default behaviour)
for ($z= 0; $z< $this->params->get('num_columns'); $z ++):
if ($z> 0): $divider= " column_separator";
endif; ?>
<td valign="top" width="<?php echo intval(100/ $this->params->get('num_columns'));?>%" class="article_column<?php echo $divider;?>">
<?php for ($y= 0; $y< ($this->params->get('num_intro_articles', 4)/ $this->params->get('num_columns')); $y ++):
if ($i< $this->total
&& $i< ($numIntroArticles)):
$this->item = &$this->getItem($i, $this->params);
echo $this->loadTemplate('item');
$i ++;
endif;
endfor
; ?>
</td>
<?php
endfor
;
endif;
?>
</tr>
</table>
</td>
</tr>
<?php
endif; ?>
|
| |||
<?php
$startIntroArticles=$this->pagination->limitstart +$this->params->get('num_leading_articles');
$numIntroArticles=$startIntroArticles+$this->params->get( [[#variable52284980]]);
if (($numIntroArticles != $startIntroArticles)
&& ($i<$this->total)):
;
?>
<tr>
<td valign="top">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<?php
$divider='';
if ($this->params->def('multi_column_order',0)): // order across, like front page
for ($z=0; $z<$this->params->def('num_columns',2); $z ++):
if ($z>0):
$divider=" column_separator";
endif;
?> [[#variable522848e0]]<?php
$rows= (int) ($this->params->get('num_intro_articles',4)/$this->params->get('num_columns'));
$cols=($this->params->get('num_intro_articles',4)%$this->params->get('num_columns'));
?>
<td valign="top" width="<?php
echo intval(100/$this->params->get('num_columns'));
?>%" class="article_column<?php
echo $divider;
?>">
<?php
$loop=(($z<$cols)
? 1
: 0)+$rows;
for ($y=0; $y<$loop; $y ++):
$target=$i+($y*$this->params->get('num_columns'))+$z;
if ($target<$this->total
&& $target<($numIntroArticles)):
$this->item = &$this->getItem($target,$this->params);
echo $this->loadTemplate('item');
endif;
endfor
;
?> [[#variable52284840]]<?php
endfor
;
$i=$i+$this->params->get( [[#variable52284980]]);
else : // otherwise, order down, same as before (default behaviour)
for ($z=0; $z<$this->params->get('num_columns'); $z ++):
if ($z>0):
$divider=" column_separator";
endif;
?> [[#variable52284860]]<?php
echo intval(100/$this->params->get('num_columns'));
?>%" class="article_column<?php
echo $divider;
?> [[#variable522848a0]]<?php
for ($y=0; $y<($this->params->get( [[#variable52284980]])/$this->params->get('num_columns')); $y ++):
if ($i<$this->total
&& $i<($numIntroArticles)):
$this->item = &$this->getItem($i,$this->params);
echo $this->loadTemplate('item');
$i ++;
endif;
endfor
;
?>
</td>
<?php
endfor
;
endif;
?>
</tr>
</table>
</td>
</tr>
<?php
endif;
?>
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#52284980]] | 'num_intro_articles',4 |
| 1 | 2 | [[#52284980]] | 'num_intro_articles' |
| 2 | 1 | [[#522848e0]] | |
| 2 | 2 | [[#522848e0]] | |
| 3 | 1 | [[#52284840]] | </td> |
| 3 | 2 | [[#52284840]] | </td> |
| 4 | 1 | [[#52284860]] | <td valign="top" width=" |
| 4 | 2 | [[#52284860]] | <td valign="top" width=" |
| 5 | 1 | [[#522848a0]] | "> |
| 5 | 2 | [[#522848a0]] | "> |