diff --git a/themes/3nids/3nids/css/jquery.fancybox.css b/themes/3nids/3nids/css/jquery.fancybox.css index f2056332..4e363e1b 100755 --- a/themes/3nids/3nids/css/jquery.fancybox.css +++ b/themes/3nids/3nids/css/jquery.fancybox.css @@ -1,673 +1,673 @@ -html, body { - height: 100%; -} - -div#fancy_overlay { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: black; - display: none; - z-index: 30; -} - -* html div#fancy_overlay { - position: absolute; - height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); -} - -div#fancy_wrap { - text-align: middle; -} - -div#fancy_loading { - position: absolute; - height: 40px; - width: 40px; - cursor: pointer; - display: none; - overflow: hidden; - background: transparent; - z-index: 100; -} - -div#fancy_loading div { - position: absolute; - top: 0; - left: 0; - width: 40px; - height: 480px; - background: transparent url('../images/fancy_progress.png') no-repeat; -} - -div#fancy_loading_overlay { - position: absolute; - background-color: #FFF; - z-index: 30; -} - -div#fancy_loading_icon { - position: absolute; - background: url('../images/fancy_loading.gif') no-repeat; - z-index: 35; - width: 16px; - height: 16px; -} - -div#fancy_outer { - position: absolute; - top: 0; - left: 0; - z-index: 90; - padding: 18px 18px 20px 0px; - margin: 0; - overflow: hidden; - background: transparent; - display: none; -} - -div#fancy_inner { - position: relative; - width:100%; - height:100%; - border: 1px solid #BBB; - background: #FFF; -} - -div#fancy_content { - margin: 0; - z-index: 100; - position: absolute; -} - -div#fancy_div { - background: #000; - color: #FFF; - height: 100%; - width: 100%; - z-index: 100; -} - -img#fancy_img { - position: absolute; - top: 0; - left: 0; - border:0; - padding: 0; - margin: 0; - z-index: 100; - width: 100%; - height: 100%; -} - -div#fancy_close { - position: absolute; - top: -12px; - right: -15px; - height: 30px; - width: 30px; - background: url('../images/fancy_closebox.png') top left no-repeat; - cursor: pointer; - z-index: 181; - display: none; -} - -#fancy_frame { - position: relative; - width: 100%; - height: 100%; - display: none; -} - -#fancy_ajax { - width: 100%; - height: 100%; - overflow: auto; -} - -a#fancy_left, a#fancy_right { - position: absolute; - bottom: 0px; - height: 100%; - width: 35%; - cursor: pointer; - z-index: 111; - display: none; - background-image: url(data:image/gif;base64,AAAA); - outline: none; -} - -a#fancy_left { - left: 0px; -} - -a#fancy_right { - right: 0px; -} - -span.fancy_ico { - position: absolute; - top: 50%; - margin-top: -15px; - width: 30px; - height: 30px; - z-index: 112; - cursor: pointer; - display: block; -} - -span#fancy_left_ico { - left: -9999px; - background: transparent url('../images/fancy_left.png') no-repeat; -} - -span#fancy_right_ico { - right: -9999px; - background: transparent url('../images/fancy_right.png') no-repeat; -} - -a#fancy_left:hover { - visibility: visible; -} - -a#fancy_right:hover { - visibility: visible; -} - -a#fancy_left:hover span { - left: 20px; -} - -a#fancy_right:hover span { - right: 20px; -} - -.fancy_bigIframe { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: transparent; -} - -div#fancy_bg { - position: absolute; - top: 0; left: 0; - width: 100%; - height: 100%; - z-index: 70; - border: 0; - padding: 0; - margin: 0; -} - -div.fancy_bg { - position: absolute; - display: block; - z-index: 70; - border: 0; - padding: 0; - margin: 0; -} - -div.fancy_bg_n { - top: -18px; - width: 100%; - height: 18px; - background: transparent url('../images/fancy_shadow_n.png') repeat-x; -} - -div.fancy_bg_ne { - top: -18px; - right: -13px; - width: 13px; - height: 18px; - background: transparent url('../images/fancy_shadow_ne.png') no-repeat; -} - -div.fancy_bg_e { - right: -13px; - height: 100%; - width: 13px; - background: transparent url('../images/fancy_shadow_e.png') repeat-y; -} - -div.fancy_bg_se { - bottom: -18px; - right: -13px; - width: 13px; - height: 18px; - background: transparent url('../images/fancy_shadow_se.png') no-repeat; -} - -div.fancy_bg_s { - bottom: -18px; - width: 100%; - height: 18px; - background: transparent url('../images/fancy_shadow_s.png') repeat-x; -} - -div.fancy_bg_sw { - bottom: -18px; - left: -13px; - width: 13px; - height: 18px; - background: transparent url('../images/fancy_shadow_sw.png') no-repeat; -} - -div.fancy_bg_w { - left: -13px; - height: 100%; - width: 13px; - background: transparent url('../images/fancy_shadow_w.png') repeat-y; -} - -div.fancy_bg_nw { - top: -18px; - left: -13px; - width: 13px; - height: 18px; - background: transparent url('../images/fancy_shadow_nw.png') no-repeat; -} - -div#fancy_title { - position: absolute; - bottom: -20px; - left: 0; - z-index: 100; - display: none; -} - -div#fancy_title div { - color: #FFF; - font: bold 10px Arial; - padding-bottom: 3px; -} - -div#fancy_title table { - margin: 0 auto; -} - -div#fancy_title table td { - padding: 0; - vertical-align: middle; -} - -td#fancy_title_left { - height: 32px; - width: 15px; - background: transparent url('../images/fancy_title_left.png') repeat-x; -} - -td#fancy_title_main { - height: 32px; - background: transparent url('../images/fancy_title_main.png') repeat-x; -} - -td#fancy_title_right { - height: 32px; - width: 15px; - background: transparent url('../images/fancy_title_right.png') repeat-x; -} - -div#fancy_modules { - position: absolute; - bottom: -20px; - right: 0px; - z-index: 100; - display: none; -} -div#fancy_modules div { - color: #FFF; - font: bold 10px Arial; - padding-bottom: 3px; -} - -div#fancy_modules table { - margin: 0 auto; -} - -div#fancy_modules table td { - padding: 0; - vertical-align: middle; -} - -td#fancy_modules_left { - border-color: #333333; - height: 32px; - width: 15px; - background: transparent url('../images/fancy_title_left.png') repeat-x; -} - -td#fancy_modules_main { - border-color: #333333; - height: 32px; - background: transparent url('../images/fancy_title_main.png') repeat-x; -} - -td#fancy_modules_right { - border-color: #333333; - height: 32px; - width: 15px; - background: transparent url('../images/fancy_title_right.png') repeat-x; -} - -/* ************************************************* */ -/* ************************************************* */ -/* ************************************************* */ -/* ************************************************* */ - -div#mod_overlay { - position: fixed; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: black; - display: none; - z-index: 1030; -} - -* html div#mod_overlay { - position: absolute; - height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); -} - -div#mod_wrap { - text-align: middle; -} - -div#mod_loading { - position: absolute; - height: 40px; - width: 40px; - cursor: pointer; - display: none; - overflow: hidden; - background: transparent; - z-index: 10100; -} - -div#mod_loading div { - position: absolute; - top: 0; - left: 0; - width: 40px; - height: 480px; - background: transparent url('../images/fancy_progress.png') no-repeat; -} - -div#mod_loading_overlay { - position: absolute; - background-color: #FFF; - z-index: 1030; -} - -div#mod_loading_icon { - position: absolute; - background: url('../images/fancy_loading.gif') no-repeat; - z-index: 1035; - width: 16px; - height: 16px; -} - -div#mod_outer { - position: absolute; - top: 0; - left: 0; - z-index: 1090; - padding: 18px 18px 20px 0px; - margin: 0; - overflow: hidden; - background: transparent; - display: none; -} - -div#mod_inner { - position: relative; - width:100%; - height:100%; - border: 1px solid #BBB; - background: #FFF; -} - -div#mod_content { - margin: 0; - z-index: 10100; - position: absolute; -} - -div#mod_div { - background: #000; - color: #FFF; - height: 100%; - width: 100%; - z-index: 10100; -} - -img#mod_img { - position: absolute; - top: 0; - left: 0; - border:0; - padding: 0; - margin: 0; - z-index: 10100; - width: 100%; - height: 100%; -} - -div#mod_close { - position: absolute; - top: -12px; - right: -15px; - height: 30px; - width: 30px; - background: url('../images/fancy_closebox.png') top left no-repeat; - cursor: pointer; - z-index: 10181; - display: none; -} - -#mod_frame { - position: relative; - width: 100%; - height: 100%; - display: none; -} - -#mod_ajax { - width: 100%; - height: 100%; - overflow: auto; -} - -a#mod_left, a#mod_right { - position: absolute; - bottom: 0px; - height: 100%; - width: 35%; - cursor: pointer; - z-index: 10111; - display: none; - background-image: url(data:image/gif;base64,AAAA); - outline: none; -} - -a#mod_left { - left: 0px; -} - -a#mod_right { - right: 0px; -} - -span.mod_ico { - position: absolute; - top: 50%; - margin-top: -15px; - width: 30px; - height: 30px; - z-index: 10112; - cursor: pointer; - display: block; -} - -span#mod_left_ico { - left: -9999px; - background: transparent url('../images/fancy_left.png') no-repeat; -} - -span#mod_right_ico { - right: -9999px; - background: transparent url('../images/fancy_right.png') no-repeat; -} - -a#mod_left:hover { - visibility: visible; -} - -a#mod_right:hover { - visibility: visible; -} - -a#mod_left:hover span { - left: 20px; -} - -a#mod_right:hover span { - right: 20px; -} - -.mod_bigIframe { - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; - background: transparent; -} - -div#mod_bg { - position: absolute; - top: 0; left: 0; - width: 100%; - height: 100%; - z-index: 1070; - border: 0; - padding: 0; - margin: 0; -} - -div.mod_bg { - position: absolute; - display: block; - z-index: 1070; - border: 0; - padding: 0; - margin: 0; -} - -div.mod_bg_n { - top: -18px; - width: 100%; - height: 18px; - background: transparent url('../images/fancy_shadow_n.png') repeat-x; -} - -div.mod_bg_ne { - top: -18px; - right: -13px; - width: 13px; - height: 18px; - background: transparent url('../images/fancy_shadow_ne.png') no-repeat; -} - -div.mod_bg_e { - right: -13px; - height: 100%; - width: 13px; - background: transparent url('../images/fancy_shadow_e.png') repeat-y; -} - -div.mod_bg_se { - bottom: -18px; - right: -13px; - width: 13px; - height: 18px; - background: transparent url('../images/fancy_shadow_se.png') no-repeat; -} - -div.mod_bg_s { - bottom: -18px; - width: 100%; - height: 18px; - background: transparent url('../images/fancy_shadow_s.png') repeat-x; -} - -div.mod_bg_sw { - bottom: -18px; - left: -13px; - width: 13px; - height: 18px; - background: transparent url('../images/fancy_shadow_sw.png') no-repeat; -} - -div.mod_bg_w { - left: -13px; - height: 100%; - width: 13px; - background: transparent url('../images/fancy_shadow_w.png') repeat-y; -} - -div.mod_bg_nw { - top: -18px; - left: -13px; - width: 13px; - height: 18px; - background: transparent url('../images/fancy_shadow_nw.png') no-repeat; -} - -div#mod_title { - position: absolute; - bottom: -20px; - left: 0; - z-index: 10100; - display: none; -} - -div#mod_title div { - color: #FFF; - font: bold 10px Arial; - padding-bottom: 3px; -} - -div#mod_title table { - margin: 0 auto; -} - -div#mod_title table td { - padding: 0; - vertical-align: middle; -} - -td#mod_title_left { - height: 32px; - width: 15px; - background: transparent url('../images/fancy_title_left.png') repeat-x; -} - -td#mod_title_main { - height: 32px; - background: transparent url('../images/fancy_title_main.png') repeat-x; -} - -td#mod_title_right { - height: 32px; - width: 15px; - background: transparent url('../images/fancy_title_right.png') repeat-x; -} - +html, body { + height: 100%; +} + +div#fancy_overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: black; + display: none; + z-index: 30; +} + +* html div#fancy_overlay { + position: absolute; + height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); +} + +div#fancy_wrap { + text-align: middle; +} + +div#fancy_loading { + position: absolute; + height: 40px; + width: 40px; + cursor: pointer; + display: none; + overflow: hidden; + background: transparent; + z-index: 100; +} + +div#fancy_loading div { + position: absolute; + top: 0; + left: 0; + width: 40px; + height: 480px; + background: transparent url('../images/fancy_progress.png') no-repeat; +} + +div#fancy_loading_overlay { + position: absolute; + background-color: #FFF; + z-index: 30; +} + +div#fancy_loading_icon { + position: absolute; + background: url('../images/fancy_loading.gif') no-repeat; + z-index: 35; + width: 16px; + height: 16px; +} + +div#fancy_outer { + position: absolute; + top: 0; + left: 0; + z-index: 90; + padding: 18px 18px 20px 0px; + margin: 0; + overflow: hidden; + background: transparent; + display: none; +} + +div#fancy_inner { + position: relative; + width:100%; + height:100%; + border: 1px solid #BBB; + background: #FFF; +} + +div#fancy_content { + margin: 0; + z-index: 100; + position: absolute; +} + +div#fancy_div { + background: #000; + color: #FFF; + height: 100%; + width: 100%; + z-index: 100; +} + +img#fancy_img { + position: absolute; + top: 0; + left: 0; + border:0; + padding: 0; + margin: 0; + z-index: 100; + width: 100%; + height: 100%; +} + +div#fancy_close { + position: absolute; + top: -12px; + right: -15px; + height: 30px; + width: 30px; + background: url('../images/fancy_closebox.png') top left no-repeat; + cursor: pointer; + z-index: 181; + display: none; +} + +#fancy_frame { + position: relative; + width: 100%; + height: 100%; + display: none; +} + +#fancy_ajax { + width: 100%; + height: 100%; + overflow: auto; +} + +a#fancy_left, a#fancy_right { + position: absolute; + bottom: 0px; + height: 100%; + width: 35%; + cursor: pointer; + z-index: 111; + display: none; + background-image: url(data:image/gif;base64,AAAA); + outline: none; +} + +a#fancy_left { + left: 0px; +} + +a#fancy_right { + right: 0px; +} + +span.fancy_ico { + position: absolute; + top: 50%; + margin-top: -15px; + width: 30px; + height: 30px; + z-index: 112; + cursor: pointer; + display: block; +} + +span#fancy_left_ico { + left: -9999px; + background: transparent url('../images/fancy_left.png') no-repeat; +} + +span#fancy_right_ico { + right: -9999px; + background: transparent url('../images/fancy_right.png') no-repeat; +} + +a#fancy_left:hover { + visibility: visible; +} + +a#fancy_right:hover { + visibility: visible; +} + +a#fancy_left:hover span { + left: 20px; +} + +a#fancy_right:hover span { + right: 20px; +} + +.fancy_bigIframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: transparent; +} + +div#fancy_bg { + position: absolute; + top: 0; left: 0; + width: 100%; + height: 100%; + z-index: 70; + border: 0; + padding: 0; + margin: 0; +} + +div.fancy_bg { + position: absolute; + display: block; + z-index: 70; + border: 0; + padding: 0; + margin: 0; +} + +div.fancy_bg_n { + top: -18px; + width: 100%; + height: 18px; + background: transparent url('../images/fancy_shadow_n.png') repeat-x; +} + +div.fancy_bg_ne { + top: -18px; + right: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_ne.png') no-repeat; +} + +div.fancy_bg_e { + right: -13px; + height: 100%; + width: 13px; + background: transparent url('../images/fancy_shadow_e.png') repeat-y; +} + +div.fancy_bg_se { + bottom: -18px; + right: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_se.png') no-repeat; +} + +div.fancy_bg_s { + bottom: -18px; + width: 100%; + height: 18px; + background: transparent url('../images/fancy_shadow_s.png') repeat-x; +} + +div.fancy_bg_sw { + bottom: -18px; + left: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_sw.png') no-repeat; +} + +div.fancy_bg_w { + left: -13px; + height: 100%; + width: 13px; + background: transparent url('../images/fancy_shadow_w.png') repeat-y; +} + +div.fancy_bg_nw { + top: -18px; + left: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_nw.png') no-repeat; +} + +div#fancy_title { + position: absolute; + bottom: -20px; + left: 0; + z-index: 100; + display: none; +} + +div#fancy_title div { + color: #FFF; + font: bold 10px Arial; + padding-bottom: 3px; +} + +div#fancy_title table { + margin: 0 auto; +} + +div#fancy_title table td { + padding: 0; + vertical-align: middle; +} + +td#fancy_title_left { + height: 32px; + width: 15px; + background: transparent url('../images/fancy_title_left.png') repeat-x; +} + +td#fancy_title_main { + height: 32px; + background: transparent url('../images/fancy_title_main.png') repeat-x; +} + +td#fancy_title_right { + height: 32px; + width: 15px; + background: transparent url('../images/fancy_title_right.png') repeat-x; +} + +div#fancy_modules { + position: absolute; + bottom: -20px; + right: 0px; + z-index: 100; + display: none; +} +div#fancy_modules div { + color: #FFF; + font: bold 10px Arial; + padding-bottom: 3px; +} + +div#fancy_modules table { + margin: 0 auto; +} + +div#fancy_modules table td { + padding: 0; + vertical-align: middle; +} + +td#fancy_modules_left { + border-color: #333333; + height: 32px; + width: 15px; + background: transparent url('../images/fancy_title_left.png') repeat-x; +} + +td#fancy_modules_main { + border-color: #333333; + height: 32px; + background: transparent url('../images/fancy_title_main.png') repeat-x; +} + +td#fancy_modules_right { + border-color: #333333; + height: 32px; + width: 15px; + background: transparent url('../images/fancy_title_right.png') repeat-x; +} + +/* ************************************************* */ +/* ************************************************* */ +/* ************************************************* */ +/* ************************************************* */ + +div#mod_overlay { + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: black; + display: none; + z-index: 1030; +} + +* html div#mod_overlay { + position: absolute; + height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px'); +} + +div#mod_wrap { + text-align: middle; +} + +div#mod_loading { + position: absolute; + height: 40px; + width: 40px; + cursor: pointer; + display: none; + overflow: hidden; + background: transparent; + z-index: 10100; +} + +div#mod_loading div { + position: absolute; + top: 0; + left: 0; + width: 40px; + height: 480px; + background: transparent url('../images/fancy_progress.png') no-repeat; +} + +div#mod_loading_overlay { + position: absolute; + background-color: #FFF; + z-index: 1030; +} + +div#mod_loading_icon { + position: absolute; + background: url('../images/fancy_loading.gif') no-repeat; + z-index: 1035; + width: 16px; + height: 16px; +} + +div#mod_outer { + position: absolute; + top: 0; + left: 0; + z-index: 1090; + padding: 18px 18px 20px 0px; + margin: 0; + overflow: hidden; + background: transparent; + display: none; +} + +div#mod_inner { + position: relative; + width:100%; + height:100%; + border: 1px solid #BBB; + background: #FFF; +} + +div#mod_content { + margin: 0; + z-index: 10100; + position: absolute; +} + +div#mod_div { + background: #000; + color: #FFF; + height: 100%; + width: 100%; + z-index: 10100; +} + +img#mod_img { + position: absolute; + top: 0; + left: 0; + border:0; + padding: 0; + margin: 0; + z-index: 10100; + width: 100%; + height: 100%; +} + +div#mod_close { + position: absolute; + top: -12px; + right: -15px; + height: 30px; + width: 30px; + background: url('../images/fancy_closebox.png') top left no-repeat; + cursor: pointer; + z-index: 10181; + display: none; +} + +#mod_frame { + position: relative; + width: 100%; + height: 100%; + display: none; +} + +#mod_ajax { + width: 100%; + height: 100%; + overflow: auto; +} + +a#mod_left, a#mod_right { + position: absolute; + bottom: 0px; + height: 100%; + width: 35%; + cursor: pointer; + z-index: 10111; + display: none; + background-image: url(data:image/gif;base64,AAAA); + outline: none; +} + +a#mod_left { + left: 0px; +} + +a#mod_right { + right: 0px; +} + +span.mod_ico { + position: absolute; + top: 50%; + margin-top: -15px; + width: 30px; + height: 30px; + z-index: 10112; + cursor: pointer; + display: block; +} + +span#mod_left_ico { + left: -9999px; + background: transparent url('../images/fancy_left.png') no-repeat; +} + +span#mod_right_ico { + right: -9999px; + background: transparent url('../images/fancy_right.png') no-repeat; +} + +a#mod_left:hover { + visibility: visible; +} + +a#mod_right:hover { + visibility: visible; +} + +a#mod_left:hover span { + left: 20px; +} + +a#mod_right:hover span { + right: 20px; +} + +.mod_bigIframe { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + background: transparent; +} + +div#mod_bg { + position: absolute; + top: 0; left: 0; + width: 100%; + height: 100%; + z-index: 1070; + border: 0; + padding: 0; + margin: 0; +} + +div.mod_bg { + position: absolute; + display: block; + z-index: 1070; + border: 0; + padding: 0; + margin: 0; +} + +div.mod_bg_n { + top: -18px; + width: 100%; + height: 18px; + background: transparent url('../images/fancy_shadow_n.png') repeat-x; +} + +div.mod_bg_ne { + top: -18px; + right: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_ne.png') no-repeat; +} + +div.mod_bg_e { + right: -13px; + height: 100%; + width: 13px; + background: transparent url('../images/fancy_shadow_e.png') repeat-y; +} + +div.mod_bg_se { + bottom: -18px; + right: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_se.png') no-repeat; +} + +div.mod_bg_s { + bottom: -18px; + width: 100%; + height: 18px; + background: transparent url('../images/fancy_shadow_s.png') repeat-x; +} + +div.mod_bg_sw { + bottom: -18px; + left: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_sw.png') no-repeat; +} + +div.mod_bg_w { + left: -13px; + height: 100%; + width: 13px; + background: transparent url('../images/fancy_shadow_w.png') repeat-y; +} + +div.mod_bg_nw { + top: -18px; + left: -13px; + width: 13px; + height: 18px; + background: transparent url('../images/fancy_shadow_nw.png') no-repeat; +} + +div#mod_title { + position: absolute; + bottom: -20px; + left: 0; + z-index: 10100; + display: none; +} + +div#mod_title div { + color: #FFF; + font: bold 10px Arial; + padding-bottom: 3px; +} + +div#mod_title table { + margin: 0 auto; +} + +div#mod_title table td { + padding: 0; + vertical-align: middle; +} + +td#mod_title_left { + height: 32px; + width: 15px; + background: transparent url('../images/fancy_title_left.png') repeat-x; +} + +td#mod_title_main { + height: 32px; + background: transparent url('../images/fancy_title_main.png') repeat-x; +} + +td#mod_title_right { + height: 32px; + width: 15px; + background: transparent url('../images/fancy_title_right.png') repeat-x; +} + diff --git a/themes/3nids/3nids/js/jquery.easing.js b/themes/3nids/3nids/js/jquery.easing.js index d65948d3..ef743210 100755 --- a/themes/3nids/3nids/js/jquery.easing.js +++ b/themes/3nids/3nids/js/jquery.easing.js @@ -1,205 +1,205 @@ -/* - * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ - * - * Uses the built in easing capabilities added In jQuery 1.1 - * to offer multiple easing options - * - * TERMS OF USE - jQuery Easing - * - * Open source under the BSD License. - * - * Copyright © 2008 George McGinley Smith - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this list of - * conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, this list - * of conditions and the following disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * Neither the name of the author nor the names of contributors may be used to endorse - * or promote products derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED - * OF THE POSSIBILITY OF SUCH DAMAGE. - * -*/ - -// t: current time, b: begInnIng value, c: change In value, d: duration -jQuery.easing['jswing'] = jQuery.easing['swing']; - -jQuery.extend( jQuery.easing, -{ - def: 'easeOutQuad', - swing: function (x, t, b, c, d) { - //alert(jQuery.easing.default); - return jQuery.easing[jQuery.easing.def](x, t, b, c, d); - }, - easeInQuad: function (x, t, b, c, d) { - return c*(t/=d)*t + b; - }, - easeOutQuad: function (x, t, b, c, d) { - return -c *(t/=d)*(t-2) + b; - }, - easeInOutQuad: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t + b; - return -c/2 * ((--t)*(t-2) - 1) + b; - }, - easeInCubic: function (x, t, b, c, d) { - return c*(t/=d)*t*t + b; - }, - easeOutCubic: function (x, t, b, c, d) { - return c*((t=t/d-1)*t*t + 1) + b; - }, - easeInOutCubic: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t*t + b; - return c/2*((t-=2)*t*t + 2) + b; - }, - easeInQuart: function (x, t, b, c, d) { - return c*(t/=d)*t*t*t + b; - }, - easeOutQuart: function (x, t, b, c, d) { - return -c * ((t=t/d-1)*t*t*t - 1) + b; - }, - easeInOutQuart: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t*t*t + b; - return -c/2 * ((t-=2)*t*t*t - 2) + b; - }, - easeInQuint: function (x, t, b, c, d) { - return c*(t/=d)*t*t*t*t + b; - }, - easeOutQuint: function (x, t, b, c, d) { - return c*((t=t/d-1)*t*t*t*t + 1) + b; - }, - easeInOutQuint: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; - return c/2*((t-=2)*t*t*t*t + 2) + b; - }, - easeInSine: function (x, t, b, c, d) { - return -c * Math.cos(t/d * (Math.PI/2)) + c + b; - }, - easeOutSine: function (x, t, b, c, d) { - return c * Math.sin(t/d * (Math.PI/2)) + b; - }, - easeInOutSine: function (x, t, b, c, d) { - return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; - }, - easeInExpo: function (x, t, b, c, d) { - return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; - }, - easeOutExpo: function (x, t, b, c, d) { - return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; - }, - easeInOutExpo: function (x, t, b, c, d) { - if (t==0) return b; - if (t==d) return b+c; - if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; - return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; - }, - easeInCirc: function (x, t, b, c, d) { - return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; - }, - easeOutCirc: function (x, t, b, c, d) { - return c * Math.sqrt(1 - (t=t/d-1)*t) + b; - }, - easeInOutCirc: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; - return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; - }, - easeInElastic: function (x, t, b, c, d) { - var s=1.70158;var p=0;var a=c; - if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; - if (a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; - }, - easeOutElastic: function (x, t, b, c, d) { - var s=1.70158;var p=0;var a=c; - if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; - if (a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; - }, - easeInOutElastic: function (x, t, b, c, d) { - var s=1.70158;var p=0;var a=c; - if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); - if (a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; - return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; - }, - easeInBack: function (x, t, b, c, d, s) { - if (s == undefined) s = 1.70158; - return c*(t/=d)*t*((s+1)*t - s) + b; - }, - easeOutBack: function (x, t, b, c, d, s) { - if (s == undefined) s = 1.70158; - return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; - }, - easeInOutBack: function (x, t, b, c, d, s) { - if (s == undefined) s = 1.70158; - if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; - return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; - }, - easeInBounce: function (x, t, b, c, d) { - return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; - }, - easeOutBounce: function (x, t, b, c, d) { - if ((t/=d) < (1/2.75)) { - return c*(7.5625*t*t) + b; - } else if (t < (2/2.75)) { - return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; - } else if (t < (2.5/2.75)) { - return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; - } else { - return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; - } - }, - easeInOutBounce: function (x, t, b, c, d) { - if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; - return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; - } -}); - -/* - * - * TERMS OF USE - EASING EQUATIONS - * - * Open source under the BSD License. - * - * Copyright © 2001 Robert Penner - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this list of - * conditions and the following disclaimer. - * Redistributions in binary form must reproduce the above copyright notice, this list - * of conditions and the following disclaimer in the documentation and/or other materials - * provided with the distribution. - * - * Neither the name of the author nor the names of contributors may be used to endorse - * or promote products derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE - * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED - * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED - * OF THE POSSIBILITY OF SUCH DAMAGE. - * +/* + * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ + * + * Uses the built in easing capabilities added In jQuery 1.1 + * to offer multiple easing options + * + * TERMS OF USE - jQuery Easing + * + * Open source under the BSD License. + * + * Copyright © 2008 George McGinley Smith + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * +*/ + +// t: current time, b: begInnIng value, c: change In value, d: duration +jQuery.easing['jswing'] = jQuery.easing['swing']; + +jQuery.extend( jQuery.easing, +{ + def: 'easeOutQuad', + swing: function (x, t, b, c, d) { + //alert(jQuery.easing.default); + return jQuery.easing[jQuery.easing.def](x, t, b, c, d); + }, + easeInQuad: function (x, t, b, c, d) { + return c*(t/=d)*t + b; + }, + easeOutQuad: function (x, t, b, c, d) { + return -c *(t/=d)*(t-2) + b; + }, + easeInOutQuad: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t + b; + return -c/2 * ((--t)*(t-2) - 1) + b; + }, + easeInCubic: function (x, t, b, c, d) { + return c*(t/=d)*t*t + b; + }, + easeOutCubic: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t + 1) + b; + }, + easeInOutCubic: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t + b; + return c/2*((t-=2)*t*t + 2) + b; + }, + easeInQuart: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t + b; + }, + easeOutQuart: function (x, t, b, c, d) { + return -c * ((t=t/d-1)*t*t*t - 1) + b; + }, + easeInOutQuart: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t + b; + return -c/2 * ((t-=2)*t*t*t - 2) + b; + }, + easeInQuint: function (x, t, b, c, d) { + return c*(t/=d)*t*t*t*t + b; + }, + easeOutQuint: function (x, t, b, c, d) { + return c*((t=t/d-1)*t*t*t*t + 1) + b; + }, + easeInOutQuint: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; + return c/2*((t-=2)*t*t*t*t + 2) + b; + }, + easeInSine: function (x, t, b, c, d) { + return -c * Math.cos(t/d * (Math.PI/2)) + c + b; + }, + easeOutSine: function (x, t, b, c, d) { + return c * Math.sin(t/d * (Math.PI/2)) + b; + }, + easeInOutSine: function (x, t, b, c, d) { + return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; + }, + easeInExpo: function (x, t, b, c, d) { + return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; + }, + easeOutExpo: function (x, t, b, c, d) { + return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; + }, + easeInOutExpo: function (x, t, b, c, d) { + if (t==0) return b; + if (t==d) return b+c; + if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; + return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; + }, + easeInCirc: function (x, t, b, c, d) { + return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; + }, + easeOutCirc: function (x, t, b, c, d) { + return c * Math.sqrt(1 - (t=t/d-1)*t) + b; + }, + easeInOutCirc: function (x, t, b, c, d) { + if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; + return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; + }, + easeInElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + }, + easeOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; + }, + easeInOutElastic: function (x, t, b, c, d) { + var s=1.70158;var p=0;var a=c; + if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); + if (a < Math.abs(c)) { a=c; var s=p/4; } + else var s = p/(2*Math.PI) * Math.asin (c/a); + if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; + return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; + }, + easeInBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*(t/=d)*t*((s+1)*t - s) + b; + }, + easeOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; + }, + easeInOutBack: function (x, t, b, c, d, s) { + if (s == undefined) s = 1.70158; + if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; + return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; + }, + easeInBounce: function (x, t, b, c, d) { + return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; + }, + easeOutBounce: function (x, t, b, c, d) { + if ((t/=d) < (1/2.75)) { + return c*(7.5625*t*t) + b; + } else if (t < (2/2.75)) { + return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; + } else if (t < (2.5/2.75)) { + return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; + } else { + return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; + } + }, + easeInOutBounce: function (x, t, b, c, d) { + if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; + return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; + } +}); + +/* + * + * TERMS OF USE - EASING EQUATIONS + * + * Open source under the BSD License. + * + * Copyright © 2001 Robert Penner + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, this list of + * conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list + * of conditions and the following disclaimer in the documentation and/or other materials + * provided with the distribution. + * + * Neither the name of the author nor the names of contributors may be used to endorse + * or promote products derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE + * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED + * OF THE POSSIBILITY OF SUCH DAMAGE. + * */ \ No newline at end of file diff --git a/themes/3nids/README b/themes/3nids/README index edd33e2f..f5f8756d 100755 --- a/themes/3nids/README +++ b/themes/3nids/README @@ -1,33 +1,33 @@ -This is a theme for gallery3. -It uses jquery lightbox slideshow (fancybox) to display images, and includes a tagsmap module (originally from rWatcher). - -********* -Demo @ http://gallery.3nids.ch - -********* -Requirements: -- Gallery 3 last experimental version @ http://github.com/gallery/gallery3 -- Tag module activated (if want to use tagsmap) -- Comment and Comments for 3nids themes modules activated (if you want to use comments) - -********* -Installation: - -1. Copy the theme folder (3nids) into gallery3/themes directory. -2. Copy lib folder into gallery3 directory (it changes the themeroller). -3. Copy modules folder into gallery3 directory. It includes tagsmap module. - -********* -Use: -This theme displays full size images. So be carefull to upload not too large images! -The theme uses the tagsmap module which has been enhanced. - -If you want to separate geotag from others, name those with the "map." prefix., the "map." prefix will not be displayed on the map. -If you want to remove the prefix in the tag cloud sidebar, wou will have to update in gallery3/modules/tag/helpers/tag.php the popular_tags function: - static function popular_tags($count) { - return ORM::factory("tag") - ->orderby("count", "DESC") - ->notregex("name","map\.") - ->limit($count) - ->find_all(); - } +This is a theme for gallery3. +It uses jquery lightbox slideshow (fancybox) to display images, and includes a tagsmap module (originally from rWatcher). + +********* +Demo @ http://gallery.3nids.ch + +********* +Requirements: +- Gallery 3 last experimental version @ http://github.com/gallery/gallery3 +- Tag module activated (if want to use tagsmap) +- Comment and Comments for 3nids themes modules activated (if you want to use comments) + +********* +Installation: + +1. Copy the theme folder (3nids) into gallery3/themes directory. +2. Copy lib folder into gallery3 directory (it changes the themeroller). +3. Copy modules folder into gallery3 directory. It includes tagsmap module. + +********* +Use: +This theme displays full size images. So be carefull to upload not too large images! +The theme uses the tagsmap module which has been enhanced. + +If you want to separate geotag from others, name those with the "map." prefix., the "map." prefix will not be displayed on the map. +If you want to remove the prefix in the tag cloud sidebar, wou will have to update in gallery3/modules/tag/helpers/tag.php the popular_tags function: + static function popular_tags($count) { + return ORM::factory("tag") + ->orderby("count", "DESC") + ->notregex("name","map\.") + ->limit($count) + ->find_all(); + } diff --git a/themes/3nids/modules/comment_3nids/controllers/comments_3nids.php b/themes/3nids/modules/comment_3nids/controllers/comments_3nids.php index a28230f1..965762d3 100755 --- a/themes/3nids/modules/comment_3nids/controllers/comments_3nids.php +++ b/themes/3nids/modules/comment_3nids/controllers/comments_3nids.php @@ -1,192 +1,192 @@ -input->get('item_id'); - $item = ORM::factory("item", $item_id); - access::required("view", $item); - - $comments = ORM::factory("comment") - ->where("item_id", $item->id) - ->where("state", "published") - ->orderby("created", "ASC") - ->find_all(); - - switch (rest::output_format()) { - case "json": - foreach ($comments as $comment) { - $data[] = array( - "id" => $comment->id, - "author_name" => html::clean($comment->author_name()), - "created" => $comment->created, - "text" => nl2br(html::purify($comment->text))); - } - print json_encode($data); - break; - - case "html": - $view = new Theme_View("comments.html", "page"); - $view->comments = $comments; - $view->item_id = $item_id; - $view->thumb = $item->thumb_url(); - print $view; - break; - } - } - - /** - * Add a new comment to the collection. - * @see REST_Controller::_create($resource) - */ - public function _create($comment) { - $item = ORM::factory("item", $this->input->post("item_id")); - access::required("view", $item); - - $form = comment_3nids::get_add_form($item); - $valid = $form->validate(); - if ($valid) { - if (user::active()->guest && !$form->add_comment->inputs["name"]->value) { - $form->add_comment->inputs["name"]->add_error("missing", 1); - $valid = false; - } - - if (!$form->add_comment->text->value) { - $form->add_comment->text->add_error("missing", 1); - $valid = false; - } - } - - if ($valid) { - $comment = comment::create( - $item, user::active(), - $form->add_comment->text->value, - $form->add_comment->inputs["name"]->value, - $form->add_comment->email->value, - $form->add_comment->url->value); - - $active = user::active(); - if ($active->guest) { - $form->add_comment->inputs["name"]->value(""); - $form->add_comment->email->value(""); - $form->add_comment->url->value(""); - } else { - $form->add_comment->inputs["name"]->value($active->full_name); - $form->add_comment->email->value($active->email); - $form->add_comment->url->value($active->url); - } - } - url::redirect(url::site("comments_3nids?item_id=".$item->id)); -} - /** - * Display an existing comment. - * @todo Set proper Content-Type in a central place (REST_Controller::dispatch?). - * @see REST_Controller::_show($resource) - */ - public function _show($comment) { - $item = ORM::factory("item", $comment->item_id); - access::required("view", $item); - if ($comment->state != "published") { - return; - } - - if (rest::output_format() == "json") { - print json_encode( - array("result" => "success", - "data" => array( - "id" => $comment->id, - "author_name" => html::clean($comment->author_name()), - "created" => $comment->created, - "text" => nl2br(html::purify($comment->text))))); - } else { - $view = new Theme_View("comment.html", "fragment"); - $view->comment = $comment; - print $view; - } - } - - /** - * Change an existing comment. - * @see REST_Controller::_update($resource) - */ - public function _update($comment) { - $item = ORM::factory("item", $comment->item_id); - access::required("view", $item); - access::required("edit", $item); - - $form = comment_3nids::get_edit_form($comment); - if ($form->validate()) { - $comment->guest_name = $form->edit_comment->inputs["name"]->value; - $comment->guest_email = $form->edit_comment->email->value; - $comment->url = $form->edit_comment->url->value; - $comment->text = $form->edit_comment->text->value; - $comment->save(); - - print json_encode( - array("result" => "success", - "resource" => url::site("comments/{$comment->id}"))); - } else { - print json_encode( - array("result" => "error", - "html" => $form->__toString())); - } - } - - /** - * Delete existing comment. - * @see REST_Controller::_delete($resource) - */ - public function _delete($comment) { - $item = ORM::factory("item", $comment->item_id); - access::required("view", $item); - access::required("edit", $item); - - $comment->delete(); - print json_encode(array("result" => "success")); - } - - /** - * Present a form for adding a new comment to this item or editing an existing comment. - * @see REST_Controller::form_add($resource) - */ - public function _form_add($item_id) { - $item = ORM::factory("item", $item_id); - access::required("view", $item); - - print comment_3nids::get_add_form($item); - } - - /** - * Present a form for editing an existing comment. - * @see REST_Controller::form_edit($resource) - */ - public function _form_edit($comment) { - if (!user::active()->admin) { - access::forbidden(); - } - print comment_3nids::get_edit_form($comment); - } -} +input->get('item_id'); + $item = ORM::factory("item", $item_id); + access::required("view", $item); + + $comments = ORM::factory("comment") + ->where("item_id", $item->id) + ->where("state", "published") + ->orderby("created", "ASC") + ->find_all(); + + switch (rest::output_format()) { + case "json": + foreach ($comments as $comment) { + $data[] = array( + "id" => $comment->id, + "author_name" => html::clean($comment->author_name()), + "created" => $comment->created, + "text" => nl2br(html::purify($comment->text))); + } + print json_encode($data); + break; + + case "html": + $view = new Theme_View("comments.html", "page"); + $view->comments = $comments; + $view->item_id = $item_id; + $view->thumb = $item->thumb_url(); + print $view; + break; + } + } + + /** + * Add a new comment to the collection. + * @see REST_Controller::_create($resource) + */ + public function _create($comment) { + $item = ORM::factory("item", $this->input->post("item_id")); + access::required("view", $item); + + $form = comment_3nids::get_add_form($item); + $valid = $form->validate(); + if ($valid) { + if (user::active()->guest && !$form->add_comment->inputs["name"]->value) { + $form->add_comment->inputs["name"]->add_error("missing", 1); + $valid = false; + } + + if (!$form->add_comment->text->value) { + $form->add_comment->text->add_error("missing", 1); + $valid = false; + } + } + + if ($valid) { + $comment = comment::create( + $item, user::active(), + $form->add_comment->text->value, + $form->add_comment->inputs["name"]->value, + $form->add_comment->email->value, + $form->add_comment->url->value); + + $active = user::active(); + if ($active->guest) { + $form->add_comment->inputs["name"]->value(""); + $form->add_comment->email->value(""); + $form->add_comment->url->value(""); + } else { + $form->add_comment->inputs["name"]->value($active->full_name); + $form->add_comment->email->value($active->email); + $form->add_comment->url->value($active->url); + } + } + url::redirect(url::site("comments_3nids?item_id=".$item->id)); +} + /** + * Display an existing comment. + * @todo Set proper Content-Type in a central place (REST_Controller::dispatch?). + * @see REST_Controller::_show($resource) + */ + public function _show($comment) { + $item = ORM::factory("item", $comment->item_id); + access::required("view", $item); + if ($comment->state != "published") { + return; + } + + if (rest::output_format() == "json") { + print json_encode( + array("result" => "success", + "data" => array( + "id" => $comment->id, + "author_name" => html::clean($comment->author_name()), + "created" => $comment->created, + "text" => nl2br(html::purify($comment->text))))); + } else { + $view = new Theme_View("comment.html", "fragment"); + $view->comment = $comment; + print $view; + } + } + + /** + * Change an existing comment. + * @see REST_Controller::_update($resource) + */ + public function _update($comment) { + $item = ORM::factory("item", $comment->item_id); + access::required("view", $item); + access::required("edit", $item); + + $form = comment_3nids::get_edit_form($comment); + if ($form->validate()) { + $comment->guest_name = $form->edit_comment->inputs["name"]->value; + $comment->guest_email = $form->edit_comment->email->value; + $comment->url = $form->edit_comment->url->value; + $comment->text = $form->edit_comment->text->value; + $comment->save(); + + print json_encode( + array("result" => "success", + "resource" => url::site("comments/{$comment->id}"))); + } else { + print json_encode( + array("result" => "error", + "html" => $form->__toString())); + } + } + + /** + * Delete existing comment. + * @see REST_Controller::_delete($resource) + */ + public function _delete($comment) { + $item = ORM::factory("item", $comment->item_id); + access::required("view", $item); + access::required("edit", $item); + + $comment->delete(); + print json_encode(array("result" => "success")); + } + + /** + * Present a form for adding a new comment to this item or editing an existing comment. + * @see REST_Controller::form_add($resource) + */ + public function _form_add($item_id) { + $item = ORM::factory("item", $item_id); + access::required("view", $item); + + print comment_3nids::get_add_form($item); + } + + /** + * Present a form for editing an existing comment. + * @see REST_Controller::form_edit($resource) + */ + public function _form_edit($comment) { + if (!user::active()->admin) { + access::forbidden(); + } + print comment_3nids::get_edit_form($comment); + } +} diff --git a/themes/3nids/modules/comment_3nids/helpers/comment_3nids.php b/themes/3nids/modules/comment_3nids/helpers/comment_3nids.php index b093cb43..a35fb450 100755 --- a/themes/3nids/modules/comment_3nids/helpers/comment_3nids.php +++ b/themes/3nids/modules/comment_3nids/helpers/comment_3nids.php @@ -1,128 +1,128 @@ -where("item_id", $item->id) - ->where("state", "published") - ->orderby("created", "DESC") - ->find_all(); - - return $comments->count(); - } - - /** - * Create a new comment. - * @param Item_MOdel $item the parent item - * @param User_Model $author the author User_Model - * @param string $text comment body - * @param string $guest_name guest's name (if the author is a guest user, default empty) - * @param string $guest_email guest's email (if the author is a guest user, default empty) - * @param string $guest_url guest's url (if the author is a guest user, default empty) - * @return Comment_Model - */ - static function create($item, $author, $text, $guest_name=null, - $guest_email=null, $guest_url=null) { - $comment = ORM::factory("comment"); - $comment->author_id = $author->id; - $comment->guest_email = $guest_email; - $comment->guest_name = $guest_name; - $comment->guest_url = $guest_url; - $comment->item_id = $item->id; - $comment->text = $text; - $comment->state = "published"; - - // These values are useful for spam fighting, so save them with the comment. - $input = Input::instance(); - $comment->server_http_accept = substr($input->server("HTTP_ACCEPT"), 0, 128); - $comment->server_http_accept_charset = substr($input->server("HTTP_ACCEPT_CHARSET"), 0, 64); - $comment->server_http_accept_encoding = substr($input->server("HTTP_ACCEPT_ENCODING"), 0, 64); - $comment->server_http_accept_language = substr($input->server("HTTP_ACCEPT_LANGUAGE"), 0, 64); - $comment->server_http_connection = substr($input->server("HTTP_CONNECTION"), 0, 64); - $comment->server_http_host = substr($input->server("HTTP_HOST"), 0, 64); - $comment->server_http_referer = substr($input->server("HTTP_REFERER"), 0, 255); - $comment->server_http_user_agent = substr($input->server("HTTP_USER_AGENT"), 0, 128); - $comment->server_query_string = substr($input->server("QUERY_STRING"), 0, 64); - $comment->server_remote_addr = substr($input->server("REMOTE_ADDR"), 0, 32); - $comment->server_remote_host = substr($input->server("REMOTE_HOST"), 0, 64); - $comment->server_remote_port = substr($input->server("REMOTE_PORT"), 0, 16); - $comment->save(); - - return $comment; - } - - static function get_add_form($item) { - $form = new Forge("comments_3nids?item_id=".$item->id, "", "post", array("id" => "gAddCommentForm")); - $group = $form->group("add_comment")->label(t("Add comment")); - $group->input("name") ->label(t("Name")) ->id("gAuthor"); - $group->input("email") ->label(t("Email (hidden)")) ->id("gEmail"); - $group->input("url") ->label(t("Website (hidden)"))->id("gUrl"); - $group->textarea("text")->label(t("Comment")) ->id("gText"); - $group->hidden("item_id")->value($item->id); - module::event("comment_add_form", $form); - $group->submit("")->value(t("Add")) ->class("gButtonLink ui-corner-all ui-icon-left ui-state-default"); - - $active = user::active(); - if (!$active->guest) { - $group->inputs["name"]->value($active->full_name)->disabled("disabled"); - $group->email->value($active->email)->disabled("disabled"); - $group->url->value($active->url)->disabled("disabled"); - } else { - $group->inputs["name"]->error_messages("missing", t("You must provide a name")); - } - $group->text->error_messages("missing", t("You must provide a comment")); - - return $form; - } - - static function get_edit_form($comment) { - $form = new Forge("comments/{$comment->id}?_method=put", "", "post", - array("id" => "gEditCommentForm")); - $group = $form->group("edit_comment")->label(t("Edit comment")); - $group->input("name") ->label(t("Author")) ->id("gAuthor"); - $group->input("email") ->label(t("Email (hidden)")) ->id("gEmail"); - $group->input("url") ->label(t("Website (hidden)"))->id("gUrl"); - $group->textarea("text")->label(t("Comment")) ->id("gText"); - $group->submit("")->value(t("Edit")); - - $group->text = $comment->text; - $author = $comment->author(); - if ($author->guest) { - $group->inputs["name"]->value = $comment->guest_name; - $group->email = $comment->guest_email; - $group->url = $comment->guest_url; - } else { - $group->inputs["name"]->value($author->full_name)->disabled("disabled"); - $group->email->value($author->email)->disabled("disabled"); - $group->url->value($author->url)->disabled("disabled"); - } - return $form; - } -} - +where("item_id", $item->id) + ->where("state", "published") + ->orderby("created", "DESC") + ->find_all(); + + return $comments->count(); + } + + /** + * Create a new comment. + * @param Item_MOdel $item the parent item + * @param User_Model $author the author User_Model + * @param string $text comment body + * @param string $guest_name guest's name (if the author is a guest user, default empty) + * @param string $guest_email guest's email (if the author is a guest user, default empty) + * @param string $guest_url guest's url (if the author is a guest user, default empty) + * @return Comment_Model + */ + static function create($item, $author, $text, $guest_name=null, + $guest_email=null, $guest_url=null) { + $comment = ORM::factory("comment"); + $comment->author_id = $author->id; + $comment->guest_email = $guest_email; + $comment->guest_name = $guest_name; + $comment->guest_url = $guest_url; + $comment->item_id = $item->id; + $comment->text = $text; + $comment->state = "published"; + + // These values are useful for spam fighting, so save them with the comment. + $input = Input::instance(); + $comment->server_http_accept = substr($input->server("HTTP_ACCEPT"), 0, 128); + $comment->server_http_accept_charset = substr($input->server("HTTP_ACCEPT_CHARSET"), 0, 64); + $comment->server_http_accept_encoding = substr($input->server("HTTP_ACCEPT_ENCODING"), 0, 64); + $comment->server_http_accept_language = substr($input->server("HTTP_ACCEPT_LANGUAGE"), 0, 64); + $comment->server_http_connection = substr($input->server("HTTP_CONNECTION"), 0, 64); + $comment->server_http_host = substr($input->server("HTTP_HOST"), 0, 64); + $comment->server_http_referer = substr($input->server("HTTP_REFERER"), 0, 255); + $comment->server_http_user_agent = substr($input->server("HTTP_USER_AGENT"), 0, 128); + $comment->server_query_string = substr($input->server("QUERY_STRING"), 0, 64); + $comment->server_remote_addr = substr($input->server("REMOTE_ADDR"), 0, 32); + $comment->server_remote_host = substr($input->server("REMOTE_HOST"), 0, 64); + $comment->server_remote_port = substr($input->server("REMOTE_PORT"), 0, 16); + $comment->save(); + + return $comment; + } + + static function get_add_form($item) { + $form = new Forge("comments_3nids?item_id=".$item->id, "", "post", array("id" => "gAddCommentForm")); + $group = $form->group("add_comment")->label(t("Add comment")); + $group->input("name") ->label(t("Name")) ->id("gAuthor"); + $group->input("email") ->label(t("Email (hidden)")) ->id("gEmail"); + $group->input("url") ->label(t("Website (hidden)"))->id("gUrl"); + $group->textarea("text")->label(t("Comment")) ->id("gText"); + $group->hidden("item_id")->value($item->id); + module::event("comment_add_form", $form); + $group->submit("")->value(t("Add")) ->class("gButtonLink ui-corner-all ui-icon-left ui-state-default"); + + $active = user::active(); + if (!$active->guest) { + $group->inputs["name"]->value($active->full_name)->disabled("disabled"); + $group->email->value($active->email)->disabled("disabled"); + $group->url->value($active->url)->disabled("disabled"); + } else { + $group->inputs["name"]->error_messages("missing", t("You must provide a name")); + } + $group->text->error_messages("missing", t("You must provide a comment")); + + return $form; + } + + static function get_edit_form($comment) { + $form = new Forge("comments/{$comment->id}?_method=put", "", "post", + array("id" => "gEditCommentForm")); + $group = $form->group("edit_comment")->label(t("Edit comment")); + $group->input("name") ->label(t("Author")) ->id("gAuthor"); + $group->input("email") ->label(t("Email (hidden)")) ->id("gEmail"); + $group->input("url") ->label(t("Website (hidden)"))->id("gUrl"); + $group->textarea("text")->label(t("Comment")) ->id("gText"); + $group->submit("")->value(t("Edit")); + + $group->text = $comment->text; + $author = $comment->author(); + if ($author->guest) { + $group->inputs["name"]->value = $comment->guest_name; + $group->email = $comment->guest_email; + $group->url = $comment->guest_url; + } else { + $group->inputs["name"]->value($author->full_name)->disabled("disabled"); + $group->email->value($author->email)->disabled("disabled"); + $group->url->value($author->url)->disabled("disabled"); + } + return $form; + } +} + diff --git a/themes/3nids/modules/tagsmap/css/tagsmap.css b/themes/3nids/modules/tagsmap/css/tagsmap.css index 6938a5c9..5c7a73fc 100755 --- a/themes/3nids/modules/tagsmap/css/tagsmap.css +++ b/themes/3nids/modules/tagsmap/css/tagsmap.css @@ -1,96 +1,96 @@ -.tooltip{ - position: absolute; - left: 10px; - top: 10px; - width: 150px; - background-color: #777; - color: #ffffcc; - border: 1px solid #f9db01; - font: bold 13px "Trebuchet MS", Verdana, Arial, sans-serif; - padding: 4px; - z-index: 20; - -moz-border-radius: 10px; - -moz-opacity: .87; - filter:alpha(opacity=87); - opacity:.87; -} - -.gMapThumbTable{ - width:200px; - height: 80px; - font-size: 0.9em; - font-style: normal; - color: #FFFFCC; -} -.gMapThumbImg{ - overflow:auto; - position: relative; - height:125px; -} -.gMapThumbLink{ - height: 15px; -} -.gMapThumbTd{ - padding: 0; - text-align: center; -} -.gMapThumbnail{ - height: 80px; -} -#gmInfo{ - width: 230px; -} -#gmInfo_contents{ - background: #3d3d3d; -} -#gmInfo_contents div{ - font-style: italic; - vertical-align: middle; - margin: 0 10px; -} -#gmInfo_tl{ - width: 14px; - height: 14px; - background: url('../images/gmInfo_tl.png') top left no-repeat transparent; -} -#gmInfo_t{ - background: url('../images/gmInfo_t.png') top left repeat-x transparent; -} -#gmInfo_tr{ - width: 14px; - height: 14px; - background: url('../images/gmInfo_tr.png') top left no-repeat transparent; -} -#gmInfo_l{ - width: 14px; - background: url('../images/gmInfo_l.png') top left repeat-y transparent; -} -#gmInfo_r{ - width: 14px; - background: url('../images/gmInfo_r.png') top right repeat-y transparent; -} -#gmInfo_bl{ - width: 14px; - height: 14px; - background: url('../images/gmInfo_bl.png') top left no-repeat transparent; -} -#gmInfo_b{ - background: url('../images/gmInfo_b.png') top left repeat-x transparent; -} -#gmInfo_br{ - width: 14px; - height: 14px; - background: url('../images/gmInfo_br.png') top left no-repeat transparent; -} -#gmInfo_close{ - width: 30px; - height: 30px; - background: url('../images/gmInfo_close.png') top left no-repeat transparent; - margin: -10px 0 0 10px; - cursor: pointer; -} -#gmInfo_beak{ - width: 27px; - height: 33px; - background: url('../images/gmInfo_beak.png') top left no-repeat transparent; -} +.tooltip{ + position: absolute; + left: 10px; + top: 10px; + width: 150px; + background-color: #777; + color: #ffffcc; + border: 1px solid #f9db01; + font: bold 13px "Trebuchet MS", Verdana, Arial, sans-serif; + padding: 4px; + z-index: 20; + -moz-border-radius: 10px; + -moz-opacity: .87; + filter:alpha(opacity=87); + opacity:.87; +} + +.gMapThumbTable{ + width:200px; + height: 80px; + font-size: 0.9em; + font-style: normal; + color: #FFFFCC; +} +.gMapThumbImg{ + overflow:auto; + position: relative; + height:125px; +} +.gMapThumbLink{ + height: 15px; +} +.gMapThumbTd{ + padding: 0; + text-align: center; +} +.gMapThumbnail{ + height: 80px; +} +#gmInfo{ + width: 230px; +} +#gmInfo_contents{ + background: #3d3d3d; +} +#gmInfo_contents div{ + font-style: italic; + vertical-align: middle; + margin: 0 10px; +} +#gmInfo_tl{ + width: 14px; + height: 14px; + background: url('../images/gmInfo_tl.png') top left no-repeat transparent; +} +#gmInfo_t{ + background: url('../images/gmInfo_t.png') top left repeat-x transparent; +} +#gmInfo_tr{ + width: 14px; + height: 14px; + background: url('../images/gmInfo_tr.png') top left no-repeat transparent; +} +#gmInfo_l{ + width: 14px; + background: url('../images/gmInfo_l.png') top left repeat-y transparent; +} +#gmInfo_r{ + width: 14px; + background: url('../images/gmInfo_r.png') top right repeat-y transparent; +} +#gmInfo_bl{ + width: 14px; + height: 14px; + background: url('../images/gmInfo_bl.png') top left no-repeat transparent; +} +#gmInfo_b{ + background: url('../images/gmInfo_b.png') top left repeat-x transparent; +} +#gmInfo_br{ + width: 14px; + height: 14px; + background: url('../images/gmInfo_br.png') top left no-repeat transparent; +} +#gmInfo_close{ + width: 30px; + height: 30px; + background: url('../images/gmInfo_close.png') top left no-repeat transparent; + margin: -10px 0 0 10px; + cursor: pointer; +} +#gmInfo_beak{ + width: 27px; + height: 33px; + background: url('../images/gmInfo_beak.png') top left no-repeat transparent; +} diff --git a/themes/3nids/modules/tagsmap/helpers/tagsmap_theme.php b/themes/3nids/modules/tagsmap/helpers/tagsmap_theme.php index 4ba9191f..dc895b5b 100755 --- a/themes/3nids/modules/tagsmap/helpers/tagsmap_theme.php +++ b/themes/3nids/modules/tagsmap/helpers/tagsmap_theme.php @@ -1,24 +1,24 @@ -css("tagsmap.css"); - } -} +css("tagsmap.css"); + } +}