當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。