Skip to content

Commit

Permalink
Additions to allow rss to display html5 links rather than flash links…
Browse files Browse the repository at this point in the history
… by appending ?html5 or &html5 if more than one parameter. Have tested this with site rss, username rss and folder rss. All works with both default links and apache links but the latter needs additions to .htaccess

Will post to dev list regarding the latter. Also wondering about displaying additional info in the rss properties tab.

git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@517 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
ronm123 committed Nov 19, 2012
1 parent 8b62677 commit 826db77
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
10 changes: 10 additions & 0 deletions rss.php
Expand Up @@ -17,6 +17,13 @@

$action_modifder = "export";

}
if(isset($_GET['html5'])){

$query_modifier = "rss";

$action_modifder = "play_html5";

}

if(!isset($_GET['username'])){
Expand Down Expand Up @@ -110,6 +117,9 @@
$action = 'play';
if(isset($_GET['export'])){
$action = 'export';
}
if(isset($_GET['html5'])){
$action = 'play_html5';
}
echo "<item>
<title>" . str_replace("_"," ",$row['template_name']) . "</title>
Expand Down
2 changes: 1 addition & 1 deletion website_code/php/properties/properties_library.php
Expand Up @@ -91,7 +91,7 @@ function properties_display($xerte_toolkits_site,$tutorial_id,$change){

echo "<p>" . PROPERTIES_LIBRARY_PROJECT_HTML5_LINK . "</p>";

echo "<p><a target=\"new\" href='" . $xerte_toolkits_site->site_url . url_return("playhtml5", $_POST['template_id']) . "'>" . $xerte_toolkits_site->site_url . url_return("playhtml5", $_POST['template_id']) . "</a></p>";
echo "<p><a target=\"new\" href='" . $xerte_toolkits_site->site_url . url_return("play_html5", $_POST['template_id']) . "'>" . $xerte_toolkits_site->site_url . url_return("play_html5", $_POST['template_id']) . "</a></p>";

// Get the template screen size

Expand Down
10 changes: 8 additions & 2 deletions website_code/php/url_library.php
Expand Up @@ -24,8 +24,8 @@ function url_return($string,$template_number){
}
break;

case "playhtml5": if($xerte_toolkits_site->apache=="true"){
return $string . "_html5_" . $template_number;
case "play_html5": if($xerte_toolkits_site->apache=="true"){
return $string . "_" . $template_number;
}else{
return "play_html5.php?template_id=" . $template_number;
}
Expand Down Expand Up @@ -149,6 +149,12 @@ function url_return($string,$template_number){
return "export.php";
}
break;
case "RSS_html5": if($xerte_toolkits_site->apache=="true"){
return "RSS/";
}else{
return "rss.php?html5=";
}
break;

case "RSS_syndicate": if($xerte_toolkits_site->apache=="true"){
return "syndication/";
Expand Down

0 comments on commit 826db77

Please sign in to comment.