本文整理汇总了PHP中osc_images_enabled_at_items函数的典型用法代码示例。如果您正苦于以下问题:PHP osc_images_enabled_at_items函数的具体用法?PHP osc_images_enabled_at_items怎么用?PHP osc_images_enabled_at_items使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osc_images_enabled_at_items函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: itemCustomHead
function itemCustomHead()
{
echo '<script type="text/javascript" src="' . osc_current_web_theme_js_url('jquery.validate.min.js') . '"></script>';
echo '<script type="text/javascript" src="' . osc_current_web_theme_js_url('tabber-minimized.js') . '"></script>';
?>
<?php
if (osc_images_enabled_at_items()) {
ItemForm::photos_javascript();
}
?>
<?php
}
示例2: itemCustomHead
function itemCustomHead()
{
echo '<script type="text/javascript" src="' . osc_current_web_theme_js_url('tabber-minimized.js') . '"></script>';
?>
<?php
if (realestate_default_location_show_as() == 'dropdown') {
ItemForm::location_javascript();
} else {
ItemForm::location_javascript_new();
}
?>
<?php
if (osc_images_enabled_at_items()) {
ItemForm::photos_javascript();
}
?>
<!-- end only item-post.php -->
<?php
}
示例3: getImage
function getImage()
{
if (getUrl() == osc_base_url()) {
if (file_exists(WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg")) {
$image = osc_current_web_theme_url('images/logo.jpg');
} else {
$image = osc_current_web_theme_url('images/default-logo.jpg');
}
} else {
if (osc_images_enabled_at_items()) {
if (osc_count_item_resources() > 0) {
$image = osc_resource_url();
} else {
$image = osc_current_web_theme_url('images/logo.jpg');
}
} else {
$image = osc_current_web_theme_url('images/logo.jpg');
}
}
return $image;
}
示例4: _e
<?php
if (osc_count_latest_items() == 0) {
?>
<?php
_e('No listings', 'flatter');
?>
<?php
} else {
?>
<?php
while (osc_has_latest_items()) {
?>
<div class="item wow fadeInUp animated">
<div class="list">
<?php
if (osc_images_enabled_at_items()) {
?>
<div class="image">
<div>
<?php
if (osc_count_item_resources()) {
?>
<a href="<?php
echo osc_item_url();
?>
"><img src="<?php
echo osc_resource_preview_url();
?>
" alt="<?php
echo osc_item_title();
?>
示例5: location_javascript
//.........这里部分代码省略.........
"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
}
?>
regionId: {
required: true,
digits: true
},
cityId: {
required: true,
digits: true
},
示例6: osc_price_enabled_at_items
</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');
?>
</label>
</div>
<div class="separate-top-medium">
<?php
printf(__('Attach %s images per listing'), '<input type="text" class="input-small" name="numImages@items" value="' . osc_max_images_per_item() . '" />');
?>
<div class="help-box"><?php
_e('If the value is zero, it means an unlimited number of images is allowed');
?>
</div>
示例7: location_javascript
//.........这里部分代码省略.........
.",
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
},
<?php
}
?>
regionId: {
required: true,
digits: true
},
cityId: {
required: true,
digits: true
},
示例8: customHead
function customHead()
{
?>
<script type="text/javascript">
document.write('<style type="text/css"> .tabber{ display:none; } </style>');
$(document).ready(function(){
$('input[name="user"]').attr( "autocomplete", "off" );
$('#user,#fUser').autocomplete({
source: "<?php
echo osc_admin_base_url(true);
?>
?page=ajax&action=userajax",
minLength: 0,
select: function( event, ui ) {
if(ui.item.id=='') {
$("#contact_info").show();
return false;
}
$('#userId').val(ui.item.id);
$('#fUserId').val(ui.item.id);
$("#contact_info").hide();
}
});
<?php
if (osc_locale_thousands_sep() != '' || osc_locale_dec_point() != '') {
?>
$("#price").blur(function(event) {
var price = $("#price").attr("value");
<?php
if (osc_locale_thousands_sep() != '') {
?>
while(price.indexOf('<?php
echo osc_esc_js(osc_locale_thousands_sep());
?>
')!=-1) {
price = price.replace('<?php
echo osc_esc_js(osc_locale_thousands_sep());
?>
', '');
}
<?php
}
?>
<?php
if (osc_locale_dec_point() != '') {
?>
var tmp = price.split('<?php
echo osc_esc_js(osc_locale_dec_point());
?>
');
if(tmp.length>2) {
price = tmp[0]+'<?php
echo osc_esc_js(osc_locale_dec_point());
?>
'+tmp[1];
}
<?php
}
?>
$("#price").attr("value", price);
});
<?php
}
?>
});
</script>
<?php
ItemForm::location_javascript_new('admin');
?>
<?php
if (osc_images_enabled_at_items()) {
ItemForm::photos_javascript();
}
?>
<?php
}
示例9: osc_item_meta_value
echo osc_item_meta_value();
?>
</p>
<?php
}
?>
</div>
<?php
}
?>
</div>
<?php
osc_run_hook('item_detail', osc_item());
?>
<?php
if (osc_images_enabled_at_items() && osc_count_item_resources() > 0) {
?>
<div class="photos">
<ul class="media-grid">
<?php
while (osc_has_item_resources()) {
?>
<li>
<a rel="image_group" href="<?php
echo osc_resource_url();
?>
"><img src="<?php
echo osc_resource_thumbnail_url();
?>
" width="150" alt="<?php
echo osc_item_title();
示例10: 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()) {
//.........这里部分代码省略.........
示例11: customHead
function customHead()
{
?>
<script type="text/javascript" src="<?php
echo osc_current_admin_theme_js_url('jquery.validate.min.js');
?>
"></script>
<script type="text/javascript">
document.write('<style type="text/css"> .tabber{ display:none; } </style>') ;
$(document).ready(function(){
$("#userId").bind('change', function() {
if($(this).val() == '') {
$("#contact_info").show() ;
} else {
$("#contact_info").hide() ;
}
}) ;
if( $("#userId").val() == '') {
$("#contact_info").show() ;
} else {
$("#contact_info").hide() ;
}
<?php
if (osc_locale_thousands_sep() != '' || osc_locale_dec_point() != '') {
?>
$("#price").blur(function(event) {
var price = $("#price").attr("value");
<?php
if (osc_locale_thousands_sep() != '') {
?>
while(price.indexOf('<?php
echo osc_esc_js(osc_locale_thousands_sep());
?>
')!=-1) {
price = price.replace('<?php
echo osc_esc_js(osc_locale_thousands_sep());
?>
', '');
}
<?php
}
?>
<?php
if (osc_locale_dec_point() != '') {
?>
var tmp = price.split('<?php
echo osc_esc_js(osc_locale_dec_point());
?>
');
if(tmp.length>2) {
price = tmp[0]+'<?php
echo osc_esc_js(osc_locale_dec_point());
?>
'+tmp[1];
}
<?php
}
?>
$("#price").attr("value", price);
});
<?php
}
?>
});
</script>
<?php
ItemForm::location_javascript_new('admin');
?>
<?php
if (osc_images_enabled_at_items()) {
ItemForm::photos_javascript();
}
?>
<?php
}
示例12: customHead
function customHead()
{
?>
<script type="text/javascript">
document.write('<style type="text/css"> .tabber{ display:none; } </style>');
$(document).ready(function(){
$('input[name="user"]').attr( "autocomplete", "off" );
$('#user,#fUser').autocomplete({
source: "<?php
echo osc_admin_base_url(true);
?>
?page=ajax&action=userajax",
minLength: 0,
select: function( event, ui ) {
if(ui.item.id=='') {
$("#contact_info").show();
return false;
}
$('#userId').val(ui.item.id);
$('#fUserId').val(ui.item.id);
$("#contact_info").hide();
}
});
$('.ui-autocomplete').css('zIndex', 10000);
<?php
if (osc_locale_thousands_sep() != '' || osc_locale_dec_point() != '') {
?>
$("#price").on("blur", function(event) {
var price = $("#price").prop("value");
<?php
if (osc_locale_thousands_sep() != '') {
?>
while(price.indexOf('<?php
echo osc_esc_js(osc_locale_thousands_sep());
?>
')!=-1) {
price = price.replace('<?php
echo osc_esc_js(osc_locale_thousands_sep());
?>
', '');
}
<?php
}
?>
<?php
if (osc_locale_dec_point() != '') {
?>
var tmp = price.split('<?php
echo osc_esc_js(osc_locale_dec_point());
?>
');
if(tmp.length>2) {
price = tmp[0]+'<?php
echo osc_esc_js(osc_locale_dec_point());
?>
'+tmp[1];
}
<?php
}
?>
$("#price").prop("value", price);
});
<?php
}
?>
$('#update_expiration').change( function() {
if($(this).attr("checked")) {
$('#dt_expiration').prop('value', '');
$('div.update_expiration').show();
} else {
$('#dt_expiration').prop('value', '-1');
$('div.update_expiration').hide();
}
});
$('body').on("created", '[name^="select_"]',function(evt) {
selectUi($(this));
});
});
</script>
<?php
ItemForm::location_javascript('admin');
?>
<?php
if (osc_images_enabled_at_items()) {
ItemForm::photos_javascript();
}
?>
<?php
}