本文整理汇总了PHP中zen_get_metatags_description函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_get_metatags_description函数的具体用法?PHP zen_get_metatags_description怎么用?PHP zen_get_metatags_description使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zen_get_metatags_description函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: zen_draw_textarea_field
</td>
<td class="main">
<?php
echo zen_draw_textarea_field('metatags_keywords[' . $languages[$i]['id'] . ']', 'soft', '100%', '10', isset($metatags_keywords[$languages[$i]['id']]) ? stripslashes($metatags_keywords[$languages[$i]['id']]) : zen_get_metatags_keywords($pInfo->products_id, $languages[$i]['id']));
//,'id="'.'metatags_keywords' . $languages[$i]['id'] . '"');
?>
</td>
</tr>
<tr>
<td class="main"valign="top"><?php
echo TEXT_META_TAGS_DESCRIPTION;
?>
</td>
<td class="main">
<?php
echo zen_draw_textarea_field('metatags_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '10', isset($metatags_description[$languages[$i]['id']]) ? stripslashes($metatags_description[$languages[$i]['id']]) : zen_get_metatags_description($pInfo->products_id, $languages[$i]['id']));
//,'id="'.'metatags_description' . $languages[$i]['id'] . '"');
?>
</td>
</tr>
</table></td>
</tr>
<?php
}
?>
<tr>
<td class="main" align="left"><?php
echo TEXT_INFO_META_TAGS_USAGE;
?>
</td>
</tr>
示例2: objectInfo
$pInfo = new objectInfo($_POST);
$metatags_title = $_POST['metatags_title'];
$metatags_keywords = $_POST['metatags_keywords'];
$metatags_description = $_POST['metatags_description'];
} else {
$product = $db->Execute("select pd.products_name, p.products_model,\r\n p.metatags_title_status, p.metatags_products_name_status, p.metatags_model_status,\r\n p.products_id, p.metatags_price_status, p.metatags_title_tagline_status,\r\n mtpd.metatags_title, mtpd.metatags_keywords, mtpd.metatags_description\r\n from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_META_TAGS_PRODUCTS_DESCRIPTION . " mtpd\r\n where p.products_id = '" . (int) $_GET['pID'] . "'\r\n and p.products_id = pd.products_id\r\n and pd.language_id = '" . (int) $_SESSION['languages_id'] . "'\r\n and p.products_id = mtpd.products_id\r\n and mtpd.language_id = '" . (int) $_SESSION['languages_id'] . "'");
$pInfo = new objectInfo($product->fields);
}
$form_action = isset($_GET['pID']) ? 'update_product_meta_tags' : 'insert_product_meta_tags';
echo zen_draw_form($form_action, $type_admin_handler, 'cPath=' . $cPath . (isset($_GET['product_type']) ? '&product_type=' . $_GET['product_type'] : '') . (isset($_GET['pID']) ? '&pID=' . $_GET['pID'] : '') . '&action=' . $form_action . (isset($_GET['page']) ? '&page=' . $_GET['page'] : ''), 'post', 'enctype="multipart/form-data"');
$languages = zen_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
if (isset($_GET['read']) && $_GET['read'] == 'only') {
$pInfo->metatags_title = zen_get_metatags_title($pInfo->products_id, $languages[$i]['id']);
$pInfo->metatags_keywords = zen_get_metatags_keywords($pInfo->products_id, $languages[$i]['id']);
$pInfo->metatags_description = zen_get_metatags_description($pInfo->products_id, $languages[$i]['id']);
} else {
$pInfo->metatags_title = zen_db_prepare_input($metatags_title[$languages[$i]['id']]);
$pInfo->metatags_keywords = zen_db_prepare_input($metatags_keywords[$languages[$i]['id']]);
$pInfo->metatags_description = zen_db_prepare_input($metatags_description[$languages[$i]['id']]);
}
?>
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><table border="3" cellspacing="4" cellpadding="6">
<td class="main" valign="top">
<?php
echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . '<strong>' . TEXT_PRODUCTS_NAME . '</strong>' . ' ' . ($pInfo->metatags_products_name_status == '1' ? zen_get_products_name($_GET['pID'], $languages[$i]['id']) : TEXT_META_EXCLUDED);
?>
</td>
<td class="main" valign="top">
示例3: zen_href_link
?>
<?php
echo '<a href="' . zen_href_link($type_handler, 'cPath=' . $cPath . '&product_type=' . $products->fields['products_type'] . '&pID=' . $products->fields['products_id'] . '&action=copy_to') . '">' . zen_image(DIR_WS_IMAGES . 'icon_copy_to.gif', ICON_COPY_TO) . '</a>';
// BOF: Attribute commands
//if (!empty($products->fields['products_id']) && zen_has_product_attributes($products->fields['products_id'], 'false')) {
if (zen_has_product_attributes($products->fields['products_id'], 'false')) {
echo '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $products->fields['products_id'] . '&action=attribute_features' . (isset($_GET['page']) ? '&page=' . $_GET['page'] : '')) . '">' . (!empty($products->fields['products_id']) && zen_has_product_attributes($products->fields['products_id'], 'false') ? zen_image(DIR_WS_IMAGES . 'icon_attributes_on.gif', ICON_ATTRIBUTES) : zen_image(DIR_WS_IMAGES . 'icon_attributes.gif', ICON_ATTRIBUTES)) . '</a>';
} else {
echo '<a href="' . zen_href_link(FILENAME_ATTRIBUTES_CONTROLLER, 'products_filter=' . $products->fields['products_id'] . '¤t_category_id=' . $current_category_id) . '">' . zen_image(DIR_WS_IMAGES . 'icon_attributes.gif', ICON_ATTRIBUTES) . '</a>';
}
//} // EOF: Attribute commands
if ($zc_products->get_allow_add_to_cart($products->fields['products_id']) == "Y") {
echo '<a href="' . zen_href_link(FILENAME_PRODUCTS_PRICE_MANAGER, 'products_filter=' . $products->fields['products_id'] . '¤t_category_id=' . $current_category_id) . '">' . zen_image(DIR_WS_IMAGES . 'icon_products_price_manager.gif', ICON_PRODUCTS_PRICE_MANAGER) . '</a>';
}
// meta tags
if (zen_get_metatags_keywords($products->fields['products_id'], (int) $_SESSION['languages_id']) or zen_get_metatags_description($products->fields['products_id'], (int) $_SESSION['languages_id'])) {
echo ' <a href="' . zen_href_link($type_handler, 'page=' . $_GET['page'] . '&product_type=' . $products->fields['products_type'] . '&cPath=' . $cPath . '&pID=' . $products->fields['products_id'] . '&action=new_product_meta_tags') . '">' . zen_image(DIR_WS_IMAGES . 'icon_edit_metatags_on.gif', ICON_METATAGS_ON) . '</a>';
} else {
echo ' <a href="' . zen_href_link($type_handler, 'page=' . $_GET['page'] . '&product_type=' . $products->fields['products_type'] . '&cPath=' . $cPath . '&pID=' . $products->fields['products_id'] . '&action=new_product_meta_tags') . '">' . zen_image(DIR_WS_IMAGES . 'icon_edit_metatags_off.gif', ICON_METATAGS_OFF) . '</a>';
}
}
// action == ''
?>
</td>
</tr>
<?php
$products->MoveNext();
}
$cPath_back = '';
if (sizeof($cPath_array) > 0) {
示例4: zen_draw_textarea_field
</td>
<td class="main">
<?php
echo zen_draw_textarea_field('metatags_keywords[' . $languages[$i]['id'] . ']', 'soft', '100%', '10', htmlspecialchars(isset($metatags_keywords[$languages[$i]['id']]) ? stripslashes($metatags_keywords[$languages[$i]['id']]) : zen_get_metatags_keywords($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE));
//,'id="'.'metatags_keywords' . $languages[$i]['id'] . '"');
?>
</td>
</tr>
<tr>
<td class="main"valign="top"><?php
echo TEXT_META_TAGS_DESCRIPTION;
?>
</td>
<td class="main">
<?php
echo zen_draw_textarea_field('metatags_description[' . $languages[$i]['id'] . ']', 'soft', '100%', '10', htmlspecialchars(isset($metatags_description[$languages[$i]['id']]) ? stripslashes($metatags_description[$languages[$i]['id']]) : zen_get_metatags_description($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE));
//,'id="'.'metatags_description' . $languages[$i]['id'] . '"');
?>
</td>
</tr>
</table></td>
</tr>
<?php
}
?>
<tr>
<td class="main" align="left"><?php
echo TEXT_INFO_META_TAGS_USAGE;
?>
</td>
</tr>