• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP zen_get_metatags_keywords函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中zen_get_metatags_keywords函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_get_metatags_keywords函数的具体用法?PHP zen_get_metatags_keywords怎么用?PHP zen_get_metatags_keywords使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了zen_get_metatags_keywords函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: zen_draw_input_field

&nbsp;</td>
            <td class="main">
              <?php 
    echo zen_draw_input_field('metatags_title[' . $languages[$i]['id'] . ']', isset($metatags_title[$languages[$i]['id']]) ? stripslashes($metatags_title[$languages[$i]['id']]) : zen_get_metatags_title($pInfo->products_id, $languages[$i]['id']), zen_set_field_length(TABLE_META_TAGS_PRODUCTS_DESCRIPTION, 'metatags_title', '150', false));
    //,'id="'.'metatags_title' . $languages[$i]['id'] . '"');
    ?>
            </td>
          </tr>
          <tr>
            <td class="main"valign="top"><?php 
    echo TEXT_META_TAGS_KEYWORDS;
    ?>
&nbsp;</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;
    ?>
&nbsp;</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>
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:collect_info_metatags.php


示例2: objectInfo

if (zen_not_null($_POST)) {
    $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']) . '&nbsp;' . '<strong>' . TEXT_PRODUCTS_NAME . '</strong>' . '&nbsp;' . ($pInfo->metatags_products_name_status == '1' ? zen_get_products_name($_GET['pID'], $languages[$i]['id']) : TEXT_META_EXCLUDED);
    ?>
            </td>
开发者ID:dalinhuang,项目名称:yijinhuanxiang,代码行数:31,代码来源:preview_info_meta_tags.php


示例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'] . '&current_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'] . '&current_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) {
开发者ID:ygeneration666,项目名称:ec,代码行数:31,代码来源:category_product_listing.php


示例4: zen_draw_input_field

&nbsp;</td>
            <td class="main">
              <?php 
    echo zen_draw_input_field('metatags_title[' . $languages[$i]['id'] . ']', htmlspecialchars(isset($metatags_title[$languages[$i]['id']]) ? stripslashes($metatags_title[$languages[$i]['id']]) : zen_get_metatags_title($pInfo->products_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE), zen_set_field_length(TABLE_META_TAGS_PRODUCTS_DESCRIPTION, 'metatags_title', '150', false));
    //,'id="'.'metatags_title' . $languages[$i]['id'] . '"');
    ?>
            </td>
          </tr>
          <tr>
            <td class="main"valign="top"><?php 
    echo TEXT_META_TAGS_KEYWORDS;
    ?>
&nbsp;</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;
    ?>
&nbsp;</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>
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:31,代码来源:collect_info_metatags.php



注:本文中的zen_get_metatags_keywords函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP zen_get_module_directory函数代码示例发布时间:2022-05-23
下一篇:
PHP zen_get_metatags_description函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap