diff --git a/include/shared-manual.inc b/include/shared-manual.inc
index b521e94..c86c4aa 100644
--- a/include/shared-manual.inc
+++ b/include/shared-manual.inc
@@ -129,6 +129,9 @@ $(document).ready(function() {
}
};
+ $(".soft-deprecation-notice h1.title").each(function() {
+ $(this).prepend("
");
+ });
$(".refsect1 h3.title").each(function() {
url = "https://bugs.php.net/report.php?bug_type=Documentation+problem&manpage=" + $(this).parent().parent().attr("id") + "%23" + $(this).parent().attr("id");
$(this).parent().prepend("
");
});
+ $(".soft-deprecation-notice h1.title .toggler").click(function() {
+ $(this).parent().siblings().slideToggle("slow");
+ toggleImage(this);
+ return false;
+ });
$(".refsect1 h3.title .toggler").click(function() {
$(this).parent().siblings().slideToggle("slow");
toggleImage(this);
diff --git a/styles/doc.css b/styles/doc.css
index 797b1f7..6bda134 100755
--- a/styles/doc.css
+++ b/styles/doc.css
@@ -371,3 +371,31 @@ dl.qandaentry {
font-size:12px;
margin-right: 6px;
}
+
+/* Soft-deprecation Notices */
+div.soft-deprecation-notice h1.title {
+ border: 0;
+ color: #3f438d;
+ position: absolute;
+ padding: 0;
+ margin:0;
+ line-height: 1em;
+ top:-22px;
+ left: 0;
+ font-size: 1.4em;
+ font-weight: bold;
+}
+div.soft-deprecation-notice {
+ position: relative;
+ margin-top: 50px;
+ border: 1px solid #AA6666;
+ color: #fff;
+ background-color: #ffeeee;
+ z-index: 100;
+}
+div.soft-deprecation-notice blockquote.sidebar {
+ padding: 10px;
+ margin: 0px;
+ border: 0px solid #666600;
+ color: #660000;
+}
diff --git a/styles/site.css b/styles/site.css
index 7e5e798..d128dc3 100644
--- a/styles/site.css
+++ b/styles/site.css
@@ -1043,6 +1043,30 @@ div.reportbug {
font-size: 80%;
float: right;
}
+
+/* Soft-deprecation Notices */
+div.soft-deprecation-notice {
+ margin: 1em;
+ padding: 1em;
+ position: relative;
+ border: 2px solid #AA6666;
+ color: #660000;
+ background-color: #ffeeee;
+}
+div.soft-deprecation-notice h1.title {
+ font-size: 110%;
+ border-bottom: dashed 1px white;
+}
+div.soft-deprecation-notice .title .toggler {
+ border-bottom: none;
+}
+div.soft-deprecation-notice blockquote.sidebar {
+ margin: 0;
+ padding: 0;
+ border: none;
+ background: transparent;
+}
+
/*
* vim: noet
*/