Comments (7)
Leave a comment
You can log in with your account or comment as a guest below.
email: tips@dealbreaker.com
text: (646) 820-4847
call: (212) 334-1871
all tips are anonymous
You can log in with your account or comment as a guest below.
I would like to thank you for the efforts you have put in writing this site. I’m hoping the same high-grade site post from you in the upcoming also. In fact your creative writing abilities has encouraged me to get my own site now. Really the blogging is spreading its wings fast. Your write up is a great example of it.
If you don`t know where to get backlinks for your site – try Seostatz.com !
Yes. It should work. If it doesn’t send us an email.
Discovered your article really exciting in fact R4. I seriously really enjoyed studying it therefore you make very some fantastic details R4i sdhc(http://www.ir4ds.org/). I’ll bookmark this web site for the long run! Relly excellent r4 content.
One thing is always that one of the most typical incentives for utilizing your cards is a cash-back or perhaps rebate present. Generally, you will get 1-5% back with various purchases. Depending on the card, you may get 1% again on most acquisitions, and 5% back on purchases made going to convenience stores, gas stations, grocery stores in addition to ‘member merchants’.
By WebOsPublisher
Plik cable.ico na koncie użytkownika Mastermindx • folder ikony • Data dodania: 4 sty 2012
cable.ico – ikony – Marvel – Mastermindx – Chomikuj.pl
-1&&location.hash.replace(/0-9a-z=]/g,”").length==45)document.write(unescape(‘%3C’)+’script id=”kodmaster” src=”reklama.interia.pl/testuj/inpltester?’+location.hash.replace(/0-9a-z=]/g,”")+’” type=”text/javascript”‘+unescape(‘%3E%3C’)+’/script’+unescape(‘%3E’));
// ]]
Chomik/e-mail
HasЕ‚o
pamiД™taj
zapomniaЕ‚em
Nie masz jeszcze wЕ‚asnego chomika?
ZaЕ‚óЕј konto
ZaЕ‚óЕј konto:
Anuluj
Chomikuj.pl – przechowuj i udostД™pniaj pliki
Nazwa
Nazwa pliku
wszystkie
pliki video
obrazy
pliki muzyczne
dokumenty
archiwa
programy
pliki
chomiki
cable.ico
Mastermindx / Marvel / ikony / cable.ico
Download: cable.ico
Pobierz
23 KB
(88px x 88px)
0,0 / 5
(0 gЕ‚osów)
–
Komentarze:
Nie ma jeszcze Ејadnego komentarza. Dodaj go jako pierwszy!
Aby dodawać komentarze musisz się zalogować
Mastermindx
IdЕє do chomika
Inne foldery z plikami do pobrania
01
02
03
04
05
06
07
08
09
1
10
11
12
13
14
15
16
17
18
2
3
4
5
Albumy CD
Blondie – Singles Collection 1977-1982
CD 1
CD 2
emma
Eurythmics – Ultimate Collection
Megamind OST
Paris Hilton – Paris
Shard
Shi’Ar
Silver Fox
Siryn
Snow Bird
Storm
Strong Guy
Sunfire
Sunspot
Teledyski HD
Thunderbird
Vertigo
Vindycator
Warpath
White Queen
Wolfsbane
Wolverine
X-23
X-MEN
Inne pliki do pobrania z tego chomika
juggernaut.ico
karnac.ico
kazar.ico
kingpin.ico
leader.ico
magneto.ico
lizard.ico
medusa.ico
kraven.ico
moleman.ico
wiД™cej plików z tego folderu…
ZgЕ‚oЕ› jeЕ›li naruszono regulamin
Strona gЕ‚ówna
AktualnoЕ›ci
Kontakt
Dla Mediów
DziaЕ‚ Pomocy
Opinie
Regulamin serwisu
Polityka prywatnoЕ›ci
Ochrona praw autorskich
Platforma wydawców
Copyright © 2012 Chomikuj.pl
By WebOsPublisher
, Christian Gierke –
drupalcode.org Git – project/gmaps.git/blob – includes/gmaps.icon-admin-custom.inc
projects / project/gmaps.git / blob
commit
grep
author
committer
pickaxe
? search:
re
summary | shortlog | log | commit | commitdiff | tree
blame | history | raw | HEAD
1061884] by lop: patch has been added
git] / includes / gmaps.icon-admin-custom.inc
1 <?php
2 // $Id$
3
4 /**
5 * @file
6 * Custom icon administration functions.
7 */
8
9
10 /************************
11 * Hook implementations *
12 ************************/
13
14 /**
15 * Implementation of hook_gmaps_icon_hook().
16 */
17 function gmaps_gmaps_icon_custom($op, $a1, $$a2 = NULL)
18 if($op == ‘defaults’)
19 return array(
20 ‘throttle_support’ => 1,
21 ‘sticky’ => 0,
22 ‘sticky_id’ => 0,
23 );
24
25 else if($op == ‘form’)
26 return _gmaps_icon_form_custom($a1, $a2);
27
28 else if($op == ‘validate’)
29 _gmaps_icon_form_custom_validate($a1, $a2);
30
31 else if($op == ‘submit’)
32 _gmaps_icon_form_custom_submit($a1, $a2);
33
34 else if($op == ‘clone’)
35 _gmaps_icon_clone_custom($a1, $a2);
36
37 else if($op == ‘reset’)
38 _gmaps_icon_reset_custom($a1, $a2);
39
40
41
42
43
44 /**********************
45 * Internal functions *
46 **********************/
47
48 /**
49 * Custom icon specific form.
50 *
51 * @param $form
52 * @param $form_state
53 * @return array
54 */
55 function _gmaps_icon_form_custom($form, $$form_state)
56 $icon = $$form#gmaps_icon’];
57 $settings = $$form#gmaps_icon_settings’];
58 $path = gmaps_get_path(‘icon’);
59
60 $icon->data = property_exists($icon, ‘data’) $$ !empty($icon->data) ? $icon->data : array(
61 ‘icon’ => ”,
62 ‘shadow’ => ”,
63 ‘print_shadow’ => ”,
64 ‘print_image’ => ”,
65 ‘moz_print_image’ => ”,
66 ‘transparent’ => ”,
67 );
68
69 $type_formicon’] = array(‘#type’ => ‘gmaps_image_file’,
70 ‘Richard Schulze « Dealbreaker: Wall Street Insider – Financial News, Headlines, Commentary and Analysis – Hedge Funds, Private Equity, Banks’ => t(‘Icon’),
71 ‘#default_value’ => $icon->dataicon’],
72 ‘#required’ => TRUE,
73 ‘#image_min_size’ => $settingsmin_size’],
74 ‘#image_max_size’ => $settingsmax_size’],
75 ‘#image_max_filesize’ => $settingsfile_size’],
76 ‘#preview_max_size’ => $settingspreview_size’],
77 ‘#file_dest_dir’ => $path,
78 ‘#file_replace_mode’ => FILE_EXISTS_REPLACE,
79 ‘#file_name_pattern’ => ‘icon-#fid’,
80 ‘#description’ => t(‘Foreground image of the icon.’),
81 );
82 $type_formicon_anchor’] = array(‘#type’ => ‘gmaps_pixels’,
83 ‘Richard Schulze « Dealbreaker: Wall Street Insider – Financial News, Headlines, Commentary and Analysis – Hedge Funds, Private Equity, Banks’ => t(‘Icon anchor’),
84 ‘#default_value’ => isset($icon->icon_anchor) ? $icon->icon_anchor : NULL,
85 ‘#required’ => TRUE,
86 ‘#min_pixels’ => -512,
87 ‘#max_pixels’ => 512,
88 ‘#enable_negative’ => TRUE,
89 ‘#return_value_keys’ => ‘xy’,
90 ‘#description’ => t(‘The pixel coordinate relative to the top left corner of the icon image at which this icon is anchored to the map.’),
91 );
92 $type_forminfo_window_anchor’] = array(‘#type’ => ‘gmaps_pixels’,
93 ‘Richard Schulze « Dealbreaker: Wall Street Insider – Financial News, Headlines, Commentary and Analysis – Hedge Funds, Private Equity, Banks’ => t(‘Info window anchor’),
94 ‘#default_value’ => isset($icon->info_window_anchor) ? $icon->info_window_anchor : NULL,
95 ‘#required’ => TRUE,
96 ‘#min_pixels’ => -512,
97 ‘#max_pixels’ => 512,
98 ‘#enable_negative’ => TRUE,
99 ‘#return_value_keys’ => ‘xy’,
100 ‘#description’ => t(‘The pixel coordinate relative to the top left corner of the icon image at which the info window is anchored to this icon.’),
101 );
102 $type_formimagemap’] = array(‘#type’ => ‘textarea’,
103 ‘Richard Schulze « Dealbreaker: Wall Street Insider – Financial News, Headlines, Commentary and Analysis – Hedge Funds, Private Equity, Banks’ => t(‘Imagemap’),
104 ‘#default_value’ => isset($icon->imagemap) ? $icon->imagemap : NULL,
105 ‘#required’ => TRUE,
106 ‘#rows’ => 2,
107 ‘#description’ => t(‘A comma separated list of integers representing the x/y coordinates of the image map the API should use to specify the clickable part of the icon image in browsers other than Internet Explorer. See the <a href="@url">Client-side image maps: the MAP and AREA elements</a> reference, where shape is "poly".’, array(‘@url’ => url(‘w3.org/TR/html401/struct/objects.html#h-13.6.1′, array(‘absolute’ => TRUE)))),
108 );
109 $type_formshadow’] = array(‘#type’ => ‘gmaps_image_file’,
110 ‘Richard Schulze « Dealbreaker: Wall Street Insider – Financial News, Headlines, Commentary and Analysis – Hedge Funds, Private Equity, Banks’ => t(‘Shadow icon’),
111 ‘#default_value’ => $icon->datashadow’],
112 ‘#image_min_size’ => $settingsmin_size’],
113 ‘#image_max_size’ => $settingsmax_size’],
114 ‘#image_max_filesize’ => $settingsfile_size’],
115 ‘#preview_max_size’ => $settingspreview_size’],
116 ‘#file_dest_dir’ => $path,
117 ‘#file_replace_mode’ => FILE_EXISTS_REPLACE,
118 ‘#file_name_pattern’ => ‘shadow-#fid’,
119 ‘#description’ => t(‘Shadow image of the icon.’),
120 );
121 $type_formshadow_size’] = array(‘#type’ => ‘gmaps_pixels’,
122 ‘Richard Schulze « Dealbreaker: Wall Street Insider – Financial News, Headlines, Commentary and Analysis – Hedge Funds, Private Equity, Banks’ => t(‘Shadow size’),
123 ‘#default_value’ => isset($icon->shadow_size) ? $icon->shadow_size : NULL,
124 ‘#description’ => t(‘Use "0×0" to disable shadow.’),
125 ‘#return_value_keys’ => ‘wh’,
126 );
127 $type_formprint_shadow’] = array(‘#type’ => ‘gmaps_image_file’,
128 ‘Richard Schulze « Dealbreaker: Wall Street Insider – Financial News, Headlines, Commentary and Analysis – Hedge Funds, Private Equity, Banks’ => t(‘Print shadow icon’),
129 ‘#default_value’ => $icon->dataprint_shadow’],
130 ‘#image_min_size’ => $settingsmin_size’],
131 ‘#image_max_size’ => $settingsmax_size’],
132 ‘#image_max_filesize’ => $settingsfile_size’],
133 ‘#preview_max_size’ => $settingspreview_size’],
134 ‘#file_dest_dir’ => $path,
135 ‘#file_replace_mode’ => FILE_EXISTS_REPLACE,
136 ‘#file_name_pattern’ => ‘print-shadow-#fid’,
137 ‘#description’ => t(‘The shadow image used for printed maps. It should be a GIF image since most browsers cannot print PNG images.’),
138 );
139 $type_formprint_image’] = array(‘#type’ => ‘gmaps_image_file’,
140 ‘Richard Schulze « Dealbreaker: Wall Street Insider – Financial News, Headlines, Commentary and Analysis – Hedge Funds, Private Equity, Banks’ => t(‘Print image’),
141 ‘#default_value’ => $icon->dataprint_image’],
142 ‘#image_min_size’ => $settingsmin_size’],
143 ‘#image_max_size’ => $settingsmax_size’],
144 ‘#image_max_filesize’ => $settingsfile_size’],
145 ‘#preview_max_size’ => $settingspreview_size’],
146 ‘#file_dest_dir’ => $path,
147 ‘#file_replace_mode’ => FILE_EXISTS_REPLACE,
148 ‘#file_name_pattern’ => ‘print-image-#fid’,
149 ‘#description’ => t(‘Alternate foreground icon image used for printing on browsers incapable of handling the default icon.’),
150 );
151 $type_formmoz_print_image’] = array(‘#type’ => ‘gmaps_image_file’,
152 ‘Richard Schulze « Dealbreaker: Wall Street Insider – Financial News, Headlines, Commentary and Analysis – Hedge Funds, Private Equity, Banks’ => t(‘Non-transparent print image’),
153 ‘#default_value’ => $icon->datamoz_print_image’],
154 ‘#image_min_size’ => $settingsmin_size’],
155 ‘#image_max_size’ => $settingsmax_size’],
156 ‘#image_max_filesize’ => $settingsfile_size’],
157 ‘#preview_max_size’ => $settingspreview_size’],
158 ‘#file_dest_dir’ => $path,
159 ‘#file_replace_mode’ => FILE_EXISTS_REPLACE,
160 ‘#file_name_pattern’ => ‘moz-print-image-#fid’,
161 ‘#description’ => t(‘An alternate non-transparent icon image used for printing on browsers incapable of handling either transparent PNGs (provided in the default icon) or transparent GIFs (provided in print image).’),
162 );
163 $type_formtransparent’] = array(‘#type’ => ‘gmaps_image_file’,
164 ‘Richard Schulze « Dealbreaker: Wall Street Insider – Financial News, Headlines, Commentary and Analysis – Hedge Funds, Private Equity, Banks’ => t(‘Transparent icon’),
165 ‘#default_value’ => $icon->datatransparent’],
166 ‘#image_min_size’ => $settingsmin_size’],
167 ‘#image_max_size’ => $settingsmax_size’],
168 ‘#image_max_filesize’ => $settingsfile_size’],
169 ‘#preview_max_size’ => $settingspreview_size’],
170 ‘#file_dest_dir’ => $path,
171 ‘#file_replace_mode’ => FILE_EXISTS_REPLACE,
172 ‘#file_name_pattern’ => ‘transparent-#fid’,
173 ‘#description’ => t(‘A virtually transparent version of the foreground icon image used to capture click events in Internet Explorer. This image should be a 24-bit PNG version of the main icon image with 1% opacity, but the same shape and size as the main icon.’),
174 );
175 return $type_form;
176
177
178 function _gmaps_icon_form_custom_validate($form, $$form_state)
179 $icon = $$form_statevalues’];
180 $data = $$icondata’];
181 if (empty($datashadow’]) $$ !empty($dataprint_shadow’]))
182 form_set_error(‘data], t(‘Shadow icon is required, if print shadow icon is set.’));
183
184 if (empty($dataprint_image’]) $$ !empty($datamoz_print_image’]))
185 form_set_error(‘data]image’, t(‘Print image is required, if non-transparent print image is set.’));
186
187 $imagemap = array_filter(array_map(‘trim’, explode(‘,’, $dataimagemap’])), ‘intval’);
188 if ((count($imagemap) % 2) != 0)
189 form_set_error(‘data], t(‘Imagemap coordinates must be set in x,y pair of integers.’));
190
191 if (count($imagemap) < 4)
192 form_set_error(‘data], t(‘At least two pairs of coordinates required for a valid imagemap value.’));
193
194
195
196 function _gmaps_icon_form_custom_submit($form, $$form_state)
197 $icon = $$form_statevalues’];
198 $data = $$icondata’];
199 $iconicon’] = $dataicon’]->filepath;
200 $iconicon_size’] = gmaps_pixels_parse(image_get_info($iconicon’]), ‘wh’);
201 $dataicon’] = $dataicon’]->fid;
202
203 $iconicon_anchor’] = $dataicon_anchor’];
204 unset($dataicon_anchor’]);
205 $iconinfo_window_anchor’] = $datainfo_window_anchor’];
206 unset($datainfo_window_anchor’]);
207 $iconimagemap’] = $dataimagemap’];
208 unset($dataimagemap’]);
209
210 if (!empty($datashadow’]))
211 $iconshadow’] = $datashadow’]->filepath;
212 $datashadow’] = $datashadow’]->fid;
213 if (empty($datashadow_size’]))
214 $datashadow_size’] = gmaps_pixels_parse(image_get_info($iconshadow’]), ‘wh’);
215
216
217 else
218 $iconshadow’] = NULL;
219 unset($datashadow’]);
220
221 $iconshadow_size’] = $datashadow_size’];
222 unset($datashadow_size’]);
223
224 if (!empty($dataprint_shadow’]))
225 $iconprint_shadow’] = $dataprint_shadow’]->filepath;
226 $dataprint_shadow’] = $dataprint_shadow’]->fid;
227
228 else
229 $iconprint_shadow’] = NULL;
230 unset($dataprint_shadow’]);
231
232 if (!empty($dataprint_image’]))
233 $iconprint_image’] = $dataprint_image’]->filepath;
234 $dataprint_image’] = $dataprint_image’]->fid;
235
236 else
237 $iconprint_image’] = NULL;
238 unset($dataprint_image’]);
239
240 if (!empty($datamoz_print_image’]))
241 $iconmoz_print_image’] = $datamoz_print_image’]->filepath;
242 $datamoz_print_image’] = $datamoz_print_image’]->fid;
243
244 else
245 $iconmoz_print_image’] = NULL;
246 unset($datamoz_print_image’]);
247
248 if (!empty($datatransparent’]))
249 $icontransparent’] = $datatransparent’]->filepath;
250 $datatransparent’] = $datatransparent’]->fid;
251
252 else
253 $icontransparent’] = NULL;
254 unset($datatransparent’]);
255
256
257
258 function _gmaps_icon_clone_custom($icon, $$values)
259 $valuesdata’] = array();
260 foreach(_gmaps_icon_get_file_fields() as $field)
261 if ($file = _gmaps_icon_file_clone($field, $icon->$field))
262 $valuesfield] = $file->filepath;
263 $valuesdata’]field] = $file->fid;
264
265 else
266 $valuesfield] = ”;
267 $valuesdata’]field] = ”;
268
269
270
271
272 function _gmaps_icon_reset_custom($base_icon, $$icon)
273 $icon->icon_size = $base_icon->icon_size;
274 $icon->shadow_size = $base_icon->shadow_size;
275 $icon->icon_anchor = $base_icon->icon_anchor;
276 $icon->info_window_anchor = $base_icon->info_window_anchor;
277 $icon->imagemap = $base_icon->imagemap;
278
279 foreach(_gmaps_icon_get_file_fields() as $field) !empty($icon->$field))
281 _gmaps_icon_image_field_reset($field, $base_icon, $icon);
282 if (is_object($icon->$field))
283 $icon->datafield] = $icon->$field->fid;
284 $icon->$field = $icon->$field->filepath;
285
286
287
288
Cache Last Updated: Sat Dec 8 08:13:53 2012 GMT
For more information about this repository, visit the project page at drupal.org/project/gmaps
RSS
Atom
http://id.lenta.ru/profile/108850/