mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Start of LAN rework on Featurebox plugin. Added Global language file. Work in Progress to be continued after development has stabilized on thisp plugin.
This commit is contained in:
parent
580b933b6b
commit
9c4b1b0071
@ -8,11 +8,8 @@
|
||||
*
|
||||
* Featurebox administration
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/featurebox/admin_config.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*
|
||||
* $URL$
|
||||
* $Id$
|
||||
*/
|
||||
require_once("../../class2.php");
|
||||
if (!getperms("P") || !plugInstalled('featurebox'))
|
||||
@ -177,10 +174,10 @@ class fb_main_ui extends e_admin_ui
|
||||
'fb_id' => array('title'=> LAN_ID, 'type' => 'number', 'data'=> 'int', 'width' =>'5%', 'forced'=> TRUE),
|
||||
'fb_category' => array('title'=> LAN_CATEGORY, 'type' => 'dropdown', 'data'=> 'int', 'width' => '5%', 'filter'=>TRUE, 'batch'=>TRUE),
|
||||
'fb_title' => array('title'=> LAN_TITLE, 'type' => 'text', 'width' => 'auto', 'thclass' => 'left'),
|
||||
'fb_text' => array('title'=> "Message Text", 'type' => 'bbarea', 'width' => '30%', 'readParms' => 'expand=...&truncate=50&bb=1','writeParms'=>'template=admin'),
|
||||
'fb_text' => array('title'=> FBLAN_08, 'type' => 'bbarea', 'width' => '30%', 'readParms' => 'expand=...&truncate=50&bb=1','writeParms'=>'template=admin'),
|
||||
//DEPRECATED 'fb_mode' => array('title'=> FBLAN_12, 'type' => 'dropdown', 'data'=> 'int', 'width' => '5%', 'filter'=>TRUE, 'batch'=>TRUE),
|
||||
//DEPRECATED 'fb_rendertype' => array('title'=> FBLAN_22, 'type' => 'dropdown', 'data'=> 'int', 'width' => 'auto', 'noedit' => TRUE),
|
||||
'fb_template' => array('title'=> FBLAN_25, 'type' => 'layouts', 'data'=> 'str', 'width' => 'auto', 'writeParms' => 'plugin=featurebox', 'filter' => true, 'batch' => true), // Photo
|
||||
'fb_template' => array('title'=> LAN_TEMPLATE, 'type' => 'layouts', 'data'=> 'str', 'width' => 'auto', 'writeParms' => 'plugin=featurebox', 'filter' => true, 'batch' => true), // Photo
|
||||
'fb_image' => array('title'=> "Image", 'type' => 'image', 'width' => 'auto', 'readParms'=>'thumb=60&thumb_urlraw=0&thumb_aw=60'),
|
||||
'fb_imageurl' => array('title'=> "Image Link", 'type' => 'url', 'width' => 'auto'),
|
||||
'fb_class' => array('title'=> LAN_VISIBILITY, 'type' => 'userclass', 'data' => 'int', 'width' => 'auto', 'filter' => true, 'batch' => true), // User id
|
||||
|
@ -6,12 +6,6 @@
|
||||
* Released under the terms and conditions of the
|
||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||
*
|
||||
*
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/featurebox/featurebox.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
@ -8,11 +8,8 @@
|
||||
*
|
||||
* Featurebox Category Tree model
|
||||
*
|
||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/featurebox/includes/tree.php,v $
|
||||
* $Revision$
|
||||
* $Date$
|
||||
* $Author$
|
||||
*
|
||||
* $URL$
|
||||
* $Id$
|
||||
*/
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
@ -3,36 +3,42 @@
|
||||
* Copyright (c) e107 Inc 2009 - e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||
* $Id$
|
||||
*
|
||||
* Featurebox back-end laguage defines
|
||||
* TODO - cleanup constants not in use
|
||||
* Featurebox back-end language defines
|
||||
*/
|
||||
|
||||
define("FBLAN_01", "Feature Box");
|
||||
define("FBLAN_02", "Displays an animated area on the top of your page with news-items and other content you would like to feature.");
|
||||
define("FBLAN_03", "Configure feature box"); //FIXME LAN - use generic.
|
||||
// define("FBLAN_04", "Feature Box plugin has been successfully installed. To add messages and configure, return to the main admin page and click on the feature box icon in the plugin section.");
|
||||
define("FBLAN_05", "No feature box messages defined yet");
|
||||
define("FBLAN_06", "Existing Feature Box Messages"); //FIXME LAN - use generic.
|
||||
define("FBLAN_07", "Title / Caption"); //FIXME LAN - use generic.
|
||||
/*
|
||||
TODO LAN - cleanup constants not in use
|
||||
Work in progress Moc - commented out are candidate for removal
|
||||
LAN file needs working from scratch after development is stabilized
|
||||
*/
|
||||
|
||||
|
||||
//define("FBLAN_01", "Feature Box");
|
||||
//define("FBLAN_02", "Displays an animated area on the top of your page with news-items and other content you would like to feature.");
|
||||
//define("FBLAN_03", "Configure feature box"); //FIXME LAN - use generic.
|
||||
//define("FBLAN_04", "Feature Box plugin has been successfully installed. To add messages and configure, return to the main admin page and click on the feature box icon in the plugin section.");
|
||||
//define("FBLAN_05", "No feature box messages defined yet");
|
||||
//define("FBLAN_06", "Existing Feature Box Messages"); //FIXME LAN - use generic.
|
||||
//define("FBLAN_07", "Title / Caption"); //FIXME LAN - use generic.
|
||||
define("FBLAN_08", "Message text");
|
||||
define("FBLAN_09", "Visibility of message");
|
||||
define("FBLAN_10", "Create Feature Box Message"); //FIXME LAN - use generic.
|
||||
define("FBLAN_11", "Update Feature Box Message"); //FIXME LAN - use generic.
|
||||
//define("FBLAN_09", "Visibility of message");
|
||||
//define("FBLAN_10", "Create Feature Box Message"); //FIXME LAN - use generic.
|
||||
//define("FBLAN_11", "Update Feature Box Message"); //FIXME LAN - use generic.
|
||||
define("FBLAN_12", "Mode");
|
||||
define("FBLAN_13", "Randomly revolve messages");
|
||||
define("FBLAN_14", "Show this message only");
|
||||
define("FBLAN_15", "Message added to database."); //FIXME LAN - use generic.
|
||||
define("FBLAN_16", "Message updated in database."); //FIXME LAN - use generic.
|
||||
define("FBLAN_17", "Field(s) left blank");
|
||||
define("FBLAN_18", "Feature Box Message deleted"); //FIXME LAN - use generic.
|
||||
define("FBLAN_19", "Options"); //FIXME LAN - use generic.
|
||||
define("FBLAN_20", "Edit"); //FIXME LAN - use generic.
|
||||
define("FBLAN_21", "Delete"); //FIXME LAN - use generic.
|
||||
//define("FBLAN_15", "Message added to database."); //FIXME LAN - use generic.
|
||||
//define("FBLAN_16", "Message updated in database."); //FIXME LAN - use generic.
|
||||
//define("FBLAN_17", "Field(s) left blank");
|
||||
//define("FBLAN_18", "Feature Box Message deleted"); //FIXME LAN - use generic.
|
||||
//define("FBLAN_19", "Options"); //FIXME LAN - use generic.
|
||||
//define("FBLAN_20", "Edit"); //FIXME LAN - use generic.
|
||||
//define("FBLAN_21", "Delete"); //FIXME LAN - use generic.
|
||||
define("FBLAN_22", "Render type");
|
||||
define("FBLAN_23", "In theme box");
|
||||
define("FBLAN_24", "Plain");
|
||||
define("FBLAN_25", "Template"); //FIXME LAN - use generic.
|
||||
define("FBLAN_26", "you can use a different template for each message, add templates to e107_plugins/featurebox/templates/ folder");
|
||||
//define("FBLAN_25", "Template"); //FIXME LAN - use generic.
|
||||
//define("FBLAN_26", "you can use a different template for each message, add templates to e107_plugins/featurebox/templates/ folder");
|
||||
|
||||
|
||||
?>
|
@ -1,9 +1,13 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) e107 Inc 2009 - e107.org, Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
|
||||
* $Id$
|
||||
*
|
||||
* Featurebox global language defines
|
||||
*/
|
||||
|
||||
// Admin log messages
|
||||
define('LAN_AL_FBLAN_01', 'Featurebox created'); //FIXME LAN - use generic.
|
||||
define('LAN_AL_FBLAN_02', 'Featurebox updated'); //FIXME LAN - use generic.
|
||||
define('LAN_AL_FBLAN_03', 'Featurebox deleted'); //FIXME LAN - use generic.
|
||||
define("LAN_PLUGIN_FEATUREBOX_NAME", "Feature Box");
|
||||
define("LAN_PLUGIN_FEATUREBOX_DESCRIPTION", "Displays an animated area on the top of your page with news-items and other content you would like to feature.");
|
||||
|
||||
// Install/uninstall messages
|
||||
define('FBLAN_INSTALL_01', 'Adding Default category table data.');
|
||||
|
@ -1,21 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- $Id: plugin.xml,v 1.9 2009-12-08 17:21:31 secretr Exp $ -->
|
||||
<e107Plugin name="Featurebox" lan="FBLAN_01" version="1.0" date="2012-08-01" compatibility="2.0" installRequired="true">
|
||||
<e107Plugin name="Featurebox" lan="LAN_PLUGIN_FEATUREBOX_NAME" version="1.0" date="2012-08-01" compatibility="2.0" installRequired="true">
|
||||
<author name="e107 Inc." url="http://e107.org" />
|
||||
<description lan="FBLAN_02">Displays an animated area on the top of your page with news-items and other content you would like to feature.</description>
|
||||
<description lan="LAN_PLUGIN_FEATUREBOX_DESCRIPTION">Displays an animated area on the top of your page with news-items and other content you would like to feature.</description>
|
||||
<category>content</category>
|
||||
<adminLinks>
|
||||
<link url='admin_config.php' description='Configure feature box' icon='images/featurebox_32.png' iconSmall='images/featurebox_16.png' primary='true' >Configure feature box</link>
|
||||
<link url="admin_config.php" description="Manage Featurebox Items" icon="manage" >Manage Items</link>
|
||||
<link url="admin_config.php?mode=main&action=create" description="Add Featurebox item" icon="add" >Create Item</link>
|
||||
<link url="admin_config.php?mode=category&action=list" description="Manage Featurebox Categories" icon="manage" >Manage Categories</link>
|
||||
<link url="admin_config.php?mode=category&action=create" description="Add Featurebox Category" icon="add" >Create Category</link>
|
||||
<link url='admin_config.php' description='Configure feature box' icon='images/featurebox_32.png' iconSmall='images/featurebox_16.png' primary='true'>Configure feature box</link>
|
||||
<link url="admin_config.php" description="Manage Featurebox Items" icon="manage">Manage Items</link>
|
||||
<link url="admin_config.php?mode=main&action=create" description="Add Featurebox item" icon="add">Create Item</link>
|
||||
<link url="admin_config.php?mode=category&action=list" description="Manage Featurebox Categories" icon="manage">Manage Categories</link>
|
||||
<link url="admin_config.php?mode=category&action=create" description="Add Featurebox Category" icon="add">Create Category</link>
|
||||
</adminLinks>
|
||||
<copyright>Copyright e107 Inc e107.org, Licensed under GPL (http://www.gnu.org/licenses/gpl.txt)</copyright>
|
||||
<languageFiles>
|
||||
<file type='log' path='languages/--LAN--_admin_featurebox.php' />
|
||||
<file type='install' path='languages/--LAN--_admin_featurebox.php' />
|
||||
</languageFiles>
|
||||
<mainPrefs>
|
||||
<pref name="fb_active">1</pref>
|
||||
</mainPrefs>
|
||||
|
Loading…
x
Reference in New Issue
Block a user