Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '"img src="' . tep_image(DIR_WS_TEMPLATE_IMAGES . '11.gif', 'логотип') . '" width="100%" height="100%" alt="логотип" /></a>'; ?>
<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_TEMPLATE_IMAGES . '11.gif', 'логотип') . '</a>'; ?></td>
Подскажите, как для 11.gif мне указать ширину и высоту в 100%?
ппц, не знал что у тега <a есть атрибут img .PHP:<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '"img src="' . tep_image(DIR_WS_TEMPLATE_IMAGES . '11.gif', 'логотип') . '" width="100%" height="100%" alt="логотип" /></a>'; ?>
<?php
echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' .
tep_image(DIR_WS_TEMPLATE_IMAGES .
'11.gif', 'логотип') . '</a>';
?>
</td>
</td>
width="100%"
<?php echo '<img src="templates/Original/images/11.gif" width="100%" >'?>
<?php
define('DIR_WS_TEMPLATE_IMAGES', 'templates/Original/images/');
if (DOWN_FOR_MAINTENANCE_HEADER_OFF =='false') {
if (SITE_WIDTH!='100%') {
?>
<table width="100%" cellpadding="10" cellspacing="0" border="0" BGCOLOR="#ffffff">
<tr><td>
<table BORDERCOLORLIGHT="2F4F2F" CELLSPACING="2" CELLPADDING="4" BORDER="2" width="<?php echo SITE_WIDTH;?>" align="center" BGCOLOR="FFFFFF" align="center">
<tr><td BORDERCOLOR="FF0000" >
<table border="0" width="100%"><tr><td>
<?php
}
?>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr class="header">
<td valign="middle">
<?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_TEMPLATE_IMAGES . '11.gif', 'логотип') . '</a>'; ?>
</td>
<td align="left" valign="top">
<?php if (SHOW_HEADER_LINK_BUTTONS == 'no'){ ?>
<?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'myinfo.jpg', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'cart.jpg', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'order.jpg', HEADER_TITLE_CHECKOUT) . '</a>'; ?>
<?php } ?>
</td>
</tr>
</table>
<?php if (SHOW_HEADING_TITLE_ORIGINAL == 'yes'){ ?>
<table border="0" width="100%" cellspacing="0" cellpadding="1">
<tr class="headerNavigation">
<td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td>
<td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> | <a href="http://tyressru.hostfabrica.ru/gallery/index.php" class="headerNavigation">Галерея</a> </td>
</tr>
</table>
<?php } ?>
<?php
}
?>
<!--- header_eof //-->
Хоть криво но работать будет. Вообще лучше использовать сам двиг.Вместо указанной выше строчки вставляю
<?php echo '<img src="templates/Original/images/11.gif" width="100%" >'?>
function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '') {
Тут скорее через css и min-widthВсё отображается как надо, большая картинка сужается под размер экрана, но не в IE. (((((((((((((
Вот оригинальный код
PHP:<?php define('DIR_WS_TEMPLATE_IMAGES', 'templates/Original/images/'); if (DOWN_FOR_MAINTENANCE_HEADER_OFF =='false') { if (SITE_WIDTH!='100%') { ?> <table width="100%" cellpadding="10" cellspacing="0" border="0" BGCOLOR="#ffffff"> <tr><td> <table BORDERCOLORLIGHT="2F4F2F" CELLSPACING="2" CELLPADDING="4" BORDER="2" width="<?php echo SITE_WIDTH;?>" align="center" BGCOLOR="FFFFFF" align="center"> <tr><td BORDERCOLOR="FF0000" > <table border="0" width="100%"><tr><td> <?php } ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"> <?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_TEMPLATE_IMAGES . '11.gif', 'логотип') . '</a>'; ?> </td> <td align="left" valign="top"> <?php if (SHOW_HEADER_LINK_BUTTONS == 'no'){ ?> <?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'myinfo.jpg', HEADER_TITLE_MY_ACCOUNT) . '</a> <a href="' . tep_href_link(FILENAME_SHOPPING_CART) . '">' . tep_image(DIR_WS_IMAGES . 'cart.jpg', HEADER_TITLE_CART_CONTENTS) . '</a> <a href="' . tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . tep_image(DIR_WS_IMAGES . 'order.jpg', HEADER_TITLE_CHECKOUT) . '</a>'; ?> <?php } ?> </td> </tr> </table> <?php if (SHOW_HEADING_TITLE_ORIGINAL == 'yes'){ ?> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"> <?php echo $breadcrumb->trail(' » '); ?></td> <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> | <a href="http://tyressru.hostfabrica.ru/gallery/index.php" class="headerNavigation">Галерея</a> </td> </tr> </table> <?php } ?> <?php } ?> <!--- header_eof //-->