@@ -130,8 +104,6 @@ class BFFForm extends BFFCourse {
$url=$feed['url'];
$type=$feed['type'];
$this->log('feed info: '.print_r($feed,true));
// $id = $course['id'];
// $tag = $course['tag'];
$id=$_POST['course_id'];
$tag=$_POST['course_tag'];
$this->log('setting the feed URL for '.$uid.' in course '.$id.' ('.$tag.
...
...
@@ -145,15 +117,12 @@ class BFFForm extends BFFCourse {
}else{
$this->log('no POST action found...');
}
//self::form();
//return false;
}
// define what happens when the shortcode - BFF_SHORTCODE - is fired...
publicfunctionshortcode($atts,$content=""){
$this->log('in shortcode');
ob_start();
//$this->process();
$this->form();
returnob_get_clean();
}
...
...
@@ -166,18 +135,12 @@ class BFFForm extends BFFCourse {
// alert the user that they're not logged in
if(!is_user_logged_in()){
//if (is_user_logged_in()) {
$this->log('the current user ++isn\'t++ logged in!');
$this->alert_anon_user();
}else{
$this->log('the current user *is* logged in!');
$this->inform_auth_user();
//$this->alert_anon_user();
// compile a list of courses the user's registered for
//$this->list_courses();
}
// compile a list of valid feeds (ideally, just one)
//$feed_list = $this->list_feeds();
// outputs the options form on admin
?>
...
...
@@ -262,7 +225,6 @@ class BFFForm extends BFFCourse {
."<p>If you have questions, please post in the <a href=".BFF_SUPPORT_FORUM.">blog feed finder topic</a> in our support forum!</p>"
."[".BFF_SHORTCODE."]"
."<div class='credits'>"
//."<p class='credit'>Credits: Emoji icons from the <a href='https://commons.wikimedia.org/wiki/Category:Noto_Color_Emoji_Oreo'>Noto Color Emoji Oreo</a> set (under Apache 2.0 license), and the <a href=\"https://commons.wikimedia.org/wiki/File:Question_Mark_Icon_-_Blue_Box.svg\">question mark icon</a> is by <a href=\"https://commons.wikimedia.org/wiki/User:Willscrlt\">Will Murray</a> (CC-By-SA).</p>"
."<p class='credit'>Credits: Emoji icons from the <a href='https://commons.wikimedia.org/wiki/Category:Noto_Color_Emoji_Oreo'>Noto Color Emoji Oreo</a> set (under Apache 2.0 license).</p>"
/* ui-hide-label deprecated in 1.4. TODO: Remove in 1.5 */
.ui-hide-label>label,
.ui-hide-label.ui-controlgroup-label,
.ui-hide-label.ui-rangesliderlabel,
.ui-hidden-accessible{
position:absolute!important;
height:1px;
width:1px;
overflow:hidden;
clip:rect(1px,1px,1px,1px);
}
/* Used for hiding elements by the filterable widget. You can also use this class to hide list items or buttons in controlgroups; this ensures correct corner styling. */
.ui-screen-hidden{
display:none!important;
}
/* Transitions originally inspired by those from jQtouch, nice work, folks */