Archived
Merge branch 'master' of github.com:neuf/studio11-theme
This commit is contained in:
commit
81f33899c8
3 files changed
+12
-5
No files matched your search
+3
-2
@@ -27,9 +27,10 @@ if($menu_id)
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "No frontpage menu configured";
|
||||
echo '<a href="' . admin_url('admin.php?page=studio_lol_settings') . '">No frontpage menu configured</a>';
|
||||
$items = array();
|
||||
}
|
||||
|
||||
foreach($items as $item)
|
||||
{
|
||||
wp_reset_postdata();
|
||||
@@ -62,7 +63,7 @@ foreach($items as $item)
|
||||
{
|
||||
$id = strtolower(preg_replace('#[^\w]+#', '', $item->title));
|
||||
|
||||
echo "<div class=\"content\" id=\"{$id}\">";
|
||||
echo "<div class=\"frontpage-loop content $loop\" id=\"{$id}\">";
|
||||
|
||||
if($pre) echo $pre;
|
||||
|
||||
|
||||
+4
-2
@@ -193,7 +193,7 @@ add_action('admin_menu', 'studio_create_menu');
|
||||
function studio_create_menu() {
|
||||
|
||||
//create new top-level menu
|
||||
add_menu_page('Studio theme settings', 'Studio theme settings', 'administrator', __FILE__, 'studio_settings_page',plugins_url('/images/icon.png', __FILE__));
|
||||
add_menu_page('Studio theme settings', 'Studio theme settings', 'administrator', 'studio_lol_settings', 'studio_settings_page',plugins_url('/images/icon.png', __FILE__));
|
||||
|
||||
//call register settings function
|
||||
add_action( 'admin_init', 'register_studio_settings' );
|
||||
@@ -231,4 +231,6 @@ $menus = wp_get_nav_menus( );
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
|
||||
|
||||
+5
-1
@@ -68,6 +68,7 @@ function showUrlModal(href)
|
||||
|
||||
},
|
||||
onClose: function (dialog) {
|
||||
|
||||
setLocationWithoutScrolling(preModal);
|
||||
dialog.data.slideUp('fast', function () {
|
||||
dialog.overlay.slideUp('fast', function () {
|
||||
@@ -88,6 +89,9 @@ function setLocationWithoutScrolling(location)
|
||||
{
|
||||
var from = $j("body").scrollTop();
|
||||
if(!from) from = $j("html").scrollTop();
|
||||
|
||||
if(location.indexOf("#") == -1) location += "#";
|
||||
|
||||
window.location = location;
|
||||
$j("body,html").scrollTop(from);
|
||||
}
|
||||
@@ -130,7 +134,7 @@ $j(".content .post,#header [href]").live('click',function(e)
|
||||
|
||||
showUrlModal(href);
|
||||
|
||||
var href = this.href.substr(<?php echo strlen(home_url()) ?>);
|
||||
href = href.substr(<?php echo strlen(home_url()) ?>);
|
||||
window.location = window.location.href.split("#")[0] + "#" + href;
|
||||
});
|
||||
$j("#simplemodal-overlay").live('click', function(){
|
||||
|
||||
Reference in new issue
Block a user