From e305a00bd01b00a8f92ccfc86cd7cc8e5b0602af Mon Sep 17 00:00:00 2001 From: Miriam Ruiz Date: Fri, 11 Jun 2010 09:42:18 +0200 Subject: [PATCH] DiscussionCustomPrefix: Make properly show icons --- extensions/DiscussionCustomPrefix/config.php | 22 ++++---- extensions/DiscussionCustomPrefix/default.php | 60 ++++++++------------- extensions/DiscussionCustomPrefix/icons/admin.png | Bin 0 -> 428 bytes .../DiscussionCustomPrefix/icons/calendar.png | Bin 0 -> 3560 bytes extensions/DiscussionCustomPrefix/icons/chat.png | Bin 0 -> 225 bytes extensions/DiscussionCustomPrefix/icons/data.png | Bin 0 -> 405 bytes extensions/DiscussionCustomPrefix/icons/news.png | Bin 0 -> 658 bytes .../DiscussionCustomPrefix/icons/private.png | Bin 0 -> 846 bytes extensions/DiscussionCustomPrefix/icons/tech.png | Bin 0 -> 977 bytes extensions/DiscussionCustomPrefix/icons/trash.png | Bin 0 -> 778 bytes .../DiscussionCustomPrefix/icons/unknown.png | Bin 0 -> 690 bytes .../DiscussionCustomPrefix/icons/warning.png | Bin 0 -> 677 bytes extensions/DiscussionCustomPrefix/icons/world.png | Bin 0 -> 3630 bytes extensions/DiscussionCustomPrefix/style.css | 27 ++++------ 14 files changed, 45 insertions(+), 64 deletions(-) rewrite extensions/DiscussionCustomPrefix/config.php (71%) create mode 100644 extensions/DiscussionCustomPrefix/icons/admin.png create mode 100644 extensions/DiscussionCustomPrefix/icons/calendar.png create mode 100644 extensions/DiscussionCustomPrefix/icons/chat.png create mode 100644 extensions/DiscussionCustomPrefix/icons/data.png create mode 100644 extensions/DiscussionCustomPrefix/icons/news.png create mode 100644 extensions/DiscussionCustomPrefix/icons/private.png create mode 100644 extensions/DiscussionCustomPrefix/icons/tech.png create mode 100644 extensions/DiscussionCustomPrefix/icons/trash.png create mode 100644 extensions/DiscussionCustomPrefix/icons/unknown.png create mode 100644 extensions/DiscussionCustomPrefix/icons/warning.png create mode 100644 extensions/DiscussionCustomPrefix/icons/world.png diff --git a/extensions/DiscussionCustomPrefix/config.php b/extensions/DiscussionCustomPrefix/config.php dissimilarity index 71% index e29c03c..ddc49be 100644 --- a/extensions/DiscussionCustomPrefix/config.php +++ b/extensions/DiscussionCustomPrefix/config.php @@ -1,9 +1,13 @@ - \ No newline at end of file + 'Evento', 'img' => 'calendar.png'); +$Config[2] = array('name'=> 'Datos' , 'img' => 'data.png'); +$Config[3] = array('name'=> 'Aviso' , 'img' => 'warning.png'); +$Config[4] = array('name'=> 'Técnico' , 'img' => 'tech.png'); +$Config[5] = array('name'=> 'Noticias' , 'img' => 'news.png'); +$Config[6] = array('name'=> 'Mundo' , 'img' => 'world.png'); +$Config[7] = array('name'=> 'Hablar' , 'img' => 'chat.png'); + +?> \ No newline at end of file diff --git a/extensions/DiscussionCustomPrefix/default.php b/extensions/DiscussionCustomPrefix/default.php index 344e2b3..224a9ed 100644 --- a/extensions/DiscussionCustomPrefix/default.php +++ b/extensions/DiscussionCustomPrefix/default.php @@ -14,11 +14,10 @@ if(!defined('IN_VANILLA')) die(); $Context->SetDefinition('LabelTextDiscussionPrefix', 'Prefix'); $Context->SetDefinition('SelectOptionNoPrefix', 'no prefix'); - define('DCP_VERSION', 0.01); define('DCP_PATH', $Configuration['EXTENSIONS_PATH'].'DiscussionCustomPrefix/'); define('DCP_ROOT', $Configuration['WEB_ROOT'].'extensions/DiscussionCustomPrefix/'); -define('DCP_IMAGES', DCP_ROOT.'images/'); +define('DCP_IMAGES', DCP_ROOT.'icons/'); $DatabaseColumns['Discussion']['CustomPrefixID'] = 'CustomPrefixID'; @@ -28,7 +27,6 @@ if($_VERSION != DCP_VERSION) require DCP_PATH.'setup.php'; switch($Context->SelfUrl){ case 'post.php':{ $Context->AddToDelegate('DiscussionForm', 'DiscussionForm_PreTopicRender', 'DCP_DiscussionForm_PreTopicRender'); - //$Context->AddToDelegate('DiscussionForm', 'PreSaveDiscussion', 'DCP_PreSaveDiscussionForm'); $Context->AddToDelegate('DiscussionManager', 'PreSaveDiscussion', 'DCP_PreSaveDiscussion'); break; } @@ -40,7 +38,6 @@ switch($Context->SelfUrl){ case 'comments.php':{ $Context->AddToDelegate('CommentGrid', 'Constructor', 'DCP_SetDelegateParameter'); $Context->AddToDelegate('CommentGrid', 'PreRender', 'DCP_CommentsPreRender'); - //$Context->AddToDelegate('Discussion', 'PostDiscussionPrefix', 'DCP_PostDiscussionPrefix'); break; } default: return; @@ -48,16 +45,26 @@ switch($Context->SelfUrl){ $Context->AddToDelegate('DiscussionManager', 'PostGetDiscussionBuilder', 'DCP_PostGetDiscussionBuilder'); $Context->AddToDelegate('Discussion', 'PostGetPropertiesFromDataSet', 'DCP_PostGetPropertiesFromDataSet'); -$Head->AddStyleSheet(DCP_ROOT.'style.css'); +$Head->AddStyleSheet('extensions/DiscussionCustomPrefix/style.css'); + +function AddDiscussionCustomPrefixSelectStyles($Head) { + include DCP_PATH.'config.php'; + $ListStyles=''; + while(list($ID, $Info) = each($Config)) + $ListStyles .= '.LargeSelect option.CustomPrefix_'.$ID.':before {content: url(extensions/DiscussionCustomPrefix/icons/'.$Info['img'].') !important;}'."\n"; + $Head->AddString("\n"); +} + +AddDiscussionCustomPrefixSelectStyles($Head); function GetDiscussionCustomPrefixSelect(&$Context, $Selected = 0){ $S = $Context->ObjectFactory->NewContextObject($Context, 'Select'); $S->Name = 'DiscussionCustomPrefix'; - //$S->CssClass = ''; $S->SelectedValue = $Selected; include DCP_PATH.'config.php'; $S->AddOption(0, $Context->GetDefinition('SelectOptionNoPrefix')); - while(list($ID, $Info) = each($Config)) $S->AddOption($ID, $Info[0]); + while(list($ID, $Info) = each($Config)) + $S->AddOption($ID, $Info['name'], ' class="CustomPrefix_'.$ID.'"'); return $S; } @@ -85,51 +92,26 @@ function DCP_PostGetPropertiesFromDataSet(&$Discussion){ @$Discussion->CustomPrefixID = ForceInt($DataSet['CustomPrefixID'], 0); } -/*function DCP_PreSaveDiscussionForm(&$DiscussionForm){ - $Discussion =& $DiscussionForm->DelegateParameters['SaveDiscussion']; - $Discussion->CustomPrefixID = ForceIncomingInt('DiscussionCustomPrefix', 0); - -}*/ - function DCP_PreSaveDiscussion(&$DiscussionManager){ $SqlBuilder =& $DiscussionManager->DelegateParameters['SqlBuilder']; $CustomPrefixID = ForceIncomingInt('DiscussionCustomPrefix', 0); $SqlBuilder->AddFieldNameValue('CustomPrefixID', $CustomPrefixID); } -function GetCustomPrefixStyle(&$UnknownGrid, $CustomPrefixID, $bCommentGrid = False){ - $CustomPrefixConfig =& $UnknownGrid->DelegateParameters['CustomPrefixConfig']; - $PrefixInfo = @$CustomPrefixConfig[$CustomPrefixID]; - if(!$PrefixInfo) return; - $Style = "background-image:url($PrefixInfo[1]);"; - if(Is_Numeric($PrefixInfo[2])) $PrefixInfo[2] .= 'px'; - $WidthName = ($bCommentGrid) ? 'padding-right' : 'width'; - $Style .= "$WidthName:$PrefixInfo[2];"; - return $Style; -} - function DCP_PreDiscussionOptionsRender(&$DiscussionGrid){ $Discussion =& $DiscussionGrid->DelegateParameters['Discussion']; $DiscussionList =& $DiscussionGrid->DelegateParameters['DiscussionList']; - if($Discussion->CustomPrefixID){ - $Style = GetCustomPrefixStyle($DiscussionGrid, $Discussion->CustomPrefixID); - if($Style != '') $DiscussionList .= "
"; - } + $CustomPrefixConfig =& $DiscussionGrid->DelegateParameters['CustomPrefixConfig']; + $PrefixInfo = @$CustomPrefixConfig[$Discussion->CustomPrefixID]; + if($PrefixInfo) + $DiscussionList .= ''.$PrefixInfo['name'].' '; } function DCP_CommentsPreRender(&$CommentGrid){ $Discussion =& $CommentGrid->Discussion; $CustomPrefixConfig =& $CommentGrid->DelegateParameters['CustomPrefixConfig']; - if($Discussion->CustomPrefixID){ - $Style = GetCustomPrefixStyle($CommentGrid, $Discussion->CustomPrefixID, True); - if($Style != '') $Discussion->Name = "
".$Discussion->Name; - } + $PrefixInfo = @$CustomPrefixConfig[$Discussion->CustomPrefixID]; + if($PrefixInfo) + $Discussion->Name = ''.$PrefixInfo['name'].' '.$Discussion->Name; } - -/*function DCP_PostDiscussionPrefix(&$Discussion){ - global $CommentGrid; - $Prefix =& $Discussion->DelegateParameters['Prefix']; - $Style = GetCustomPrefixStyle($CommentGrid, $Discussion->CustomPrefixID, True); - if($Style != '') $Prefix = "
"; -}*/ ?> \ No newline at end of file diff --git a/extensions/DiscussionCustomPrefix/icons/admin.png b/extensions/DiscussionCustomPrefix/icons/admin.png new file mode 100644 index 0000000000000000000000000000000000000000..2593d7493b68d06d14420e0d44b6131127ff343c GIT binary patch literal 428 zcwXxa@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPgg4R#_ol-Cu?W{sK+W@pN$vu{hm3 zSvT*ngMi!pC{|X*g%i2BiW+p!2v)TkDFjZFQUxt(vwcRpUS7Igdrv9}2}EZ@ztg@k-y7LQWhEI_oXJ zneMc7GGU#sAAPOcmchQ?FzsvMe-_0S#x)l{&Dx&4#PwJD9d_Mo-L>36B}69to$nePc)~%gZQP*>BdOC4DGLGu(5}ly6QrY&T zgx}>7hAd{$7n~tZ|5K+j6ji*t#I>aF+FS);M#-{e!kO;bg74pEu&j6(X4JFw>&4vS zh0|tws{{w$TEbqfy^Y_@uz7#s9P)StO&>uS)ve< z0AYj>5AR{$W90N^4L=L-RlQUJ&DC0@ZjPh;=*jPLSYvv5M~MFBAl0-BNIsH15C~g000{K(ZT*W zKal6<?_01!^k@7iDG<<3=fuAC~28EsPoqkpK{9 zG%|Vj005J}`Hw&=0RYXHq~ibpyyzHQsFW8>#s~laM4*8xut5h5!4#~(4xGUqyucR% zVFpA%3?#rj5JCpzfE)^;7?wd9RKPme1hudO8lVxH;SjXJF*pt9;1XPc>u?taU>Kgl z7`%oF1VP9M6Ja4bh!J9r*dopd7nzO(B4J20l7OTj>4+3jBE`sZqynizYLQ(?Bl0bB z6giDtK>Co|$RIL`{EECsF_eL_Q3KQhbwIhO9~z3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la-j`)R8h@8E&(P%FzkhYyrDpYPUo{)vWwAl`u`hc46mS|7G;BZMFv4r7`E zDHWdQ0pK_mwr!&nl*?tb*7&~9&*@*Vq*tP`z6mEBqEIMs_3EeO^LaWuI~f@nAsh}f zIXOu>ou;X&iDWWKEEc0$@sM5#Ln(!nl1in*(9jS{DN?Bv8yg#pkB_sow8YfZ6sc5- z*49>rhlknU-$zP`QVJ^wG=3nl4Z+~xARVy|+S}WS$K!aOhi%#bEH5pyy}ga=y68Y5 zRX`AE479@c0;<(2i9~|t)@CLqCYYU_rN6%)sU%u!?tgoq`T2RG(I`>{_+9{7VM(R% zWfg=$c`xAZy}NurJQL70(Y)*K0-AbW|YuPgg4R#`zE9*f3mNuW@or;B5V#p$;} zr@0OoaCp1@Kl$JOSLn@D?K4}GG<2091?ForY0Y9_@MH7US31*}>jSim N!PC{xWt~$(69A)2N4x+4 literal 0 HcwPel00001 diff --git a/extensions/DiscussionCustomPrefix/icons/data.png b/extensions/DiscussionCustomPrefix/icons/data.png new file mode 100644 index 0000000000000000000000000000000000000000..3b89e908a481cac0aba0eed8a2c8381b786f0952 GIT binary patch literal 405 zcwXxa@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPgg4R#`!FqkwB`HGrmwdb&7^56TnF68Q}Uu?@GX*B({!4&sv1~D~t z^B!KmKcDCQ{{6{6zC2bwy#4-tkeL$mYW5yG@W(}9xA;G&+RBeVE8C{W&ohpxFP-}E z==0|VXG`67e>{GuYp%e*_51B5<7(>qu1ovy0Kvn&wt_PU4jd48z_IXteSP~PiJNI6 z;(va&YjHfT|MhX=juw&73(ZP9%1+0z6=t)E*qhHSKAOkiboVs((xWgD$)EF}_d~6|E9cYZTvaqk~9`i&BW97*P>v z@lDk@Xl;b%^t%HQ(pa0tz@5kM+;h(T<_N&ip(~wEOB0DiJ{F5{;c!^;_xs1dg=jRo z3WY*KAQ0euKA+@K0;yC=8jr^rydICoSglqd_{QV$a4whY=|O=zI1-7hhr=Og4T=Ck z5O8*O_S@lbByBd^lf44TWKv2W^LH=<&(F_6aj;k{L?;9b7K?>5nM{(sFqO3)3}ZrBV@HFj%2boa`NCnylwer*m5<6vU%rtuL2L)a!Nd zJP*qIOD>n6?i;$@!fv-8Tdme9+l?I|%bm;R7`!3)<-bP$-VIIGvB6*%vHYw+%Da)t sWG@c=a1S2nbh=||dPK1BKbT#A0Qk`HN6lbD;Q#;t07*qoM6N<$f^gU==>Px# literal 0 HcwPel00001 diff --git a/extensions/DiscussionCustomPrefix/icons/private.png b/extensions/DiscussionCustomPrefix/icons/private.png new file mode 100644 index 0000000000000000000000000000000000000000..c84b1339c9ad0a9eefc67c22f5c35c2ee40b4e31 GIT binary patch literal 846 zcwPZc1F`&xP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igT4 z5i<<++jWNk00PcQL_t(I%Vm;VXq-hDhM)QO-`(scO%^sW)I-x0w5YYg2Eif8k@8lnH?=;k5Q3M|J? zO=({?xqYzsOJ%SyUFmj{+kZHFlpu8UuY1I_B01Ks^V@@!FgJWlwM^~!43*sM&W{f5 z8}GQ?__nd~;f0$evV}ET0k(AP!0bag;njP;PH3nen zv!`_PlY216p!9$-pgD40c~xB#kOrj7q|U?XTF&g*#^VS7Fg`#Z=P+K3`*R;!9LDo2 zXjVe|1^^*jT0rX)Nb_fK4N4Du%s@QX5u&w-fZ7N<@j0egrSS06%pcf=D6D<@ekB09u|_A(t{(I-aAk)VrcJ6>~t1g z_?_-8gOrx)hy~3Q2|EFSf(V*K#NVGI-+vy{T}8YeJPqM$ot0T7UWV#D22^fzAa=Fu z8aY7MXaV)h7Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igT4 z5h^VrvdqB%00U7;L_t(I%YBevNLzOt#n1iSe=+geq!zX$x~yg3!dA9oB4+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_N_ zjd(mkCbLQ`Hcz?yDeAgzik&2c_(cdI0T~PirLOBc{=&LG1Lyc7JSa#7{r~^~07*qo IM6N<$g77Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igT4 z5()+x%&&R?00J^eL_t(I%YBm1N*hrW#((F`^-eM-O?0YN8fuAHq$s7^?z=9&K;NhI z1=?+2K-bc3S6viDh-fKDA_>8N>BLE9oXqVaiKu9QtIOrP-}(5?73W-yob}Fe=Y9XO z|1nL{D&VWA0H7cupg2WSTd)_wli=GzZQ(o6FnOM@AN)MnbR)NgQV_%g$jMO@0Ea_z z0Y%ecTDVTGx8lEXcjfhpljcG5Q@7dO@~l@i)|3G&h%Zq5L9GDiSr>Ev19DNxfK)x}T>w`T zqdO+|N#eu};z2&qUa9JZ95;?XpSDgv09Bwo`4^9MlLM(=@}r;>^h(vzj@Dk)c8zbo z0++xL7(J50O$>%fKj~#@_9a{ncU4sz8}Byu!sT$=_-1PG7$f7GVYnRbtiD;@Q%@WJ Y08w<Phe*gdg07*qoM6N<$f~Qn59smFU literal 0 HcwPel00001 diff --git a/extensions/DiscussionCustomPrefix/icons/warning.png b/extensions/DiscussionCustomPrefix/icons/warning.png new file mode 100644 index 0000000000000000000000000000000000000000..b61b650940101e9b90650d9fbfd28dbaa304c768 GIT binary patch literal 677 zcwPae0$TlvP)Px#24YJ`L;(K){{a7>y{D4^000SaNLh0L01FcU01FcV0GgZ_00007bV*G`2igT4 z5ibR5aFBig00JdRL_t(I%axN&NR&|&hM#+9oMy`TbHxzsTNG3j5d;RB zX5(LhQBoKY1X{L>nq9SMj#)_v6RD8oVx0L-i~E5^T6vZ)=e+lQ z&gCf9sgbb>8F_k+Z%c~C3qv&2S1C495BraZe29vSM&w%eQQ6RNU*CXOFN#Gn36Z&k zOb$im%GFzIn&`E}Jw+p^GCwQ}tOz@6z4(3%^IrzNz1JmqcpN+-2x|yvh=u6b|DKDN zZ^%Cl4wQ|-Rv+XQcW!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07*qoM6N<$g2n3N AumAu6 literal 0 HcwPel00001 diff --git a/extensions/DiscussionCustomPrefix/style.css b/extensions/DiscussionCustomPrefix/style.css index 4c174e3..6b7dece 100644 --- a/extensions/DiscussionCustomPrefix/style.css +++ b/extensions/DiscussionCustomPrefix/style.css @@ -1,17 +1,12 @@ -.CustomPrefixName, .CustomPDG{ /* Discusssions List */ - /*width:80px;*/ - height:15px; - display:inline; - float:left; - margin-top:8px !important; - margin-left:7px !important; - margin-right:5px !important; - /*padding:0 0 0 0;*/ - background-repeat:no-repeat; +.Discussion img.CustomPrefix { + float:left !important; + padding:0px !important; + padding-top:10px !important; + padding-right:10px !important; +} + +.ContentInfo h1 img.CustomPrefix { + padding:0px !important; + padding-left:5px !important; + padding-right:5px !important; } -.CustomPrefixName{ - float:none; - position:relative; - margin-left:2px !important; - top:3px; -} \ No newline at end of file -- 2.11.4.GIT