Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
juanramon committed Jun 3, 2011
2 parents 51fa484 + 1d866e9 commit 80b8332
Show file tree
Hide file tree
Showing 65 changed files with 6,887 additions and 2,031 deletions.
Empty file modified .gitignore
100644 → 100755
Empty file.
4 changes: 4 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Sitemap Generator 1.0.3 2011-05-06
----------------------------------

- Updated .po file
Empty file modified README
100644 → 100755
Empty file.
Empty file modified ads4osc/Ads.php
100644 → 100755
Empty file.
Empty file modified ads4osc/create.php
100644 → 100755
Empty file.
164 changes: 14 additions & 150 deletions ads4osc/edit.php
100644 → 100755

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions ads4osc/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ function show_ads($name = '') {
}

// This is needed in order to be able to activate the plugin
osc_register_plugin(__FILE__, 'ads_call_after_install');
osc_register_plugin(osc_plugin_path(__FILE__), 'ads_call_after_install');
// This is a hack to show a Uninstall link at plugins table (you could also use some other hook to show a custom option panel)
osc_add_hook(__FILE__."_uninstall", 'ads_call_after_uninstall');
osc_add_hook(osc_plugin_path(__FILE__)."_uninstall", 'ads_call_after_uninstall');

osc_add_hook('admin_menu', 'ads_admin_menu');

Expand Down
4 changes: 2 additions & 2 deletions ads4osc/launcher.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
if($ad['s_network']=='adsense') {
$ad['s_code'] = preg_replace('|google_ad_client = "([^"]+)|', 'google_ad_client = "'.$ad['s_account_id'], $ad['s_code']);
$ad['s_code'] = preg_replace('|google_ad_slot = "([^"]+)|', 'google_ad_slot = "'.$ad['s_slot_id'], $ad['s_code']);
$ad['s_code'] = preg_replace('|google_ad_width = ([0-9]+)|', 'google_ad_width = "'.$ad['i_ad_width'], $ad['s_code']);
$ad['s_code'] = preg_replace('|google_ad_height = ([0-9]+)|', 'google_ad_height = "'.$ad['i_ad_height'], $ad['s_code']);
$ad['s_code'] = preg_replace('|google_ad_width = ([0-9]+)|', 'google_ad_width = '.$ad['i_ad_width'], $ad['s_code']);
$ad['s_code'] = preg_replace('|google_ad_height = ([0-9]+)|', 'google_ad_height = '.$ad['i_ad_height'], $ad['s_code']);
}

$ads->update_ad($ad);
Expand Down
Empty file modified ads4osc/list.php
100644 → 100755
Empty file.
14 changes: 7 additions & 7 deletions breadcrumbs/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Bread crumbs
Plugin URI: http://www.osclass.org/
Description: Breadcrumbs navigation system.
Version: 1.5
Version: 1.5.1
Author: OSClass
Author URI: http://www.osclass.org/
Short Name: breadcrumbs
Expand Down Expand Up @@ -68,7 +68,7 @@ function breadcrumbs_category_url($category_id) {
$path = osc_base_url() . $sanitized_category ;
}
} else {
$path = sprintf( osc_base_url(true) . '?page=search&sCategory=%d', $category['pk_i_id'] ) ;
$path = sprintf( osc_base_url(true) . '?page=search&sCategory=%d', $category_id ) ;
}
return $path ;
}
Expand All @@ -77,23 +77,23 @@ function breadcrumbs_category_url($category_id) {
function breadcrumbs_admin_menu() {
echo '<h3><a href="#">Breadcrumbs</a></h3>
<ul>
<li><a href="'.osc_admin_render_plugin_url(dirname(__FILE__) . '/help.php').'">&raquo; '.__('F.A.Q. / Help', 'breadcrumbs').'</a></li>
<li><a href="'.osc_admin_render_plugin_url(osc_plugin_path(dirname(__FILE__)) . '/help.php').'">&raquo; '.__('F.A.Q. / Help', 'breadcrumbs').'</a></li>
</ul>';
}

function breadcrumbs_help() {
osc_admin_render_plugin(dirname(__FILE__) . '/help.php') ;
osc_admin_render_plugin(osc_plugin_path(dirname(__FILE__)) . '/help.php') ;
}




// This is needed in order to be able to activate the plugin
osc_register_plugin(__FILE__, '');
osc_register_plugin(osc_plugin_path(__FILE__), '');
// This is a hack to show a Configure link at plugins table (you could also use some other hook to show a custom option panel)
osc_add_hook(__FILE__."_configure", 'breadcrumbs_help');
osc_add_hook(osc_plugin_path(__FILE__)."_configure", 'breadcrumbs_help');
// This is a hack to show a Uninstall link at plugins table (you could also use some other hook to show a custom option panel)
osc_add_hook(__FILE__."_uninstall", '');
osc_add_hook(osc_plugin_path(__FILE__)."_uninstall", '');
// Add the help to the menu
osc_add_hook('admin_menu', 'breadcrumbs_admin_menu');

Expand Down
5 changes: 3 additions & 2 deletions cars_attributes/conf.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
switch(Params::getParam("plugin_action"))
{
case("make_delete"): if(Params::getParam("id")!="") {
$conn->osc_dbExec('DELETE FROM %st_item_car_model_attr WHERE fk_i_make_id = %d', DB_TABLE_PREFIX, Params::getParam("id"));
$conn->osc_dbExec('DELETE FROM %st_item_car_make_attr WHERE pk_i_id = %d', DB_TABLE_PREFIX, Params::getParam("id"));
}
break;
Expand Down Expand Up @@ -204,7 +205,7 @@
<fieldset>
<legend><?php echo __('Vehicle types'); ?></legend>
<div class="tabber">
<?php $locales = Locale::newInstance()->listAllEnabled();
<?php $locales = osc_get_locales();
$car_type = $conn->osc_dbFetchResults('SELECT * FROM %st_item_car_vehicle_type_attr', DB_TABLE_PREFIX);
$data = array();
foreach ($car_type as $c) {
Expand Down Expand Up @@ -246,7 +247,7 @@
<input type="hidden" name="plugin_action" value="type_add" />

<div class="tabber">
<?php $locales = Locale::newInstance()->listAllEnabled();
<?php $locales = osc_get_locales();
$car_type = $conn->osc_dbFetchResults('SELECT * FROM %st_item_car_vehicle_type_attr', DB_TABLE_PREFIX);
$data = array();
foreach ($car_type as $c) {
Expand Down
203 changes: 0 additions & 203 deletions cars_attributes/form.php

This file was deleted.

Binary file added cars_attributes/img/cross.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added cars_attributes/img/tick.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 80b8332

Please sign in to comment.