Version 3.4.5
This commit is contained in:
1 parent
fb6b5baabc
commit
e4478369d8
1360 files changed
+228921
-179445
No files matched your search
@@ -3,19 +3,19 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* IP.Board v3.4.5
|
||||
* Skin Caching Functions
|
||||
* Last Updated: $Date: 2012-06-22 07:55:48 -0400 (Fri, 22 Jun 2012) $
|
||||
* Last Updated: $Date: 2013-05-20 16:38:23 -0400 (Mon, 20 May 2013) $
|
||||
* </pre>
|
||||
*
|
||||
* Owner: Matt
|
||||
* @author $Author: ips_terabyte $
|
||||
* @author $Author: bfarber $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 9th July 2008
|
||||
* @version $Revision: 10969 $
|
||||
* @version $Revision: 12261 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -573,7 +573,7 @@ EOF;
|
||||
continue;
|
||||
}
|
||||
|
||||
$_path = DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/style_css/css_' . $_setID;
|
||||
$_path = IPS_PUBLIC_PATH . 'style_css/css_' . $_setID;
|
||||
|
||||
if ( is_dir( $_path ) )
|
||||
{
|
||||
@@ -748,7 +748,7 @@ EOF;
|
||||
* @return boolean
|
||||
*/
|
||||
public function rebuildCSSCache( $setID, $forceRebuild=FALSE )
|
||||
{
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
@@ -878,7 +878,7 @@ EOF;
|
||||
|
||||
/* Recache skin sets */
|
||||
$this->rebuildSkinSetsCache();
|
||||
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -943,9 +943,9 @@ EOF;
|
||||
|
||||
$replacements = array();
|
||||
include( $dir . '/_replacements.inc' );/*noLibHook*/
|
||||
|
||||
|
||||
if ( !is_array($replacements) || !count($replacements) )
|
||||
{
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -968,7 +968,7 @@ EOF;
|
||||
foreach( $replacements as $k => $v )
|
||||
{
|
||||
$messages[] = $this->lang->words['basicimportedpre'] . $k;
|
||||
|
||||
|
||||
$this->DB->insert( 'skin_replacements', array( 'replacement_key' => $k,
|
||||
'replacement_content' => $v,
|
||||
'replacement_master_key' => $set_key,
|
||||
@@ -995,7 +995,7 @@ EOF;
|
||||
{
|
||||
/* Set directory */
|
||||
$setId = is_numeric( $setId ) ? intval( $setId ) : trim( $setId );
|
||||
$cssDir = DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/style_css/' . $this->remapData['css'][ $setId ];
|
||||
$cssDir = IPS_PUBLIC_PATH . 'style_css/' . $this->remapData['css'][ $setId ];
|
||||
$messages = array();
|
||||
$css = array();
|
||||
|
||||
@@ -1450,8 +1450,7 @@ EOF;
|
||||
* @return boolean
|
||||
*/
|
||||
public function __rebuildSkinSetsCache()
|
||||
{
|
||||
|
||||
{
|
||||
//-----------------------------------------
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
@@ -1478,6 +1477,18 @@ EOF;
|
||||
|
||||
$this->cache->setCache( 'skinsets', $cache, array( 'array' => 1, 'donow' => 1 ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// Set that it's done
|
||||
//-----------------------------------------
|
||||
|
||||
$this->DB->update( 'skin_collections', array( 'set_updated' => time() ) );
|
||||
|
||||
//-----------------------------------------
|
||||
// Flush IPS CDN
|
||||
//-----------------------------------------
|
||||
|
||||
$this->flushipscdn();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -1538,7 +1549,7 @@ EOF;
|
||||
{
|
||||
/* Set directory */
|
||||
$css = array();
|
||||
$cssDir = DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/style_css/' . $dir;
|
||||
$cssDir = IPS_PUBLIC_PATH . 'style_css/' . $dir;
|
||||
$messages = array();
|
||||
|
||||
if ( ! is_dir( $cssDir ) )
|
||||
@@ -1622,7 +1633,7 @@ EOF;
|
||||
|
||||
$setData = $this->fetchSkinData( $id );
|
||||
|
||||
$path = DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/style_css/' . $dir;
|
||||
$path = IPS_PUBLIC_PATH . 'style_css/' . $dir;
|
||||
$msgs = array();
|
||||
|
||||
if ( ! isset( $setData['set_id'] ) )
|
||||
@@ -1956,34 +1967,34 @@ EOF;
|
||||
{
|
||||
$good_to_go = 1;
|
||||
|
||||
if ( is_writeable( DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/style_css/' ) === TRUE )
|
||||
if ( is_writeable( IPS_PUBLIC_PATH . 'style_css/' ) === TRUE )
|
||||
{
|
||||
$good_to_go = 1;
|
||||
|
||||
if ( ! is_dir( DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/style_css/css_' . $setID ) )
|
||||
if ( ! is_dir( IPS_PUBLIC_PATH . 'style_css/css_' . $setID ) )
|
||||
{
|
||||
if ( ! @ mkdir( DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/style_css/css_' . $setID, IPS_FOLDER_PERMISSION ) )
|
||||
if ( ! @ mkdir( IPS_PUBLIC_PATH . 'style_css/css_' . $setID, IPS_FOLDER_PERMISSION ) )
|
||||
{
|
||||
$this->_addErrorMessage( sprintf( $this->lang->words['couldnotcreatecssdir'], $setID ) );
|
||||
return $this->_errorMsgs;
|
||||
}
|
||||
else
|
||||
{
|
||||
@file_put_contents( DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/style_css/css_' . $setID . '/index.html', '' );
|
||||
@chmod( DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/style_css/css_'.$setID, IPS_FOLDER_PERMISSION );
|
||||
@file_put_contents( IPS_PUBLIC_PATH . 'style_css/css_' . $setID . '/index.html', '' );
|
||||
@chmod( IPS_PUBLIC_PATH . 'style_css/css_'.$setID, IPS_FOLDER_PERMISSION );
|
||||
$good_to_go = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( is_writable( DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/style_css/css_' . $setID ) !== TRUE )
|
||||
if ( is_writable( IPS_PUBLIC_PATH . 'style_css/css_' . $setID ) !== TRUE )
|
||||
{
|
||||
$this->_addErrorMessage( sprintf( $this->lang->words['cssdirnotwritaaaable'], $setID ) );
|
||||
$good_to_go = 0;
|
||||
}
|
||||
else if ( is_file( DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/style_css/css_'.$setID.'/'.$css_group.'.css' ) )
|
||||
else if ( is_file( IPS_PUBLIC_PATH . 'style_css/css_'.$setID.'/'.$css_group.'.css' ) )
|
||||
{
|
||||
if ( is_writable( DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/style_css/css_'.$setID.'/'.$css_group.'.css' ) !== TRUE )
|
||||
if ( is_writable( IPS_PUBLIC_PATH . 'style_css/css_'.$setID.'/'.$css_group.'.css' ) !== TRUE )
|
||||
{
|
||||
$this->_addErrorMessage( sprintf( $this->lang->words['cssfilenotwriteable'], $setID, $css_group ) );
|
||||
$good_to_go = 0;
|
||||
@@ -2017,11 +2028,11 @@ EOF;
|
||||
|
||||
if ( $good_to_go )
|
||||
{
|
||||
if ( $FH = @fopen( DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/style_css/css_'.$setID.'/'.$css_group.'.css', 'w' ) )
|
||||
if ( $FH = @fopen( IPS_PUBLIC_PATH . 'style_css/css_'.$setID.'/'.$css_group.'.css', 'w' ) )
|
||||
{
|
||||
fwrite( $FH, $css_content, strlen($css_content) );
|
||||
fclose( $FH );
|
||||
@chmod( DOC_IPS_ROOT_PATH . PUBLIC_DIRECTORY . '/style_css/css_'.$setID.'/'.$css_group.'.css', IPS_FILE_PERMISSION );
|
||||
@chmod( IPS_PUBLIC_PATH . 'style_css/css_'.$setID.'/'.$css_group.'.css', IPS_FILE_PERMISSION );
|
||||
|
||||
$this->_addMessage( $this->lang->words['basicwrittenpre']. "skin_cache/css_{$setID}/{$css_group}.css" );
|
||||
}
|
||||
|
||||
@@ -3,19 +3,19 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* IP.Board v3.4.5
|
||||
* Skin Functions
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* Last Updated: $Date: 2012-11-30 10:02:12 -0500 (Fri, 30 Nov 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* Owner: Matt
|
||||
* @author $Author: bfarber $
|
||||
* @author $Author: mmecham $
|
||||
* @copyright (c) 2001 - 2009 Invision Power Services, Inc.
|
||||
* @license http://www.invisionpower.com/company/standards.php#license
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 9th March 2005 11:03
|
||||
* @version $Revision: 10914 $
|
||||
* @version $Revision: 11668 $
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* IP.Board v3.4.5
|
||||
* Skin Functions
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* Last Updated: $Date: 2013-05-07 22:02:49 -0400 (Tue, 07 May 2013) $
|
||||
* </pre>
|
||||
*
|
||||
* Owner: Matt
|
||||
@@ -15,7 +15,7 @@
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 9th March 2005 11:03
|
||||
* @version $Revision: 10914 $
|
||||
* @version $Revision: 12236 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -222,7 +222,7 @@ class skinFunctions
|
||||
else
|
||||
{
|
||||
$REMAP = array();
|
||||
require( DOC_IPS_ROOT_PATH . 'cache/skin_cache/masterMap.php' );/*noLibHook*/
|
||||
require( IPS_CACHE_PATH . 'cache/skin_cache/masterMap.php' );/*noLibHook*/
|
||||
|
||||
if ( is_array($REMAP) && count($REMAP) )
|
||||
{
|
||||
@@ -1541,6 +1541,9 @@ class skinFunctions
|
||||
//-----------------------------------------
|
||||
|
||||
$this->rebuildCSS( $setID );
|
||||
|
||||
/* Flush CDN */
|
||||
$this->flushipscdn();
|
||||
|
||||
//-----------------------------------------
|
||||
// Remove dead-uns?
|
||||
@@ -1643,6 +1646,9 @@ class skinFunctions
|
||||
|
||||
$this->rebuildCSS( $setID );
|
||||
|
||||
/* Flush CDN */
|
||||
$this->flushipscdn();
|
||||
|
||||
//-----------------------------------------
|
||||
// Grab the next template bit inline...
|
||||
//-----------------------------------------
|
||||
@@ -2263,7 +2269,7 @@ class skinFunctions
|
||||
//-----------------------------------------
|
||||
|
||||
$this->rebuildPHPTemplates( $setID, $template['template_group'] );
|
||||
|
||||
|
||||
//-----------------------------------------
|
||||
// Return
|
||||
//-----------------------------------------
|
||||
@@ -2739,6 +2745,9 @@ class skinFunctions
|
||||
$this->rebuildPHPTemplates( $setId );
|
||||
}
|
||||
|
||||
/* Flush CDN */
|
||||
$this->flushipscdn();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -2981,4 +2990,18 @@ class skinFunctions
|
||||
$this->DB->update( 'skin_collections', array( 'set_locked_uagent' => serialize( $old ) ), "set_key='mobile'" );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Flush IPS CDN Cache
|
||||
*/
|
||||
public function flushipscdn()
|
||||
{
|
||||
if ( ipsRegistry::$settings['ips_cdn'] )
|
||||
{
|
||||
require_once IPS_KERNEL_PATH . 'classFileManagement.php';
|
||||
$cfm = new classFileManagement();
|
||||
$cfm->timeout = 1;
|
||||
$cfm->getFileContents( "http://license.invisionpower.com/?a=cdnflush&key=" . ipsRegistry::$settings['ipb_reg_number'] . "&version=" . IPB_LONG_VERSION );
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* IP.Board v3.4.5
|
||||
* Skin Functions
|
||||
* Last Updated: $Date: 2011-05-05 12:03:47 +0100 (Thu, 05 May 2011) $
|
||||
* </pre>
|
||||
@@ -109,277 +109,7 @@ class skinGenerator extends skinCaching
|
||||
*/
|
||||
public function buildLocalJsonCache()
|
||||
{
|
||||
/* Now fetch JSON data from the server and write it */
|
||||
require_once( IPS_KERNEL_PATH . 'classFileManagement.php' );/*noLibHook*/
|
||||
|
||||
$json = <<<_D_a_rk_
|
||||
var IPS_SKIN_GEN_DATA = {
|
||||
"skinGroups": {
|
||||
"app_calendar": ["App: Calendar", ["app_calendar_td_selected", "app_calendar_td_hover", "app_calendar_td_blank", "app_calendar_td_today"]],
|
||||
"app_gallery": ["App: Gallery", ["albumDetailTable_td"]],
|
||||
"global": ["Global Styles", ["body", "a", "content", "desc", "desclighter"]],
|
||||
"tables": ["Table Content", ["row1", "row2", "unread", "unreadalt", "tableheader", "tableheader_a", "ipb_table"]],
|
||||
"other": ["Other Styles", ["ipsbox", "Bar Header", "postblock", "NoMessages", "fieldsetSubmit", "general_box", "general_box_h3", "ipsboxcontainer", "maintitle", "sideMenuActive", "ipsVerticalTabbed_tabs_li", "ipsVerticalTabbed_tabs_li_a", "ipsVerticalTabbed_tabs_li_a_hover", "ipsVerticalTabbed_tabs_li_active", "ipsfilterbar_item", "ipsfilterbar_active"]],
|
||||
"buttons": ["Button Styles", ["but_submit", "but_submit_alt", "but_topic", "but_secondary"]],
|
||||
"header": ["Header Elements", ["registerLink", "header", "primarynav", "primarynav_inactive", "primarynav_active", "searchbutton"]],
|
||||
"pagination": ["Pagination", ["paginationBackForward", "paginationBackForwardHover", "paginationBackActive"]],
|
||||
"sidebar": ["Sidebar", ["ipsSideBlock", "ipsSideBlock_h3"]],
|
||||
"profiles": ["Profile Page", ["statusupdate"]],
|
||||
"app_blog": ["App: Blog", ["entry_header"]]
|
||||
},
|
||||
"colorizeGroups": {
|
||||
"base": ["app_calendar_td_selected", "app_calendar_td_hover", "app_calendar_td_blank", "app_calendar_td_today", "albumDetailTable_td", "body", "content", "row1", "row2", "unread", "unreadalt", "ipsbox", "Bar Header", "tableheader", "tableheader_a", "postblock", "NoMessages", "but_submit_alt", "fieldsetSubmit", "registerLink", "header", "primarynav", "primarynav_inactive", "primarynav_active", "general_box", "general_box_h3", "ipsboxcontainer", "maintitle", "desc", "desclighter", "ipb_table", "ipsVerticalTabbed_tabs_li", "ipsVerticalTabbed_tabs_li_a", "ipsVerticalTabbed_tabs_li_a_hover", "ipsVerticalTabbed_tabs_li_active", "ipsfilterbar_item", "ipsfilterbar_active", "but_secondary", "paginationBackForward", "ipsSideBlock", "ipsSideBlock_h3", "statusupdate", "entry_header"],
|
||||
"text": ["a"],
|
||||
"secondary": ["but_submit", "searchbutton", "but_topic"],
|
||||
"tertiary": ["sideMenuActive", "paginationBackForwardHover", "paginationBackActive"]
|
||||
},
|
||||
"classes": {
|
||||
"app_calendar_td_selected": ["#calendar_table td.selected", "Calendar Selected Cell", "Used for selected cells in the monthly calendar",
|
||||
{
|
||||
"background": ["#E2E9F0", ""],
|
||||
"shadow": ["#E2E9F0", ""]
|
||||
}],
|
||||
"app_calendar_td_hover": ["#calendar_table td.normal:hover", "Calendar Cell Hover", "Used for hovering over cells in the monthly calendar",
|
||||
{
|
||||
"background": ["#EDF1F5", ""]
|
||||
}],
|
||||
"app_calendar_td_blank": ["#calendar_table td.blank", "Calendar Blank Cell", "Used for blank cells in the monthly calendar",
|
||||
{
|
||||
"background": ["#dbe2e8", ""],
|
||||
"border": ["#dbe2e8", ""]
|
||||
}],
|
||||
"app_calendar_td_today": ["#calendar_table td.today", "Calendar Today Cell", "Used for todays cell in the monthly calendar",
|
||||
{
|
||||
"background": ["#f1f6ec", ""],
|
||||
"border": ["#6f8f52", ""],
|
||||
"color": ["#6f8f52", ""]
|
||||
}],
|
||||
"albumDetailTable_td": ["#albumDetailTable td", "Album Detail Table", "Thick border for detail table",
|
||||
{
|
||||
"border": ["#ebf0f3", ""]
|
||||
}],
|
||||
"body": ["html, body", "Body", "The page background",
|
||||
{
|
||||
"background": ["#d8dde8", ""],
|
||||
"color": ["#5a5a5a", ""]
|
||||
}],
|
||||
"a": ["a", "Links", "Basic links",
|
||||
{
|
||||
"color": ["#225985", ""]
|
||||
}],
|
||||
"content": ["#content", "Main Content Area", "The area that contains all page content",
|
||||
{
|
||||
"background": ["#fff", ""]
|
||||
}],
|
||||
"row1": [".row1, .post_block.row1", "Table Row 1", "Generic table row color 1",
|
||||
{
|
||||
"background": ["#fff", ""]
|
||||
}],
|
||||
"row2": [".row2, .post_block.row2", "Table Row 2", "Generic table row color 2",
|
||||
{
|
||||
"background": ["#f1f6f9", ""]
|
||||
}],
|
||||
"unread": [".unread", "Unread Row", "Unread row colour",
|
||||
{
|
||||
"background": ["#f7fbfc", ""]
|
||||
}],
|
||||
"unreadalt": [".unread .altrow, .unread.altrow", "Unread Row (Alt)", "Darker version of unread row, used to highlight certain table columns",
|
||||
{
|
||||
"background": ["#E2E9F0", ""]
|
||||
}],
|
||||
"ipsbox": [".ipsBox", "Content Box", "Used to wrap most content sections",
|
||||
{
|
||||
"background": ["#ebf0f3", ""]
|
||||
}],
|
||||
"Bar Header": [".bar", "Bar Header", "Used in post forms, etc",
|
||||
{
|
||||
"background": ["#eff4f7", ""]
|
||||
}],
|
||||
"tableheader": [".header", "Table Header", "Used for table headings",
|
||||
{
|
||||
"background": ["#b6c7db", ""],
|
||||
"color": ["#1d3652", ""]
|
||||
}],
|
||||
"tableheader_a": ["body .ipb_table .header a,\tbody .topic_options a", "Table Header Link", "Used for links in table headings",
|
||||
{
|
||||
"color": ["#1d3652", ""]
|
||||
}],
|
||||
"postblock": [".post_block", "Post Block", "An individual post wrapper",
|
||||
{
|
||||
"background": ["#fff", ""],
|
||||
"border": ["#D6E2EB", ""]
|
||||
}],
|
||||
"NoMessages": [".no_messages", "No Messages Box", "Box for 'no data' type messages",
|
||||
{
|
||||
"background": ["#f6f8fa", ""],
|
||||
"border": false
|
||||
}],
|
||||
"but_submit": [".input_submit", "Submit Button", "The primary button that submits forms",
|
||||
{
|
||||
"background": ["#212121", ""],
|
||||
"border": ["#5c5c5c", ""],
|
||||
"color": ["#fff", ""],
|
||||
"boxshadow": ["#5c5c5c", " inset 0 1px 0 0 "]
|
||||
}],
|
||||
"but_submit_alt": [".input_submit.alt", "Alternate Submit Button", "Secondary buttons for forms",
|
||||
{
|
||||
"background": ["#e2e9f0", ""],
|
||||
"border": ["#dae2ea", ""],
|
||||
"color": ["#464646", ""],
|
||||
"boxshadow": ["#eff3f8", " inset 0 1px 0 0 "]
|
||||
}],
|
||||
"fieldsetSubmit": ["body#ipboard_body fieldset.submit,body#ipboard_body p.submit", "Submit\/Button Strip", "Used in forms where the submit buttons are located",
|
||||
{
|
||||
"background": ["#d1ddea", ""]
|
||||
}],
|
||||
"registerLink": ["#user_navigation #register_link", "Create Account Link", "The create accoun tbutton",
|
||||
{
|
||||
"background": ["#7ba60d", ""],
|
||||
"border": ["#7ba60d", ""],
|
||||
"color": ["#fff", ""],
|
||||
"boxshadow": false
|
||||
}],
|
||||
"header": ["#branding", "Header Bar", "Bar containing logo, global search etc.",
|
||||
{
|
||||
"background": ["#0f3854", ""],
|
||||
"border": ["#1b3759", ""]
|
||||
}],
|
||||
"primarynav": ["#primary_nav", "Primary Nav Bar", "Primary navigation bar (with app tabs)",
|
||||
{
|
||||
"background": ["#204066", ""]
|
||||
}],
|
||||
"primarynav_inactive": ["#primary_nav a", "Inactive App Tab", "An inactive tab in the Primary Nav bar",
|
||||
{
|
||||
"background": ["#1c3b5f", ""],
|
||||
"color": ["#c5d5e2", ""]
|
||||
}],
|
||||
"primarynav_active": ["#primary_nav .active a", "Active App Tab", "An active tab in the Primary Nav bar",
|
||||
{
|
||||
"background": ["#fff", ""],
|
||||
"color": ["#0b5794", ""]
|
||||
}],
|
||||
"searchbutton": ["#search .submit_input", "Search Button", "The submit button for the global search bar",
|
||||
{
|
||||
"background": ["#7ba60d", ""],
|
||||
"border": ["#7ba60d", ""]
|
||||
}],
|
||||
"general_box": [".general_box", "General Box Container", "Used to contain contents of general boxes such as used on profile page",
|
||||
{
|
||||
"background": ["#fcfcfc", ""]
|
||||
}],
|
||||
"general_box_h3": [".general_box h3", "General Box Container H3", "Used to contain contents of general boxes title",
|
||||
{
|
||||
"background": ["#DBE2EC", ""],
|
||||
"color": ["#204066", ""]
|
||||
}],
|
||||
"ipsboxcontainer": [".ipsBox_container", "Content Box Container", "Used to contain contents of Content Box",
|
||||
{
|
||||
"background": ["#fff", ""],
|
||||
"border": ["#dbe4ef", ""]
|
||||
}],
|
||||
"maintitle": [".maintitle", "Main Title", "Bar used for block titles, filter bars etc.",
|
||||
{
|
||||
"background": ["#2c5687", ""],
|
||||
"color": ["#fff", ""],
|
||||
"border": ["#528cbc", ""],
|
||||
"boxshadow": ["#528cbc", " inset 0px 1px 0 "]
|
||||
}],
|
||||
"desc": [".desc, .desc.blend_links a, p.posted_info", "Description text", "Used for small text throughout",
|
||||
{
|
||||
"color": ["#777777", ""]
|
||||
}],
|
||||
"desclighter": [".desc.lighter, .desc.lighter.blend_links a", "Description text (lighter)", "Used for small lighter text throughout",
|
||||
{
|
||||
"color": ["#a4a4a4", ""]
|
||||
}],
|
||||
"ipb_table": ["table.ipb_table td", "Tabular Data Rows", "Used where there is tabular data",
|
||||
{
|
||||
"border": ["#f3f3f3", ""]
|
||||
}],
|
||||
"sideMenuActive": [".ipsSideMenu ul li.active a", "Side Menu Active", "A selected entry in a side menu",
|
||||
{
|
||||
"background": ["#af286d", ""],
|
||||
"color": ["#fff", ""]
|
||||
}],
|
||||
"ipsVerticalTabbed_tabs_li": [".ipsVerticalTabbed_tabs li", "Vertical Tab", "Used on profile page and other UserCP when veritcal tabs are needed",
|
||||
{
|
||||
"background": ["#f6f8fb", ""],
|
||||
"color": ["#808080", ""],
|
||||
"border": ["#DBE4EF", ""]
|
||||
}],
|
||||
"ipsVerticalTabbed_tabs_li_a": [".ipsVerticalTabbed_tabs li a", "Vertical Tab Link", "Link on a vertical tab",
|
||||
{
|
||||
"color": ["#8d8d8d", ""]
|
||||
}],
|
||||
"ipsVerticalTabbed_tabs_li_a_hover": [".ipsVerticalTabbed_tabs li a:hover", "Vertical Tab Link Hover", "Hover over a vertical tab",
|
||||
{
|
||||
"background": ["#eaeff5", ""],
|
||||
"color": ["#808080", ""]
|
||||
}],
|
||||
"ipsVerticalTabbed_tabs_li_active": [".ipsVerticalTabbed_tabs li.active a", "Vertical Tab Active", "An active tab",
|
||||
{
|
||||
"background": ["#fff", ""],
|
||||
"color": ["#353535", ""],
|
||||
"border": ["#fff", ""]
|
||||
}],
|
||||
"ipsfilterbar_item": [".ipsFilterbar li a", "Filter Bar Item", "Used for tabs in a filter bar",
|
||||
{
|
||||
"color": ["#fff", ""]
|
||||
}],
|
||||
"ipsfilterbar_active": [".ipsFilterbar li.active a", "Filter Bar Active Item", "Used for active tabs in a filter bar",
|
||||
{
|
||||
"background": ["#244156", ""],
|
||||
"color": ["#fff", ""]
|
||||
}],
|
||||
"but_topic": [".topic_buttons li.important a, .topic_buttons li.important span, .ipsButton .important,.topic_buttons li a, .topic_buttons li span, .ipsButton", "Primary Button", "Button used for main actions, such as New Topic",
|
||||
{
|
||||
"background": ["#212121", ""],
|
||||
"border": ["#212121", ""],
|
||||
"color": ["#fff", ""],
|
||||
"boxshadow": ["#5c5c5c", " inset 0 1px 0 0 "]
|
||||
}],
|
||||
"but_secondary": [".ipsButton_secondary", "Secondary Button", "Secondary button, used normally for Follow actions",
|
||||
{
|
||||
"background": ["#f6f6f6", ""],
|
||||
"border": ["#dbdbdb", ""],
|
||||
"color": ["#616161", ""]
|
||||
}],
|
||||
"paginationBackForward": [".pagination .back a,.pagination .forward a", "Pagination Next\/Foward", "Next, back, forward buttons",
|
||||
{
|
||||
"background": ["#eaeaea", ""],
|
||||
"color": ["#5a5a5a", ""]
|
||||
}],
|
||||
"paginationBackForwardHover": [".pagination .back a:hover,\t.pagination .forward a:hover", "Pagination Next\/Foward Hover", "Next, back, forward buttons when hovered",
|
||||
{
|
||||
"background": ["#af286d", ""],
|
||||
"color": ["#fff", ""]
|
||||
}],
|
||||
"paginationBackActive": [".pagination .pages li.active", "Pagination Page Active", "Selected page",
|
||||
{
|
||||
"background": ["#7BA60D", ""],
|
||||
"color": ["#fff", ""]
|
||||
}],
|
||||
"ipsSideBlock": [".ipsSideBlock", "Sidebar Block", "Sidebar block background color",
|
||||
{
|
||||
"background": ["#F7FBFC", ""]
|
||||
}],
|
||||
"ipsSideBlock_h3": [".ipsSideBlock h3", "Sidebar Block Header", "Sidebar block Header",
|
||||
{
|
||||
"background": ["#DBE2EC", ""],
|
||||
"color": ["#204066", ""]
|
||||
}],
|
||||
"statusupdate": [".status_update", "Status Update Block", "Status update background",
|
||||
{
|
||||
"background": ["#71a5c9", ""],
|
||||
"color": ["#fff", ""]
|
||||
}],
|
||||
"entry_header": [".entry.featured .entry_header, .entry.featured .entry_footer", "Blog Entry Header\/Footer\/Featured", "Header for blog entry",
|
||||
{
|
||||
"background": ["#f5faf7", ""]
|
||||
}]
|
||||
}
|
||||
}
|
||||
_D_a_rk_;
|
||||
$json = darkLAE::getVisualSkinEditorJsonData();
|
||||
|
||||
if ( $json )
|
||||
{
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
/**
|
||||
* <pre>
|
||||
* Invision Power Services
|
||||
* IP.Board v3.3.4
|
||||
* IP.Board v3.4.5
|
||||
* Skin Functions
|
||||
* Last Updated: $Date: 2012-06-12 10:14:49 -0400 (Tue, 12 Jun 2012) $
|
||||
* Last Updated: $Date: 2012-11-27 20:31:18 -0500 (Tue, 27 Nov 2012) $
|
||||
* </pre>
|
||||
*
|
||||
* Owner: Matt
|
||||
@@ -15,7 +15,7 @@
|
||||
* @package IP.Board
|
||||
* @link http://www.invisionpower.com
|
||||
* @since 9th March 2005 11:03
|
||||
* @version $Revision: 10914 $
|
||||
* @version $Revision: 11650 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -595,7 +595,7 @@ class skinImportExport extends skinCaching
|
||||
$new_items['templates'][] = $existing_id;
|
||||
$this->DB->update( 'skin_templates', array( 'template_content' => $template['template_content'],
|
||||
'template_data' => $template['template_data'],
|
||||
'template_updated' => $template['template_updated'],
|
||||
'template_updated' => ( $template['template_updated'] ) ? $template['template_updated'] : IPS_UNIX_TIME_NOW,
|
||||
'template_removable' => 1,
|
||||
'template_user_edited' => 1,
|
||||
'template_user_added' => $isAdded,
|
||||
@@ -608,7 +608,7 @@ class skinImportExport extends skinCaching
|
||||
'template_content' => $template['template_content'],
|
||||
'template_name' => $template['template_name'],
|
||||
'template_data' => $template['template_data'],
|
||||
'template_updated' => $template['template_updated'],
|
||||
'template_updated' => ( $template['template_updated'] ) ? $template['template_updated'] : IPS_UNIX_TIME_NOW,
|
||||
'template_removable' => 1,
|
||||
'template_user_edited' => 1,
|
||||
'template_user_added' => $isAdded,
|
||||
@@ -1098,7 +1098,7 @@ class skinImportExport extends skinCaching
|
||||
// INIT
|
||||
//-----------------------------------------
|
||||
|
||||
$classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/useragents/userAgentFunctions.php', 'userAgentFunctions' );
|
||||
$classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/useragents/userAgentFunctions.php', 'userAgentFunctions' );
|
||||
$userAgentFunctions = new $classToLoad( $this->registry );
|
||||
|
||||
$skins = array();
|
||||
@@ -1569,6 +1569,7 @@ class skinImportExport extends skinCaching
|
||||
unset( $templateData['template_id'] );
|
||||
unset( $templateData['template_set_id'] );
|
||||
unset( $templateData['template_added_to'] );
|
||||
unset( $templateData['template_updated'] );
|
||||
|
||||
$xml->addElementAsRecord( 'templategroup', 'template', $templateData );
|
||||
$added++;
|
||||
|
||||
Reference in new issue
Block a user