Commit 6935742e authored by Dieudonne Timma Meyatchie's avatar Dieudonne Timma Meyatchie
Browse files

Letzte Version abgabe..!!

parent 5109d863
......@@ -47,10 +47,10 @@ class THMReversCookings
$image = self::hasbild('#__thm_reverscookingsprofils_bild', 'profilid', $userdata[0]->id);
$result='<div>';
$result .= '<div><h4>'.$userdata[0]->uname.'</h4></div>';
$result .= '<div><a href='.JRoute::_('index.php/component/uddeim/?task=new&Itemid=0').'>Cook with Me!</a></div>';
$result .= '<div><a href='.JRoute::_('index.php/component/uddeim/?task=new&Itemid=0').'>'.JText::_('COM_Cook_With_Me').'!</a></div>';
$result .= '<div>'.JHTML :: image('components/com_thm_reverscookings/img/profil_bild/'.$image[0]->filename, $userdata[0]->uname."_Bild", self::$attribs).'<a href="'.JRoute::_('index.php?option=com_thm_reverscookings&view=reverscookingsprofil&layout=edit&id='.$userid).'"></a></div>';
if($ismyprofil == false)
$result .='<div><h4> Adresse: '.$userdata[0]->address.'<br> '.$userdata[0]->plz.' '.$userdata[0]->ort.'</h4></div>';
$result .='<div><h4> '.JText::_('COM_Adresse').' : '.$userdata[0]->address.'<br> '.$userdata[0]->plz.' '.$userdata[0]->ort.'</h4></div>';
$result .='</div>';
return $result;
......
; Note : All ini files need to be saved as UTF-8 - No BOM
COM_Cook_With_Me="Koch mit mir"
COM_Adresse="Meine Adresse ist "
COM_Ich habe = "Ich habe "
MOD_User_Profil ="View für den User Profil"
TYPE_OF_PROFIL_VIEW="Damit kann sowohl der User Profil dargestellet werden, als auch der Profil eines User mit den passenden Zutaten"
MOD_User_Rezept_Profil="View für den User mit passenden Zutaten"
MOD_REVERSCOOKINGS_DESC = "Zeigt ein User Profil für die Komponente Reverscookings"
\ No newline at end of file
; Note : All ini files need to be saved as UTF-8 - No BOM
MOD_User_Profil ="View für den User Profil"
TYPE_OF_PROFIL_VIEW="Damit kann sowohl der User Profil dargestellet werden, als auch der Profil eines User mit den passenden Zutaten"
MOD_User_Rezept_Profil="View für den User mit passenden Zutaten"
MOD_REVERSCOOKINGS_DESC = "Zeigt ein User Profil für die Komponente Reverscookings"
mod_thm_reverscookingsprofil="THM REVERSCOOKINGS Profil MODUL"
\ No newline at end of file
;
; @version v<1.0>
COM_Cook_With_Me="Cook with me"
COM_Adresse="My adress is "
COM_Ich habe = "I have "
MOD_User_Profil ="View for the User Profil"
TYPE_OF_PROFIL_VIEW="Confugararion for the User Profil view or te Usr with Ingredient"
MOD_User_Rezept_Profil="View for the User with Ingredients"
MOD_REVERSCOOKINGS_DESC = "Show a User Profil for the Componente Reverscookings"
\ No newline at end of file
;
; @version v<1.0>
MOD_User_Profil ="View for the User Profil"
TYPE_OF_PROFIL_VIEW="Confugararion for the User Profil view or te Usr with Ingredient"
MOD_User_Rezept_Profil="View for the User with Ingredients"
MOD_REVERSCOOKINGS_DESC = "Show a User Profil for the Componente Reverscookings"
mod_thm_reverscookingsprofil="THM REVERSCOOKINGS MODUL"
\ No newline at end of file
......@@ -6,7 +6,7 @@
<copyright>Copyright (C) THM</copyright>
<license>GNU General Public License version 3 or later</license>
<version>0.0.1</version>
<description>Eine ProfilDarstellugsfunktion für die Komponente 'reversecooking'</description>
<description>MOD_REVERSCOOKINGS_DESC</description>
<files>
<filename module="mod_thm_reverscookingsprofil">mod_thm_reverscookingsprofil.php</filename>
......@@ -14,12 +14,26 @@
<filename >mod_thm_reverscookingsprofil.xml</filename>
<folder>tmpl</folder>
</files>
<languages>
<language tag="de-DE">language/de-DE/de-DE.mod_thm_reverscookingsprofil.ini</language>
<language tag="de-DE">language/de-DE/de-DE.mod_thm_reverscookingsprofil.sys.ini</language>
<language tag="en-GB">language/en-GB/en-GB.mod_thm_reverscookingsprofil.ini</language>
<language tag="en-GB">language/en-GB/en-GB.mod_thm_reverscookingsprofil.sys.ini</language>
</languages>
<administration>
<languages>
<language tag="de-DE">language/de-DE/de-DE.mod_thm_reverscookingsprofil.ini</language>
<language tag="de-DE">language/de-DE/de-DE.mod_thm_reverscookingsprofil.sys.ini</language>
<language tag="en-GB">language/en-GB/en-GB.mod_thm_reverscookingsprofil.ini</language>
<language tag="en-GB">language/en-GB/en-GB.mod_thm_reverscookingsprofil.sys.ini</language>
</languages>
</administration>
<config>
<fields name ="params">
<fieldset name = "basic">
<field name="viewtype" type="radio" default="0" label="Type of Profil View" description="TYPE_OF_PROFIL_VIEW">
<option value="0">User Profil</option>
<option value="1">User Rezept Profil</option>
<field name="viewtype" type="radio" default="0" label="Type_of_Profil_View" description="TYPE_OF_PROFIL_VIEW">
<option value="0">MOD_User_Profil</option>
<option value="1">MOD_User_Rezept_Profil</option>
</field>
</fieldset>
......
......@@ -47,7 +47,7 @@ if($viewtype == 1){
$id = intval($profilid->userid);
$ingarr = $profilid->ing;
echo THMReversCookings::myprofil($id,'id',false);
echo "<div><h4> Ich habe:</h4>";
echo "<div><h4> ".JText::_('COM_Ich habe')." :</h4>";
for($i=0; $i < count($ingarr); $i++)
echo '<h4>'.$ingarr[$i]."</h4>";
echo"</div>";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment