Removed checkbox for enabling/disabling the sidebar buttons.
This commit is contained in:
parent
bc6de82a78
commit
4f61137174
|
@ -39,7 +39,6 @@ class Admin_EmbedLinks_Controller extends Admin_Controller {
|
|||
$BBCodeButton = false;
|
||||
$FullURLButton = false;
|
||||
$InPageLinks = false;
|
||||
$DialogLinks = false;
|
||||
|
||||
for ($i = 0; $i < count($linkOpts_array); $i++) {
|
||||
if ($linkOpts_array[$i] == "HTMLCode") {
|
||||
|
@ -56,9 +55,6 @@ class Admin_EmbedLinks_Controller extends Admin_Controller {
|
|||
if ($displayType_array[$i] == "InPageLinks") {
|
||||
$InPageLinks = true;
|
||||
}
|
||||
if ($displayType_array[$i] == "DialogLinks") {
|
||||
$DialogLinks = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Save Settings.
|
||||
|
@ -66,7 +62,6 @@ class Admin_EmbedLinks_Controller extends Admin_Controller {
|
|||
module::set_var("embedlinks", "BBCode", $BBCodeButton);
|
||||
module::set_var("embedlinks", "FullURL", $FullURLButton);
|
||||
module::set_var("embedlinks", "InPageLinks", $InPageLinks);
|
||||
module::set_var("embedlinks", "DialogLinks", $DialogLinks);
|
||||
message::success(t("Your Selection Has Been Saved."));
|
||||
|
||||
// Load Admin page.
|
||||
|
@ -88,7 +83,6 @@ class Admin_EmbedLinks_Controller extends Admin_Controller {
|
|||
|
||||
// Make an array for the different methods of displaying the links.
|
||||
$linkDisplays["InPageLinks"] = array(t("Show Links In The Actual Page"), module::get_var("embedlinks", "InPageLinks"));
|
||||
$linkDisplays["DialogLinks"] = array(t("Show Links In a Seperate Dialog Box"), module::get_var("embedlinks", "DialogLinks"));
|
||||
|
||||
// Setup a few checkboxes on the form.
|
||||
$add_links = $form->group("EmbedLinks");
|
||||
|
|
|
@ -31,15 +31,11 @@ class embedlinks_block_Core {
|
|||
|
||||
switch ($block_id) {
|
||||
case "embed_links_dialog":
|
||||
// If displaying links in a dialog box is enabled then
|
||||
// insert buttons into the bottom of the side bar
|
||||
// to open up the dialog window.
|
||||
if (module::get_var("embedlinks", "DialogLinks") && $theme->item()) {
|
||||
$block = new Block();
|
||||
$block->css_id = "g-embed-links-sidebar";
|
||||
$block->title = t("Link To This Page");
|
||||
$block->content = new View("embedlinks_sidebar.html");
|
||||
}
|
||||
// Display dialog buttons in the sidebar.
|
||||
$block = new Block();
|
||||
$block->css_id = "g-embed-links-sidebar";
|
||||
$block->title = t("Link To This Page");
|
||||
$block->content = new View("embedlinks_sidebar.html");
|
||||
break;
|
||||
|
||||
case "embed_links_album":
|
||||
|
|
Reference in New Issue
Block a user