Version Description
- Added Colorizer options for changing widgets colours.
- Added option for changing logo image in admin bar with custom image.
- Fixed bug on add new post page: After clicking on buttons Add new image, Add new media pop-up window is blank.
- Added info bar for displaying news and information about plugin.
- Fixed few issues.
Download this release
Release Info
Developer | argonius |
Plugin | Absolutely Glamorous Custom Admin |
Version | 1.2.3 |
Comparing to | |
See all releases |
Code changes from version 1.2.2 to 1.2.3
- plugin.php +62 -11
- readme.txt +15 -1
- script/ag_script.js +69 -1
- style/ag_style.css +8 -3
plugin.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: AG Custom Admin
|
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/ag-custom-admin
|
5 |
Description: Hide or change items in admin panel. Customize buttons from admin menu. Colorize admin and login page with custom colors.
|
6 |
Author: Argonius
|
7 |
-
Version: 1.2.
|
8 |
Author URI: http://wordpress.argonius.com/ag-custom-admin
|
9 |
|
10 |
Copyright 2011. Argonius (email : info@argonius.com)
|
@@ -23,8 +23,6 @@ Author URI: http://wordpress.argonius.com/ag-custom-admin
|
|
23 |
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
24 |
*/
|
25 |
|
26 |
-
|
27 |
-
|
28 |
$agca = new AGCA();
|
29 |
|
30 |
class AGCA{
|
@@ -85,6 +83,7 @@ class AGCA{
|
|
85 |
register_setting( 'agca-options-group', 'agca_footer' );
|
86 |
register_setting( 'agca-options-group', 'agca_privacy_options' );
|
87 |
register_setting( 'agca-options-group', 'agca_header_logo' );
|
|
|
88 |
register_setting( 'agca-options-group', 'agca_site_heading' );
|
89 |
register_setting( 'agca-options-group', 'agca_custom_site_heading' );
|
90 |
register_setting( 'agca-options-group', 'agca_update_bar' );
|
@@ -139,6 +138,7 @@ class AGCA{
|
|
139 |
delete_option( 'agca_footer' );
|
140 |
delete_option( 'agca_privacy_options' );
|
141 |
delete_option( 'agca_header_logo' );
|
|
|
142 |
delete_option( 'agca_site_heading' );
|
143 |
delete_option( 'agca_custom_site_heading' );
|
144 |
delete_option( 'agca_update_bar' );
|
@@ -276,7 +276,7 @@ class AGCA{
|
|
276 |
}
|
277 |
?>
|
278 |
<script type="text/javascript">
|
279 |
-
document.write('<style type="text/css">html{
|
280 |
/* <![CDATA[ */
|
281 |
jQuery(document).ready(function() {
|
282 |
//get saved onfigurations
|
@@ -316,6 +316,23 @@ jQuery(document).ready(function() {
|
|
316 |
<?php if(get_option('agca_header_logo')==true){ ?>
|
317 |
jQuery("#wphead #header-logo").css("display","none");
|
318 |
<?php } ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
319 |
<?php if(get_option('agca_site_heading')==true){ ?>
|
320 |
jQuery("#wphead #site-heading").css("display","none");
|
321 |
<?php } ?>
|
@@ -347,7 +364,9 @@ jQuery(document).ready(function() {
|
|
347 |
<?php } ?>
|
348 |
<?php if(get_option('agca_howdy')!=""){ ?>
|
349 |
var howdyText = jQuery("#user_info").html();
|
350 |
-
|
|
|
|
|
351 |
<?php } ?>
|
352 |
<?php if(get_option('agca_logout')!=""){ ?>
|
353 |
jQuery("#user_info a:eq(1)").text("<?php echo get_option('agca_logout'); ?>");
|
@@ -575,8 +594,9 @@ jQuery(document).ready(function() {
|
|
575 |
</style>
|
576 |
<?php //unhide after everything is loaded ?>
|
577 |
<script type="text/javascript">
|
578 |
-
jQuery(document).ready(function() {
|
579 |
-
jQuery('html').
|
|
|
580 |
});
|
581 |
</script>
|
582 |
<?php
|
@@ -659,7 +679,7 @@ jQuery(document).ready(function() {
|
|
659 |
<?php //includes ?>
|
660 |
<div class="wrap">
|
661 |
<h1 style="color:green">AG Custom Admin Settings</h1>
|
662 |
-
<br />
|
663 |
<form method="post" id="agca_form" action="options.php">
|
664 |
<?php settings_fields( 'agca-options-group' ); ?>
|
665 |
<table>
|
@@ -681,7 +701,8 @@ jQuery(document).ready(function() {
|
|
681 |
<li class="normal"><a href="#ag-colorizer-setttings" title="AG colorizer settings">Colorizer</a></li>
|
682 |
<li style="background:none;border:none;padding:0;"><a id="agca_donate_button" style="margin-left:8px" title="Do You like this plugin? You can support its future development by providing small donation" href="http://wordpress.argonius.com/donate"><img alt="Donate" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>images/btn_donate_LG.gif" /></a>
|
683 |
</li>
|
684 |
-
|
|
|
685 |
<div id="section_admin_bar" class="ag_section">
|
686 |
<h2 class="section_title" tabindex="-1">Admin Bar Settings Page</h2>
|
687 |
<br />
|
@@ -717,6 +738,15 @@ jQuery(document).ready(function() {
|
|
717 |
<td>
|
718 |
<input type="checkbox" title="This is link next to heading in admin bar" name="agca_privacy_options" value="true" <?php if (get_option('agca_privacy_options')==true) echo 'checked="checked" '; ?> />
|
719 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
720 |
</tr>
|
721 |
<tr valign="center">
|
722 |
<th >
|
@@ -1215,7 +1245,28 @@ jQuery(document).ready(function() {
|
|
1215 |
<input type="button" alt="color_font_footer" class="pick_color_button" value="Pick color" />
|
1216 |
<input type="button" alt="color_font_footer" class="pick_color_button_clear" value="Clear" />
|
1217 |
</td>
|
1218 |
-
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1219 |
</table>
|
1220 |
<input type="hidden" size="47" id="ag_colorizer_json" name="ag_colorizer_json" value="<?php echo htmlspecialchars(get_option('ag_colorizer_json')); ?>" />
|
1221 |
<div id="picker"></div>
|
@@ -1229,7 +1280,7 @@ jQuery(document).ready(function() {
|
|
1229 |
</div>
|
1230 |
<p tabindex="0"><i><strong>Info:</strong> You can use HTML tags in text areas, e.g. <a href="http://www.mywebsite.com">Visit Us</a></i></p>
|
1231 |
<br />
|
1232 |
-
<br /><br /><br /><p id="agca_footer_support_info">
|
1233 |
<?php
|
1234 |
}
|
1235 |
}
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/ag-custom-admin
|
5 |
Description: Hide or change items in admin panel. Customize buttons from admin menu. Colorize admin and login page with custom colors.
|
6 |
Author: Argonius
|
7 |
+
Version: 1.2.3
|
8 |
Author URI: http://wordpress.argonius.com/ag-custom-admin
|
9 |
|
10 |
Copyright 2011. Argonius (email : info@argonius.com)
|
23 |
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
24 |
*/
|
25 |
|
|
|
|
|
26 |
$agca = new AGCA();
|
27 |
|
28 |
class AGCA{
|
83 |
register_setting( 'agca-options-group', 'agca_footer' );
|
84 |
register_setting( 'agca-options-group', 'agca_privacy_options' );
|
85 |
register_setting( 'agca-options-group', 'agca_header_logo' );
|
86 |
+
register_setting( 'agca-options-group', 'agca_header_logo_custom' );
|
87 |
register_setting( 'agca-options-group', 'agca_site_heading' );
|
88 |
register_setting( 'agca-options-group', 'agca_custom_site_heading' );
|
89 |
register_setting( 'agca-options-group', 'agca_update_bar' );
|
138 |
delete_option( 'agca_footer' );
|
139 |
delete_option( 'agca_privacy_options' );
|
140 |
delete_option( 'agca_header_logo' );
|
141 |
+
delete_option( 'agca_header_logo_custom' );
|
142 |
delete_option( 'agca_site_heading' );
|
143 |
delete_option( 'agca_custom_site_heading' );
|
144 |
delete_option( 'agca_update_bar' );
|
276 |
}
|
277 |
?>
|
278 |
<script type="text/javascript">
|
279 |
+
document.write('<style type="text/css">html{visibility:hidden;}</style>');
|
280 |
/* <![CDATA[ */
|
281 |
jQuery(document).ready(function() {
|
282 |
//get saved onfigurations
|
316 |
<?php if(get_option('agca_header_logo')==true){ ?>
|
317 |
jQuery("#wphead #header-logo").css("display","none");
|
318 |
<?php } ?>
|
319 |
+
<?php if(get_option('agca_header_logo_custom')!=""){ ?>
|
320 |
+
jQuery("#wphead img#header-logo").attr('src','');
|
321 |
+
jQuery("#wphead img#header-logo").hide();
|
322 |
+
var img_url = '<?php echo get_option('agca_header_logo_custom'); ?>'
|
323 |
+
var img = jQuery("#wphead img#header-logo").attr('src', img_url).load(function() {
|
324 |
+
if (!this.complete || typeof this.naturalWidth == "undefined" || this.naturalWidth == 0) {
|
325 |
+
} else {
|
326 |
+
jQuery(this).removeAttr('width');
|
327 |
+
jQuery(this).removeAttr('height');
|
328 |
+
jQuery("#wphead img#header-logo").attr('width',this.width);
|
329 |
+
jQuery("#wphead img#header-logo").attr('height',this.height);
|
330 |
+
jQuery("#wphead").css('height', (14 + this.height)+'px');
|
331 |
+
jQuery("#wphead img#header-logo").show();
|
332 |
+
}
|
333 |
+
});
|
334 |
+
|
335 |
+
<?php } ?>
|
336 |
<?php if(get_option('agca_site_heading')==true){ ?>
|
337 |
jQuery("#wphead #site-heading").css("display","none");
|
338 |
<?php } ?>
|
364 |
<?php } ?>
|
365 |
<?php if(get_option('agca_howdy')!=""){ ?>
|
366 |
var howdyText = jQuery("#user_info").html();
|
367 |
+
if(howdyText !=null){
|
368 |
+
jQuery("#user_info").html("<p>"+"<?php echo get_option('agca_howdy'); ?>"+howdyText.substr(9));
|
369 |
+
}
|
370 |
<?php } ?>
|
371 |
<?php if(get_option('agca_logout')!=""){ ?>
|
372 |
jQuery("#user_info a:eq(1)").text("<?php echo get_option('agca_logout'); ?>");
|
594 |
</style>
|
595 |
<?php //unhide after everything is loaded ?>
|
596 |
<script type="text/javascript">
|
597 |
+
jQuery(document).ready(function() {
|
598 |
+
jQuery('html').css('visibility','visible');
|
599 |
+
|
600 |
});
|
601 |
</script>
|
602 |
<?php
|
679 |
<?php //includes ?>
|
680 |
<div class="wrap">
|
681 |
<h1 style="color:green">AG Custom Admin Settings</h1>
|
682 |
+
<div id="agca_news"> </div><br />
|
683 |
<form method="post" id="agca_form" action="options.php">
|
684 |
<?php settings_fields( 'agca-options-group' ); ?>
|
685 |
<table>
|
701 |
<li class="normal"><a href="#ag-colorizer-setttings" title="AG colorizer settings">Colorizer</a></li>
|
702 |
<li style="background:none;border:none;padding:0;"><a id="agca_donate_button" style="margin-left:8px" title="Do You like this plugin? You can support its future development by providing small donation" href="http://wordpress.argonius.com/donate"><img alt="Donate" src="<?php echo trailingslashit(plugins_url(basename(dirname(__FILE__)))); ?>images/btn_donate_LG.gif" /></a>
|
703 |
</li>
|
704 |
+
<li style="background:none;border:none;padding:0;padding-left:10px;margin-top:-7px"></li>
|
705 |
+
</ul>
|
706 |
<div id="section_admin_bar" class="ag_section">
|
707 |
<h2 class="section_title" tabindex="-1">Admin Bar Settings Page</h2>
|
708 |
<br />
|
738 |
<td>
|
739 |
<input type="checkbox" title="This is link next to heading in admin bar" name="agca_privacy_options" value="true" <?php if (get_option('agca_privacy_options')==true) echo 'checked="checked" '; ?> />
|
740 |
</td>
|
741 |
+
</tr>
|
742 |
+
<tr valign="center">
|
743 |
+
<th >
|
744 |
+
<label title="Change default WordPress logo with custom image." for="agca_header_logo_custom">Change WordPress logo</label>
|
745 |
+
</th>
|
746 |
+
<td>
|
747 |
+
<input title="If this field is not empty, image from provided url will be visible in top bar" type="text" size="47" name="agca_header_logo_custom" value="<?php echo get_option('agca_header_logo_custom'); ?>" />
|
748 |
+
<p><i>Put here link of new top bar photo</i>.</p>
|
749 |
+
</td>
|
750 |
</tr>
|
751 |
<tr valign="center">
|
752 |
<th >
|
1245 |
<input type="button" alt="color_font_footer" class="pick_color_button" value="Pick color" />
|
1246 |
<input type="button" alt="color_font_footer" class="pick_color_button_clear" value="Clear" />
|
1247 |
</td>
|
1248 |
+
</tr>
|
1249 |
+
<tr valign="center">
|
1250 |
+
<td colspan="2">
|
1251 |
+
<div class="ag_table_heading"><h3 tabindex="0">Widgets Color Options</h3></div>
|
1252 |
+
</td>
|
1253 |
+
<td>
|
1254 |
+
</td>
|
1255 |
+
</tr>
|
1256 |
+
<tr valign="center">
|
1257 |
+
<th><label title="Change color in header text" for="color_widget_bar">Title bar background color:</label></th>
|
1258 |
+
<td><input type="text" id="color_widget_bar" name="color_widget_bar" class="color_picker" value="<?php echo htmlspecialchars($this->colorizer['color_widget_bar']); ?>" />
|
1259 |
+
<input type="button" alt="color_widget_bar" class="pick_color_button" value="Pick color" />
|
1260 |
+
<input type="button" alt="color_widget_bar" class="pick_color_button_clear" value="Clear" />
|
1261 |
+
</td>
|
1262 |
+
</tr>
|
1263 |
+
<tr valign="center">
|
1264 |
+
<th><label title="Change widget background color" for="color_widget_background">Background color:</label></th>
|
1265 |
+
<td><input type="text" id="color_widget_background" name="color_widget_background" class="color_picker" value="<?php echo htmlspecialchars($this->colorizer['color_widget_background']); ?>" />
|
1266 |
+
<input type="button" alt="color_widget_background" class="pick_color_button" value="Pick color" />
|
1267 |
+
<input type="button" alt="color_widget_background" class="pick_color_button_clear" value="Clear" />
|
1268 |
+
</td>
|
1269 |
+
</tr>
|
1270 |
</table>
|
1271 |
<input type="hidden" size="47" id="ag_colorizer_json" name="ag_colorizer_json" value="<?php echo htmlspecialchars(get_option('ag_colorizer_json')); ?>" />
|
1272 |
<div id="picker"></div>
|
1280 |
</div>
|
1281 |
<p tabindex="0"><i><strong>Info:</strong> You can use HTML tags in text areas, e.g. <a href="http://www.mywebsite.com">Visit Us</a></i></p>
|
1282 |
<br />
|
1283 |
+
<br /><br /><br /><p id="agca_footer_support_info">WordPress 'AG Custom Admin' plugin by Argonius. If you have any questions, ideas for future development or if you found a bug or having any issues regarding this plugin, please visit plugin's <a href="http://wordpress.argonius.com/ag-custom-admin">SUPPORT</a> page. <br />You can also participate in development of this plugin if you <a href="http://wordpress.argonius.com/donate">BUY ME A DRINK</a> to refresh my energy for programming. Thanks!<br /><br />Have a nice blogging!</p><br />
|
1284 |
<?php
|
1285 |
}
|
1286 |
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wordpress.argonius.com/donate
|
|
4 |
Tags: admin, customize, hide, change admin
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.1.2
|
7 |
-
Stable tag: 1.2.
|
8 |
|
9 |
Hide or change items in admin panel. Customize buttons from admin menu. Colorize admin and login page with custom colors.
|
10 |
|
@@ -18,6 +18,7 @@ Here is the list of options:
|
|
18 |
- Hide admin bar completely
|
19 |
- Hide Privacy link (link next to heading in admin bar)
|
20 |
- Hide WordPress logo in admin bar
|
|
|
21 |
- Custom blog heading in admin bar
|
22 |
- Hide WordPress update notification bar
|
23 |
- Hide default blog heading in admin bar
|
@@ -75,6 +76,9 @@ Try to clear browser's cache, and reload page.
|
|
75 |
= I see only blank page. What to do? =
|
76 |
First, try to clear browser's cache. If this does not work, try to find javaScript error in browser's console and post it to plugin's support page. If you want to deactivate plugin, but you can't access admin panel, turn of JavaScript in your browser and than log in admin and deactivate plugin (This works only for administrator).
|
77 |
|
|
|
|
|
|
|
78 |
== Screenshots ==
|
79 |
|
80 |
1. Text in header or footer could be customized.
|
@@ -84,6 +88,13 @@ First, try to clear browser's cache. If this does not work, try to find javaScri
|
|
84 |
|
85 |
== Changelog ==
|
86 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
= 1.2.2 =
|
88 |
* Added Colorizer for changing colors in admin and login panel
|
89 |
* Added option for excluding admin from settings.
|
@@ -120,6 +131,9 @@ First, try to clear browser's cache. If this does not work, try to find javaScri
|
|
120 |
|
121 |
== Upgrade Notice ==
|
122 |
|
|
|
|
|
|
|
123 |
= 1.2.2 =
|
124 |
Added demo Colorizer for adding custom colors in admin and login pages. Fixed bug for slow computers, default settings should not be visible before custom settings. Added support for excluding administrator from settings. Added option for removing icons from admin menu buttons.
|
125 |
|
4 |
Tags: admin, customize, hide, change admin
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.1.2
|
7 |
+
Stable tag: 1.2.3
|
8 |
|
9 |
Hide or change items in admin panel. Customize buttons from admin menu. Colorize admin and login page with custom colors.
|
10 |
|
18 |
- Hide admin bar completely
|
19 |
- Hide Privacy link (link next to heading in admin bar)
|
20 |
- Hide WordPress logo in admin bar
|
21 |
+
- Add custom logo image in admin bar
|
22 |
- Custom blog heading in admin bar
|
23 |
- Hide WordPress update notification bar
|
24 |
- Hide default blog heading in admin bar
|
76 |
= I see only blank page. What to do? =
|
77 |
First, try to clear browser's cache. If this does not work, try to find javaScript error in browser's console and post it to plugin's support page. If you want to deactivate plugin, but you can't access admin panel, turn of JavaScript in your browser and than log in admin and deactivate plugin (This works only for administrator).
|
78 |
|
79 |
+
= Admin menu buttons are changed in a wrong way =
|
80 |
+
Please use 'Reset Settings' button on Admin Menu page to reset menu configuration to defaults. Remember that you should postpone admin menu configuration to the very end of admin page customization, because, any changes made from other plugins to admin menu (e.g adding new button of plugin that is activated, or removing that button when plugin is deactivated) could corrupt admin menu configuration.
|
81 |
+
|
82 |
== Screenshots ==
|
83 |
|
84 |
1. Text in header or footer could be customized.
|
88 |
|
89 |
== Changelog ==
|
90 |
|
91 |
+
= 1.2.3 =
|
92 |
+
* Added Colorizer options for changing widgets colours.
|
93 |
+
* Added option for changing logo image in admin bar with custom image.
|
94 |
+
* Fixed bug on add new post page: After clicking on buttons Add new image, Add new media pop-up window is blank.
|
95 |
+
* Added info bar for displaying news and information about plugin.
|
96 |
+
* Fixed few issues.
|
97 |
+
|
98 |
= 1.2.2 =
|
99 |
* Added Colorizer for changing colors in admin and login panel
|
100 |
* Added option for excluding admin from settings.
|
131 |
|
132 |
== Upgrade Notice ==
|
133 |
|
134 |
+
= 1.2.3 =
|
135 |
+
Fixed 'White screen of death' bug, and few other improvements. Added colorizer options for widgets. Added support for changing admin bar logo with custom image.
|
136 |
+
|
137 |
= 1.2.2 =
|
138 |
Added demo Colorizer for adding custom colors in admin and login pages. Fixed bug for slow computers, default settings should not be visible before custom settings. Added support for excluding administrator from settings. Added option for removing icons from admin menu buttons.
|
139 |
|
script/ag_script.js
CHANGED
@@ -350,6 +350,12 @@ function updateTargetColor(id, color){
|
|
350 |
break;
|
351 |
case 'color_font_footer':
|
352 |
jQuery('#footer, #footer a').css({'color':color});
|
|
|
|
|
|
|
|
|
|
|
|
|
353 |
break;
|
354 |
default:
|
355 |
}
|
@@ -366,4 +372,66 @@ function updateColor(id,color){
|
|
366 |
}
|
367 |
/*First load apply colours from fields*/
|
368 |
|
369 |
-
/*C O L O R I Z E R E N D*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
350 |
break;
|
351 |
case 'color_font_footer':
|
352 |
jQuery('#footer, #footer a').css({'color':color});
|
353 |
+
break;
|
354 |
+
case 'color_widget_bar':
|
355 |
+
jQuery(".widget .widget-top, .postbox h3, .stuffbox h3").css({'background' : color, 'text-shadow' :'none'});
|
356 |
+
break;
|
357 |
+
case 'color_widget_background':
|
358 |
+
jQuery(".widget, .postbox").css('background-color',color);
|
359 |
break;
|
360 |
default:
|
361 |
}
|
372 |
}
|
373 |
/*First load apply colours from fields*/
|
374 |
|
375 |
+
/*C O L O R I Z E R E N D*/
|
376 |
+
|
377 |
+
/*A J A X*//*
|
378 |
+
jQuery(document).ready(function(){
|
379 |
+
jQuery.ajax({
|
380 |
+
url: "http://wordpress.argonius.com/ag-custom-admin/news.php",
|
381 |
+
type: "POST",
|
382 |
+
cache: false,
|
383 |
+
success: function (html) {
|
384 |
+
//if data turned
|
385 |
+
if (html==1) {
|
386 |
+
// jQuery('#agca_news').html(html);
|
387 |
+
alert(html+'3');
|
388 |
+
} else{
|
389 |
+
alert('no');
|
390 |
+
}
|
391 |
+
}
|
392 |
+
});
|
393 |
+
});*/
|
394 |
+
/*A J A X*/
|
395 |
+
jQuery(document).ready(function(){
|
396 |
+
jQuery(document).ready(function(){
|
397 |
+
var url="http://wordpress.argonius.com/agca/news.php/news?jsoncallback=?";
|
398 |
+
jQuery.getJSON(url,function(json){
|
399 |
+
jQuery.each(json.posts,function(i,post){
|
400 |
+
jQuery('#agca_news').append('<p><strong>Info: </strong>'+post.news+'</p>');
|
401 |
+
});
|
402 |
+
jQuery('#agca_news p').each(function(){
|
403 |
+
jQuery(this).hide();
|
404 |
+
});
|
405 |
+
|
406 |
+
});
|
407 |
+
});
|
408 |
+
setInterval(function() {
|
409 |
+
if(jQuery('#agca_news p.news_online').size() == 0){
|
410 |
+
jQuery('#agca_news p:first').addClass('news_online');
|
411 |
+
jQuery('#agca_news p:first').show();
|
412 |
+
}else{
|
413 |
+
var changed = false;
|
414 |
+
var finish = false;
|
415 |
+
jQuery('#agca_news p').each(function(){
|
416 |
+
if(finish != true){
|
417 |
+
if(changed == true){
|
418 |
+
jQuery(this).addClass('news_online');
|
419 |
+
jQuery(this).show();
|
420 |
+
finish = true;
|
421 |
+
}
|
422 |
+
else if(jQuery(this).hasClass('news_online')){
|
423 |
+
jQuery(this).hide();
|
424 |
+
jQuery(this).removeClass('news_online');
|
425 |
+
changed = true;
|
426 |
+
};
|
427 |
+
}
|
428 |
+
});
|
429 |
+
if(jQuery('#agca_news p.news_online').size() == 0){
|
430 |
+
jQuery('#agca_news p:first').addClass('news_online');
|
431 |
+
jQuery('#agca_news p:first').show();
|
432 |
+
}
|
433 |
+
}
|
434 |
+
}, 5000);
|
435 |
+
|
436 |
+
});
|
437 |
+
/*A J A X*/
|
style/ag_style.css
CHANGED
@@ -1,6 +1,3 @@
|
|
1 |
-
body{
|
2 |
-
/*display:none;*/
|
3 |
-
}
|
4 |
#ag_main_menu {
|
5 |
display:block;
|
6 |
height:32px;
|
@@ -99,4 +96,12 @@ td.ag_admin_menu_parent:hover{
|
|
99 |
color:#555;
|
100 |
border:1px solid green;
|
101 |
padding:20px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
}
|
|
|
|
|
|
|
1 |
#ag_main_menu {
|
2 |
display:block;
|
3 |
height:32px;
|
96 |
color:#555;
|
97 |
border:1px solid green;
|
98 |
padding:20px;
|
99 |
+
}
|
100 |
+
#agca_news{
|
101 |
+
height:50px;
|
102 |
+
margin-top:-35px;
|
103 |
+
color:green;
|
104 |
+
}
|
105 |
+
#agca_news a{
|
106 |
+
color:green;
|
107 |
}
|