Show
Ignore:
Timestamp:
09/07/06 04:38:25 (5 years ago)
Author:
benoitg
Message:
  • Fix #63
  • Fix problem with my Splash only user fix (I used match on the

user_id instead of the username).

  • Prevent the Splash only user from logging out, wrecking havock

in the tokens.

  • Do not allow SplashOnlyUser? to set his preferences.
  • Assigning a reusable content to a contentgroup element would

make it non-reusable.
Usability and UI fixes:

  • Allow other users to log in when they are at a splash only

node.

  • Make isSimpleContent class available for Simple content types.

Make it borderless and backgroundless in the default theme_pack.

  • Simplify HTML output for simple content.
  • Fix IE layout bug in node admin
  • Content linked to nodes and networks now edits in a new

window.

  • Remove "Add new node" menu item for consistency.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/Content.php

    r1091 r1092  
    559559                $html .= "<td>\n"; 
    560560                $name = "{$user_prefix}_" . $content->GetId() . "_edit"; 
    561                 $html .= "<input type='button' class='submit' name='$name' value='" . _("Edit") . "' onClick='window.location.href = \"" . GENERIC_OBJECT_ADMIN_ABS_HREF . "?object_class=Content&action=edit&object_id=" . $content->GetId() . "\";'>\n"; 
     561                $html .= "<input type='button' class='submit' name='$name' value='" . _("Edit") . "' onClick='window.open(\"" . GENERIC_OBJECT_ADMIN_ABS_HREF . "?object_class=Content&action=edit&object_id=" . $content->GetId() . "\");'>\n"; 
    562562                $name = "{$user_prefix}_" . $content->GetId() . "_erase"; 
    563563                $html .= "<input type='submit' class='submit' name='$name' value='" . _("Remove") . "'>"; 
     
    734734            } 
    735735 
    736             $html .= _("Add existing content") . ": "; 
     736            $html .= _("Add reusable content from library") . ": "; 
    737737        } 
    738738 
     
    10251025    public function getUserUI($subclass_user_interface = null) { 
    10261026        $html = ''; 
    1027         $html .= "<div class='user_ui_main_outer " . get_class($this) . "'>\n"; 
     1027        $this->isSimpleContent() ? $isSimpleContentClass = 'isSimpleContent' : $isSimpleContentClass = null; 
     1028        $html .= "<div class='user_ui_main_outer " . get_class($this) . " $isSimpleContentClass'>\n"; 
    10281029        $html .= "<div class='user_ui_main_inner'>\n"; 
    10291030 
     
    10391040        } 
    10401041 
    1041         $html .= "<table><tr>\n"; 
     1042if($this->isSimpleContent()) 
     1043{ 
     1044    $html .= "\n$subclass_user_interface\n"; 
     1045} 
     1046else{ 
     1047$html .= "<table><tr>\n"; 
    10421048        $html .= "<td>\n$subclass_user_interface</td>\n"; 
    1043  
    10441049        $html .= "<td>\n"; 
     1050} 
    10451051        $authors = $this->getAuthors(); 
    10461052        if (count($authors) > 0) { 
     
    10771083            } 
    10781084        } 
    1079  
     1085if(!$this->isSimpleContent()) 
     1086{ 
    10801087        $html .= "</td>\n"; 
    10811088        $html .= "</tr></table>\n"; 
    1082  
     1089} 
    10831090        $html .= "</div>\n"; 
    10841091        $html .= "</div>\n"; 
     
    12701277                /* is_persistent */ 
    12711278                $html .= "<li class='admin_element_item_container admin_section_edit_persistant'>\n"; 
    1272                 $html .= "<div class='admin_element_label'>" . _("Is persistent (reusable and read-only)?") . ": </div>\n"; 
     1279                $html .= "<div class='admin_element_label'>" . _("Is part of reusable content library (protected from deletion)?") . ": </div>\n"; 
    12731280                $html .= "<div class='admin_element_data'>\n"; 
    12741281                $name = "content_" . $this->id . "_is_persistent";