Skip to content

Commit

Permalink
Added basic suport for the tag clustering extension property of the c…
Browse files Browse the repository at this point in the history
…ontent itme
  • Loading branch information
mrmatthewgriffiths committed Jan 31, 2011
1 parent 4b414ec commit 4137df7
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 24 deletions.
31 changes: 13 additions & 18 deletions web/application/views/parts/contentitem.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,9 @@
<h2 class="title">
<?php echo($title); ?>
</h2>
<!-- Redundant text display commented out, jg ->
<?php if(isset($content->text[$i]->text)) : ?>
<?php foreach($content->text[$i]->text as $text) : ?>
<p class="text"><?php echo($text); ?></p>
<?php endforeach; ?>
<?php endif; ?>
-->
</div>
<?php endfor; ?>
</div
</div>
<div class="tags">
<?php foreach($content->tags as $type => $tags) : ?>
<?php if(is_array($tags) && count($tags) > 0) : ?>
Expand All @@ -72,16 +66,17 @@
<?php endif; ?>
<?php endforeach; ?>
</div>
<div class="tags">
<ol class="tag-list">
<li><a href="#">50%</a></li>
<li><a href="#">50%</a></li>
<li><a href="#">50%</a></li>
<li><a href="#">50%</a></li>
<li><a href="#">50%</a></li>
</ol>
</div>
</div>
<?php if(property_exists($content, "extensions") ) : ?>
<div class="extensions tags">
<?php if(property_exists($content->extensions, "tagClusteringScores")) : ?>
<ol class="clustering tag-list">
<?php foreach($content->extensions->tagClusteringScores as $key => $value) : ?>
<li class="<?php echo(strtolower($key)); ?>"><span><?php echo($key); ?></span>&nbsp;<?php echo(round($value * 100)); ?>%</li>
<?php endforeach; ?>
</ol>
<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>
</div>
6 changes: 3 additions & 3 deletions web/modules/riverid/classes/riveridconfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
class RiverIdConfig
{
public static $databaseurl = 'localhost';
public static $username = 'swiftriver';
public static $password = 'KU93uT';
public static $database = 'swiftriver';
public static $username = 'sweeper';
public static $password = 'sweeper';
public static $database = 'sweeper';

public static $createsql = "CREATE TABLE IF NOT EXISTS users ( username VARCHAR(2000), password VARCHAR(2000), role VARCHAR(2000) ) TYPE=innodb";
}
6 changes: 3 additions & 3 deletions web/modules/swiftrivertheming/classes/themingconfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
class ThemingConfig
{
public static $databaseurl = 'localhost';
public static $username = 'swiftriver';
public static $password = 'KU93uT';
public static $database = 'swiftriver';
public static $username = 'sweeper';
public static $password = 'sweeper';
public static $database = 'sweeper';

public static $createsql = "CREATE TABLE IF NOT EXISTS theming ( theme VARCHAR(2000) ) TYPE=innodb";
}
Expand Down

0 comments on commit 4137df7

Please sign in to comment.