$glm_dashboard_widget = $wp_meta_boxes['dashboard']['normal']['core']['glm_members_admin_dashboard_widget'];
unset($wp_meta_boxes['dashboard']['normal']['core']['glm_members_admin_dashboard_widget']);
$wp_meta_boxes['dashboard']['side']['core']['glm_members_admin_dashboard_widget'] = $glm_dashboard_widget;
+
}
}
wp_enqueue_script('your-meta-box', GLM_MEMBERS_PLUGIN_URL. '/js/shortcodeBuilder.js', array('jquery'), null, true);
}
+ reset($this->config['addOns']);
+ foreach ($this->config['addOns'] as $a) {
+ $cssFile = GLM_MEMBERS_WORDPRESS_PLUGIN_PATH.$a['slug'].'/css/admin.css';
+ if (is_file($cssFile)) {
+ $cssName = $a['slug'].'-admin-css';
+ wp_register_style(
+ $cssName,
+ GLM_MEMBERS_WORDPRESS_PLUGIN_URL.'/'.$a['slug'].'/css/admin.css',
+ false,
+ GLM_MEMBERS_PLUGIN_VERSION
+ );
+ wp_enqueue_style($cssName);
+ }
+ }
add_meta_box("shortcode_builder",
"Shortcode Builder",
cursor: pointer;
}
.showLists, .showDetails{
- width:20px;
+ margin:0;
- position:relative;
- left: 200px;
+ float:left;
- vertical-align:middle;
+ width:50%;
}
-.checkDetails, .checkList{
- width:200px;
- color: red;
- position:relative;
- left: -20px;
+#showDetail > label, #showList > label{
+ margin:0;
+
+ float:left;
- display:inline-block;
- vertical-align:middle;
+ width:50%;
}
});
// use jquery dialog to separate the checkbox lists
$("#listBtn").on("click", function () {
- $("#showList").dialog();
+ $("#showList").dialog().dialog("option", "width", 422 );
});
$("#detailBtn").on("click", function () {
- $("#showDetail").dialog();
+ $("#showDetail").dialog().dialog("option", "width", 422);
});
// generate the shortcode into a string and insert into the content upon clicking