public function import($file) { $path = osc_current_web_theme_url($file); $sql = @file_get_contents($path); if (!$this->dao->importSQL($sql)) { throw new Exception($this->dao->getErrorLevel() . ' - ' . $this->dao->getErrorDesc()); } }
function add_logo_header() { $html = '<img border="0" alt="' . osc_page_title() . '" src="' . osc_current_web_theme_url('images/logo.jpg') . '">'; $js = "<script>\n \$(document).ready(function () {\n \$('#logo').html('" . $html . "');\n });\n </script>"; if (file_exists(WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg")) { echo $js; } }
function logo_header() { $html = '<img border="0" alt="' . osc_page_title() . '" src="' . osc_current_web_theme_url('images/logo.jpg') . '" />'; if (file_exists(WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg")) { return $html; } else { return osc_page_title(); } }
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; }
pop.fancybox_closeBtn = '<?php echo osc_esc_js(__('Close', 'pop')); ?> '; </script> <link rel="stylesheet" href="<?php echo osc_current_web_theme_url('css/pure-min.css'); ?> " type=text/css"> <!--[if lte IE 8]> <link rel="stylesheet" href="<?php echo osc_current_web_theme_url('css/grids-responsive-old-ie-min.css'); ?> "> <![endif]--> <!--[if gt IE 8]><!--> <link rel="stylesheet" href="<?php echo osc_current_web_theme_url('css/grids-responsive-min.css'); ?> "> <!--<![endif]--> <link href="<?php echo osc_current_web_theme_url('css/style.css'); ?> " rel="stylesheet" type="text/css" /> <link href="<?php echo osc_current_web_theme_url('css/bootstrap.min.css'); ?> " rel="stylesheet" type="text/css" /> <?php osc_run_hook('header');
?> "><img src="<?php echo osc_resource_thumbnail_url(); ?> " width="75" height="56" title="<?php echo osc_item_title(); ?> " alt="<?php echo osc_item_title(); ?> " /></a> <?php } else { ?> <img src="<?php echo osc_current_web_theme_url('images/no_photo.gif'); ?> " title="" alt="" /> <?php } ?> </td> <?php } ?> <td class="text"> <h3> <a href="<?php echo osc_item_url(); ?> "><?php
<?php // meta tag robots osc_add_hook('header', 'flatter_nofollow_construct'); osc_enqueue_script('tabber'); osc_enqueue_style('tabs', osc_current_web_theme_url('css/tabs.css')); flatter_add_body_class('item item-post'); $action = 'item_add_post'; $edit = false; if (Params::getParam('action') == 'item_edit') { $action = 'item_edit_post'; $edit = true; } osc_enqueue_script('jquery-validate'); osc_current_web_theme_path('header.php'); if (osc_get_preference('location_input', 'flatter_theme') == '1') { ItemForm::location_javascript(); } else { ItemForm::location_javascript_new(); } ?> <div class="itempost"> <div class="container"> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12 page-title"> <h2><?php if ($edit) { ?> <?php _e('Edit your listing', 'flatter'); ?>
* This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public * License along with this program. If not, see <http://www.gnu.org/licenses/>. */ // meta tag robots if (osc_item_is_spam() || osc_premium_is_spam()) { osc_add_hook('header', 'osclasswizards_nofollow_construct'); } else { osc_add_hook('header', 'osclasswizards_follow_construct'); } osc_enqueue_script('fancybox'); osc_enqueue_style('fancybox', osc_current_web_theme_url('js/fancybox/jquery.fancybox.css')); osc_enqueue_script('jquery-validate'); osclasswizards_add_body_class('item'); //osc_add_hook('after-main','sidebar'); if (osclasswizards_show_as() == 'gallery') { $loop_template = 'loop-search-grid.php'; $buttonClass = 'active'; } else { $loop_template = 'loop-search-list.php'; $buttonClass = ''; } function sidebar() { osc_current_web_theme_path('item-sidebar.php'); } osc_current_web_theme_path('header.php');
function pop_logo_url() { $logo = osc_get_preference('logo', 'pop_theme'); if ($logo != '') { return osc_uploads_url($logo); } return osc_current_web_theme_url('images/compact-logo.png'); }
</div> <?php } ?> <?php } else { if (osc_item_user_id() != '') { View::newInstance()->_exportVariableToView('user', User::newInstance()->findByPrimaryKey(osc_item_user_id())); ?> <a href="<?php echo osc_user_public_profile_url(); ?> "> <div class="listing-seller"> <div class="listing-seller-avatar" style="background-image: url('<?php echo osc_current_web_theme_url('images/seller-default.png'); ?> ')"></div> <span class="seller-name"><?php echo osc_user_name(); ?> </span> <span class="seller-products"><?php echo osc_user_items_validated(), ' ' . _n('Listing', 'Listings', osc_user_items_validated(), 'pop'); ?> </span> </div> </a> <?php } }
?> </div> <div id="ads"> <?php include 'ads.php'; ?> </div> <div id="facebook"> <?php include 'facebook.php'; ?> </div> <div id="documentation"> <?php include 'documentation.php'; ?> </div> <address class="wizards_address"> <span>© 2015 <a target="_blank" title="osclasswizards" href="http://www.osclasswizards.com/">OsclassWizards</a>. All rights reserved.</span> </p> </address> </div> <script src="<?php echo osc_current_web_theme_url('admin/js/jquery.switchButton.js'); ?> "></script> <script src="<?php echo osc_current_web_theme_url('admin/js/jquery.admin.js'); ?> "></script>
<link rel="canonical" href="<?php echo osc_get_canonical(); ?> "/> <?php } ?> <meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Expires" content="Fri, Jan 01 1970 00:00:00 GMT" /> <link href="<?php echo osc_current_web_theme_url('style.css'); ?> " rel="stylesheet" type="text/css" /> <link href="<?php echo osc_current_web_theme_url('tabs.css'); ?> " rel="stylesheet" type="text/css" /> <script type="text/javascript"> var fileDefaultText = '<?php echo osc_esc_js(__('No file selected', 'modern')); ?> '; var fileBtnText = '<?php echo osc_esc_js(__('Choose File', 'modern')); ?> '; </script> <script type="text/javascript" src="<?php echo osc_current_web_theme_js_url('jquery.js');
?> </header> </div> <?php osc_run_hook('before-content'); ?> <div class="wrapper" id="content"> <?php if (osc_is_home_page()) { echo '<div id="header_map">'; if (homepage_image()) { echo homepage_image(); } else { ?> <img src="<?php echo osc_current_web_theme_url('images/map.jpg'); ?> " /> <?php } echo '</div>'; } ?> <?php if (osc_is_home_page()) { ?> <form action="<?php echo osc_base_url(true); ?> " id="main_search" method="get" class="search nocsrf" <?php /* onsubmit="javascript:return doSearch();"*/
<div class="comment clearfix"> <div class="pull-left avatar"> <?php if (function_exists("profile_picture_show")) { ?> <?php current_user_picture(); ?> <?php } else { ?> <img class="img-responsive" src="http://www.gravatar.com/avatar/<?php echo md5(strtolower(trim(osc_logged_user_email()))); ?> ?s=60&d=<?php echo osc_current_web_theme_url('images/user-default.jpg'); ?> " /> <?php } ?> </div> <div class="pull-left message"> <ul id="comment_error_list"></ul> <form action="<?php echo osc_base_url(true); ?> " method="post" name="comment_form" id="comment_form"> <input type="hidden" name="action" value="add_comment" /> <input type="hidden" name="page" value="item" /> <input type="hidden" name="id" value="<?php
function dd_profilepic() { if (function_exists("profile_picture_show")) { profile_picture_show(); } else { ?> <img src="http://www.gravatar.com/avatar/<?php echo md5(strtolower(trim(osc_item_contact_email()))); ?> ?s=80&d=<?php echo osc_current_web_theme_url('images/user-default.jpg'); ?> " /> <?php } }
function nc_osc_get_public_picture_link($user_id) { $ext = ProfilePicture::newInstance()->getPictureExt($user_id); if ($ext['name'] == null) { $name = $user_id . '.' . $ext['pic_ext']; } else { $name = 'default.png'; } return osc_current_web_theme_url() . 'profile_picture/' . $name; }
/** * Gets item meta value * * @return string */ function osc_item_meta_value() { $meta = osc_item_meta(); if ($meta['e_type'] == "CHECKBOX") { if (osc_field(osc_item_meta(), 's_value', '') == 1) { return '<img src="' . osc_current_web_theme_url('images/tick.png') . '" alt="" title=""/>'; } else { return '<img src="' . osc_current_web_theme_url('images/cross.png') . '" alt="" title=""/>'; } } else { if ($meta['e_type'] == "URL") { if (osc_field(osc_item_meta(), 's_value', '') != '') { return '<a href="' . htmlentities(osc_field(osc_item_meta(), 's_value', '')) . '" >' . htmlentities(osc_field(osc_item_meta(), 's_value', '')) . '</a>'; } else { return ''; } } else { return htmlentities(osc_field(osc_item_meta(), 's_value', ''), ENT_COMPAT, "UTF-8"); } } }
) <?php } ?> </div> </div> </div> <!--<a href="<?php echo osc_user_public_profile_url(osc_item_user_id()); ?> "> <div class="listing-seller"> <div class="listing-seller-avatar" style="background-image: url('<?php echo osc_current_web_theme_url('images/user_default.gif'); ?> ')"></div> <span class="seller-name"><?php echo osc_item_contact_name(); ?> </span> <span class="seller-listings"><?php echo osc_item_user_count_items(); ?> <?php _e('items', 'osclasswizards'); ?> </span> </div> </a>-->
<h1>Facebook Information</h1> <form name="submit-facebook-data" method="post" action=""> <input id="sitebase_url" type="hidden" value="<?php echo osc_current_web_theme_url() . 'admin/facebook-api-check.php'; ?> " /> <table> <tr> <td>Facebook API ID</td> <td><input type="text" class="xlarge" id="facebook_api_id" name="facebook_api_id" value="<?php echo osc_esc_html(osc_get_preference('facebook_api_id', 'classified')); ?> " placeholder="Enter Facebook API ID"></td> </tr> <tr> <td>Facebook API Secret</td> <td><input type="text" class="xlarge" id="facebook_api_secret" name="facebook_api_secret" value="<?php echo osc_esc_html(osc_get_preference('facebook_api_secret', 'classified')); ?> " placeholder="Enter Facebook API Secret"></td> </tr> </table> <?php $curl = ""; $fopen = ""; if ($connection == "curl") { $curl = "checked='checked'"; } elseif ($connection == "fopen") { $fopen = "checked='checked'"; } else {
function add_logo_header() { $title = osc_page_title(); $logo = osc_current_web_theme_url('images/logo.jpg'); $js = <<<JAVASCRIPT <script> var title = '{$title}' ; var logo = '{$logo}' ; var img = \$("<img>").attr('border', '0').attr('alt', '{$title}').attr('title', '{$title}').attr('src', '{$logo}') ; \$(document).ready(function () { \$('.logo').html(img) ; }); </script> JAVASCRIPT; if (file_exists(WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg")) { echo $js; } }
?> </a> <?php } ?> </div> </div> </div> <?php if (osc_is_home_page()) { if (osc_get_preference('show_banner', 'osclasswizards_theme') == '1') { echo '<div id="header_map">'; if (homepage_image()) { echo homepage_image(); } else { echo '<img src="' . osc_current_web_theme_url('images/banner.jpg') . '" />'; } echo '</div>'; } ?> <div class="banner_none" id="form_vh_map"> <form action="<?php echo osc_base_url(true); ?> " id="main_search" method="get" class="search nocsrf" > <div class="container"> <input type="hidden" name="page" value="search"/> <div class="main-search"> <div class="form-filters"> <div class="row"> <div class="col-md-4">
function osclasswizards_favicon_url() { $logo = osc_get_preference('favicon', 'osclasswizards_theme'); if ($logo) { return osc_uploads_url($logo); } else { return osc_current_web_theme_url('images/favicon.png'); } }
<div class="col-sm-4 col-md-3"> <div id="sidebar"> <div class="user-card"> <?php $fbUser = OSCFacebook::newInstance()->getFBUser(osc_logged_user_id()); if ($fbUser) { $user_picture_url = "https://graph.facebook.com/" . $fbUser . "/picture"; } else { $user_picture_url = osc_current_web_theme_url('images/user_default.gif'); } ?> <div class="user-avatar"> <img src="<?php echo $user_picture_url; ?> " width="50" height="50" /> </div> <div > <span class="name"><?php echo osc_logged_user_name(); ?> </span> <a href="<?php echo osc_user_public_profile_url(osc_logged_user_id()); ?> "><?php _e('Public profile', 'pop'); ?> </a> </div>
<input type="hidden" name="item_title" value="<?php echo $item['s_title']; ?> "/> <button type="submit" name="paypal-payment"> <img class="img-responsive" src="<?php echo osc_base_url() . 'oc-content/themes/classified/images/paypal.png'; ?> " alt="Visa Card"> </button> </form> </div> </div> <form name="payment-form" action="<?php echo osc_current_web_theme_url('process-payment.php'); ?> " method="post"> <input type="hidden" name="itemId" value="<?php echo Params::getParam('itemId'); ?> "/> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <div style="margin-top:20px;" class="form-group"> <label class="credit-card" for="usr">Card Number<sub>The 16 digits on front of your card</sub></label> <input type="text" class="form-control user-field" name="credit-card-number" id="credit-card-number"> </div> </div> </div> <div class="row">
<input id="button_save" type="submit" value="<?php _e('Upload', 'modern'); ?> " /> </form> <div> <?php if (file_exists(WebThemes::newInstance()->getCurrentThemePath() . "images/logo.jpg")) { ?> <p> Preview:<br> <img border="0" alt="<?php echo osc_page_title(); ?> " src="<?php echo osc_current_web_theme_url('images/logo.jpg'); ?> "/> <form action="<?php echo osc_admin_render_theme_url('oc-content/themes/modern/admin/admin_settings.php'); ?> " method="post" enctype="multipart/form-data"> <input type="hidden" name="action_specific" value="remove" /> <input id="button_remove" type="submit" value="<?php _e('Remove logo', 'modern'); ?> " /> </form> </p> <?php } else {
border:solid 1px #bababa; border-radius:2px; -moz-border-radius:2px; -webkit-border-radius:2px; } .chbx.checked{ background-image:url('<?php echo osc_current_web_theme_url('images/checkmark.png'); ?> '); } .chbx.semi-checked{ background-image:url('<?php echo osc_current_web_theme_url('images/checkmark-partial.png'); ?> '); } </style> <script type="text/javascript"> $(document).ready(function(){ $('li.parent').each(function() { var totalInputSub = $(this).find('ul.sub>li>input').size(); var totalInputSubChecked = $(this).find('ul.sub>li>input:checked').size(); $(this).find('ul.sub>li>input').each(function(){ $(this).hide(); var id = $(this).attr('id'); id = id+'_';
if (osc_count_premiums() != 0) { ?> <?php $i = 0; ?> <?php while (osc_has_premiums()) { ?> <?php $i = $i + 1; ?> <?php if (osc_count_premium_resources()) { $image = osc_resource_thumbnail_url(); } else { $image = osc_current_web_theme_url('images/no-image-available.png'); } ?> <?php if ($i == 1) { echo '<div class="item active">'; } else { if ($i != 1 && ($i - 1) % 4 == 0) { echo '<div class="item">'; } } ?> <?php if ($i == 2 || $i % 4 == 2) { $class = "hidden-xs";
} pop_draw_item('', $admin); } } pop_draw_ad('search-results-300x250'); ?> </div> <?php if (osc_search_total_pages() > 1) { ?> <div class="wrapper wrapper-more-listings"> <div class="more-listings-section clear"> <a href=".dummy" id="js-load-more-listings" class="more-listings-block"> <i class="ico-plus_normal"></i> <br/> <span><?php _e('Load more listings', 'pop'); ?> </span> </a> </div> <div id="js-load-more-listings-loading"> <img src="<?php echo osc_current_web_theme_url('images/loading_transparent.gif'); ?> "/> </div> </div> <?php }
?> "><img src="<?php echo osc_resource_preview_url(); ?> " alt="<?php echo osc_item_title(); ?> " class="img-responsive" /></a> <?php } else { ?> <a href="<?php echo osc_item_url(); ?> "><img src="<?php echo osc_current_web_theme_url('images/no-image.jpg'); ?> " alt="<?php echo osc_item_title(); ?> " class="img-responsive"></a> <?php } ?> </div> </div> <?php } ?> <div class="caption"> <h3><a href="<?php
echo meta_title(); ?> </title> <meta name="title" content="<?php echo meta_title(); ?> " /> <meta name="description" content="<?php echo meta_description(); ?> " /> <meta http-equiv="Cache-Control" content="no-cache" /> <meta http-equiv="Expires" content="Fri, Jan 01 1970 00:00:00 GMT" /> <link href="<?php echo osc_current_web_theme_url('style.css'); ?> " rel="stylesheet" type="text/css" /> <script type="text/javascript"> var fileDefaultText = '<?php echo osc_esc_js(__('No file selected', 'seeker')); ?> '; var fileBtnText = '<?php echo osc_esc_js(__('Choose File', 'seeker')); ?> '; </script> <script type="text/javascript" src="<?php