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;
|
$BBCodeButton = false;
|
||||||
$FullURLButton = false;
|
$FullURLButton = false;
|
||||||
$InPageLinks = false;
|
$InPageLinks = false;
|
||||||
$DialogLinks = false;
|
|
||||||
|
|
||||||
for ($i = 0; $i < count($linkOpts_array); $i++) {
|
for ($i = 0; $i < count($linkOpts_array); $i++) {
|
||||||
if ($linkOpts_array[$i] == "HTMLCode") {
|
if ($linkOpts_array[$i] == "HTMLCode") {
|
||||||
@ -56,9 +55,6 @@ class Admin_EmbedLinks_Controller extends Admin_Controller {
|
|||||||
if ($displayType_array[$i] == "InPageLinks") {
|
if ($displayType_array[$i] == "InPageLinks") {
|
||||||
$InPageLinks = true;
|
$InPageLinks = true;
|
||||||
}
|
}
|
||||||
if ($displayType_array[$i] == "DialogLinks") {
|
|
||||||
$DialogLinks = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save Settings.
|
// Save Settings.
|
||||||
@ -66,7 +62,6 @@ class Admin_EmbedLinks_Controller extends Admin_Controller {
|
|||||||
module::set_var("embedlinks", "BBCode", $BBCodeButton);
|
module::set_var("embedlinks", "BBCode", $BBCodeButton);
|
||||||
module::set_var("embedlinks", "FullURL", $FullURLButton);
|
module::set_var("embedlinks", "FullURL", $FullURLButton);
|
||||||
module::set_var("embedlinks", "InPageLinks", $InPageLinks);
|
module::set_var("embedlinks", "InPageLinks", $InPageLinks);
|
||||||
module::set_var("embedlinks", "DialogLinks", $DialogLinks);
|
|
||||||
message::success(t("Your Selection Has Been Saved."));
|
message::success(t("Your Selection Has Been Saved."));
|
||||||
|
|
||||||
// Load Admin page.
|
// 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.
|
// 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["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.
|
// Setup a few checkboxes on the form.
|
||||||
$add_links = $form->group("EmbedLinks");
|
$add_links = $form->group("EmbedLinks");
|
||||||
|
@ -31,15 +31,11 @@ class embedlinks_block_Core {
|
|||||||
|
|
||||||
switch ($block_id) {
|
switch ($block_id) {
|
||||||
case "embed_links_dialog":
|
case "embed_links_dialog":
|
||||||
// If displaying links in a dialog box is enabled then
|
// Display dialog buttons in the sidebar.
|
||||||
// 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 = new Block();
|
||||||
$block->css_id = "g-embed-links-sidebar";
|
$block->css_id = "g-embed-links-sidebar";
|
||||||
$block->title = t("Link To This Page");
|
$block->title = t("Link To This Page");
|
||||||
$block->content = new View("embedlinks_sidebar.html");
|
$block->content = new View("embedlinks_sidebar.html");
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "embed_links_album":
|
case "embed_links_album":
|
||||||
|
Reference in New Issue
Block a user