当前位置: 首页>>代码示例>>PHP>>正文


PHP osc_price_enabled_at_items函数代码示例

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


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

示例1: osc_list_orders

/**
 * Gets available search orders
 *
 * @return array
 */
function osc_list_orders()
{
    if (osc_price_enabled_at_items()) {
        return array(__('Newly listed') => array('sOrder' => 'dt_pub_date', 'iOrderType' => 'desc'), __('Lower price first') => array('sOrder' => 'i_price', 'iOrderType' => 'asc'), __('Higher price first') => array('sOrder' => 'i_price', 'iOrderType' => 'desc'));
    } else {
        return array(__('Newly listed') => array('sOrder' => 'dt_pub_date', 'iOrderType' => 'desc'));
    }
}
开发者ID:mylastof,项目名称:os-class,代码行数:13,代码来源:hSearch.php

示例2: osc_item_contact_name

            echo osc_item_contact_name();
            ?>
</a><?php 
        } else {
            echo osc_item_contact_name();
        }
        ?>
</p>
                                    <p class="description"><?php 
        echo osc_highlight(strip_tags(osc_item_description()), 110);
        ?>
</p>
                                    <div class="row">
                                        <div class="col-md-5 col-sm-5 col-xs-5 price">
                                            <?php 
        if (osc_price_enabled_at_items()) {
            ?>
<span><?php 
            echo osc_format_price(osc_item_price());
            ?>
</span><?php 
        }
        ?>
                                        </div>
                                        <div class="col-md-7 col-sm-7 col-xs-7 location">
                                            <i class="glyphicon glyphicon-map-marker"></i><?php 
        if (osc_item_region()) {
            ?>
 <?php 
            echo osc_item_region();
        } else {
开发者ID:abhi143u11,项目名称:ads,代码行数:31,代码来源:main.php

示例3: location_javascript


//.........这里部分代码省略.........
                }
            }
        }

        /**
         * Validate form
         */

        // Validate description without HTML.
        $.validator.addMethod(
            "minstriptags",
            function(value, element) {
                altered_input = strip_tags(value);
                if (altered_input.length < 3) {
                    return false;
                } else {
                    return true;
                }
            },
            "<?php 
        _e("Description: needs to be longer");
        ?>
."
        );

        // Code for form validation
        $("form[name=item]").validate({
            rules: {
                catId: {
                    required: true,
                    digits: true
                },
                <?php 
        if (osc_price_enabled_at_items()) {
            ?>
                price: {
                    maxlength: 15
                },
                currency: "required",
                <?php 
        }
        ?>
                <?php 
        if (osc_images_enabled_at_items()) {
            ?>
                "photos[]": {
                    accept: "<?php 
            echo osc_allowed_extension();
            ?>
"
                },
                <?php 
        }
        ?>
                <?php 
        if ($path == 'front') {
            ?>
                contactName: {
                    minlength: 3,
                    maxlength: 35
                },
                contactEmail: {
                    required: true,
                    email: true
                },
                <?php 
开发者ID:randomecho,项目名称:OSClass,代码行数:67,代码来源:Item.form.class.php

示例4: printf

                    <div class="item-date">
                        <i class="fa fa-calendar"></i>
                        <?php 
if (osc_item_pub_date() !== '') {
    printf(__('%1$s', 'pop'), osc_format_date(osc_item_pub_date()));
}
?>
                    </div>

                    <?php 
voting_item_detail();
?>

                </div>
                <?php 
if (osc_price_enabled_at_items() && osc_item_price()) {
    ?>
                <div class="item-price">
                    <?php 
    echo osc_item_formated_price();
    ?>
                </div>
                <?php 
}
?>
                <div>

                    <?php 
watchlist();
?>
                </div>
开发者ID:oanav,项目名称:closetshare,代码行数:31,代码来源:item.php

示例5: printf

									<?php 
printf(__('%s characters '), '<input type="text" class="input-small" name="max_chars_per_description" value="' . osc_max_characters_per_description() . '" />');
?>
								</div>
							</div>
						</div>
                        <div class="form-row">
                            <div class="form-label"> <?php 
_e('Optional fields');
?>
</div>
                            <div class="form-controls">
                                <div class="form-label-checkbox">
                                    <label>
                                        <input type="checkbox" <?php 
echo osc_price_enabled_at_items() ? 'checked="checked"' : '';
?>
 name="enableField#f_price@items" value="1"  />
                                        <?php 
_e('Price');
?>
                                    </label>
                                    <div class="separate-top-medium">
                                        <label>
                                            <input type="checkbox" <?php 
echo osc_images_enabled_at_items() ? 'checked="checked"' : '';
?>
 name="enableField#images@items" value="1" />
                                            <?php 
_e('Attach images');
?>
开发者ID:mylastof,项目名称:os-class,代码行数:31,代码来源:settings.php

示例6: location_javascript


//.........这里部分代码省略.........

                str = ((lang_count > 1) ? lang_name + ' ' : '');
                $(this).rules("add", {
                    required: true,
                    minlength: 10,
                    maxlength: 5000,
                    'minstriptags': true,
                    messages: {
                        required: str + "<?php 
        _e("Description: this field is required");
        ?>
.",
                        minlength: str + "<?php 
        _e("Description: needs to be longer");
        ?>
.",
                        maxlength: str + "<?php 
        _e("Description: no more than 5000 characters");
        ?>
."
                    }
                });                   
            });
        });
        
        // Code for form validation
        $("form[name=item]").validate({
            rules: {
                catId: {
                    required: true,
                    digits: true
                },
                <?php 
        if (osc_price_enabled_at_items()) {
            ?>
                price: {
                    number: true,
                    maxlength: 15
                },
                currency: "required",
                <?php 
        }
        ?>
                <?php 
        if (osc_images_enabled_at_items()) {
            ?>
                "photos[]": {
                    accept: "<?php 
            echo osc_allowed_extension();
            ?>
"
                },
                <?php 
        }
        ?>
                <?php 
        if ($path == 'front') {
            ?>
                contactName: {
                    minlength: 3,
                    maxlength: 35
                },
                contactEmail: {
                    required: true,
                    email: true
                },
开发者ID:hashemgamal,项目名称:OSClass,代码行数:67,代码来源:Item.form.class.php

示例7: osc_item_url

        }
        ?>
                                         <td class="text">
                                             <h3><a href="<?php 
        echo osc_item_url();
        ?>
"><?php 
        echo osc_item_title();
        ?>
</a></h3>
                                             <h5><?php 
        echo osc_item_contact_name();
        ?>
 </h5>
                                             <p><strong><?php 
        if (osc_price_enabled_at_items() && osc_item_category_price_enabled()) {
            echo osc_item_formated_price();
            ?>
 - <?php 
        }
        echo osc_item_city();
        ?>
 (<?php 
        echo osc_item_region();
        ?>
) - <?php 
        echo osc_format_date(osc_item_pub_date());
        ?>
</strong></p>
                                             <p><?php 
        echo osc_highlight(strip_tags(osc_item_description()));
开发者ID:jhalendra,项目名称:classmandu,代码行数:31,代码来源:seller-items.php

示例8: pop_search_filters

function pop_search_filters()
{
    ?>
      <form id="filterForm" name="filterForm" action="<?php 
    echo osc_base_url(true);
    ?>
" method="get" class="nocsrf">
        <input type="hidden" name="page" value="search" />
        <input type="hidden" name="sOrder" value="<?php 
    echo osc_search_order();
    ?>
" />
        <input type="hidden" name="iOrderType" value="<?php 
    $allowedTypesForSorting = Search::getAllowedTypesForSorting();
    echo $allowedTypesForSorting[osc_search_order_type()];
    ?>
" />
        <?php 
    foreach (osc_search_user() as $userId) {
        ?>
        <input type="hidden" name="sUser[]" value="<?php 
        echo $userId;
        ?>
" />
        <?php 
    }
    ?>
        <fieldset class="form-group first">
            <h6>
                <?php 
    _e('Search text', 'pop');
    ?>
            </h6>
            <input class="input-text" type="text" name="sPattern" id="query" value="<?php 
    echo osc_esc_html(osc_search_pattern());
    ?>
" />
        </fieldset>
       
        <fieldset class="form-group">
            <h6>
                <?php 
    _e('Region', 'pop');
    ?>
            </h6>
            <div>
                <?php 
    $sCountries = osc_get_countries();
    $countryId = $sCountries[0]['pk_c_code'];
    $sRegions = osc_get_regions($countryId);
    ?>
               <?php 
    //pop_region_autocomplete($sRegions);
    ?>
                 <input type="hidden" id="countryId" name="countryId" value="<?php 
    echo $countryId;
    ?>
" />
                  <input class="input-text" type="text" id="region" name="sRegion" value="<?php 
    echo osc_esc_html(osc_search_region());
    ?>
" />
                <input type="hidden" id="regionId" name="regionId" />
            </div>
        </fieldset>
         <fieldset class="form-group">
            <h6>
                <?php 
    _e('City', 'pop');
    ?>
            </h6>
            <div>
                <input class="input-text" type="text" id="city" name="sCity" value="<?php 
    echo osc_esc_html(osc_search_city());
    ?>
" />
                 <input type="hidden" id="cityId" name="cityId" />
            </div>
        </fieldset>
        <?php 
    if (osc_images_enabled_at_items()) {
        ?>
        <fieldset class="form-group">
            <div class="checkbox">
                <input type="checkbox" name="bPic" id="withPicture" value="1" <?php 
        echo osc_search_has_pic() ? 'checked' : '';
        ?>
 />
                <label for="withPicture">
                    <?php 
        _e('Listings with pictures', 'pop');
        ?>
                </label>
            </div>
        </fieldset>
        <?php 
    }
    ?>
        <?php 
    if (osc_price_enabled_at_items()) {
//.........这里部分代码省略.........
开发者ID:oanav,项目名称:closetshare,代码行数:101,代码来源:functions.php


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