Ignore:
Timestamp:
Dec 29, 2010, 3:28:08 PM (13 years ago)
Author:
rub
Message:

Rename language files: plugin.lang.php => admin.config.lang.php
Add constants for Facebook URL
Add promote on footer
Add promote on about page (available for Piwigo 2.2)
Add promote on admin config page
Superscripted help tips on admin config page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/FacebookPlug/Plugin/admin.config.php

    r8366 r8375  
    2828
    2929// Lingua
    30 load_language('plugin.lang', FBP_DIR.'/');
    31 
    32 // Delete compiled templates
    33 $template->delete_compiled_templates();
     30load_language('footer.lang', FBP_DIR.'/');
     31load_language('admin.config.lang', FBP_DIR.'/');
    3432
    3533// Arguments
     
    109107      $conf['fbp']['picture_url_type'] = $picture_url_type[$_POST['FBP_PICTURE_URL_TYPE']];
    110108      $conf['fbp']['allow_fb_access_private_page'] = empty($_POST['FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE']) ? false : true;
     109      $conf['fbp']['add_about_informations'] = empty($_POST['FBP_ADD_ABOUT_INFORMATIONS']) ? false : true;
     110      $conf['fbp']['add_group_footer'] = empty($_POST['FBP_ADD_GROUP_FOOTER']) ? false : true;
     111      $conf['fbp']['add_application_footer'] = empty($_POST['FBP_ADD_APPLICATION_FOOTER']) ? false : true;
    111112      break;
    112113    }
     
    128129    array_push($page['errors'], l10n('Data updated with error'));
    129130  }
     131
     132  // Delete compiled templates
     133  $template->delete_compiled_templates();
    130134}
    131135
     
    140144        'like_button' => array
    141145          (
    142             'FB_PAGE' => 'http://developers.facebook.com/docs/reference/plugins/like/',
     146            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/like/',
    143147            'ENABLED' => ($conf['fbp']['social_plugin_like_button']['enabled'] ? 'checked="checked"' : ''),
    144148            'LAYOUT_OPTIONS' => $layout_l10n,
     
    152156       'facepile' => array
    153157          (
    154             'FB_PAGE' => 'http://developers.facebook.com/docs/reference/plugins/facepile/',
     158            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/facepile/',
    155159            'ENABLED' => ($conf['fbp']['social_plugin_facepile']['enabled'] ? 'checked="checked"' : ''),
    156160            'MAX_ROWS' => $conf['fbp']['social_plugin_facepile']['max_rows'],
     
    158162       'comments' => array
    159163          (
    160             'FB_PAGE' => 'http://developers.facebook.com/docs/reference/plugins/comments/',
     164            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/comments/',
    161165            'ENABLED' => ($conf['fbp']['social_plugin_comments']['enabled'] ? 'checked="checked"' : ''),
    162166            'NUMPOSTS' => $conf['fbp']['social_plugin_comments']['numposts'],
     
    168172       'like_box' => array
    169173          (
    170             'FB_PAGE' => 'http://developers.facebook.com/docs/reference/plugins/like-box/',
     174            'FB_PAGE' => FACEBOOK_DOC_PLUGINS_URL.'/like-box/',
    171175            'ENABLED' => ($conf['fbp']['social_plugin_like_box']['enabled'] ? 'checked="checked"' : ''),
    172176            'URL' => $conf['fbp']['social_plugin_like_box']['url'],
     
    191195        'FBP_PICTURE_URL_TYPE_OPTIONS_SELECTED' => array_search($conf['fbp']['picture_url_type'], $picture_url_type),
    192196        'FBP_ALLOW_FB_ACCESS_PRIVATE_PAGE'=> ($conf['fbp']['allow_fb_access_private_page'] ? 'checked="checked"' : ''),
     197        'FBP_ADD_ABOUT_INFORMATIONS' => ($conf['fbp']['add_about_informations'] ? 'checked="checked"' : ''),
     198        'FBP_ADD_GROUP_FOOTER' => ($conf['fbp']['add_group_footer'] ? 'checked="checked"' : ''),
     199        'FBP_ADD_APPLICATION_FOOTER' => ($conf['fbp']['add_application_footer'] ? 'checked="checked"' : ''),
    193200        ));
    194201    break;
     
    200207$template->assign('FBP_ACTION', add_url_params($base_url, array('tab' => $page['tab'])));
    201208//~ $template->block_html_head('', '<link rel="stylesheet" type="text/css" href="'.FBP_PATH.'/css/admin.config.css">', $smarty, $repeat);
     209$template->assign('FACEBOOK_PIWIGO_RUB_URL', FACEBOOK_PIWIGO_RUB_URL);
     210$template->assign('FACEBOOK_PIWIGO_GROUP_URL', FACEBOOK_PIWIGO_GROUP_URL);
     211$template->assign('FACEBOOK_PIWIGO_APPLICATION_URL', FACEBOOK_PIWIGO_APPLICATION_URL);
     212$template->assign('FBP_OLD_VERSION', version_compare(PHPWG_VERSION, '2.2', '<'));
    202213
    203214//Apply tpl
Note: See TracChangeset for help on using the changeset viewer.