Changeset 15340 for extensions/GrumPluginClasses
- Timestamp:
- May 27, 2012, 9:50:54 AM (12 years ago)
- Location:
- extensions/GrumPluginClasses
- Files:
-
- 14 added
- 27 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GrumPluginClasses/classes/CommonPlugin.class.inc.php
r8961 r15340 129 129 $this->fileLocation=$filelocation; 130 130 $this->prefixeTable=$prefixeTable; 131 $this->page_link="admin.php?page=plugin§ion=".basename(dirname($this->getFileLocation()))."/admin/".$this->plugin_admin_file.".php"; 131 $this->page_link=get_root_url().'admin.php?page=plugin-'.basename(dirname($this->getFileLocation())); 132 //$this->page_link="admin.php?page=plugin§ion=".basename(dirname($this->getFileLocation()))."/admin/".$this->plugin_admin_file.".php"; 132 133 $this->initConfig(); 133 134 $this->displayResult_ok="OK"; … … 253 254 public function pluginAdminMenu($menu) 254 255 { 256 array_push( 257 $menu, 258 array( 259 'NAME' => $this->plugin_name, 260 'URL' => get_root_url().'admin.php?page=plugin-'.basename(dirname($this->getFileLocation())) 261 ) 262 ); 263 /* 255 264 array_push($menu, 256 265 array( … … 258 267 'URL' => get_admin_plugin_menu_link(dirname($this->getFileLocation()). 259 268 '/admin/'.$this->plugin_admin_file.'.php') 260 )); 269 ));*/ 261 270 return $menu; 262 271 } -
extensions/GrumPluginClasses/classes/GPCCore.class.inc.php
r12215 r15340 56 56 | | | 57 57 | 1.4.1 | 2011/09/19 | * Add [var] and [form_mail] markup interpreter 58 | | | 59 | | 2012/05/25 | * Add GPCUserAgent class 60 | | | 61 | | | * Compatibility with jquery 1.7.2 & jquery-ui 1.8.16 62 | | | . implement getMinified() & setMinifiedState() functions 63 | | | (let piwigo combined function manage the minified 64 | | | state) 65 | | | . add manually each component for ui functionnalities 58 66 | | | 59 67 | | | … … 75 83 - static function addHeaderJS 76 84 - static function addUI 77 - static function getMinified78 - static function setMinifiedState79 85 - static function getUserLanguageDesc 80 86 - static function getPiwigoSystemPath … … 89 95 { 90 96 static private $piwigoSystemPath; 91 static private $minified='.min';92 97 93 98 static public $pluginName = "GPCCore"; … … 102 107 103 108 self::$piwigoSystemPath=dirname(dirname(dirname(dirname(__FILE__)))); 104 105 if(isset($conf['gpc.script.minify'])) self::setMinifiedState($conf['gpc.script.minify']);106 109 107 110 if((isset($conf['gpc.markup.bb']) && $conf['gpc.markup.bb']) || … … 135 138 Array('name' => "GPCTabSheet", 'version' => "1.1.1"), 136 139 Array('name' => "GPCTranslate", 'version' => "2.1.1"), 137 Array('name' => "GPCUsersGroups", 'version' => "2.1.0") 140 Array('name' => "GPCUsersGroups", 'version' => "2.1.0"), 141 Array('name' => "GPCUserAgent", 'version' => "1.0.0") 138 142 ) 139 143 ); … … 448 452 if(preg_match($patterns[0], $text)>0) 449 453 { 450 GPCCore::addHeaderJS('gpc.markup.formMail', GPC_PATH.'js/markup.formMail '.self::$minified.'.js', array('jquery'));454 GPCCore::addHeaderJS('gpc.markup.formMail', GPC_PATH.'js/markup.formMail.js', array('jquery')); 451 455 return(preg_replace($patterns, $replacements, $text)); 452 456 } … … 490 494 if(preg_match($patterns[0], $text)>0) 491 495 { 492 GPCCore::addHeaderJS('gpc.markup.tabs', GPC_PATH.'js/markup.tabs '.self::$minified.'.js', array('jquery'));496 GPCCore::addHeaderJS('gpc.markup.tabs', GPC_PATH.'js/markup.tabs.js', array('jquery')); 493 497 GPCCore::addHeaderCSS('gpc.markup.tabs', GPC_PATH.'css/gpcTabs.css'); 494 498 return(preg_replace($patterns, $replacements, $text)); … … 591 595 case 'googleTranslate': 592 596 self::addHeaderJS('google.jsapi', 'http://www.google.com/jsapi'); 593 self::addHeaderJS('gpc.googleTranslate', 'plugins/GrumPluginClasses/js/google_translate '.self::$minified.'.js', array('jquery', 'google.jsapi'));597 self::addHeaderJS('gpc.googleTranslate', 'plugins/GrumPluginClasses/js/google_translate.js', array('jquery', 'google.jsapi')); 594 598 case 'categorySelector': 595 599 self::addHeaderCSS('gpc.categorySelector', GPC_PATH.'css/categorySelector.css'); 596 600 self::addHeaderCSS('gpc.categorySelectorT', sprintf($themeFile, 'categorySelector')); 597 self::addHeaderJS('gpc.categorySelector', GPC_PATH.'js/ui.categorySelector'.self::$minified.'.js', array('jquery')); 601 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 602 self::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 603 self::addHeaderJS('jquery.ui.mouse', 'themes/default/js/ui/jquery.ui.mouse.js', array('jquery.ui.widget')); 604 self::addHeaderJS('gpc.categorySelector', GPC_PATH.'js/ui.categorySelector.js', array('jquery.ui.widget')); 598 605 break; 599 606 case 'inputCheckbox': 600 607 self::addHeaderCSS('gpc.inputCheckbox', GPC_PATH.'css/inputCheckbox.css'); 601 self::addHeaderJS('gpc.inputCheckbox', GPC_PATH.'js/ui.inputCheckbox'.self::$minified.'.js', array('jquery')); 608 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 609 self::addHeaderJS('gpc.inputCheckbox', GPC_PATH.'js/ui.inputCheckbox.js', array('jquery.ui')); 602 610 break; 603 611 case 'inputColorPicker': … … 612 620 self::addHeaderCSS('gpc.inputDotAreaT', sprintf($themeFile, 'inputDotArea')); 613 621 self::addHeaderCSS('gpc.inputColorPickerT', sprintf($themeFile, 'inputColorPicker')); 614 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/minified/jquery.ui.core.min.js', array('jquery')); 615 self::addHeaderJS('jquery.ui.slider', 'themes/default/js/ui/minified/jquery.ui.slider.min.js', array('jquery.ui')); 616 self::addHeaderJS('jquery.ui.draggable', 'themes/default/js/ui/minified/jquery.ui.draggable.min.js', array('jquery.ui')); 617 self::addHeaderJS('jquery.ui.dialog', 'themes/default/js/ui/minified/jquery.ui.slider.dialog.js', array('jquery.ui')); 618 self::addHeaderJS('gpc.inputText', GPC_PATH.'js/ui.inputText'.self::$minified.'.js', array('jquery')); 619 self::addHeaderJS('gpc.inputNum', GPC_PATH.'js/ui.inputNum'.self::$minified.'.js', array('jquery')); 620 self::addHeaderJS('gpc.inputColorsFB', GPC_PATH.'js/ui.inputColorsFB'.self::$minified.'.js', array('jquery')); 621 self::addHeaderJS('gpc.inputDotArea', GPC_PATH.'js/ui.inputDotArea'.self::$minified.'.js', array('jquery')); 622 self::addHeaderJS('gpc.inputColorPicker', GPC_PATH.'js/ui.inputColorPicker'.self::$minified.'.js', array('jquery.ui.slider','gpc.inputText','gpc.inputNum','gpc.inputColorsFB','gpc.inputDotArea')); 622 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 623 self::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 624 self::addHeaderJS('jquery.ui.mouse', 'themes/default/js/ui/jquery.ui.mouse.js', array('jquery.ui.widget')); 625 self::addHeaderJS('jquery.ui.position', 'themes/default/js/ui/jquery.ui.position.js', array('jquery.ui.widget')); 626 self::addHeaderJS('jquery.ui.draggable', 'themes/default/js/ui/jquery.ui.draggable.js', array('jquery.ui.widget')); 627 self::addHeaderJS('jquery.ui.dialog', 'themes/default/js/ui/jquery.ui.dialog.js', array('jquery.ui.widget')); 628 self::addHeaderJS('jquery.ui.slider', 'themes/default/js/ui/jquery.ui.slider.js', array('jquery.ui.widget')); 629 self::addHeaderJS('gpc.inputText', GPC_PATH.'js/ui.inputText.js', array('jquery.ui.widget')); 630 self::addHeaderJS('gpc.inputNum', GPC_PATH.'js/ui.inputNum.js', array('jquery.ui.widget')); 631 self::addHeaderJS('gpc.inputColorsFB', GPC_PATH.'js/ui.inputColorsFB.js', array('jquery.ui.widget')); 632 self::addHeaderJS('gpc.inputDotArea', GPC_PATH.'js/ui.inputDotArea.js', array('jquery.ui.widget')); 633 self::addHeaderJS('gpc.inputColorPicker', GPC_PATH.'js/ui.inputColorPicker.js', array('jquery.ui.slider','gpc.inputText','gpc.inputNum','gpc.inputColorsFB','gpc.inputDotArea')); 623 634 break; 624 635 case 'inputColorsFB': 625 636 self::addHeaderCSS('gpc.inputColorsFB', GPC_PATH.'css/inputColorsFB.css'); 626 637 self::addHeaderCSS('gpc.inputColorsFBT', sprintf($themeFile, 'inputColorsFB')); 627 self::addHeaderJS('gpc.inputColorsFB', GPC_PATH.'js/ui.inputColorsFB'.self::$minified.'.js', array('jquery')); 638 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 639 self::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 640 self::addHeaderJS('gpc.inputColorsFB', GPC_PATH.'js/ui.inputColorsFB.js', array('jquery.ui.widget')); 628 641 break; 629 642 case 'inputConsole': 630 643 self::addHeaderCSS('gpc.inputConsole', GPC_PATH.'css/inputConsole.css'); 631 644 self::addHeaderCSS('gpc.inputConsoleT', sprintf($themeFile, 'inputConsole')); 632 self::addHeaderJS('gpc.inputConsole', GPC_PATH.'js/ui.inputConsole'.self::$minified.'.js', array('jquery')); 645 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 646 self::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 647 self::addHeaderJS('gpc.inputConsole', GPC_PATH.'js/ui.inputConsole.js', array('jquery.ui.widget')); 633 648 break; 634 649 case 'inputDotArea': 635 650 self::addHeaderCSS('gpc.inputDotArea', GPC_PATH.'css/inputDotArea.css'); 636 651 self::addHeaderCSS('gpc.inputDotAreaT', sprintf($themeFile, 'inputDotArea')); 637 self::addHeaderJS('gpc.inputDotArea', GPC_PATH.'js/ui.inputDotArea'.self::$minified.'.js', array('jquery')); 652 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 653 self::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 654 self::addHeaderJS('gpc.inputDotArea', GPC_PATH.'js/ui.inputDotArea.js', array('jquery.ui.widget')); 638 655 break; 639 656 case 'inputList': 640 657 self::addHeaderCSS('gpc.inputList', GPC_PATH.'css/inputList.css'); 641 658 self::addHeaderCSS('gpc.inputListT', sprintf($themeFile, 'inputList')); 642 self::addHeaderJS('gpc.inputList', GPC_PATH.'js/ui.inputList'.self::$minified.'.js', array('jquery')); 659 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 660 self::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 661 self::addHeaderJS('gpc.inputList', GPC_PATH.'js/ui.inputList.js', array('jquery.ui.widget')); 643 662 break; 644 663 case 'inputNum': 645 664 self::addHeaderCSS('gpc.inputNum', GPC_PATH.'css/inputNum.css'); 646 665 self::addHeaderCSS('gpc.inputNumT', sprintf($themeFile, 'inputNum')); 647 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/minified/jquery.ui.core.min.js', array('jquery')); 648 self::addHeaderJS('jquery.ui.slider', 'themes/default/js/ui/minified/jquery.ui.slider.min.js', array('jquery.ui')); 649 self::addHeaderJS('gpc.inputNum', GPC_PATH.'js/ui.inputNum'.self::$minified.'.js', array('jquery','jquery.ui.slider')); 666 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 667 self::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 668 self::addHeaderJS('jquery.ui.mouse', 'themes/default/js/ui/jquery.ui.mouse.js', array('jquery.ui.widget')); 669 self::addHeaderJS('jquery.ui.slider', 'themes/default/js/ui/jquery.ui.slider.js', array('jquery.ui.widget')); 670 self::addHeaderJS('gpc.inputNum', GPC_PATH.'js/ui.inputNum.js', array('jquery','jquery.ui.slider')); 650 671 break; 651 672 case 'inputPosition': 652 673 self::addHeaderCSS('gpc.inputPosition', GPC_PATH.'css/inputPosition.css'); 653 674 self::addHeaderCSS('gpc.inputPositionT', sprintf($themeFile, 'inputPosition')); 654 self::addHeaderJS('gpc.inputPosition', GPC_PATH.'js/ui.inputPosition'.self::$minified.'.js', array('jquery')); 675 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 676 self::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 677 self::addHeaderJS('gpc.inputPosition', GPC_PATH.'js/ui.inputPosition.js', array('jquery.ui.widget')); 655 678 break; 656 679 case 'inputRadio': 657 self::addHeaderJS('gpc.inputRadio', GPC_PATH.'js/ui.inputRadio'.self::$minified.'.js', array('jquery')); 680 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 681 self::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 682 self::addHeaderJS('gpc.inputRadio', GPC_PATH.'js/ui.inputRadio.js', array('jquery.ui.widget')); 658 683 break; 659 684 case 'inputStatusBar': 660 685 self::addHeaderCSS('gpc.inputStatusBar', GPC_PATH.'css/inputStatusBar.css'); 661 686 self::addHeaderCSS('gpc.inputStatusBarT', sprintf($themeFile, 'inputStatusBar')); 662 self::addHeaderJS('gpc.inputStatusBar', GPC_PATH.'js/ui.inputStatusBar'.self::$minified.'.js', array('jquery')); 687 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 688 self::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 689 self::addHeaderJS('gpc.inputStatusBar', GPC_PATH.'js/ui.inputStatusBar.js', array('jquery.ui.widget')); 690 break; 691 case 'inputSwitchButton': 692 self::addHeaderCSS('gpc.inputSwitchButton', GPC_PATH.'css/inputSwitchButton.css'); 693 self::addHeaderCSS('gpc.inputSwitchButtonT', sprintf($themeFile, 'inputSwitchButton')); 694 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 695 self::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 696 self::addHeaderJS('gpc.inputSwitchButton', GPC_PATH.'js/ui.inputSwitchButton.js', array('jquery.ui.widget')); 663 697 break; 664 698 case 'inputText': 665 699 self::addHeaderCSS('gpc.inputText', GPC_PATH.'css/inputText.css'); 666 700 self::addHeaderCSS('gpc.inputTextT', sprintf($themeFile, 'inputText')); 667 self::addHeaderJS('gpc.inputText', GPC_PATH.'js/ui.inputText'.self::$minified.'.js', array('jquery')); 701 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 702 self::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 703 self::addHeaderJS('gpc.inputText', GPC_PATH.'js/ui.inputText.js', array('jquery.ui.widget')); 704 break; 705 case 'simpleTip': 706 self::addHeaderCSS('gpc.simpleTip', GPC_PATH.'css/simpleTip.css'); 707 self::addHeaderCSS('gpc.simpleTipT', sprintf($themeFile, 'simpleTip')); 708 self::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 709 self::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 710 self::addHeaderJS('gpc.simpleTip', GPC_PATH.'js/simpleTip.js', array('jquery.ui.widget')); 668 711 break; 669 712 } 670 713 } 671 }672 673 /**674 * return the minified value675 *676 * @return String677 */678 static public function getMinified()679 {680 return(self::$minified);681 }682 683 /**684 * set the minified state685 *686 * @param Bool $state687 * @return Bool688 */689 static public function setMinifiedState($state)690 {691 if($state)692 {693 self::$minified='.min';694 }695 else696 {697 self::$minified='';698 }699 return(self::$minified!='');700 714 } 701 715 -
extensions/GrumPluginClasses/classes/GPCCss.class.inc.php
r10252 r15340 47 47 } 48 48 49 static public function applyCSSFile($fileName="" )49 static public function applyCSSFile($fileName="", $dependencies=array()) 50 50 { 51 51 global $template; … … 60 60 elseif(file_exists($fileName)) 61 61 { 62 GPCCore::addHeaderCSS(basename(dirname($fileName)), 'plugins/'.basename(dirname($fileName)).'/'.basename($fileName).'' );62 GPCCore::addHeaderCSS(basename(dirname($fileName)), 'plugins/'.basename(dirname($fileName)).'/'.basename($fileName).'', array_merge(array('gpc', 'gpc_theme'),$dependencies) ); 63 63 } 64 64 } -
extensions/GrumPluginClasses/classes/GPCRequestBuilder.class.inc.php
r10884 r15340 541 541 542 542 $baseName=basename(dirname(dirname(__FILE__))).'/js/'; 543 GPCCore::addHeaderJS('jquery', 'themes/default/js/jquery.min.js'); 544 GPCCore::addHeaderJS('gpc.external.inestedsortable', 'plugins/'.$baseName.'external/iNestedSortablePack'.GPCCore::getMinified().'.js', array('jquery', 'jquery.ui')); 545 GPCCore::addHeaderJS('gpc.rbCriteriaBuilder', 'plugins/'.$baseName.'rbCriteriaBuilder'.GPCCore::getMinified().'.js', array('gpc.external.inestedsortable')); 543 GPCCore::addHeaderJS('jquery', 'themes/default/js/jquery.js'); 544 GPCCore::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 545 GPCCore::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 546 GPCCore::addHeaderJS('jquery.ui.mouse', 'themes/default/js/ui/jquery.ui.mouse.js', array('jquery.ui.widget')); 547 GPCCore::addHeaderJS('jquery.ui.position', 'themes/default/js/ui/jquery.ui.position.js', array('jquery.ui.widget')); 548 GPCCore::addHeaderJS('jquery.ui.draggable', 'themes/default/js/ui/jquery.ui.draggable.js', array('jquery.ui.widget')); 549 GPCCore::addHeaderJS('jquery.ui.dialog', 'themes/default/js/ui/jquery.ui.dialog.js', array('jquery.ui.widget')); 550 GPCCore::addHeaderJS('jquery.ui.slider', 'themes/default/js/ui/jquery.ui.slider.js', array('jquery.ui.widget')); 551 552 GPCCore::addHeaderJS('gpc.external.inestedsortable', 'plugins/'.$baseName.'external/iNestedSortablePack.js', array('jquery', 'jquery.ui')); 553 GPCCore::addHeaderJS('gpc.rbCriteriaBuilder', 'plugins/'.$baseName.'rbCriteriaBuilder.js', array('gpc.external.inestedsortable')); 546 554 547 555 $template->append('head_elements', … … 959 967 { 960 968 // affect standard datas 961 $datas['imageThumbnail']= dirname($row['imagePath'])."/".$conf['dir_thumbnail']."/".$conf['prefix_thumbnail'].basename($row['imagePath']);969 $datas['imageThumbnail']=DerivativeImage::thumb_url(array('id'=>$row['imageId'], 'path'=>$row['imagePath'])); 962 970 $datas['imageId']=$row['imageId']; 963 971 $datas['imagePath']=$row['imagePath']; … … 1395 1403 $filter=array_flip($filter); 1396 1404 1397 GPCCore::addHeaderJS('jquery.ui', 'themes/default/js/ui/minified/jquery.ui.core.packed.js'); 1398 GPCCore::addHeaderJS('jquery.ui.dialog', 'themes/default/js/ui/minified/jquery.ui.dialog.packed.js'); 1399 GPCCore::addHeaderJS('gpc.pagesNavigator', 'plugins/GrumPluginClasses/js/pagesNavigator'.GPCCore::getMinified().'.js'); 1400 GPCCore::addHeaderJS('gpc.rbSearch', 'plugins/GrumPluginClasses/js/rbSearch'.GPCCore::getMinified().'.js'); 1401 1405 GPCCore::addHeaderJS('jquery.ui', 'themes/default/js/ui/jquery.ui.core.js', array('jquery')); 1406 GPCCore::addHeaderJS('jquery.ui.widget', 'themes/default/js/ui/jquery.ui.widget.js', array('jquery.ui')); 1407 GPCCore::addHeaderJS('jquery.ui.mouse', 'themes/default/js/ui/jquery.ui.mouse.js', array('jquery.ui.widget')); 1408 GPCCore::addHeaderJS('jquery.ui.position', 'themes/default/js/ui/jquery.ui.position.js', array('jquery.ui.widget')); 1409 GPCCore::addHeaderJS('jquery.ui.draggable', 'themes/default/js/ui/jquery.ui.draggable.js', array('jquery.ui.widget')); 1410 GPCCore::addHeaderJS('jquery.ui.dialog', 'themes/default/js/ui/jquery.ui.dialog.js', array('jquery.ui.widget')); 1411 GPCCore::addHeaderJS('jquery.ui.slider', 'themes/default/js/ui/jquery.ui.slider.js', array('jquery.ui.widget')); 1412 GPCCore::addHeaderJS('gpc.pagesNavigator', 'plugins/GrumPluginClasses/js/pagesNavigator.js'); 1413 GPCCore::addHeaderJS('gpc.rbSearch', 'plugins/GrumPluginClasses/js/rbSearch.js'); 1402 1414 1403 1415 $template->set_filename('gpc_search_page', -
extensions/GrumPluginClasses/css/gpc.css
r7310 r15340 41 41 display:table; 42 42 font-family:verdana,arial,helvetica,sans-serif; font-size:8px; 43 list-style:none; padding: 0 0 0 10px; position:relative; text-decoration:none;44 white-space:nowrap; margin: 0 0 0 -6px;top:-21px;border-bottom:1px solid;43 list-style:none; padding: 0 0 0 6px; position:relative; text-decoration:none; 44 white-space:nowrap; margin: 0 0 0 0px;top:-21px;border-bottom:1px solid; 45 45 width:100%; 46 46 } … … 94 94 color:#800000; 95 95 } 96 97 98 99 100 -
extensions/GrumPluginClasses/css/gpc_clear.css
r10252 r15340 13 13 .gcBorder2 { border-color: #666666; } /* used for widgets borders */ 14 14 .gcBorderInput { border-color:#777777; } /* used for inputs */ 15 -
extensions/GrumPluginClasses/js/simpleTip.js
r8961 r15340 70 70 offsetY:0, 71 71 classes:'', 72 arrowImgDir: '',73 72 arrowWidth: 12, 74 73 arrowHeight: 12 … … 322 321 arrowX=-bwX; 323 322 arrowY=-items[itemIndex].options.arrowHeight+bwY; 324 arrowModel=' up';323 arrowModel='Up'; 325 324 break; 326 325 … … 330 329 arrowX=(stWidthI-items[itemIndex].options.arrowWidth)/2; 331 330 arrowY=-items[itemIndex].options.arrowHeight+bwY; 332 arrowModel=' up';331 arrowModel='Up'; 333 332 break; 334 333 … … 338 337 arrowX=stWidthI-items[itemIndex].options.arrowWidth+bwX; 339 338 arrowY=-items[itemIndex].options.arrowHeight+bwY; 340 arrowModel=' up';339 arrowModel='Up'; 341 340 break; 342 341 … … 346 345 arrowX=-items[itemIndex].options.arrowWidth+bwX; 347 346 arrowY=(stHeightI-items[itemIndex].options.arrowHeight)/2+bwY; 348 arrowModel=' left';347 arrowModel='Left'; 349 348 break; 350 349 … … 359 358 arrowX=stWidthI+bwX; 360 359 arrowY=(stHeightI-items[itemIndex].options.arrowHeight)/2+bwY; 361 arrowModel=' right';360 arrowModel='Right'; 362 361 break; 363 362 … … 367 366 arrowX=-bwX; 368 367 arrowY=stHeightI+bwY; 369 arrowModel=' down';368 arrowModel='Down'; 370 369 break; 371 370 … … 375 374 arrowX=(stWidthI-items[itemIndex].options.arrowWidth)/2+bwX; 376 375 arrowY=stHeightI+bwY; 377 arrowModel=' down';376 arrowModel='Down'; 378 377 break; 379 378 … … 383 382 arrowX=stWidthI-items[itemIndex].options.arrowWidth+bwX; 384 383 arrowY=stHeightI+bwY; 385 arrowModel=' down';384 arrowModel='Down'; 386 385 break; 387 386 } … … 389 388 if(items[itemIndex].options.drawArrow & arrowModel!='') 390 389 { 390 switch(arrowModel) 391 { 392 case 'Up': 393 bgp='-'+items[itemIndex].options.arrowHeight+'px 0px'; 394 break; 395 case 'Left': 396 bgp='0px -'+items[itemIndex].options.arrowWeight+'px'; 397 break; 398 case 'Down': 399 bgp='0px 0px'; 400 break; 401 case 'Right': 402 bgp='-'+items[itemIndex].options.arrowHeight+'px -'+items[itemIndex].options.arrowWeight+'px'; 403 break; 404 } 391 405 $('#iSimpleTipArrow'+options.name).css( 392 406 { 393 407 display: 'block', 394 background : 'url("'+items[itemIndex].options.arrowImgDir+'/arrow_'+arrowModel+'.png") no-repeat scroll 0 0 transparent',408 backgroundPosition: bgp, 395 409 marginLeft: arrowX+'px', 396 410 marginTop: arrowY+'px', … … 434 448 if($('#iSimpleTip'+options.name).length==0) 435 449 { 436 text="<div id='iSimpleTip"+options.name+"' style='z-index:15000;display:none;position:absolute;left:0px;top:0px;'><div id='iSimpleTipShadow"+options.name+"' style='position:absolute;width:100%;height:100%;background:#000000;opacity:0.4;filter:alpha(opacity:40);display:block;z-index:-1;margin-left:2px;margin-top:2px;'></div><div id='iSimpleTipArrow"+options.name+"' style='position:absolute;'></div><divid='iSimpleTipContent"+options.name+"'></div></div>";450 text="<div class='cSimpleTip' id='iSimpleTip"+options.name+"' style='z-index:15000;display:none;position:absolute;left:0px;top:0px;'><div class='cSimpleTipShadow' id='iSimpleTipShadow"+options.name+"'></div><div class='cSimpleTipArrow' id='iSimpleTipArrow"+options.name+"'></div><div class='cSimpleTipContent' id='iSimpleTipContent"+options.name+"'></div></div>"; 437 451 $('body').append(text); 438 452 } -
extensions/GrumPluginClasses/js/ui.categorySelector.js
r8961 r15340 2 2 * ----------------------------------------------------------------------------- 3 3 * file: ui.categorySelector.js 4 * file version: 1.1. 05 * date: 201 1-01-124 * file version: 1.1.1 5 * date: 2012-05-25 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 40 40 * | | | * add 'displayPath' property 41 41 * | | | 42 * | 1.1.1 | 2012-05-25 | * fix bug with jquery 1.7.2 43 * | | | . display list now works :) 44 * | | | 45 * | | | 46 * | | | 42 47 * | | | 43 48 * … … 123 128 { 124 129 privateMethods.displaySelector($this, !$this.data('properties').selectorVisible); 125 $(this).focus();130 //$(this).focus(); // if get the focus, it hide the dorp-down list.. ? 126 131 } 127 132 ), … … 783 788 return(null); 784 789 } 785 } // numberOfCategories790 }, // numberOfCategories 786 791 }; // methods 787 792 … … 1618 1623 { 1619 1624 objects.listContainer.html('Error ! '+msg); 1620 } 1625 }, 1621 1626 } 1622 1627 ); -
extensions/GrumPluginClasses/js/ui.inputList.js
r8961 r15340 2 2 * ----------------------------------------------------------------------------- 3 3 * file: ui.inputList.js 4 * file version: 1.0. 05 * date: 201 0-11-024 * file version: 1.0.1 5 * date: 2012-05-25 6 6 * 7 7 * A jQuery plugin provided by the piwigo's plugin "GrumPluginClasses" … … 24 24 * | 1.0.0 | 2010/10/10 | first release 25 25 * | | | 26 * | | | 26 * | 1.0.1 | 2012/05/25 | fix bug with jquery 1.7.2 27 * | | | . display list now works :) 27 28 * | | | 28 29 * | | | … … 107 108 { 108 109 privateMethods.displaySelector($this, !$this.data('properties').selectorVisible); 109 $(this).focus();110 //$(this).focus(); // if get the focus, it hide the dorp-down list.. ? 110 111 } 111 112 ), … … 166 167 privateMethods.setOptions($this, opt); 167 168 168 if($this.text()!='') 169 if($this.text()!='') 169 170 { 170 171 var tmp=$.parseJSON($.trim($this.text())), … … 180 181 values=tmp.values; 181 182 } 182 183 183 184 if(tmp.selected!=null) selectedValues=tmp.selected; 184 185 privateMethods.setItems($this, values); 186 privateMethods.setValue($this, selectedValues); 187 185 186 privateMethods.setItems($this, values); 187 privateMethods.setValue($this, selectedValues); 188 188 189 } 189 190 … … 560 561 { 561 562 for(var i=0;i<properties.items.length;i++) 562 { 563 { 563 564 if($.inArray(i, properties.index)==-1) 564 565 returned.push(properties.items[i].value); -
extensions/GrumPluginClasses/main.inc.php
r12215 r15340 169 169 | | | . [form_mail] 170 170 | | | 171 | | | * Add UserAgent classes 172 | | | 171 173 | | | * mantis bug:2160 172 174 | | | . CategorySelector : extended description are not 173 175 | | | managed 176 | | | 177 | | | * mantis feature:2634 178 | | | . Compatibility with Piwigo 2.4 174 179 | | | 175 180 | | |
Note: See TracChangeset
for help on using the changeset viewer.