Просмотр исходного кода

removing 100% from input.createBoxInput

Garrick van Buren 12 лет назад
Родитель
Сommit
121bfc869b
4 измененных файлов с 14 добавлено и 5 удалено
  1. 1 1
      assets/scripts/foreground.js
  2. 0 3
      assets/stylesheets/foreground.css
  3. 12 0
      foreground.php
  4. 1 1
      foreground.skin.php

+ 1 - 1
assets/scripts/foreground.js

@@ -3,7 +3,7 @@ jQuery(document).ready(function() {
     console.log(response.errors);
   });
 
-  jQuery('[id^=ca-nstab] a').addClass('icon-file').text(' ' + jQuery('[id^=ca-nstab]  a').text());
+  jQuery('[id^=ca-nstab] a').addClass('icon-file').text(' ' + jQuery('[id^=ca-nstab] a').text());
   jQuery('li#ca-talk a').addClass('icon-comments').text(' ' + jQuery('li#ca-talk a').text());
   jQuery('li#ca-edit a').addClass('icon-edit').text(' ' + jQuery('li#ca-edit a').text());
   jQuery('li#ca-form_edit a').addClass('icon-edit-sign').text(' ' + jQuery('li#ca-form_edit a').text());

+ 0 - 3
assets/stylesheets/foreground.css

@@ -296,9 +296,6 @@ button.ui-button-icon-only {
 
 select {width:auto;}
 
-input.createboxInput {
-  width: 100%;
-}
 
 input[type="checkbox"].createboxInput {
   width: auto;

+ 12 - 0
foreground.php

@@ -14,6 +14,7 @@ if( ! defined( 'MEDIAWIKI' ))
 	die("Wiki Wonders What You're Doing");
 }
 
+
 $wgExtensionCredits['skin'][] = array(
     'path'			 => __FILE__,
     'name'			 => 'Foreground',
@@ -55,3 +56,14 @@ $wgResourceModules['skins.foreground'] = array(
     'remoteBasePath' => &$GLOBALS['wgStylePath'],
     'localBasePath'  => &$GLOBALS['wgStyleDirectory']
 );
+
+
+function FoundationSidebar() {
+    global $wgUser, $wgParser;
+    $opt = ParserOptions::newFromUser($wgUser);
+    $title = Title::newFromText( 'Sidebar', NS_MEDIAWIKI );
+    $article = new Article($title);
+    $html = $wgParser->parse( $article->fetchContent(), $title, $opt, true, true )->getText();
+    print_r($html);
+}
+

+ 1 - 1
foreground.skin.php

@@ -25,6 +25,7 @@ class Skinforeground extends SkinTemplate {
 	}
 
 }
+
 class foregroundTemplate extends BaseTemplate {
 	public function execute() {
 		global $wgUser;
@@ -41,7 +42,6 @@ class foregroundTemplate extends BaseTemplate {
 						<section class="top-bar-section">
 		    		<ul class="left">
 		 						<li class="divider"></li>
-
 									<?php foreach ( $this->getSidebar() as $boxName => $box ) { ?>
 									<li class="has-dropdown active"  id='<?php echo Sanitizer::escapeId( $box['id'] ) ?>'<?php echo Linker::tooltip( $box['id'] ) ?>>
 											<a href="#"><?php echo htmlspecialchars( $box['header'] ); ?></a>