Page 1 of 1

alt="Logo"

Posted: Mon 12. Aug 2013, 13:01
by Maxim
Image Здравствуйте, Герт

templates\__cmsimple_default__\template.htm

Code: Select all

if (file_exists($pth['folder']['templateimages'].'logo.jpg')){
echo '<a href="./">'.tag('img src="'.$pth['folder']['templateimages'].'logo.jpg" class="tplge_logo" alt="Logo"').'</a>';
}
Почему alt="Logo"?
Почему не в настройках?
Пользователю будет сложно найти, где поменять "Logo"

Image Hallo, Gert

templates\__cmsimple_default__\template.htm

Code: Select all

if (file_exists($pth['folder']['templateimages'].'logo.jpg')){
echo '<a href="./">'.tag('img src="'.$pth['folder']['templateimages'].'logo.jpg" class="tplge_logo" alt="Logo"').'</a>';
}
Warum alt="Logo"?
Warum nicht in den Einstellungen?
Der Benutzer wird schwierig zu finden, wo ändern "Logo"

Image Hello, Gert

templates\__cmsimple_default__\template.htm

Code: Select all

if (file_exists($pth['folder']['templateimages'].'logo.jpg')){
echo '<a href="./">'.tag('img src="'.$pth['folder']['templateimages'].'logo.jpg" class="tplge_logo" alt="Logo"').'</a>';
}
Why alt="Logo"?
Why not in the settings?
The user will be difficult to find where to change the "Logo"

Re: alt="Logo"

Posted: Mon 12. Aug 2013, 18:10
by Gert
Maxim wrote:Why not in the settings?
Because I don't want to extend the settings for that.

The default template is just an example, I think, most users will use another template than the default template.

If one wants to make it configurable, he should use $tx['template']['text1'] - $tx['template']['text9'] for that:

Code: Select all

if (file_exists($pth['folder']['templateimages'].'logo.jpg')){
echo '<a href="./">'.tag('img src="'.$pth['folder']['templateimages'].'logo.jpg" class="tplge_logo" alt="' . $tx['template']['text9'] . '"').'</a>';
But no one knows, for what the user wants to use $tx['template']['text1'] - $ tx ['template']['text9'] ... they are provided for free usage,

Gert

Мне нравится...

Posted: Tue 13. Aug 2013, 07:49
by Maxim
Image
Мне нравится шаблон по умолчанию, я использую, он красивый и солидный.
Спасибо за ответ.

Image
Ich mag die Standard-Vorlage, die ich verwende, es ist schön und solide.
Danke für die Antwort.

Image
I like the default template I'm using, it's beautiful and solid.
Thanks for the reply.