Content Blocks (Custom Post Widget) - Version 3.0.4

Version Description

Download this release

Release Info

Developer vanderwijk
Plugin Icon 128x128 Content Blocks (Custom Post Widget)
Version 3.0.4
Comparing to
See all releases

Code changes from version 3.0.3 to 3.0.4

Files changed (403) hide show
  1. assets/banner-772x250.png +0 -0
  2. assets/icon-128x128.png +0 -0
  3. assets/icon-256x256.png +0 -0
  4. assets/icon.svg +9 -0
  5. tags/1.0/custom-post-widget.php +134 -0
  6. tags/1.0/readme.txt +58 -0
  7. tags/1.0/screenshot-1.PNG +0 -0
  8. tags/1.0/screenshot-2.PNG +0 -0
  9. tags/1.1.1/custom-post-widget.php +134 -0
  10. tags/1.1.1/readme.txt +60 -0
  11. tags/1.1.1/screenshot-1.png +0 -0
  12. tags/1.1.1/screenshot-2.png +0 -0
  13. tags/1.1/custom-post-widget.php +134 -0
  14. tags/1.1/readme.txt +57 -0
  15. tags/1.1/screenshot-1.png +0 -0
  16. tags/1.1/screenshot-2.png +0 -0
  17. tags/1.2.1/custom-post-widget.php +150 -0
  18. tags/1.2.1/readme.txt +74 -0
  19. tags/1.2.1/screenshot-1.png +0 -0
  20. tags/1.2.1/screenshot-2.png +0 -0
  21. tags/1.2/custom-post-widget.php +155 -0
  22. tags/1.2/readme.txt +77 -0
  23. tags/1.2/screenshot-1.png +0 -0
  24. tags/1.2/screenshot-2.png +0 -0
  25. tags/1.4/custom-post-widget.php +56 -0
  26. tags/1.4/languages/custom-post-widget-de_DE.mo +0 -0
  27. tags/1.4/languages/custom-post-widget-de_DE.po +171 -0
  28. tags/1.4/languages/custom-post-widget-nl_NL.mo +0 -0
  29. tags/1.4/languages/custom-post-widget-nl_NL.po +170 -0
  30. tags/1.4/languages/custom-post-widget-xx_XX.pot +1 -0
  31. tags/1.4/post-widget.php +142 -0
  32. tags/1.4/readme.txt +79 -0
  33. tags/1.4/screenshot-1.png +0 -0
  34. tags/1.4/screenshot-2.png +0 -0
  35. tags/1.5/custom-post-widget.php +59 -0
  36. tags/1.5/images/contentblock-32.png +0 -0
  37. tags/1.5/images/contentblock.png +0 -0
  38. tags/1.5/languages/custom-post-widget-de_DE.mo +0 -0
  39. tags/1.5/languages/custom-post-widget-de_DE.po +171 -0
  40. tags/1.5/languages/custom-post-widget-nl_NL.mo +0 -0
  41. tags/1.5/languages/custom-post-widget-nl_NL.po +170 -0
  42. tags/1.5/languages/custom-post-widget.pot +157 -0
  43. tags/1.5/post-widget.php +161 -0
  44. tags/1.5/readme.txt +103 -0
  45. tags/1.5/screenshot-1.png +0 -0
  46. tags/1.5/screenshot-2.png +0 -0
  47. tags/1.6/custom-post-widget.php +58 -0
  48. tags/1.6/images/contentblock-32.png +0 -0
  49. tags/1.6/images/contentblock.png +0 -0
  50. tags/1.6/languages/custom-post-widget-de_DE.mo +0 -0
  51. tags/1.6/languages/custom-post-widget-de_DE.po +171 -0
  52. tags/1.6/languages/custom-post-widget-nl_NL.mo +0 -0
  53. tags/1.6/languages/custom-post-widget-nl_NL.po +170 -0
  54. tags/1.6/languages/custom-post-widget.pot +157 -0
  55. tags/1.6/post-widget.php +157 -0
  56. tags/1.6/readme.txt +106 -0
  57. tags/1.6/screenshot-1.png +0 -0
  58. tags/1.6/screenshot-2.png +0 -0
  59. tags/1.7/custom-post-widget.php +58 -0
  60. tags/1.7/images/contentblock-32.png +0 -0
  61. tags/1.7/images/contentblock.png +0 -0
  62. tags/1.7/languages/custom-post-widget-de_DE.mo +0 -0
  63. tags/1.7/languages/custom-post-widget-de_DE.po +171 -0
  64. tags/1.7/languages/custom-post-widget-nl_NL.mo +0 -0
  65. tags/1.7/languages/custom-post-widget-nl_NL.po +170 -0
  66. tags/1.7/languages/custom-post-widget.pot +157 -0
  67. tags/1.7/post-widget.php +182 -0
  68. tags/1.7/readme.txt +108 -0
  69. tags/1.7/screenshot-1.png +0 -0
  70. tags/1.7/screenshot-2.png +0 -0
  71. tags/1.8.1/custom-post-widget.php +56 -0
  72. tags/1.8.1/images/contentblock-13.png +0 -0
  73. tags/1.8.1/images/contentblock-32.png +0 -0
  74. tags/1.8.1/images/contentblock.png +0 -0
  75. tags/1.8.1/languages/custom-post-widget-de_DE.mo +0 -0
  76. tags/1.8.1/languages/custom-post-widget-de_DE.po +171 -0
  77. tags/1.8.1/languages/custom-post-widget-nl_NL.mo +0 -0
  78. tags/1.8.1/languages/custom-post-widget-nl_NL.po +170 -0
  79. tags/1.8.1/languages/custom-post-widget.pot +157 -0
  80. tags/1.8.1/popup.php +51 -0
  81. tags/1.8.1/post-widget.php +201 -0
  82. tags/1.8.1/readme.txt +111 -0
  83. tags/1.8.1/screenshot-1.png +0 -0
  84. tags/1.8.1/screenshot-2.png +0 -0
  85. tags/1.8.3/custom-post-widget.php +56 -0
  86. tags/1.8.3/images/contentblock-13.png +0 -0
  87. tags/1.8.3/images/contentblock-32.png +0 -0
  88. tags/1.8.3/images/contentblock.png +0 -0
  89. tags/1.8.3/languages/custom-post-widget-de_DE.mo +0 -0
  90. tags/1.8.3/languages/custom-post-widget-de_DE.po +171 -0
  91. tags/1.8.3/languages/custom-post-widget-nl_NL.mo +0 -0
  92. tags/1.8.3/languages/custom-post-widget-nl_NL.po +170 -0
  93. tags/1.8.3/languages/custom-post-widget.pot +157 -0
  94. tags/1.8.3/popup.php +57 -0
  95. tags/1.8.3/post-widget.php +183 -0
  96. tags/1.8.3/readme.txt +117 -0
  97. tags/1.8.3/screenshot-1.png +0 -0
  98. tags/1.8.3/screenshot-2.png +0 -0
  99. tags/1.8.4/tags/1.0/custom-post-widget.php +134 -0
  100. tags/1.8.4/tags/1.0/readme.txt +58 -0
  101. tags/1.8.4/tags/1.0/screenshot-1.PNG +0 -0
  102. tags/1.8.4/tags/1.0/screenshot-2.PNG +0 -0
  103. tags/1.8.4/tags/1.1.1/custom-post-widget.php +134 -0
  104. tags/1.8.4/tags/1.1.1/readme.txt +60 -0
  105. tags/1.8.4/tags/1.1.1/screenshot-1.png +0 -0
  106. tags/1.8.4/tags/1.1.1/screenshot-2.png +0 -0
  107. tags/1.8.4/tags/1.1/custom-post-widget.php +134 -0
  108. tags/1.8.4/tags/1.1/readme.txt +57 -0
  109. tags/1.8.4/tags/1.1/screenshot-1.png +0 -0
  110. tags/1.8.4/tags/1.1/screenshot-2.png +0 -0
  111. tags/1.8.4/tags/1.2.1/custom-post-widget.php +150 -0
  112. tags/1.8.4/tags/1.2.1/readme.txt +74 -0
  113. tags/1.8.4/tags/1.2.1/screenshot-1.png +0 -0
  114. tags/1.8.4/tags/1.2.1/screenshot-2.png +0 -0
  115. tags/1.8.4/tags/1.2/custom-post-widget.php +155 -0
  116. tags/1.8.4/tags/1.2/readme.txt +77 -0
  117. tags/1.8.4/tags/1.2/screenshot-1.png +0 -0
  118. tags/1.8.4/tags/1.2/screenshot-2.png +0 -0
  119. tags/1.8.4/tags/1.4/custom-post-widget.php +56 -0
  120. tags/1.8.4/tags/1.4/languages/custom-post-widget-de_DE.mo +0 -0
  121. tags/1.8.4/tags/1.4/languages/custom-post-widget-de_DE.po +171 -0
  122. tags/1.8.4/tags/1.4/languages/custom-post-widget-nl_NL.mo +0 -0
  123. tags/1.8.4/tags/1.4/languages/custom-post-widget-nl_NL.po +170 -0
  124. tags/1.8.4/tags/1.4/languages/custom-post-widget-xx_XX.pot +1 -0
  125. tags/1.8.4/tags/1.4/post-widget.php +142 -0
  126. tags/1.8.4/tags/1.4/readme.txt +79 -0
  127. tags/1.8.4/tags/1.4/screenshot-1.png +0 -0
  128. tags/1.8.4/tags/1.4/screenshot-2.png +0 -0
  129. tags/1.8.4/tags/1.5/custom-post-widget.php +59 -0
  130. tags/1.8.4/tags/1.5/images/contentblock-32.png +0 -0
  131. tags/1.8.4/tags/1.5/images/contentblock.png +0 -0
  132. tags/1.8.4/tags/1.5/languages/custom-post-widget-de_DE.mo +0 -0
  133. tags/1.8.4/tags/1.5/languages/custom-post-widget-de_DE.po +171 -0
  134. tags/1.8.4/tags/1.5/languages/custom-post-widget-nl_NL.mo +0 -0
  135. tags/1.8.4/tags/1.5/languages/custom-post-widget-nl_NL.po +170 -0
  136. tags/1.8.4/tags/1.5/languages/custom-post-widget.pot +157 -0
  137. tags/1.8.4/tags/1.5/post-widget.php +161 -0
  138. tags/1.8.4/tags/1.5/readme.txt +103 -0
  139. tags/1.8.4/tags/1.5/screenshot-1.png +0 -0
  140. tags/1.8.4/tags/1.5/screenshot-2.png +0 -0
  141. tags/1.8.4/tags/1.6/custom-post-widget.php +58 -0
  142. tags/1.8.4/tags/1.6/images/contentblock-32.png +0 -0
  143. tags/1.8.4/tags/1.6/images/contentblock.png +0 -0
  144. tags/1.8.4/tags/1.6/languages/custom-post-widget-de_DE.mo +0 -0
  145. tags/1.8.4/tags/1.6/languages/custom-post-widget-de_DE.po +171 -0
  146. tags/1.8.4/tags/1.6/languages/custom-post-widget-nl_NL.mo +0 -0
  147. tags/1.8.4/tags/1.6/languages/custom-post-widget-nl_NL.po +170 -0
  148. tags/1.8.4/tags/1.6/languages/custom-post-widget.pot +157 -0
  149. tags/1.8.4/tags/1.6/post-widget.php +157 -0
  150. tags/1.8.4/tags/1.6/readme.txt +106 -0
  151. tags/1.8.4/tags/1.6/screenshot-1.png +0 -0
  152. tags/1.8.4/tags/1.6/screenshot-2.png +0 -0
  153. tags/1.8.4/tags/1.7/custom-post-widget.php +58 -0
  154. tags/1.8.4/tags/1.7/images/contentblock-32.png +0 -0
  155. tags/1.8.4/tags/1.7/images/contentblock.png +0 -0
  156. tags/1.8.4/tags/1.7/languages/custom-post-widget-de_DE.mo +0 -0
  157. tags/1.8.4/tags/1.7/languages/custom-post-widget-de_DE.po +171 -0
  158. tags/1.8.4/tags/1.7/languages/custom-post-widget-nl_NL.mo +0 -0
  159. tags/1.8.4/tags/1.7/languages/custom-post-widget-nl_NL.po +170 -0
  160. tags/1.8.4/tags/1.7/languages/custom-post-widget.pot +157 -0
  161. tags/1.8.4/tags/1.7/post-widget.php +182 -0
  162. tags/1.8.4/tags/1.7/readme.txt +108 -0
  163. tags/1.8.4/tags/1.7/screenshot-1.png +0 -0
  164. tags/1.8.4/tags/1.7/screenshot-2.png +0 -0
  165. tags/1.8.4/tags/1.8.1/custom-post-widget.php +56 -0
  166. tags/1.8.4/tags/1.8.1/images/contentblock-13.png +0 -0
  167. tags/1.8.4/tags/1.8.1/images/contentblock-32.png +0 -0
  168. tags/1.8.4/tags/1.8.1/images/contentblock.png +0 -0
  169. tags/1.8.4/tags/1.8.1/languages/custom-post-widget-de_DE.mo +0 -0
  170. tags/1.8.4/tags/1.8.1/languages/custom-post-widget-de_DE.po +171 -0
  171. tags/1.8.4/tags/1.8.1/languages/custom-post-widget-nl_NL.mo +0 -0
  172. tags/1.8.4/tags/1.8.1/languages/custom-post-widget-nl_NL.po +170 -0
  173. tags/1.8.4/tags/1.8.1/languages/custom-post-widget.pot +157 -0
  174. tags/1.8.4/tags/1.8.1/popup.php +51 -0
  175. tags/1.8.4/tags/1.8.1/post-widget.php +201 -0
  176. tags/1.8.4/tags/1.8.1/readme.txt +111 -0
  177. tags/1.8.4/tags/1.8.1/screenshot-1.png +0 -0
  178. tags/1.8.4/tags/1.8.1/screenshot-2.png +0 -0
  179. tags/1.8.4/tags/1.8.3/custom-post-widget.php +56 -0
  180. tags/1.8.4/tags/1.8.3/images/contentblock-13.png +0 -0
  181. tags/1.8.4/tags/1.8.3/images/contentblock-32.png +0 -0
  182. tags/1.8.4/tags/1.8.3/images/contentblock.png +0 -0
  183. tags/1.8.4/tags/1.8.3/languages/custom-post-widget-de_DE.mo +0 -0
  184. tags/1.8.4/tags/1.8.3/languages/custom-post-widget-de_DE.po +171 -0
  185. tags/1.8.4/tags/1.8.3/languages/custom-post-widget-nl_NL.mo +0 -0
  186. tags/1.8.4/tags/1.8.3/languages/custom-post-widget-nl_NL.po +170 -0
  187. tags/1.8.4/tags/1.8.3/languages/custom-post-widget.pot +157 -0
  188. tags/1.8.4/tags/1.8.3/popup.php +57 -0
  189. tags/1.8.4/tags/1.8.3/post-widget.php +183 -0
  190. tags/1.8.4/tags/1.8.3/readme.txt +117 -0
  191. tags/1.8.4/tags/1.8.3/screenshot-1.png +0 -0
  192. tags/1.8.4/tags/1.8.3/screenshot-2.png +0 -0
  193. tags/1.8.4/tags/1.8/custom-post-widget.php +57 -0
  194. tags/1.8.4/tags/1.8/images/contentblock-13.png +0 -0
  195. tags/1.8.4/tags/1.8/images/contentblock-32.png +0 -0
  196. tags/1.8.4/tags/1.8/images/contentblock.png +0 -0
  197. tags/1.8.4/tags/1.8/languages/custom-post-widget-de_DE.mo +0 -0
  198. tags/1.8.4/tags/1.8/languages/custom-post-widget-de_DE.po +203 -0
  199. tags/1.8.4/tags/1.8/languages/custom-post-widget-nl_NL.mo +0 -0
  200. tags/1.8.4/tags/1.8/languages/custom-post-widget-nl_NL.po +170 -0
  201. tags/1.8.4/tags/1.8/languages/custom-post-widget.pot +157 -0
  202. tags/1.8.4/tags/1.8/popup.php +51 -0
  203. tags/1.8.4/tags/1.8/post-widget.php +201 -0
  204. tags/1.8.4/tags/1.8/readme.txt +108 -0
  205. tags/1.8.4/tags/1.8/screenshot-1.png +0 -0
  206. tags/1.8.4/tags/1.8/screenshot-2.png +0 -0
  207. tags/1.8.4/trunk/custom-post-widget.php +49 -0
  208. tags/1.8.4/trunk/images/contentblock-13.png +0 -0
  209. tags/1.8.4/trunk/images/contentblock-32.png +0 -0
  210. tags/1.8.4/trunk/images/contentblock.png +0 -0
  211. tags/1.8.4/trunk/languages/custom-post-widget-de_DE.mo +0 -0
  212. tags/1.8.4/trunk/languages/custom-post-widget-de_DE.po +171 -0
  213. tags/1.8.4/trunk/languages/custom-post-widget-nl_NL.mo +0 -0
  214. tags/1.8.4/trunk/languages/custom-post-widget-nl_NL.po +170 -0
  215. tags/1.8.4/trunk/languages/custom-post-widget.pot +157 -0
  216. tags/1.8.4/trunk/popup.php +57 -0
  217. tags/1.8.4/trunk/post-widget.php +190 -0
  218. tags/1.8.4/trunk/readme.txt +121 -0
  219. tags/1.8.4/trunk/screenshot-1.png +0 -0
  220. tags/1.8.4/trunk/screenshot-2.png +0 -0
  221. tags/1.8.5/custom-post-widget.php +49 -0
  222. tags/1.8.5/images/contentblock-13.png +0 -0
  223. tags/1.8.5/images/contentblock-32.png +0 -0
  224. tags/1.8.5/images/contentblock.png +0 -0
  225. tags/1.8.5/languages/custom-post-widget-de_DE.mo +0 -0
  226. tags/1.8.5/languages/custom-post-widget-de_DE.po +171 -0
  227. tags/1.8.5/languages/custom-post-widget-nl_NL.mo +0 -0
  228. tags/1.8.5/languages/custom-post-widget-nl_NL.po +170 -0
  229. tags/1.8.5/languages/custom-post-widget.pot +157 -0
  230. tags/1.8.5/popup.php +57 -0
  231. tags/1.8.5/post-widget.php +190 -0
  232. tags/1.8.5/readme.txt +125 -0
  233. tags/1.8.5/screenshot-1.png +0 -0
  234. tags/1.8.5/screenshot-2.png +0 -0
  235. tags/1.8.6/custom-post-widget.php +49 -0
  236. tags/1.8.6/images/contentblock-13.png +0 -0
  237. tags/1.8.6/images/contentblock-32.png +0 -0
  238. tags/1.8.6/images/contentblock.png +0 -0
  239. tags/1.8.6/languages/custom-post-widget-de_DE.mo +0 -0
  240. tags/1.8.6/languages/custom-post-widget-de_DE.po +171 -0
  241. tags/1.8.6/languages/custom-post-widget-nl_NL.mo +0 -0
  242. tags/1.8.6/languages/custom-post-widget-nl_NL.po +170 -0
  243. tags/1.8.6/languages/custom-post-widget.pot +157 -0
  244. tags/1.8.6/popup.php +57 -0
  245. tags/1.8.6/post-widget.php +190 -0
  246. tags/1.8.6/readme.txt +127 -0
  247. tags/1.8.6/screenshot-1.png +0 -0
  248. tags/1.8.6/screenshot-2.png +0 -0
  249. tags/1.8/custom-post-widget.php +57 -0
  250. tags/1.8/images/contentblock-13.png +0 -0
  251. tags/1.8/images/contentblock-32.png +0 -0
  252. tags/1.8/images/contentblock.png +0 -0
  253. tags/1.8/languages/custom-post-widget-de_DE.mo +0 -0
  254. tags/1.8/languages/custom-post-widget-de_DE.po +220 -0
  255. tags/1.8/languages/custom-post-widget-nl_NL.mo +0 -0
  256. tags/1.8/languages/custom-post-widget-nl_NL.po +170 -0
  257. tags/1.8/languages/custom-post-widget-ru_RU.mo +0 -0
  258. tags/1.8/languages/custom-post-widget-ru_RU.po +218 -0
  259. tags/1.8/languages/custom-post-widget.pot +157 -0
  260. tags/1.8/popup.php +51 -0
  261. tags/1.8/post-widget.php +201 -0
  262. tags/1.8/readme.txt +108 -0
  263. tags/1.8/screenshot-1.png +0 -0
  264. tags/1.8/screenshot-2.png +0 -0
  265. tags/1.9.2/custom-post-widget.php +48 -0
  266. tags/1.9.2/images/contentblock-13.png +0 -0
  267. tags/1.9.2/images/contentblock-32.png +0 -0
  268. tags/1.9.2/images/contentblock.png +0 -0
  269. tags/1.9.2/languages/custom-post-widget-de_DE.mo +0 -0
  270. tags/1.9.2/languages/custom-post-widget-de_DE.po +171 -0
  271. tags/1.9.2/languages/custom-post-widget-nl_NL.mo +0 -0
  272. tags/1.9.2/languages/custom-post-widget-nl_NL.po +170 -0
  273. tags/1.9.2/languages/custom-post-widget-pl_PL.mo +0 -0
  274. tags/1.9.2/languages/custom-post-widget-pl_PL.po +167 -0
  275. tags/1.9.2/languages/custom-post-widget-ru_RU.mo +0 -0
  276. tags/1.9.2/languages/custom-post-widget-ru_RU.po +218 -0
  277. tags/1.9.2/languages/custom-post-widget.pot +157 -0
  278. tags/1.9.2/popup.php +57 -0
  279. tags/1.9.2/post-widget.php +194 -0
  280. tags/1.9.2/readme.txt +136 -0
  281. tags/1.9.2/screenshot-1.png +0 -0
  282. tags/1.9.2/screenshot-2.png +0 -0
  283. tags/1.9.3/custom-post-widget.php +48 -0
  284. tags/1.9.3/images/contentblock-13.png +0 -0
  285. tags/1.9.3/images/contentblock-32.png +0 -0
  286. tags/1.9.3/images/contentblock.png +0 -0
  287. tags/1.9.3/languages/custom-post-widget-de_DE.mo +0 -0
  288. tags/1.9.3/languages/custom-post-widget-de_DE.po +171 -0
  289. tags/1.9.3/languages/custom-post-widget-fr_FR.mo +0 -0
  290. tags/1.9.3/languages/custom-post-widget-fr_FR.po +220 -0
  291. tags/1.9.3/languages/custom-post-widget-nl_NL.mo +0 -0
  292. tags/1.9.3/languages/custom-post-widget-nl_NL.po +170 -0
  293. tags/1.9.3/languages/custom-post-widget-pl_PL.mo +0 -0
  294. tags/1.9.3/languages/custom-post-widget-pl_PL.po +167 -0
  295. tags/1.9.3/languages/custom-post-widget-ru_RU.mo +0 -0
  296. tags/1.9.3/languages/custom-post-widget-ru_RU.po +218 -0
  297. tags/1.9.3/languages/custom-post-widget.pot +157 -0
  298. tags/1.9.3/popup.php +57 -0
  299. tags/1.9.3/post-widget.php +194 -0
  300. tags/1.9.3/readme.txt +141 -0
  301. tags/1.9.3/screenshot-1.png +0 -0
  302. tags/1.9.3/screenshot-2.png +0 -0
  303. tags/1.9.4/custom-post-widget.php +48 -0
  304. tags/1.9.4/images/contentblock-13.png +0 -0
  305. tags/1.9.4/images/contentblock-32.png +0 -0
  306. tags/1.9.4/images/contentblock.png +0 -0
  307. tags/1.9.4/languages/custom-post-widget-de_DE.mo +0 -0
  308. tags/1.9.4/languages/custom-post-widget-de_DE.po +171 -0
  309. tags/1.9.4/languages/custom-post-widget-fr_FR.mo +0 -0
  310. tags/1.9.4/languages/custom-post-widget-fr_FR.po +220 -0
  311. tags/1.9.4/languages/custom-post-widget-nl_NL.mo +0 -0
  312. tags/1.9.4/languages/custom-post-widget-nl_NL.po +170 -0
  313. tags/1.9.4/languages/custom-post-widget-pl_PL.mo +0 -0
  314. tags/1.9.4/languages/custom-post-widget-pl_PL.po +167 -0
  315. tags/1.9.4/languages/custom-post-widget-ru_RU.mo +0 -0
  316. tags/1.9.4/languages/custom-post-widget-ru_RU.po +218 -0
  317. tags/1.9.4/languages/custom-post-widget.pot +157 -0
  318. tags/1.9.4/popup.php +57 -0
  319. tags/1.9.4/post-widget.php +205 -0
  320. tags/1.9.4/readme.txt +144 -0
  321. tags/1.9.4/screenshot-1.png +0 -0
  322. tags/1.9.4/screenshot-2.png +0 -0
  323. tags/1.9.5/custom-post-widget.php +48 -0
  324. tags/1.9.5/images/contentblock-13.png +0 -0
  325. tags/1.9.5/images/contentblock-32.png +0 -0
  326. tags/1.9.5/images/contentblock.png +0 -0
  327. tags/1.9.5/languages/custom-post-widget-de_DE.mo +0 -0
  328. tags/1.9.5/languages/custom-post-widget-de_DE.po +171 -0
  329. tags/1.9.5/languages/custom-post-widget-fr_FR.mo +0 -0
  330. tags/1.9.5/languages/custom-post-widget-fr_FR.po +220 -0
  331. tags/1.9.5/languages/custom-post-widget-nl_NL.mo +0 -0
  332. tags/1.9.5/languages/custom-post-widget-nl_NL.po +174 -0
  333. tags/1.9.5/languages/custom-post-widget-pl_PL.mo +0 -0
  334. tags/1.9.5/languages/custom-post-widget-pl_PL.po +167 -0
  335. tags/1.9.5/languages/custom-post-widget-ru_RU.mo +0 -0
  336. tags/1.9.5/languages/custom-post-widget-ru_RU.po +218 -0
  337. tags/1.9.5/languages/custom-post-widget.pot +161 -0
  338. tags/1.9.5/popup.php +57 -0
  339. tags/1.9.5/post-widget.php +205 -0
  340. tags/1.9.5/readme.txt +151 -0
  341. tags/1.9.5/screenshot-1.png +0 -0
  342. tags/1.9.5/screenshot-2.png +0 -0
  343. tags/1.9.6/custom-post-widget.php +48 -0
  344. tags/1.9.6/images/contentblock-13.png +0 -0
  345. tags/1.9.6/images/contentblock-32.png +0 -0
  346. tags/1.9.6/images/contentblock.png +0 -0
  347. tags/1.9.6/languages/custom-post-widget-de_DE.mo +0 -0
  348. tags/1.9.6/languages/custom-post-widget-de_DE.po +171 -0
  349. tags/1.9.6/languages/custom-post-widget-fr_FR.mo +0 -0
  350. tags/1.9.6/languages/custom-post-widget-fr_FR.po +220 -0
  351. tags/1.9.6/languages/custom-post-widget-nl_NL.mo +0 -0
  352. tags/1.9.6/languages/custom-post-widget-nl_NL.po +174 -0
  353. tags/1.9.6/languages/custom-post-widget-pl_PL.mo +0 -0
  354. tags/1.9.6/languages/custom-post-widget-pl_PL.po +167 -0
  355. tags/1.9.6/languages/custom-post-widget-ru_RU.mo +0 -0
  356. tags/1.9.6/languages/custom-post-widget-ru_RU.po +218 -0
  357. tags/1.9.6/languages/custom-post-widget.pot +161 -0
  358. tags/1.9.6/popup.php +57 -0
  359. tags/1.9.6/post-widget.php +212 -0
  360. tags/1.9.6/readme.txt +156 -0
  361. tags/1.9.6/screenshot-1.png +0 -0
  362. tags/1.9.6/screenshot-2.png +0 -0
  363. tags/1.9.7/custom-post-widget.php +48 -0
  364. tags/1.9.7/images/contentblock-13.png +0 -0
  365. tags/1.9.7/images/contentblock-32.png +0 -0
  366. tags/1.9.7/images/contentblock.png +0 -0
  367. tags/1.9.7/languages/custom-post-widget-de_DE.mo +0 -0
  368. tags/1.9.7/languages/custom-post-widget-de_DE.po +171 -0
  369. tags/1.9.7/languages/custom-post-widget-fr_FR.mo +0 -0
  370. tags/1.9.7/languages/custom-post-widget-fr_FR.po +220 -0
  371. tags/1.9.7/languages/custom-post-widget-nl_NL.mo +0 -0
  372. tags/1.9.7/languages/custom-post-widget-nl_NL.po +174 -0
  373. tags/1.9.7/languages/custom-post-widget-pl_PL.mo +0 -0
  374. tags/1.9.7/languages/custom-post-widget-pl_PL.po +167 -0
  375. tags/1.9.7/languages/custom-post-widget-ru_RU.mo +0 -0
  376. tags/1.9.7/languages/custom-post-widget-ru_RU.po +218 -0
  377. tags/1.9.7/languages/custom-post-widget.pot +161 -0
  378. tags/1.9.7/popup.php +57 -0
  379. tags/1.9.7/post-widget.php +236 -0
  380. tags/1.9.7/readme.txt +159 -0
  381. tags/1.9.7/screenshot-1.png +0 -0
  382. tags/1.9.7/screenshot-2.png +0 -0
  383. tags/1.9.8/custom-post-widget.php +48 -0
  384. tags/1.9.8/images/contentblock-13.png +0 -0
  385. tags/1.9.8/images/contentblock-32.png +0 -0
  386. tags/1.9.8/images/contentblock.png +0 -0
  387. tags/1.9.8/languages/custom-post-widget-de_DE.mo +0 -0
  388. tags/1.9.8/languages/custom-post-widget-de_DE.po +171 -0
  389. tags/1.9.8/languages/custom-post-widget-fr_FR.mo +0 -0
  390. tags/1.9.8/languages/custom-post-widget-fr_FR.po +220 -0
  391. tags/1.9.8/languages/custom-post-widget-nl_NL.mo +0 -0
  392. tags/1.9.8/languages/custom-post-widget-nl_NL.po +174 -0
  393. tags/1.9.8/languages/custom-post-widget-pl_PL.mo +0 -0
  394. tags/1.9.8/languages/custom-post-widget-pl_PL.po +167 -0
  395. tags/1.9.8/languages/custom-post-widget-ru_RU.mo +0 -0
  396. tags/1.9.8/languages/custom-post-widget-ru_RU.po +218 -0
  397. tags/1.9.8/languages/custom-post-widget.pot +161 -0
  398. tags/1.9.8/popup.php +61 -0
  399. tags/1.9.8/post-widget.php +240 -0
  400. tags/1.9.8/readme.txt +162 -0
  401. tags/1.9.8/screenshot-1.png +0 -0
  402. tags/1.9.8/screenshot-2.png +0 -0
  403. tags/1.9/custom-post-widget.php +38 -0
assets/banner-772x250.png ADDED
Binary file
assets/icon-128x128.png ADDED
Binary file
assets/icon-256x256.png ADDED
Binary file
assets/icon.svg ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg version="1.1" id="custom-post-widget-logo" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" enable-background="new 0 0 256 256" xml:space="preserve">
4
+ <rect fill="#007CBA" width="256" height="256"/>
5
+ <rect x="156" y="56" fill="#FFFFFF" width="80" height="80"/>
6
+ <rect x="56" y="56" fill="#FFFFFF" width="80" height="80"/>
7
+ <rect x="56" y="156" fill="#FFFFFF" width="80" height="80"/>
8
+ <rect x="156" y="156" fill="#FFFFFF" width="80" height="80"/>
9
+ </svg>
tags/1.0/custom-post-widget.php ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.0
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+
10
+ Release notes: 1.0 First version
11
+
12
+ */
13
+
14
+ // First create the widget for the admin panel
15
+ class custom_post_widget extends WP_Widget
16
+ {
17
+ function custom_post_widget()
18
+ {
19
+ $widget_ops = array('description' => __('Displays custom post content in a widget'));
20
+ $this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
21
+ }
22
+
23
+ function form($instance)
24
+ {
25
+ $custom_post_id = esc_attr($instance['custom_post_id']);
26
+
27
+ ?>
28
+ <p>
29
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
30
+ <select id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
31
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC');
32
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
33
+ $currentID = get_the_ID();
34
+ if($currentID == $custom_post_id)
35
+ $extra = 'selected';
36
+ else
37
+ $extra = '';
38
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
39
+ endwhile; else:
40
+ echo '<option value="empty">No content blocks available</option>';
41
+ endif;
42
+ wp_reset_query(); ?>
43
+ </select>
44
+ </label>
45
+ </p><?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ return $instance;
53
+ }
54
+
55
+ function widget($args, $instance)
56
+ {
57
+ extract($args);
58
+
59
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
60
+
61
+ // Output title & $before_widget
62
+ echo $title . $before_widget;
63
+
64
+ // Output the query to find the custom post
65
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
66
+ while (have_posts()) : the_post();
67
+ echo the_content();
68
+ endwhile;
69
+ wp_reset_query();
70
+
71
+ // Output $after_widget
72
+ echo $after_widget;
73
+ }
74
+ }
75
+ add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
76
+
77
+ // Create the Content Block custom post type
78
+
79
+ add_action('init', 'my_content_block_post_type_init');
80
+
81
+ function my_content_block_post_type_init()
82
+ {
83
+ $labels = array(
84
+ 'name' => _x('Content Blocks', 'post type general name'),
85
+ 'singular_name' => _x('Content Block', 'post type singular name'),
86
+ 'add_new' => _x('Add Content Block', 'block'),
87
+ 'add_new_item' => __('Add New Content Block'),
88
+ 'edit_item' => __('Edit Content Block'),
89
+ 'new_item' => __('New Content Block'),
90
+ 'view_item' => __('View Content Block'),
91
+ 'search_items' => __('Search Content Blocks'),
92
+ 'not_found' => __('No Content Blocks Found'),
93
+ 'not_found_in_trash' => __('No Content Blocks found in Trash'),
94
+ 'parent_item_colon' => ''
95
+ );
96
+ $options = array(
97
+ 'labels' => $labels,
98
+ 'public' => false,
99
+ 'publicly_queryable' => false,
100
+ 'exclude_from_search' => true,
101
+ 'show_ui' => true,
102
+ 'query_var' => true,
103
+ 'rewrite' => true,
104
+ 'capability_type' => 'post',
105
+ 'hierarchical' => false,
106
+ 'menu_position' => null,
107
+ 'supports' => array('title','editor','revisions','thumbnail')
108
+ );
109
+ register_post_type('content_block',$options);
110
+ }
111
+
112
+ add_filter('post_updated_messages', 'content_block_messages');
113
+
114
+ function content_block_messages( $messages ) {
115
+
116
+ $messages['content_block'] = array(
117
+ 0 => '',
118
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
119
+ 2 => __('Custom field updated.'),
120
+ 3 => __('Custom field deleted.'),
121
+ 4 => __('Content Block updated.'),
122
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
123
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
124
+ 7 => __('Block saved.'),
125
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
126
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
127
+ date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
128
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
129
+ );
130
+
131
+ return $messages;
132
+ }
133
+
134
+ ?>
tags/1.0/readme.txt ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Donate link: http://www.vanderwijk.com/
4
+ Tags: custom post, widget, sidebar
5
+ Requires at least: 2.9
6
+ Tested up to: 3.0.1
7
+ Stable tag: 1.0
8
+
9
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
10
+
11
+ == Description ==
12
+
13
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
14
+
15
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
16
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
17
+
18
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
19
+
20
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
21
+
22
+ == Screenshots ==
23
+
24
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
25
+ 2. The widget has a select box to choose the content block.
26
+
27
+
28
+ == Installation ==
29
+
30
+ 1. First you will have to upload the plugin to the plugin folder.
31
+ 2. Then activate the plugin in the plugin panel.
32
+ You will see that a new custom post type has been added called Content Block.
33
+ 3. Type some content for the widget. The title can be used to describe the position of the content on the page, It will not be displayed in the actual widget.
34
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
35
+ 5. Select a Content Block from the drop-down list.
36
+ 6. Click save.
37
+
38
+ == Frequently Asked Questions ==
39
+
40
+ = Why can't I use the default text-widget? =
41
+
42
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
43
+
44
+ = How can I show the content bock on a specific page? =
45
+
46
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
47
+
48
+ == Changelog ==
49
+
50
+ = 1.0 =
51
+ First release
52
+
53
+ == Upgrade Notice ==
54
+
55
+ = 1.0 =
56
+ First release
57
+
58
+
tags/1.0/screenshot-1.PNG ADDED
Binary file
tags/1.0/screenshot-2.PNG ADDED
Binary file
tags/1.1.1/custom-post-widget.php ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.1.1
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+
10
+ Release notes: 1.0 First version
11
+
12
+ */
13
+
14
+ // First create the widget for the admin panel
15
+ class custom_post_widget extends WP_Widget
16
+ {
17
+ function custom_post_widget()
18
+ {
19
+ $widget_ops = array('description' => __('Displays custom post content in a widget'));
20
+ $this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
21
+ }
22
+
23
+ function form($instance)
24
+ {
25
+ $custom_post_id = esc_attr($instance['custom_post_id']);
26
+
27
+ ?>
28
+ <p>
29
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
30
+ <select id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
31
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
32
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
33
+ $currentID = get_the_ID();
34
+ if($currentID == $custom_post_id)
35
+ $extra = 'selected';
36
+ else
37
+ $extra = '';
38
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
39
+ endwhile; else:
40
+ echo '<option value="empty">No content blocks available</option>';
41
+ endif;
42
+ wp_reset_query(); ?>
43
+ </select>
44
+ </label>
45
+ </p><?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ return $instance;
53
+ }
54
+
55
+ function widget($args, $instance)
56
+ {
57
+ extract($args);
58
+
59
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
60
+
61
+ // Output title & $before_widget
62
+ echo $title . $before_widget;
63
+
64
+ // Output the query to find the custom post
65
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
66
+ while (have_posts()) : the_post();
67
+ echo the_content();
68
+ endwhile;
69
+ wp_reset_query();
70
+
71
+ // Output $after_widget
72
+ echo $after_widget;
73
+ }
74
+ }
75
+ add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
76
+
77
+ // Create the Content Block custom post type
78
+
79
+ add_action('init', 'my_content_block_post_type_init');
80
+
81
+ function my_content_block_post_type_init()
82
+ {
83
+ $labels = array(
84
+ 'name' => _x('Content Blocks', 'post type general name'),
85
+ 'singular_name' => _x('Content Block', 'post type singular name'),
86
+ 'add_new' => _x('Add Content Block', 'block'),
87
+ 'add_new_item' => __('Add New Content Block'),
88
+ 'edit_item' => __('Edit Content Block'),
89
+ 'new_item' => __('New Content Block'),
90
+ 'view_item' => __('View Content Block'),
91
+ 'search_items' => __('Search Content Blocks'),
92
+ 'not_found' => __('No Content Blocks Found'),
93
+ 'not_found_in_trash' => __('No Content Blocks found in Trash'),
94
+ 'parent_item_colon' => ''
95
+ );
96
+ $options = array(
97
+ 'labels' => $labels,
98
+ 'public' => false,
99
+ 'publicly_queryable' => false,
100
+ 'exclude_from_search' => true,
101
+ 'show_ui' => true,
102
+ 'query_var' => true,
103
+ 'rewrite' => true,
104
+ 'capability_type' => 'post',
105
+ 'hierarchical' => false,
106
+ 'menu_position' => null,
107
+ 'supports' => array('title','editor','revisions','thumbnail')
108
+ );
109
+ register_post_type('content_block',$options);
110
+ }
111
+
112
+ add_filter('post_updated_messages', 'content_block_messages');
113
+
114
+ function content_block_messages( $messages ) {
115
+
116
+ $messages['content_block'] = array(
117
+ 0 => '',
118
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
119
+ 2 => __('Custom field updated.'),
120
+ 3 => __('Custom field deleted.'),
121
+ 4 => __('Content Block updated.'),
122
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
123
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
124
+ 7 => __('Block saved.'),
125
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
126
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
127
+ date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
128
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
129
+ );
130
+
131
+ return $messages;
132
+ }
133
+
134
+ ?>
tags/1.1.1/readme.txt ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Donate link: http://www.vanderwijk.com/
4
+ Tags: custom post, widget, sidebar
5
+ Requires at least: 2.9
6
+ Tested up to: 3.0.1
7
+ Stable tag: 1.1.1
8
+
9
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
10
+
11
+ == Description ==
12
+
13
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
14
+
15
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
16
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
17
+
18
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
19
+
20
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
21
+
22
+ == Screenshots ==
23
+
24
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
25
+ 2. The widget has a select box to choose the content block.
26
+
27
+ == Installation ==
28
+
29
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
30
+ 2. Then activate the plugin in the plugin panel.
31
+ You will see that a new custom post type has been added called Content Block.
32
+ 3. Type some content for the widget. The title can be used to describe the position of the content on the page, It will not be displayed in the actual widget.
33
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
34
+ 5. Select a Content Block from the drop-down list.
35
+ 6. Click save.
36
+
37
+ == Frequently Asked Questions ==
38
+
39
+ = Why can't I use the default text-widget? =
40
+
41
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
42
+
43
+ = How can I show the content bock on a specific page? =
44
+
45
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
46
+
47
+ == Changelog ==
48
+
49
+ = 1.0 =
50
+ First release
51
+
52
+ = 1.1.1 =
53
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
54
+
55
+ == Upgrade Notice ==
56
+
57
+ = 1.0 =
58
+ First release
59
+
60
+
tags/1.1.1/screenshot-1.png ADDED
Binary file
tags/1.1.1/screenshot-2.png ADDED
Binary file
tags/1.1/custom-post-widget.php ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.0
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+
10
+ Release notes: 1.0 First version
11
+
12
+ */
13
+
14
+ // First create the widget for the admin panel
15
+ class custom_post_widget extends WP_Widget
16
+ {
17
+ function custom_post_widget()
18
+ {
19
+ $widget_ops = array('description' => __('Displays custom post content in a widget'));
20
+ $this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
21
+ }
22
+
23
+ function form($instance)
24
+ {
25
+ $custom_post_id = esc_attr($instance['custom_post_id']);
26
+
27
+ ?>
28
+ <p>
29
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
30
+ <select id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
31
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC');
32
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
33
+ $currentID = get_the_ID();
34
+ if($currentID == $custom_post_id)
35
+ $extra = 'selected';
36
+ else
37
+ $extra = '';
38
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
39
+ endwhile; else:
40
+ echo '<option value="empty">No content blocks available</option>';
41
+ endif;
42
+ wp_reset_query(); ?>
43
+ </select>
44
+ </label>
45
+ </p><?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ return $instance;
53
+ }
54
+
55
+ function widget($args, $instance)
56
+ {
57
+ extract($args);
58
+
59
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
60
+
61
+ // Output title & $before_widget
62
+ echo $title . $before_widget;
63
+
64
+ // Output the query to find the custom post
65
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
66
+ while (have_posts()) : the_post();
67
+ echo the_content();
68
+ endwhile;
69
+ wp_reset_query();
70
+
71
+ // Output $after_widget
72
+ echo $after_widget;
73
+ }
74
+ }
75
+ add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
76
+
77
+ // Create the Content Block custom post type
78
+
79
+ add_action('init', 'my_content_block_post_type_init');
80
+
81
+ function my_content_block_post_type_init()
82
+ {
83
+ $labels = array(
84
+ 'name' => _x('Content Blocks', 'post type general name'),
85
+ 'singular_name' => _x('Content Block', 'post type singular name'),
86
+ 'add_new' => _x('Add Content Block', 'block'),
87
+ 'add_new_item' => __('Add New Content Block'),
88
+ 'edit_item' => __('Edit Content Block'),
89
+ 'new_item' => __('New Content Block'),
90
+ 'view_item' => __('View Content Block'),
91
+ 'search_items' => __('Search Content Blocks'),
92
+ 'not_found' => __('No Content Blocks Found'),
93
+ 'not_found_in_trash' => __('No Content Blocks found in Trash'),
94
+ 'parent_item_colon' => ''
95
+ );
96
+ $options = array(
97
+ 'labels' => $labels,
98
+ 'public' => false,
99
+ 'publicly_queryable' => false,
100
+ 'exclude_from_search' => true,
101
+ 'show_ui' => true,
102
+ 'query_var' => true,
103
+ 'rewrite' => true,
104
+ 'capability_type' => 'post',
105
+ 'hierarchical' => false,
106
+ 'menu_position' => null,
107
+ 'supports' => array('title','editor','revisions','thumbnail')
108
+ );
109
+ register_post_type('content_block',$options);
110
+ }
111
+
112
+ add_filter('post_updated_messages', 'content_block_messages');
113
+
114
+ function content_block_messages( $messages ) {
115
+
116
+ $messages['content_block'] = array(
117
+ 0 => '',
118
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
119
+ 2 => __('Custom field updated.'),
120
+ 3 => __('Custom field deleted.'),
121
+ 4 => __('Content Block updated.'),
122
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
123
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
124
+ 7 => __('Block saved.'),
125
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
126
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
127
+ date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
128
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
129
+ );
130
+
131
+ return $messages;
132
+ }
133
+
134
+ ?>
tags/1.1/readme.txt ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Donate link: http://www.vanderwijk.com/
4
+ Tags: custom post, widget, sidebar
5
+ Requires at least: 2.9
6
+ Tested up to: 3.0.1
7
+ Stable tag: 1.0
8
+
9
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
10
+
11
+ == Description ==
12
+
13
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
14
+
15
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
16
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
17
+
18
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
19
+
20
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
21
+
22
+ == Screenshots ==
23
+
24
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
25
+ 2. The widget has a select box to choose the content block.
26
+
27
+ == Installation ==
28
+
29
+ 1. First you will have to upload the plugin to the plugin folder.
30
+ 2. Then activate the plugin in the plugin panel.
31
+ You will see that a new custom post type has been added called Content Block.
32
+ 3. Type some content for the widget. The title can be used to describe the position of the content on the page, It will not be displayed in the actual widget.
33
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
34
+ 5. Select a Content Block from the drop-down list.
35
+ 6. Click save.
36
+
37
+ == Frequently Asked Questions ==
38
+
39
+ = Why can't I use the default text-widget? =
40
+
41
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
42
+
43
+ = How can I show the content bock on a specific page? =
44
+
45
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
46
+
47
+ == Changelog ==
48
+
49
+ = 1.0 =
50
+ First release
51
+
52
+ == Upgrade Notice ==
53
+
54
+ = 1.0 =
55
+ First release
56
+
57
+
tags/1.1/screenshot-1.png ADDED
Binary file
tags/1.1/screenshot-2.png ADDED
Binary file
tags/1.2.1/custom-post-widget.php ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.2
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+
10
+ Release notes: 1.2 Added the option for displaying the post title
11
+
12
+ */
13
+
14
+ // First create the widget for the admin panel
15
+ class custom_post_widget extends WP_Widget
16
+ {
17
+ function custom_post_widget()
18
+ {
19
+ $widget_ops = array('description' => __('Displays custom post content in a widget'));
20
+ $this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
21
+ }
22
+
23
+ function form($instance)
24
+ {
25
+ $custom_post_id = esc_attr($instance['custom_post_id']);
26
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
27
+
28
+ ?>
29
+ <p>
30
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
31
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
32
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
33
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
34
+ $currentID = get_the_ID();
35
+ if($currentID == $custom_post_id)
36
+ $extra = 'selected';
37
+ else
38
+ $extra = '';
39
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
40
+ endwhile; else:
41
+ echo '<option value="empty">No content blocks available</option>';
42
+ endif;
43
+ wp_reset_query(); ?>
44
+ </select>
45
+ </label>
46
+ </p>
47
+ <p>
48
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
49
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title') ?></label>
50
+ </p>
51
+
52
+ <?php
53
+ }
54
+
55
+ function update($new_instance, $old_instance)
56
+ {
57
+ $instance = $old_instance;
58
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
59
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
60
+
61
+ return $instance;
62
+ }
63
+
64
+ function widget($args, $instance)
65
+ {
66
+ extract($args);
67
+
68
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
69
+
70
+ /* Our variables from the widget settings. */
71
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
72
+
73
+ /* Before widget (defined by themes). */
74
+ echo $before_widget;
75
+
76
+ // Output the query to find the custom post
77
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
78
+ while (have_posts()) : the_post();
79
+
80
+ if ( $show_custom_post_title )
81
+ echo the_title($before_title, $after_title); // This is the line that displays the title
82
+
83
+ echo the_content();
84
+ endwhile;
85
+ wp_reset_query();
86
+
87
+ // Output $after_widget
88
+ echo $after_widget;
89
+ }
90
+ }
91
+ add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
92
+
93
+ // Create the Content Block custom post type
94
+
95
+ add_action('init', 'my_content_block_post_type_init');
96
+
97
+ function my_content_block_post_type_init()
98
+ {
99
+ $labels = array(
100
+ 'name' => _x('Content Blocks', 'post type general name'),
101
+ 'singular_name' => _x('Content Block', 'post type singular name'),
102
+ 'add_new' => _x('Add Content Block', 'block'),
103
+ 'add_new_item' => __('Add New Content Block'),
104
+ 'edit_item' => __('Edit Content Block'),
105
+ 'new_item' => __('New Content Block'),
106
+ 'view_item' => __('View Content Block'),
107
+ 'search_items' => __('Search Content Blocks'),
108
+ 'not_found' => __('No Content Blocks Found'),
109
+ 'not_found_in_trash' => __('No Content Blocks found in Trash'),
110
+ 'parent_item_colon' => ''
111
+ );
112
+ $options = array(
113
+ 'labels' => $labels,
114
+ 'public' => false,
115
+ 'publicly_queryable' => false,
116
+ 'exclude_from_search' => true,
117
+ 'show_ui' => true,
118
+ 'query_var' => true,
119
+ 'rewrite' => true,
120
+ 'capability_type' => 'post',
121
+ 'hierarchical' => false,
122
+ 'menu_position' => null,
123
+ 'supports' => array('title','editor','revisions','thumbnail')
124
+ );
125
+ register_post_type('content_block',$options);
126
+ }
127
+
128
+ add_filter('post_updated_messages', 'content_block_messages');
129
+
130
+ function content_block_messages( $messages ) {
131
+
132
+ $messages['content_block'] = array(
133
+ 0 => '',
134
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
135
+ 2 => __('Custom field updated.'),
136
+ 3 => __('Custom field deleted.'),
137
+ 4 => __('Content Block updated.'),
138
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
139
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
140
+ 7 => __('Block saved.'),
141
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
142
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
143
+ date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
144
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
145
+ );
146
+
147
+ return $messages;
148
+ }
149
+
150
+ ?>
tags/1.2.1/readme.txt ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.0.3
8
+ Stable tag: 1.2.1
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ == Changelog ==
53
+
54
+ = 1.0 =
55
+ First release
56
+
57
+ = 1.1 =
58
+ Fixed screenshots for plugin directory
59
+
60
+ = 1.1.1 =
61
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
62
+
63
+ = 1.2 =
64
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
65
+
66
+ = 1.2.1 =
67
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
68
+
69
+ == Upgrade Notice ==
70
+
71
+ = 1.1.1 =
72
+ Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
73
+
74
+
tags/1.2.1/screenshot-1.png ADDED
Binary file
tags/1.2.1/screenshot-2.png ADDED
Binary file
tags/1.2/custom-post-widget.php ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.3
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+
10
+ Release notes: 1.3 Now the title of the content block is displayed in the admin widget
11
+
12
+ */
13
+
14
+ // First create the widget for the admin panel
15
+ class custom_post_widget extends WP_Widget
16
+ {
17
+ function custom_post_widget()
18
+ {
19
+ $widget_ops = array('description' => __('Displays custom post content in a widget'));
20
+ $this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
21
+ }
22
+
23
+ function form($instance)
24
+ {
25
+ $custom_post_id = esc_attr($instance['custom_post_id']);
26
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
27
+
28
+ ?>
29
+ <p>
30
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
31
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
32
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
33
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
34
+ $currentID = get_the_ID();
35
+ if($currentID == $custom_post_id)
36
+ $extra = 'selected' and
37
+ $widgetExtraTitle = get_the_title();
38
+ else
39
+ $extra = '';
40
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
41
+ endwhile; else:
42
+ echo '<option value="empty">No content blocks available</option>';
43
+ endif;
44
+ ?>
45
+ </select>
46
+ </label>
47
+ </p>
48
+ <?php ?>
49
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
50
+ <?php wp_reset_query(); ?>
51
+
52
+ <p>
53
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
54
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title') ?></label>
55
+ </p>
56
+
57
+ <?php
58
+ }
59
+
60
+ function update($new_instance, $old_instance)
61
+ {
62
+ $instance = $old_instance;
63
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
64
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
65
+
66
+ return $instance;
67
+ }
68
+
69
+ function widget($args, $instance)
70
+ {
71
+ extract($args);
72
+
73
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
74
+
75
+ /* Our variables from the widget settings. */
76
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
77
+
78
+ /* Before widget (defined by themes). */
79
+ echo $before_widget;
80
+
81
+ // Output the query to find the custom post
82
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
83
+ while (have_posts()) : the_post();
84
+
85
+ if ( $show_custom_post_title )
86
+ echo the_title($before_title, $after_title); // This is the line that displays the title
87
+
88
+ echo the_content();
89
+ endwhile;
90
+ wp_reset_query();
91
+
92
+ // Output $after_widget
93
+ echo $after_widget;
94
+ }
95
+ }
96
+ add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
97
+
98
+ // Create the Content Block custom post type
99
+
100
+ add_action('init', 'my_content_block_post_type_init');
101
+
102
+ function my_content_block_post_type_init()
103
+ {
104
+ $labels = array(
105
+ 'name' => _x('Content Blocks', 'post type general name'),
106
+ 'singular_name' => _x('Content Block', 'post type singular name'),
107
+ 'add_new' => _x('Add Content Block', 'block'),
108
+ 'add_new_item' => __('Add New Content Block'),
109
+ 'edit_item' => __('Edit Content Block'),
110
+ 'new_item' => __('New Content Block'),
111
+ 'view_item' => __('View Content Block'),
112
+ 'search_items' => __('Search Content Blocks'),
113
+ 'not_found' => __('No Content Blocks Found'),
114
+ 'not_found_in_trash' => __('No Content Blocks found in Trash'),
115
+ 'parent_item_colon' => ''
116
+ );
117
+ $options = array(
118
+ 'labels' => $labels,
119
+ 'public' => false,
120
+ 'publicly_queryable' => false,
121
+ 'exclude_from_search' => true,
122
+ 'show_ui' => true,
123
+ 'query_var' => true,
124
+ 'rewrite' => true,
125
+ 'capability_type' => 'post',
126
+ 'hierarchical' => false,
127
+ 'menu_position' => null,
128
+ 'supports' => array('title','editor','revisions','thumbnail')
129
+ );
130
+ register_post_type('content_block',$options);
131
+ }
132
+
133
+ add_filter('post_updated_messages', 'content_block_messages');
134
+
135
+ function content_block_messages( $messages ) {
136
+
137
+ $messages['content_block'] = array(
138
+ 0 => '',
139
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
140
+ 2 => __('Custom field updated.'),
141
+ 3 => __('Custom field deleted.'),
142
+ 4 => __('Content Block updated.'),
143
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
144
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
145
+ 7 => __('Block saved.'),
146
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
147
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
148
+ date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
149
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
150
+ );
151
+
152
+ return $messages;
153
+ }
154
+
155
+ ?>
tags/1.2/readme.txt ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.0.4
8
+ Stable tag: 1.3
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ == Changelog ==
53
+
54
+ = 1.0 =
55
+ First release
56
+
57
+ = 1.1 =
58
+ Fixed screenshots for plugin directory
59
+
60
+ = 1.1.1 =
61
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
62
+
63
+ = 1.2 =
64
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
65
+
66
+ = 1.2.1 =
67
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
68
+
69
+ = 1.3 =
70
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
71
+
72
+ == Upgrade Notice ==
73
+
74
+ = 1.1.1 =
75
+ Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
76
+
77
+
tags/1.2/screenshot-1.png ADDED
Binary file
tags/1.2/screenshot-2.png ADDED
Binary file
tags/1.4/custom-post-widget.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.4
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: 1.4 Thanks to Caspar from GlückPress (http://glueckpress.com) the Custom Post Widget plugin is now fully localized.
12
+
13
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ /* Set constant path to the custom-post-widget plugin directory. */
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_TEXTDOMAIN', 'custom-post-widget' );
32
+
33
+ /* Launch the plugin. */
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ /**
37
+ Initialize the plugin. This function loads the required files needed for the plugin
38
+ to run in the proper order and adds needed functions to the required hooks.
39
+ */
40
+ function custom_post_widget_plugin_init() {
41
+
42
+ /* Load the translation of the plugin. */
43
+ load_plugin_textdomain( CUSTOM_POST_WIDGET_TEXTDOMAIN, false, 'custom-post-widget/languages' );
44
+
45
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
46
+ }
47
+
48
+ /**
49
+ Loads the widgets packaged with the plugin.
50
+ */
51
+ function custom_post_widget_load_widgets() {
52
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
53
+ register_widget( 'custom_post_widget' );
54
+ }
55
+
56
+ ?>
tags/1.4/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.4/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.4/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.4/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.4/languages/custom-post-widget-xx_XX.pot ADDED
@@ -0,0 +1 @@
 
1
+ MIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit
tags/1.4/post-widget.php ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget
5
+ {
6
+ function custom_post_widget()
7
+ {
8
+ $widget_ops = array('description' => __('Displays custom post content in a widget', CUSTOM_POST_WIDGET_TEXTDOMAIN));
9
+ $this->WP_Widget('custom_post_widget', __('Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN), $widget_ops);
10
+ }
11
+
12
+ function form($instance)
13
+ {
14
+ $custom_post_id = esc_attr($instance['custom_post_id']);
15
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
16
+
17
+ ?>
18
+ <p>
19
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?>
20
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
21
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
22
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
23
+ $currentID = get_the_ID();
24
+ if($currentID == $custom_post_id)
25
+ $extra = 'selected' and
26
+ $widgetExtraTitle = get_the_title();
27
+ else
28
+ $extra = '';
29
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
30
+ endwhile; else:
31
+ echo '<option value="empty">' . __('No content blocks available', CUSTOM_POST_WIDGET_TEXTDOMAIN) . '</option>';
32
+ endif;
33
+ ?>
34
+ </select>
35
+ </label>
36
+ </p>
37
+ <?php ?>
38
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
39
+ <?php wp_reset_query(); ?>
40
+ <p>
41
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
42
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?></label>
43
+ </p>
44
+
45
+ <?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+
54
+ return $instance;
55
+ }
56
+
57
+ function widget($args, $instance)
58
+ {
59
+ extract($args);
60
+
61
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', CUSTOM_POST_WIDGET_TEXTDOMAIN);
62
+
63
+ /* Our variables from the widget settings. */
64
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
65
+
66
+ /* Before widget (defined by themes). */
67
+ echo $before_widget;
68
+
69
+ // Output the query to find the custom post
70
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
71
+ while (have_posts()) : the_post();
72
+
73
+ if ( $show_custom_post_title )
74
+ echo the_title($before_title, $after_title); // This is the line that displays the title
75
+ echo the_content();
76
+ endwhile;
77
+ wp_reset_query();
78
+
79
+ // Output $after_widget
80
+ echo $after_widget;
81
+ }
82
+ }
83
+
84
+ // Create the Content Block custom post type
85
+
86
+ add_action('init', 'my_content_block_post_type_init');
87
+
88
+ function my_content_block_post_type_init()
89
+ {
90
+ $labels = array(
91
+ 'name' => _x('Content Blocks', 'post type general name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
92
+ 'singular_name' => _x('Content Block', 'post type singular name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
93
+ 'plural_name' => _x('Content Blocks', 'post type plural name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
94
+ 'add_new' => _x('Add Content Block', 'block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
95
+ 'add_new_item' => __('Add New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
96
+ 'edit_item' => __('Edit Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
97
+ 'new_item' => __('New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
98
+ 'view_item' => __('View Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
99
+ 'search_items' => __('Search Content Blocks', CUSTOM_POST_WIDGET_TEXTDOMAIN),
100
+ 'not_found' => __('No Content Blocks Found', CUSTOM_POST_WIDGET_TEXTDOMAIN),
101
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', CUSTOM_POST_WIDGET_TEXTDOMAIN),
102
+ 'parent_item_colon' => ''
103
+ );
104
+ $options = array(
105
+ 'labels' => $labels,
106
+ 'public' => false,
107
+ 'publicly_queryable' => false,
108
+ 'exclude_from_search' => true,
109
+ 'show_ui' => true,
110
+ 'query_var' => true,
111
+ 'rewrite' => true,
112
+ 'capability_type' => 'post',
113
+ 'hierarchical' => false,
114
+ 'menu_position' => null,
115
+ 'supports' => array('title','editor','revisions','thumbnail')
116
+ );
117
+ register_post_type('content_block',$options);
118
+ }
119
+
120
+ add_filter('post_updated_messages', 'content_block_messages');
121
+
122
+ function content_block_messages( $messages ) {
123
+
124
+ $messages['content_block'] = array(
125
+ 0 => '',
126
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
127
+ 2 => __('Custom field updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
128
+ 3 => __('Custom field deleted.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
129
+ 4 => __('Content Block updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
130
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', CUSTOM_POST_WIDGET_TEXTDOMAIN), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
131
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
132
+ 7 => __('Block saved.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
133
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
134
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN),
135
+ date_i18n( __( 'M j, Y @ G:i' , CUSTOM_POST_WIDGET_TEXTDOMAIN), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
136
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
137
+ );
138
+
139
+ return $messages;
140
+ }
141
+
142
+ ?>
tags/1.4/readme.txt ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.1
8
+ Stable tag: 1.4
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ == Changelog ==
53
+
54
+ = 1.0 =
55
+ First release
56
+
57
+ = 1.1 =
58
+ Fixed screenshots for plugin directory
59
+
60
+ = 1.1.1 =
61
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
62
+
63
+ = 1.2 =
64
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
65
+
66
+ = 1.2.1 =
67
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
68
+
69
+ = 1.3 =
70
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
71
+
72
+ = 1.4 =
73
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
74
+
75
+
76
+ == Upgrade Notice ==
77
+
78
+ = 1.1.1 =
79
+ Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
tags/1.4/screenshot-1.png ADDED
Binary file
tags/1.4/screenshot-2.png ADDED
Binary file
tags/1.5/custom-post-widget.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.5
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: 1.5 Thanks to Caspar from GlückPress (http://glueckpress.com) the plugin
12
+ now has its own icon and as requested by Stephen James the author field has been added
13
+ to the Content Block edit screen.
14
+
15
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
16
+
17
+ This program is free software; you can redistribute it and/or modify
18
+ it under the terms of the GNU General Public License, version 2, as
19
+ published by the Free Software Foundation.
20
+
21
+ This program is distributed in the hope that it will be useful,
22
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
23
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
+ GNU General Public License for more details.
25
+
26
+ You should have received a copy of the GNU General Public License
27
+ along with this program; if not, write to the Free Software
28
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29
+ */
30
+
31
+ /* Set constant path to the custom-post-widget plugin directory. */
32
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
33
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
34
+ define( 'CUSTOM_POST_WIDGET_TEXTDOMAIN', 'custom-post-widget' );
35
+
36
+ /* Launch the plugin. */
37
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
38
+
39
+ /**
40
+ Initialize the plugin. This function loads the required files needed for the plugin
41
+ to run in the proper order and adds needed functions to the required hooks.
42
+ */
43
+ function custom_post_widget_plugin_init() {
44
+
45
+ /* Load the translation of the plugin. */
46
+ load_plugin_textdomain( CUSTOM_POST_WIDGET_TEXTDOMAIN, false, 'custom-post-widget/languages' );
47
+
48
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
49
+ }
50
+
51
+ /**
52
+ Loads the widgets packaged with the plugin.
53
+ */
54
+ function custom_post_widget_load_widgets() {
55
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
56
+ register_widget( 'custom_post_widget' );
57
+ }
58
+
59
+ ?>
tags/1.5/images/contentblock-32.png ADDED
Binary file
tags/1.5/images/contentblock.png ADDED
Binary file
tags/1.5/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.5/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.5/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.5/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.5/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.5/post-widget.php ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget
5
+ {
6
+ function custom_post_widget()
7
+ {
8
+ $widget_ops = array('description' => __('Displays custom post content in a widget', CUSTOM_POST_WIDGET_TEXTDOMAIN));
9
+ $this->WP_Widget('custom_post_widget', __('Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN), $widget_ops);
10
+ }
11
+
12
+ function form($instance)
13
+ {
14
+ $custom_post_id = esc_attr($instance['custom_post_id']);
15
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
16
+
17
+ ?>
18
+ <p>
19
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?>
20
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
21
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
22
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
23
+ $currentID = get_the_ID();
24
+ if($currentID == $custom_post_id)
25
+ $extra = 'selected' and
26
+ $widgetExtraTitle = get_the_title();
27
+ else
28
+ $extra = '';
29
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
30
+ endwhile; else:
31
+ echo '<option value="empty">' . __('No content blocks available', CUSTOM_POST_WIDGET_TEXTDOMAIN) . '</option>';
32
+ endif;
33
+ ?>
34
+ </select>
35
+ </label>
36
+ </p>
37
+ <?php ?>
38
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
39
+ <?php wp_reset_query(); ?>
40
+ <p>
41
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
42
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?></label>
43
+ </p>
44
+
45
+ <?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+
54
+ return $instance;
55
+ }
56
+
57
+ function widget($args, $instance)
58
+ {
59
+ extract($args);
60
+
61
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', CUSTOM_POST_WIDGET_TEXTDOMAIN);
62
+
63
+ /* Our variables from the widget settings. */
64
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
65
+
66
+ /* Before widget (defined by themes). */
67
+ echo $before_widget;
68
+
69
+ // Output the query to find the custom post
70
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
71
+ while (have_posts()) : the_post();
72
+
73
+ if ( $show_custom_post_title )
74
+ echo the_title($before_title, $after_title); // This is the line that displays the title
75
+ echo the_content();
76
+ endwhile;
77
+ wp_reset_query();
78
+
79
+ // Output $after_widget
80
+ echo $after_widget;
81
+ }
82
+ }
83
+
84
+ // Create the Content Block custom post type
85
+
86
+ add_action('init', 'my_content_block_post_type_init');
87
+
88
+ function my_content_block_post_type_init()
89
+ {
90
+ $labels = array(
91
+ 'name' => _x('Content Blocks', 'post type general name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
92
+ 'singular_name' => _x('Content Block', 'post type singular name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
93
+ 'plural_name' => _x('Content Blocks', 'post type plural name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
94
+ 'add_new' => _x('Add Content Block', 'block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
95
+ 'add_new_item' => __('Add New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
96
+ 'edit_item' => __('Edit Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
97
+ 'new_item' => __('New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
98
+ 'view_item' => __('View Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
99
+ 'search_items' => __('Search Content Blocks', CUSTOM_POST_WIDGET_TEXTDOMAIN),
100
+ 'not_found' => __('No Content Blocks Found', CUSTOM_POST_WIDGET_TEXTDOMAIN),
101
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', CUSTOM_POST_WIDGET_TEXTDOMAIN),
102
+ 'parent_item_colon' => ''
103
+ );
104
+ $options = array(
105
+ 'labels' => $labels,
106
+ 'public' => false,
107
+ 'publicly_queryable' => false,
108
+ 'exclude_from_search' => true,
109
+ 'show_ui' => true,
110
+ 'query_var' => true,
111
+ 'rewrite' => true,
112
+ 'capability_type' => 'post',
113
+ 'hierarchical' => false,
114
+ 'menu_position' => null,
115
+ 'supports' => array('title','editor','revisions','thumbnail','author')
116
+ );
117
+ register_post_type('content_block',$options);
118
+ }
119
+
120
+
121
+ // Add custom styles to admin screen and menu
122
+
123
+ add_action('admin_head', 'content_block_header');
124
+
125
+ function content_block_header() {
126
+
127
+ global $post_type; ?>
128
+
129
+ <style type="text/css"><!--
130
+ <?php if (($post_type == 'content_block')) : ?>
131
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
132
+ <?php endif; ?>
133
+ #adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
134
+ #adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
135
+ --></style><?php
136
+
137
+ }
138
+
139
+ add_filter('post_updated_messages', 'content_block_messages');
140
+
141
+ function content_block_messages( $messages ) {
142
+
143
+ $messages['content_block'] = array(
144
+ 0 => '',
145
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
146
+ 2 => __('Custom field updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
147
+ 3 => __('Custom field deleted.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
148
+ 4 => __('Content Block updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
149
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', CUSTOM_POST_WIDGET_TEXTDOMAIN), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
150
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
151
+ 7 => __('Block saved.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
152
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
153
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN),
154
+ date_i18n( __( 'M j, Y @ G:i' , CUSTOM_POST_WIDGET_TEXTDOMAIN), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
155
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
156
+ );
157
+
158
+ return $messages;
159
+ }
160
+
161
+ ?>
tags/1.5/readme.txt ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.1
8
+ Stable tag: 1.5
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+
98
+ == Upgrade Notice ==
99
+
100
+ = 1.1.1 =
101
+ Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
102
+
103
+
tags/1.5/screenshot-1.png ADDED
Binary file
tags/1.5/screenshot-2.png ADDED
Binary file
tags/1.6/custom-post-widget.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.6
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.6 of the Custom Post Widget plugin now uses the much more efficient
12
+ get_post instead of query_post to display the widget content.
13
+
14
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
15
+
16
+ This program is free software; you can redistribute it and/or modify
17
+ it under the terms of the GNU General Public License, version 2, as
18
+ published by the Free Software Foundation.
19
+
20
+ This program is distributed in the hope that it will be useful,
21
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
+ GNU General Public License for more details.
24
+
25
+ You should have received a copy of the GNU General Public License
26
+ along with this program; if not, write to the Free Software
27
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
+ */
29
+
30
+ /* Set constant path to the custom-post-widget plugin directory. */
31
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
32
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
33
+ define( 'CUSTOM_POST_WIDGET_TEXTDOMAIN', 'custom-post-widget' );
34
+
35
+ /* Launch the plugin. */
36
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
37
+
38
+ /**
39
+ Initialize the plugin. This function loads the required files needed for the plugin
40
+ to run in the proper order and adds needed functions to the required hooks.
41
+ */
42
+ function custom_post_widget_plugin_init() {
43
+
44
+ /* Load the translation of the plugin. */
45
+ load_plugin_textdomain( CUSTOM_POST_WIDGET_TEXTDOMAIN, false, 'custom-post-widget/languages' );
46
+
47
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
48
+ }
49
+
50
+ /**
51
+ Loads the widgets packaged with the plugin.
52
+ */
53
+ function custom_post_widget_load_widgets() {
54
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
55
+ register_widget( 'custom_post_widget' );
56
+ }
57
+
58
+ ?>
tags/1.6/images/contentblock-32.png ADDED
Binary file
tags/1.6/images/contentblock.png ADDED
Binary file
tags/1.6/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.6/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.6/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.6/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.6/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.6/post-widget.php ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget
5
+ {
6
+ function custom_post_widget()
7
+ {
8
+ $widget_ops = array('description' => __('Displays custom post content in a widget', CUSTOM_POST_WIDGET_TEXTDOMAIN));
9
+ $this->WP_Widget('custom_post_widget', __('Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN), $widget_ops);
10
+ }
11
+
12
+ function form($instance)
13
+ {
14
+ $custom_post_id = esc_attr($instance['custom_post_id']);
15
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
16
+
17
+ ?>
18
+ <p>
19
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?>
20
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
21
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
22
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
23
+ $currentID = get_the_ID();
24
+ if($currentID == $custom_post_id)
25
+ $extra = 'selected' and
26
+ $widgetExtraTitle = get_the_title();
27
+ else
28
+ $extra = '';
29
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
30
+ endwhile; else:
31
+ echo '<option value="empty">' . __('No content blocks available', CUSTOM_POST_WIDGET_TEXTDOMAIN) . '</option>';
32
+ endif;
33
+ ?>
34
+ </select>
35
+ </label>
36
+ </p>
37
+ <?php ?>
38
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
39
+ <?php wp_reset_query(); ?>
40
+ <p>
41
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
42
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?></label>
43
+ </p>
44
+
45
+ <?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+
54
+ return $instance;
55
+ }
56
+
57
+ function widget($args, $instance)
58
+ {
59
+ extract($args);
60
+
61
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', CUSTOM_POST_WIDGET_TEXTDOMAIN);
62
+
63
+ /* Variables from the widget settings. */
64
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
65
+
66
+ $content_post = get_post($custom_post_id);
67
+ $content = $content_post->post_content;
68
+ $content = apply_filters('the_content', $content);
69
+ $content = str_replace(']]>', ']]>', $content);
70
+
71
+ echo $before_widget;
72
+ if ( $show_custom_post_title )
73
+ {
74
+ echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
75
+ }
76
+ echo $content; // This is where the actual content of the custom post is being displayed
77
+ echo $after_widget;
78
+
79
+ }
80
+ }
81
+
82
+ // Create the Content Block custom post type
83
+ add_action('init', 'my_content_block_post_type_init');
84
+
85
+ function my_content_block_post_type_init()
86
+ {
87
+ $labels = array(
88
+ 'name' => _x('Content Blocks', 'post type general name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
89
+ 'singular_name' => _x('Content Block', 'post type singular name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
90
+ 'plural_name' => _x('Content Blocks', 'post type plural name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
91
+ 'add_new' => _x('Add Content Block', 'block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
92
+ 'add_new_item' => __('Add New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
93
+ 'edit_item' => __('Edit Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
94
+ 'new_item' => __('New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
95
+ 'view_item' => __('View Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
96
+ 'search_items' => __('Search Content Blocks', CUSTOM_POST_WIDGET_TEXTDOMAIN),
97
+ 'not_found' => __('No Content Blocks Found', CUSTOM_POST_WIDGET_TEXTDOMAIN),
98
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', CUSTOM_POST_WIDGET_TEXTDOMAIN),
99
+ 'parent_item_colon' => ''
100
+ );
101
+ $options = array(
102
+ 'labels' => $labels,
103
+ 'public' => false,
104
+ 'publicly_queryable' => false,
105
+ 'exclude_from_search' => true,
106
+ 'show_ui' => true,
107
+ 'query_var' => true,
108
+ 'rewrite' => true,
109
+ 'capability_type' => 'post',
110
+ 'hierarchical' => false,
111
+ 'menu_position' => null,
112
+ 'supports' => array('title','editor','revisions','thumbnail','author')
113
+ );
114
+ register_post_type('content_block',$options);
115
+ }
116
+
117
+
118
+ // Add custom styles to admin screen and menu
119
+ add_action('admin_head', 'content_block_header');
120
+
121
+ function content_block_header() {
122
+
123
+ global $post_type; ?>
124
+
125
+ <style type="text/css"><!--
126
+ <?php if (($post_type == 'content_block')) : ?>
127
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
128
+ <?php endif; ?>
129
+ #adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
130
+ #adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
131
+ --></style><?php
132
+
133
+ }
134
+
135
+ add_filter('post_updated_messages', 'content_block_messages');
136
+
137
+ function content_block_messages( $messages ) {
138
+
139
+ $messages['content_block'] = array(
140
+ 0 => '',
141
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
142
+ 2 => __('Custom field updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
143
+ 3 => __('Custom field deleted.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
144
+ 4 => __('Content Block updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
145
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', CUSTOM_POST_WIDGET_TEXTDOMAIN), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
146
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
147
+ 7 => __('Block saved.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
148
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
149
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN),
150
+ date_i18n( __( 'M j, Y @ G:i' , CUSTOM_POST_WIDGET_TEXTDOMAIN), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
151
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
152
+ );
153
+
154
+ return $messages;
155
+ }
156
+
157
+ ?>
tags/1.6/readme.txt ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.1
8
+ Stable tag: 1.6
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+ = 1.6 =
98
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
99
+
100
+
101
+ == Upgrade Notice ==
102
+
103
+ = 1.1.1 =
104
+ Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
105
+
106
+
tags/1.6/screenshot-1.png ADDED
Binary file
tags/1.6/screenshot-2.png ADDED
Binary file
tags/1.7/custom-post-widget.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.7
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.7 fixes all the error messages that Yoast discovered when reviewing this plugin.
12
+ It also adds the option to use the [content_block id= ] shortcode to insert a content block in a post.
13
+
14
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
15
+
16
+ This program is free software; you can redistribute it and/or modify
17
+ it under the terms of the GNU General Public License, version 2, as
18
+ published by the Free Software Foundation.
19
+
20
+ This program is distributed in the hope that it will be useful,
21
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
+ GNU General Public License for more details.
24
+
25
+ You should have received a copy of the GNU General Public License
26
+ along with this program; if not, write to the Free Software
27
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
+ */
29
+
30
+ /* Set constant path to the custom-post-widget plugin directory. */
31
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
32
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
33
+ define( 'CUSTOM_POST_WIDGET_TEXTDOMAIN', 'custom-post-widget' );
34
+
35
+ /* Launch the plugin. */
36
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
37
+
38
+ /**
39
+ Initialize the plugin. This function loads the required files needed for the plugin
40
+ to run in the proper order and adds needed functions to the required hooks.
41
+ */
42
+ function custom_post_widget_plugin_init() {
43
+
44
+ /* Load the translation of the plugin. */
45
+ load_plugin_textdomain( CUSTOM_POST_WIDGET_TEXTDOMAIN, false, 'custom-post-widget/languages' );
46
+
47
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
48
+ }
49
+
50
+ /**
51
+ Loads the widgets packaged with the plugin.
52
+ */
53
+ function custom_post_widget_load_widgets() {
54
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
55
+ register_widget( 'custom_post_widget' );
56
+ }
57
+
58
+ ?>
tags/1.7/images/contentblock-32.png ADDED
Binary file
tags/1.7/images/contentblock.png ADDED
Binary file
tags/1.7/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.7/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.7/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.7/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.7/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.7/post-widget.php ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget
5
+ {
6
+ function custom_post_widget()
7
+ {
8
+ $widget_ops = array('description' => __('Displays custom post content in a widget', CUSTOM_POST_WIDGET_TEXTDOMAIN));
9
+ $this->WP_Widget('custom_post_widget', __('Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN), $widget_ops);
10
+ }
11
+
12
+ function form($instance)
13
+ {
14
+ $custom_post_id = esc_attr($instance['custom_post_id']);
15
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
16
+
17
+ ?>
18
+ <p>
19
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?>
20
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
21
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
22
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
23
+ $currentID = get_the_ID();
24
+ if($currentID == $custom_post_id)
25
+ $extra = 'selected' and
26
+ $widgetExtraTitle = get_the_title();
27
+ else
28
+ $extra = '';
29
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
30
+ endwhile; else:
31
+ echo '<option value="empty">' . __('No content blocks available', CUSTOM_POST_WIDGET_TEXTDOMAIN) . '</option>';
32
+ endif;
33
+ ?>
34
+ </select>
35
+ </label>
36
+ </p>
37
+ <?php ?>
38
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
39
+ <?php wp_reset_query(); ?>
40
+ <p>
41
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
42
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?></label>
43
+ </p>
44
+
45
+ <?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+
54
+ return $instance;
55
+ }
56
+
57
+ function widget($args, $instance)
58
+ {
59
+ extract($args);
60
+
61
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', CUSTOM_POST_WIDGET_TEXTDOMAIN);
62
+
63
+ /* Variables from the widget settings. */
64
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
65
+
66
+ $content_post = get_post($custom_post_id);
67
+ $content = $content_post->post_content;
68
+ $content = apply_filters('the_content', $content);
69
+ $content = str_replace(']]>', ']]>', $content);
70
+
71
+ echo $before_widget;
72
+ if ( $show_custom_post_title )
73
+ {
74
+ echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
75
+ }
76
+ echo $content; // This is where the actual content of the custom post is being displayed
77
+ echo $after_widget;
78
+
79
+ }
80
+ }
81
+
82
+ // Create the Content Block custom post type
83
+ add_action('init', 'my_content_block_post_type_init');
84
+
85
+ function my_content_block_post_type_init()
86
+ {
87
+ $labels = array(
88
+ 'name' => _x('Content Blocks', 'post type general name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
89
+ 'singular_name' => _x('Content Block', 'post type singular name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
90
+ 'plural_name' => _x('Content Blocks', 'post type plural name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
91
+ 'add_new' => _x('Add Content Block', 'block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
92
+ 'add_new_item' => __('Add New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
93
+ 'edit_item' => __('Edit Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
94
+ 'new_item' => __('New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
95
+ 'view_item' => __('View Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
96
+ 'search_items' => __('Search Content Blocks', CUSTOM_POST_WIDGET_TEXTDOMAIN),
97
+ 'not_found' => __('No Content Blocks Found', CUSTOM_POST_WIDGET_TEXTDOMAIN),
98
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', CUSTOM_POST_WIDGET_TEXTDOMAIN),
99
+ 'parent_item_colon' => ''
100
+ );
101
+ $options = array(
102
+ 'labels' => $labels,
103
+ 'public' => false,
104
+ 'publicly_queryable' => false,
105
+ 'exclude_from_search' => true,
106
+ 'show_ui' => true,
107
+ 'query_var' => true,
108
+ 'rewrite' => true,
109
+ 'capability_type' => 'post',
110
+ 'hierarchical' => false,
111
+ 'menu_position' => null,
112
+ 'supports' => array('title','editor','revisions','thumbnail','author')
113
+ );
114
+ register_post_type('content_block',$options);
115
+ }
116
+
117
+
118
+ // Add custom styles to admin screen and menu
119
+ add_action('admin_head', 'content_block_header');
120
+
121
+ function content_block_header() {
122
+
123
+ global $post_type; ?>
124
+
125
+ <style type="text/css"><!--
126
+ <?php if (($post_type == 'content_block')) : ?>
127
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
128
+ <?php endif; ?>
129
+ #adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
130
+ #adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
131
+ --></style><?php
132
+
133
+ }
134
+
135
+ add_filter('post_updated_messages', 'content_block_messages');
136
+
137
+ function content_block_messages( $messages ) {
138
+
139
+ $messages['content_block'] = array(
140
+ 0 => '',
141
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
142
+ 2 => __('Custom field updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
143
+ 3 => __('Custom field deleted.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
144
+ 4 => __('Content Block updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
145
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', CUSTOM_POST_WIDGET_TEXTDOMAIN), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
146
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
147
+ 7 => __('Block saved.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
148
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
149
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), date_i18n( __( 'M j, Y @ G:i' , CUSTOM_POST_WIDGET_TEXTDOMAIN), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
150
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
151
+ );
152
+
153
+ return $messages;
154
+ }
155
+
156
+ // Add the ability to display the content block in a reqular post using a shortcode
157
+ function custom_post_widget_shortcode($atts) {
158
+ extract(shortcode_atts(array(
159
+ 'id' => '',
160
+ ), $atts));
161
+
162
+ $content = "";
163
+
164
+ if($id != "") {
165
+ $args = array(
166
+ 'post__in' => array($id),
167
+ 'post_type' => 'content_block',
168
+ );
169
+
170
+ $content_post = get_posts($args);
171
+
172
+ foreach( $content_post as $post ) :
173
+ $content .= apply_filters('the_content', $post->post_content);
174
+ endforeach;
175
+ }
176
+
177
+ return $content;
178
+ }
179
+
180
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
181
+
182
+ ?>
tags/1.7/readme.txt ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.1
8
+ Stable tag: 1.6
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+ = 1.6 =
98
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
99
+
100
+ = 1.7 =
101
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
102
+
103
+ == Upgrade Notice ==
104
+
105
+ = 1.1.1 =
106
+ Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
107
+
108
+
tags/1.7/screenshot-1.png ADDED
Binary file
tags/1.7/screenshot-2.png ADDED
Binary file
tags/1.8.1/custom-post-widget.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.8.1
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.8 Button added above content editor to easily insert the shortcode.
12
+
13
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ /* Set constant path to the custom-post-widget plugin directory. */
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ /* Launch the plugin. */
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ /**
37
+ Initialize the plugin. This function loads the required files needed for the plugin
38
+ to run in the proper order and adds needed functions to the required hooks.
39
+ */
40
+ function custom_post_widget_plugin_init() {
41
+
42
+ /* Load the translation of the plugin. */
43
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
44
+
45
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
46
+ }
47
+
48
+ /**
49
+ Loads the widgets packaged with the plugin.
50
+ */
51
+ function custom_post_widget_load_widgets() {
52
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
53
+ register_widget( 'custom_post_widget' );
54
+ }
55
+
56
+ ?>
tags/1.8.1/images/contentblock-13.png ADDED
Binary file
tags/1.8.1/images/contentblock-32.png ADDED
Binary file
tags/1.8.1/images/contentblock.png ADDED
Binary file
tags/1.8.1/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.8.1/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.8.1/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.8.1/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.8.1/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.8.1/popup.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //Action target that displays the popup to insert a content block to a post/page
3
+ function add_mce_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+
13
+ var win = window.dialogArguments || opener || parent || top;
14
+ win.send_to_editor("[content_block id=" + content_id + "]");
15
+ }
16
+ </script>
17
+
18
+ <div id="select_form" style="display:none;">
19
+ <div class="wrap">
20
+ <div>
21
+ <div style="padding:15px 15px 0 15px;">
22
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;"><?php _e("Insert Content Block", 'custom-post-widget'); ?></h3>
23
+ <span><?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?></span>
24
+ </div>
25
+ <div style="padding:15px 15px 0 15px;">
26
+ <select id="add_content_block_id">
27
+ <option value=""><?php _e("Select a Content Block", 'custom-post-widget'); ?></option>
28
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
29
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
30
+ $currentID = get_the_ID();
31
+ if($currentID == $custom_post_id)
32
+ $extra = 'selected' and
33
+ $widgetExtraTitle = get_the_title();
34
+ else
35
+ $extra = '';
36
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
37
+ endwhile; else:
38
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
39
+ endif;
40
+ ?>
41
+ </select>
42
+ <br/>
43
+ <div style="padding:15px;">
44
+ <input type="button" class="button-primary" value="Insert Content Block" onclick="InsertContentBlockForm();"/>&nbsp;&nbsp;&nbsp;
45
+ <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;"><?php _e("Cancel", 'custom-post-widget'); ?></a>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ <?php
51
+ }
tags/1.8.1/post-widget.php ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget
5
+ {
6
+ function custom_post_widget()
7
+ {
8
+ $widget_ops = array('description' => __('Displays custom post content in a widget', 'custom-post-widget'));
9
+ $this->WP_Widget('custom_post_widget', __('Content Block', 'custom-post-widget'), $widget_ops);
10
+ }
11
+
12
+ function form($instance)
13
+ {
14
+ $custom_post_id = esc_attr($instance['custom_post_id']);
15
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
16
+
17
+ ?>
18
+ <p>
19
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', 'custom-post-widget') ?>
20
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
21
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
22
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
23
+ $currentID = get_the_ID();
24
+ if($currentID == $custom_post_id)
25
+ $extra = 'selected' and
26
+ $widgetExtraTitle = get_the_title();
27
+ else
28
+ $extra = '';
29
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
30
+ endwhile; else:
31
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
32
+ endif;
33
+ ?>
34
+ </select>
35
+ </label>
36
+ </p>
37
+ <?php ?>
38
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
39
+ <?php wp_reset_query(); ?>
40
+ <p>
41
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
42
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', 'custom-post-widget') ?></label>
43
+ </p>
44
+
45
+ <?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+
54
+ return $instance;
55
+ }
56
+
57
+ function widget($args, $instance)
58
+ {
59
+ extract($args);
60
+
61
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
62
+
63
+ /* Variables from the widget settings. */
64
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
65
+
66
+ $content_post = get_post($custom_post_id);
67
+ $content = $content_post->post_content;
68
+ $content = apply_filters('the_content', $content);
69
+ $content = str_replace(']]>', ']]>', $content);
70
+
71
+ echo $before_widget;
72
+ if ( $show_custom_post_title )
73
+ {
74
+ echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
75
+ }
76
+ echo $content; // This is where the actual content of the custom post is being displayed
77
+ echo $after_widget;
78
+
79
+ }
80
+ }
81
+
82
+ // Create the Content Block custom post type
83
+ add_action('init', 'my_content_block_post_type_init');
84
+
85
+ function my_content_block_post_type_init()
86
+ {
87
+ $labels = array(
88
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
89
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
90
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
91
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
92
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
93
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
94
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
95
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
96
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
97
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
98
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
99
+ 'parent_item_colon' => ''
100
+ );
101
+ $options = array(
102
+ 'labels' => $labels,
103
+ 'public' => false,
104
+ 'publicly_queryable' => false,
105
+ 'exclude_from_search' => true,
106
+ 'show_ui' => true,
107
+ 'query_var' => true,
108
+ 'rewrite' => true,
109
+ 'capability_type' => 'post',
110
+ 'hierarchical' => false,
111
+ 'menu_position' => null,
112
+ 'supports' => array('title','editor','revisions','thumbnail','author')
113
+ );
114
+ register_post_type('content_block',$options);
115
+ }
116
+
117
+
118
+ // Add custom styles to admin screen and menu
119
+ add_action('admin_head', 'content_block_header');
120
+
121
+ function content_block_header() {
122
+
123
+ global $post_type; ?>
124
+
125
+ <style type="text/css"><!--
126
+ <?php if (($post_type == 'content_block')) : ?>
127
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
128
+ <?php endif; ?>
129
+ #adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
130
+ #adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
131
+ --></style><?php
132
+
133
+ }
134
+
135
+ add_filter('post_updated_messages', 'content_block_messages');
136
+
137
+ function content_block_messages( $messages ) {
138
+
139
+ $messages['content_block'] = array(
140
+ 0 => '',
141
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
142
+ 2 => __('Custom field updated.', 'custom-post-widget'),
143
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
144
+ 4 => __('Content Block updated.', 'custom-post-widget'),
145
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
146
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
147
+ 7 => __('Block saved.', 'custom-post-widget'),
148
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
149
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
150
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
151
+ );
152
+
153
+ return $messages;
154
+ }
155
+
156
+ // Add the ability to display the content block in a reqular post using a shortcode
157
+ function custom_post_widget_shortcode($atts) {
158
+ extract(shortcode_atts(array(
159
+ 'id' => '',
160
+ ), $atts));
161
+
162
+ $content = "";
163
+
164
+ if($id != "")
165
+ {
166
+ $args = array(
167
+ 'post__in' => array($id),
168
+ 'post_type' => 'content_block',
169
+ );
170
+
171
+ $content_post = get_posts($args);
172
+
173
+ foreach( $content_post as $post ) :
174
+ $content .= apply_filters('the_content', $post->post_content);
175
+ endforeach;
176
+ }
177
+
178
+ return $content;
179
+ }
180
+
181
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
182
+
183
+ // Add button above editor
184
+ function add_content_block_icon($initcontext) {
185
+ return $initcontext.
186
+ '<a id="add_content_block" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php#TB_inline?width=450&inlineId=select_form">
187
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
188
+ </a>';
189
+ }
190
+
191
+ add_filter('media_buttons_context', 'add_content_block_icon');
192
+
193
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
194
+
195
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
196
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
197
+
198
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
199
+ add_action('admin_footer', 'add_mce_popup');
200
+ }
201
+ ?>
tags/1.8.1/readme.txt ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.1
8
+ Stable tag: 1.8.1
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+ = 1.6 =
98
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
99
+
100
+ = 1.7 =
101
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
102
+
103
+ = 1.8 =
104
+ Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
105
+
106
+ == Upgrade Notice ==
107
+
108
+ = 1.8 =
109
+ I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
110
+
111
+
tags/1.8.1/screenshot-1.png ADDED
Binary file
tags/1.8.1/screenshot-2.png ADDED
Binary file
tags/1.8.3/custom-post-widget.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.8.3
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.8.3 The widget now emulates the $post loop.
12
+
13
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ /* Set constant path to the custom-post-widget plugin directory. */
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ /* Launch the plugin. */
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ /**
37
+ Initialize the plugin. This function loads the required files needed for the plugin
38
+ to run in the proper order and adds needed functions to the required hooks.
39
+ */
40
+ function custom_post_widget_plugin_init() {
41
+
42
+ /* Load the translation of the plugin. */
43
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
44
+
45
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
46
+ }
47
+
48
+ /**
49
+ Loads the widgets packaged with the plugin.
50
+ */
51
+ function custom_post_widget_load_widgets() {
52
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
53
+ register_widget( 'custom_post_widget' );
54
+ }
55
+
56
+ ?>
tags/1.8.3/images/contentblock-13.png ADDED
Binary file
tags/1.8.3/images/contentblock-32.png ADDED
Binary file
tags/1.8.3/images/contentblock.png ADDED
Binary file
tags/1.8.3/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.8.3/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.8.3/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.8.3/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.8.3/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.8.3/popup.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php //Action target that displays the popup to insert a content block to a post/page
2
+
3
+ function add_mce_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+ var win = window.dialogArguments || opener || parent || top;
13
+ win.send_to_editor("[content_block id=" + content_id + "]");
14
+ }
15
+ </script>
16
+
17
+ <div id="select_form" style="display:none;">
18
+ <div class="wrap">
19
+ <div>
20
+ <div style="padding:15px 15px 0 15px;">
21
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;">
22
+ <?php _e("Insert Content Block", 'custom-post-widget'); ?>
23
+ </h3>
24
+ <span>
25
+ <?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?>
26
+ </span>
27
+ </div>
28
+ <div style="padding:15px 15px 0 15px;">
29
+ <select id="add_content_block_id">
30
+ <option value="">
31
+ <?php _e("Select a Content Block", 'custom-post-widget'); ?>
32
+ </option>
33
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
34
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
35
+ $currentID = get_the_ID();
36
+ if($currentID == $custom_post_id)
37
+ $extra = 'selected' and
38
+ $widgetExtraTitle = get_the_title();
39
+ else
40
+ $extra = '';
41
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
42
+ endwhile; else:
43
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
44
+ endif; ?>
45
+ </select>
46
+ <br />
47
+ <div style="padding:15px;">
48
+ <input type="button" class="button-primary" value="<?php _e("Insert Content Block", 'custom-post-widget') ?>" onclick="InsertContentBlockForm();"/>
49
+ &nbsp;&nbsp;&nbsp; <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;">
50
+ <?php _e("Cancel", 'custom-post-widget'); ?>
51
+ </a>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <?php } ?>
tags/1.8.3/post-widget.php ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget {
5
+ function custom_post_widget() {
6
+ $widget_ops = array('description' => __('Displays custom post content in a widget', 'custom-post-widget'));
7
+ $this->WP_Widget('custom_post_widget', __('Content Block', 'custom-post-widget'), $widget_ops);
8
+ }
9
+
10
+ function form($instance) {
11
+ $custom_post_id = esc_attr($instance['custom_post_id']);
12
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true; ?>
13
+
14
+ <p>
15
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', 'custom-post-widget') ?>
16
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
17
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
18
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
19
+ $currentID = get_the_ID();
20
+ if($currentID == $custom_post_id)
21
+ $extra = 'selected' and
22
+ $widgetExtraTitle = get_the_title();
23
+ else
24
+ $extra = '';
25
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
26
+ endwhile; else:
27
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
28
+ endif; ?>
29
+ </select>
30
+ </label>
31
+ </p>
32
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
33
+ <?php wp_reset_query(); ?>
34
+ <p>
35
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
36
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', 'custom-post-widget') ?></label>
37
+ </p> <?php
38
+ }
39
+
40
+ function update($new_instance, $old_instance) {
41
+ $instance = $old_instance;
42
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
43
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
44
+ return $instance;
45
+ }
46
+
47
+ function widget($args, $instance) {
48
+ global $post;
49
+ extract($args);
50
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
51
+ /* Variables from the widget settings. */
52
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
53
+ $old_post = &$post;
54
+ $post = $content_post = get_post($custom_post_id);
55
+ $content = $content_post->post_content;
56
+ $content = apply_filters('the_content', $content);
57
+ $content = str_replace(']]>', ']]>', $content);
58
+ echo $before_widget;
59
+ if ( $show_custom_post_title ) {
60
+ echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
61
+ }
62
+ echo $content; // This is where the actual content of the custom post is being displayed
63
+ echo $after_widget;
64
+ $post = &$old_post;
65
+ }
66
+
67
+ }
68
+
69
+ // Create the Content Block custom post type
70
+ add_action('init', 'my_content_block_post_type_init');
71
+
72
+ function my_content_block_post_type_init() {
73
+ $labels = array(
74
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
75
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
76
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
77
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
78
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
79
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
80
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
81
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
82
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
83
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
84
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
85
+ 'parent_item_colon' => ''
86
+ );
87
+ $options = array(
88
+ 'labels' => $labels,
89
+ 'public' => false,
90
+ 'publicly_queryable' => false,
91
+ 'exclude_from_search' => true,
92
+ 'show_ui' => true,
93
+ 'query_var' => true,
94
+ 'rewrite' => true,
95
+ 'capability_type' => 'post',
96
+ 'hierarchical' => false,
97
+ 'menu_position' => null,
98
+ 'supports' => array('title','editor','revisions','thumbnail','author')
99
+ );
100
+ register_post_type('content_block',$options);
101
+ }
102
+
103
+ // Add custom styles to admin screen and menu
104
+ add_action('admin_head', 'content_block_header');
105
+
106
+ function content_block_header() {
107
+ global $post_type; ?>
108
+ <style type="text/css">
109
+ <!--
110
+ <?php if (($post_type == 'content_block')) : ?>
111
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
112
+ <?php endif; ?>
113
+ #adminmenu #menu-posts-content_block div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
114
+ #adminmenu #menu-posts-content_block:hover div.wp-menu-image,#adminmenu #menu-posts-content_block.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
115
+ -->
116
+ </style>
117
+ <?php
118
+ }
119
+
120
+ add_filter('post_updated_messages', 'content_block_messages');
121
+
122
+ function content_block_messages( $messages ) {
123
+ $messages['content_block'] = array(
124
+ 0 => '',
125
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
126
+ 2 => __('Custom field updated.', 'custom-post-widget'),
127
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
128
+ 4 => __('Content Block updated.', 'custom-post-widget'),
129
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
130
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
131
+ 7 => __('Block saved.', 'custom-post-widget'),
132
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
133
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
134
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
135
+ );
136
+ return $messages;
137
+ }
138
+
139
+ // Add the ability to display the content block in a reqular post using a shortcode
140
+ function custom_post_widget_shortcode($atts) {
141
+ extract(shortcode_atts(array(
142
+ 'id' => '',
143
+ ), $atts));
144
+
145
+ $content = "";
146
+
147
+ if($id != "")
148
+ {
149
+ $args = array(
150
+ 'post__in' => array($id),
151
+ 'post_type' => 'content_block',
152
+ );
153
+
154
+ $content_post = get_posts($args);
155
+
156
+ foreach( $content_post as $post ) :
157
+ $content .= apply_filters('the_content', $post->post_content);
158
+ endforeach;
159
+ }
160
+
161
+ return $content;
162
+ }
163
+
164
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
165
+
166
+ // Add button above editor
167
+ function add_content_block_icon($initcontext) {
168
+ return $initcontext.
169
+ '<a id="add_content_block" style="text-decoration:none;" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php?type=add_mce_popup&amp;TB_inline=true&amp;inlineId=select_form">
170
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
171
+ </a>';
172
+ }
173
+
174
+ add_filter('media_buttons_context', 'add_content_block_icon');
175
+
176
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
177
+
178
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
179
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
180
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
181
+ add_action('admin_footer', 'add_mce_popup');
182
+ }
183
+ ?>
tags/1.8.3/readme.txt ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.2
8
+ Stable tag: 1.8.2
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+ = 1.6 =
98
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
99
+
100
+ = 1.7 =
101
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
102
+
103
+ = 1.8 =
104
+ Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
105
+
106
+ = 1.8.2 =
107
+ Updated German translation and various bugfixes.
108
+
109
+ = 1.8.3 =
110
+ The widget now emulates the $post loop. This means you can now make use of WordPress functionality such as inserting a [gallery]. Thanks to Jari Pennanen for providing the code.
111
+
112
+ == Upgrade Notice ==
113
+
114
+ = 1.8 =
115
+ I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
116
+
117
+
tags/1.8.3/screenshot-1.png ADDED
Binary file
tags/1.8.3/screenshot-2.png ADDED
Binary file
tags/1.8.4/tags/1.0/custom-post-widget.php ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.0
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+
10
+ Release notes: 1.0 First version
11
+
12
+ */
13
+
14
+ // First create the widget for the admin panel
15
+ class custom_post_widget extends WP_Widget
16
+ {
17
+ function custom_post_widget()
18
+ {
19
+ $widget_ops = array('description' => __('Displays custom post content in a widget'));
20
+ $this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
21
+ }
22
+
23
+ function form($instance)
24
+ {
25
+ $custom_post_id = esc_attr($instance['custom_post_id']);
26
+
27
+ ?>
28
+ <p>
29
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
30
+ <select id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
31
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC');
32
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
33
+ $currentID = get_the_ID();
34
+ if($currentID == $custom_post_id)
35
+ $extra = 'selected';
36
+ else
37
+ $extra = '';
38
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
39
+ endwhile; else:
40
+ echo '<option value="empty">No content blocks available</option>';
41
+ endif;
42
+ wp_reset_query(); ?>
43
+ </select>
44
+ </label>
45
+ </p><?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ return $instance;
53
+ }
54
+
55
+ function widget($args, $instance)
56
+ {
57
+ extract($args);
58
+
59
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
60
+
61
+ // Output title & $before_widget
62
+ echo $title . $before_widget;
63
+
64
+ // Output the query to find the custom post
65
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
66
+ while (have_posts()) : the_post();
67
+ echo the_content();
68
+ endwhile;
69
+ wp_reset_query();
70
+
71
+ // Output $after_widget
72
+ echo $after_widget;
73
+ }
74
+ }
75
+ add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
76
+
77
+ // Create the Content Block custom post type
78
+
79
+ add_action('init', 'my_content_block_post_type_init');
80
+
81
+ function my_content_block_post_type_init()
82
+ {
83
+ $labels = array(
84
+ 'name' => _x('Content Blocks', 'post type general name'),
85
+ 'singular_name' => _x('Content Block', 'post type singular name'),
86
+ 'add_new' => _x('Add Content Block', 'block'),
87
+ 'add_new_item' => __('Add New Content Block'),
88
+ 'edit_item' => __('Edit Content Block'),
89
+ 'new_item' => __('New Content Block'),
90
+ 'view_item' => __('View Content Block'),
91
+ 'search_items' => __('Search Content Blocks'),
92
+ 'not_found' => __('No Content Blocks Found'),
93
+ 'not_found_in_trash' => __('No Content Blocks found in Trash'),
94
+ 'parent_item_colon' => ''
95
+ );
96
+ $options = array(
97
+ 'labels' => $labels,
98
+ 'public' => false,
99
+ 'publicly_queryable' => false,
100
+ 'exclude_from_search' => true,
101
+ 'show_ui' => true,
102
+ 'query_var' => true,
103
+ 'rewrite' => true,
104
+ 'capability_type' => 'post',
105
+ 'hierarchical' => false,
106
+ 'menu_position' => null,
107
+ 'supports' => array('title','editor','revisions','thumbnail')
108
+ );
109
+ register_post_type('content_block',$options);
110
+ }
111
+
112
+ add_filter('post_updated_messages', 'content_block_messages');
113
+
114
+ function content_block_messages( $messages ) {
115
+
116
+ $messages['content_block'] = array(
117
+ 0 => '',
118
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
119
+ 2 => __('Custom field updated.'),
120
+ 3 => __('Custom field deleted.'),
121
+ 4 => __('Content Block updated.'),
122
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
123
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
124
+ 7 => __('Block saved.'),
125
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
126
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
127
+ date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
128
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
129
+ );
130
+
131
+ return $messages;
132
+ }
133
+
134
+ ?>
tags/1.8.4/tags/1.0/readme.txt ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Donate link: http://www.vanderwijk.com/
4
+ Tags: custom post, widget, sidebar
5
+ Requires at least: 2.9
6
+ Tested up to: 3.0.1
7
+ Stable tag: 1.0
8
+
9
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
10
+
11
+ == Description ==
12
+
13
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
14
+
15
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
16
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
17
+
18
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
19
+
20
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
21
+
22
+ == Screenshots ==
23
+
24
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
25
+ 2. The widget has a select box to choose the content block.
26
+
27
+
28
+ == Installation ==
29
+
30
+ 1. First you will have to upload the plugin to the plugin folder.
31
+ 2. Then activate the plugin in the plugin panel.
32
+ You will see that a new custom post type has been added called Content Block.
33
+ 3. Type some content for the widget. The title can be used to describe the position of the content on the page, It will not be displayed in the actual widget.
34
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
35
+ 5. Select a Content Block from the drop-down list.
36
+ 6. Click save.
37
+
38
+ == Frequently Asked Questions ==
39
+
40
+ = Why can't I use the default text-widget? =
41
+
42
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
43
+
44
+ = How can I show the content bock on a specific page? =
45
+
46
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
47
+
48
+ == Changelog ==
49
+
50
+ = 1.0 =
51
+ First release
52
+
53
+ == Upgrade Notice ==
54
+
55
+ = 1.0 =
56
+ First release
57
+
58
+
tags/1.8.4/tags/1.0/screenshot-1.PNG ADDED
Binary file
tags/1.8.4/tags/1.0/screenshot-2.PNG ADDED
Binary file
tags/1.8.4/tags/1.1.1/custom-post-widget.php ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.1.1
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+
10
+ Release notes: 1.0 First version
11
+
12
+ */
13
+
14
+ // First create the widget for the admin panel
15
+ class custom_post_widget extends WP_Widget
16
+ {
17
+ function custom_post_widget()
18
+ {
19
+ $widget_ops = array('description' => __('Displays custom post content in a widget'));
20
+ $this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
21
+ }
22
+
23
+ function form($instance)
24
+ {
25
+ $custom_post_id = esc_attr($instance['custom_post_id']);
26
+
27
+ ?>
28
+ <p>
29
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
30
+ <select id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
31
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
32
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
33
+ $currentID = get_the_ID();
34
+ if($currentID == $custom_post_id)
35
+ $extra = 'selected';
36
+ else
37
+ $extra = '';
38
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
39
+ endwhile; else:
40
+ echo '<option value="empty">No content blocks available</option>';
41
+ endif;
42
+ wp_reset_query(); ?>
43
+ </select>
44
+ </label>
45
+ </p><?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ return $instance;
53
+ }
54
+
55
+ function widget($args, $instance)
56
+ {
57
+ extract($args);
58
+
59
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
60
+
61
+ // Output title & $before_widget
62
+ echo $title . $before_widget;
63
+
64
+ // Output the query to find the custom post
65
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
66
+ while (have_posts()) : the_post();
67
+ echo the_content();
68
+ endwhile;
69
+ wp_reset_query();
70
+
71
+ // Output $after_widget
72
+ echo $after_widget;
73
+ }
74
+ }
75
+ add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
76
+
77
+ // Create the Content Block custom post type
78
+
79
+ add_action('init', 'my_content_block_post_type_init');
80
+
81
+ function my_content_block_post_type_init()
82
+ {
83
+ $labels = array(
84
+ 'name' => _x('Content Blocks', 'post type general name'),
85
+ 'singular_name' => _x('Content Block', 'post type singular name'),
86
+ 'add_new' => _x('Add Content Block', 'block'),
87
+ 'add_new_item' => __('Add New Content Block'),
88
+ 'edit_item' => __('Edit Content Block'),
89
+ 'new_item' => __('New Content Block'),
90
+ 'view_item' => __('View Content Block'),
91
+ 'search_items' => __('Search Content Blocks'),
92
+ 'not_found' => __('No Content Blocks Found'),
93
+ 'not_found_in_trash' => __('No Content Blocks found in Trash'),
94
+ 'parent_item_colon' => ''
95
+ );
96
+ $options = array(
97
+ 'labels' => $labels,
98
+ 'public' => false,
99
+ 'publicly_queryable' => false,
100
+ 'exclude_from_search' => true,
101
+ 'show_ui' => true,
102
+ 'query_var' => true,
103
+ 'rewrite' => true,
104
+ 'capability_type' => 'post',
105
+ 'hierarchical' => false,
106
+ 'menu_position' => null,
107
+ 'supports' => array('title','editor','revisions','thumbnail')
108
+ );
109
+ register_post_type('content_block',$options);
110
+ }
111
+
112
+ add_filter('post_updated_messages', 'content_block_messages');
113
+
114
+ function content_block_messages( $messages ) {
115
+
116
+ $messages['content_block'] = array(
117
+ 0 => '',
118
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
119
+ 2 => __('Custom field updated.'),
120
+ 3 => __('Custom field deleted.'),
121
+ 4 => __('Content Block updated.'),
122
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
123
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
124
+ 7 => __('Block saved.'),
125
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
126
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
127
+ date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
128
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
129
+ );
130
+
131
+ return $messages;
132
+ }
133
+
134
+ ?>
tags/1.8.4/tags/1.1.1/readme.txt ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Donate link: http://www.vanderwijk.com/
4
+ Tags: custom post, widget, sidebar
5
+ Requires at least: 2.9
6
+ Tested up to: 3.0.1
7
+ Stable tag: 1.1.1
8
+
9
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
10
+
11
+ == Description ==
12
+
13
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
14
+
15
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
16
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
17
+
18
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
19
+
20
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
21
+
22
+ == Screenshots ==
23
+
24
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
25
+ 2. The widget has a select box to choose the content block.
26
+
27
+ == Installation ==
28
+
29
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
30
+ 2. Then activate the plugin in the plugin panel.
31
+ You will see that a new custom post type has been added called Content Block.
32
+ 3. Type some content for the widget. The title can be used to describe the position of the content on the page, It will not be displayed in the actual widget.
33
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
34
+ 5. Select a Content Block from the drop-down list.
35
+ 6. Click save.
36
+
37
+ == Frequently Asked Questions ==
38
+
39
+ = Why can't I use the default text-widget? =
40
+
41
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
42
+
43
+ = How can I show the content bock on a specific page? =
44
+
45
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
46
+
47
+ == Changelog ==
48
+
49
+ = 1.0 =
50
+ First release
51
+
52
+ = 1.1.1 =
53
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
54
+
55
+ == Upgrade Notice ==
56
+
57
+ = 1.0 =
58
+ First release
59
+
60
+
tags/1.8.4/tags/1.1.1/screenshot-1.png ADDED
Binary file
tags/1.8.4/tags/1.1.1/screenshot-2.png ADDED
Binary file
tags/1.8.4/tags/1.1/custom-post-widget.php ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.0
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+
10
+ Release notes: 1.0 First version
11
+
12
+ */
13
+
14
+ // First create the widget for the admin panel
15
+ class custom_post_widget extends WP_Widget
16
+ {
17
+ function custom_post_widget()
18
+ {
19
+ $widget_ops = array('description' => __('Displays custom post content in a widget'));
20
+ $this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
21
+ }
22
+
23
+ function form($instance)
24
+ {
25
+ $custom_post_id = esc_attr($instance['custom_post_id']);
26
+
27
+ ?>
28
+ <p>
29
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
30
+ <select id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
31
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC');
32
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
33
+ $currentID = get_the_ID();
34
+ if($currentID == $custom_post_id)
35
+ $extra = 'selected';
36
+ else
37
+ $extra = '';
38
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
39
+ endwhile; else:
40
+ echo '<option value="empty">No content blocks available</option>';
41
+ endif;
42
+ wp_reset_query(); ?>
43
+ </select>
44
+ </label>
45
+ </p><?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ return $instance;
53
+ }
54
+
55
+ function widget($args, $instance)
56
+ {
57
+ extract($args);
58
+
59
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
60
+
61
+ // Output title & $before_widget
62
+ echo $title . $before_widget;
63
+
64
+ // Output the query to find the custom post
65
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
66
+ while (have_posts()) : the_post();
67
+ echo the_content();
68
+ endwhile;
69
+ wp_reset_query();
70
+
71
+ // Output $after_widget
72
+ echo $after_widget;
73
+ }
74
+ }
75
+ add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
76
+
77
+ // Create the Content Block custom post type
78
+
79
+ add_action('init', 'my_content_block_post_type_init');
80
+
81
+ function my_content_block_post_type_init()
82
+ {
83
+ $labels = array(
84
+ 'name' => _x('Content Blocks', 'post type general name'),
85
+ 'singular_name' => _x('Content Block', 'post type singular name'),
86
+ 'add_new' => _x('Add Content Block', 'block'),
87
+ 'add_new_item' => __('Add New Content Block'),
88
+ 'edit_item' => __('Edit Content Block'),
89
+ 'new_item' => __('New Content Block'),
90
+ 'view_item' => __('View Content Block'),
91
+ 'search_items' => __('Search Content Blocks'),
92
+ 'not_found' => __('No Content Blocks Found'),
93
+ 'not_found_in_trash' => __('No Content Blocks found in Trash'),
94
+ 'parent_item_colon' => ''
95
+ );
96
+ $options = array(
97
+ 'labels' => $labels,
98
+ 'public' => false,
99
+ 'publicly_queryable' => false,
100
+ 'exclude_from_search' => true,
101
+ 'show_ui' => true,
102
+ 'query_var' => true,
103
+ 'rewrite' => true,
104
+ 'capability_type' => 'post',
105
+ 'hierarchical' => false,
106
+ 'menu_position' => null,
107
+ 'supports' => array('title','editor','revisions','thumbnail')
108
+ );
109
+ register_post_type('content_block',$options);
110
+ }
111
+
112
+ add_filter('post_updated_messages', 'content_block_messages');
113
+
114
+ function content_block_messages( $messages ) {
115
+
116
+ $messages['content_block'] = array(
117
+ 0 => '',
118
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
119
+ 2 => __('Custom field updated.'),
120
+ 3 => __('Custom field deleted.'),
121
+ 4 => __('Content Block updated.'),
122
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
123
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
124
+ 7 => __('Block saved.'),
125
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
126
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
127
+ date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
128
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
129
+ );
130
+
131
+ return $messages;
132
+ }
133
+
134
+ ?>
tags/1.8.4/tags/1.1/readme.txt ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Donate link: http://www.vanderwijk.com/
4
+ Tags: custom post, widget, sidebar
5
+ Requires at least: 2.9
6
+ Tested up to: 3.0.1
7
+ Stable tag: 1.0
8
+
9
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
10
+
11
+ == Description ==
12
+
13
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
14
+
15
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
16
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
17
+
18
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
19
+
20
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
21
+
22
+ == Screenshots ==
23
+
24
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
25
+ 2. The widget has a select box to choose the content block.
26
+
27
+ == Installation ==
28
+
29
+ 1. First you will have to upload the plugin to the plugin folder.
30
+ 2. Then activate the plugin in the plugin panel.
31
+ You will see that a new custom post type has been added called Content Block.
32
+ 3. Type some content for the widget. The title can be used to describe the position of the content on the page, It will not be displayed in the actual widget.
33
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
34
+ 5. Select a Content Block from the drop-down list.
35
+ 6. Click save.
36
+
37
+ == Frequently Asked Questions ==
38
+
39
+ = Why can't I use the default text-widget? =
40
+
41
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
42
+
43
+ = How can I show the content bock on a specific page? =
44
+
45
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
46
+
47
+ == Changelog ==
48
+
49
+ = 1.0 =
50
+ First release
51
+
52
+ == Upgrade Notice ==
53
+
54
+ = 1.0 =
55
+ First release
56
+
57
+
tags/1.8.4/tags/1.1/screenshot-1.png ADDED
Binary file
tags/1.8.4/tags/1.1/screenshot-2.png ADDED
Binary file
tags/1.8.4/tags/1.2.1/custom-post-widget.php ADDED
@@ -0,0 +1,150 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.2
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+
10
+ Release notes: 1.2 Added the option for displaying the post title
11
+
12
+ */
13
+
14
+ // First create the widget for the admin panel
15
+ class custom_post_widget extends WP_Widget
16
+ {
17
+ function custom_post_widget()
18
+ {
19
+ $widget_ops = array('description' => __('Displays custom post content in a widget'));
20
+ $this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
21
+ }
22
+
23
+ function form($instance)
24
+ {
25
+ $custom_post_id = esc_attr($instance['custom_post_id']);
26
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
27
+
28
+ ?>
29
+ <p>
30
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
31
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
32
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
33
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
34
+ $currentID = get_the_ID();
35
+ if($currentID == $custom_post_id)
36
+ $extra = 'selected';
37
+ else
38
+ $extra = '';
39
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
40
+ endwhile; else:
41
+ echo '<option value="empty">No content blocks available</option>';
42
+ endif;
43
+ wp_reset_query(); ?>
44
+ </select>
45
+ </label>
46
+ </p>
47
+ <p>
48
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
49
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title') ?></label>
50
+ </p>
51
+
52
+ <?php
53
+ }
54
+
55
+ function update($new_instance, $old_instance)
56
+ {
57
+ $instance = $old_instance;
58
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
59
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
60
+
61
+ return $instance;
62
+ }
63
+
64
+ function widget($args, $instance)
65
+ {
66
+ extract($args);
67
+
68
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
69
+
70
+ /* Our variables from the widget settings. */
71
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
72
+
73
+ /* Before widget (defined by themes). */
74
+ echo $before_widget;
75
+
76
+ // Output the query to find the custom post
77
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
78
+ while (have_posts()) : the_post();
79
+
80
+ if ( $show_custom_post_title )
81
+ echo the_title($before_title, $after_title); // This is the line that displays the title
82
+
83
+ echo the_content();
84
+ endwhile;
85
+ wp_reset_query();
86
+
87
+ // Output $after_widget
88
+ echo $after_widget;
89
+ }
90
+ }
91
+ add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
92
+
93
+ // Create the Content Block custom post type
94
+
95
+ add_action('init', 'my_content_block_post_type_init');
96
+
97
+ function my_content_block_post_type_init()
98
+ {
99
+ $labels = array(
100
+ 'name' => _x('Content Blocks', 'post type general name'),
101
+ 'singular_name' => _x('Content Block', 'post type singular name'),
102
+ 'add_new' => _x('Add Content Block', 'block'),
103
+ 'add_new_item' => __('Add New Content Block'),
104
+ 'edit_item' => __('Edit Content Block'),
105
+ 'new_item' => __('New Content Block'),
106
+ 'view_item' => __('View Content Block'),
107
+ 'search_items' => __('Search Content Blocks'),
108
+ 'not_found' => __('No Content Blocks Found'),
109
+ 'not_found_in_trash' => __('No Content Blocks found in Trash'),
110
+ 'parent_item_colon' => ''
111
+ );
112
+ $options = array(
113
+ 'labels' => $labels,
114
+ 'public' => false,
115
+ 'publicly_queryable' => false,
116
+ 'exclude_from_search' => true,
117
+ 'show_ui' => true,
118
+ 'query_var' => true,
119
+ 'rewrite' => true,
120
+ 'capability_type' => 'post',
121
+ 'hierarchical' => false,
122
+ 'menu_position' => null,
123
+ 'supports' => array('title','editor','revisions','thumbnail')
124
+ );
125
+ register_post_type('content_block',$options);
126
+ }
127
+
128
+ add_filter('post_updated_messages', 'content_block_messages');
129
+
130
+ function content_block_messages( $messages ) {
131
+
132
+ $messages['content_block'] = array(
133
+ 0 => '',
134
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
135
+ 2 => __('Custom field updated.'),
136
+ 3 => __('Custom field deleted.'),
137
+ 4 => __('Content Block updated.'),
138
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
139
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
140
+ 7 => __('Block saved.'),
141
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
142
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
143
+ date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
144
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
145
+ );
146
+
147
+ return $messages;
148
+ }
149
+
150
+ ?>
tags/1.8.4/tags/1.2.1/readme.txt ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.0.3
8
+ Stable tag: 1.2.1
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ == Changelog ==
53
+
54
+ = 1.0 =
55
+ First release
56
+
57
+ = 1.1 =
58
+ Fixed screenshots for plugin directory
59
+
60
+ = 1.1.1 =
61
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
62
+
63
+ = 1.2 =
64
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
65
+
66
+ = 1.2.1 =
67
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
68
+
69
+ == Upgrade Notice ==
70
+
71
+ = 1.1.1 =
72
+ Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
73
+
74
+
tags/1.8.4/tags/1.2.1/screenshot-1.png ADDED
Binary file
tags/1.8.4/tags/1.2.1/screenshot-2.png ADDED
Binary file
tags/1.8.4/tags/1.2/custom-post-widget.php ADDED
@@ -0,0 +1,155 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.3
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+
10
+ Release notes: 1.3 Now the title of the content block is displayed in the admin widget
11
+
12
+ */
13
+
14
+ // First create the widget for the admin panel
15
+ class custom_post_widget extends WP_Widget
16
+ {
17
+ function custom_post_widget()
18
+ {
19
+ $widget_ops = array('description' => __('Displays custom post content in a widget'));
20
+ $this->WP_Widget('custom_post_widget', __('Content Block'), $widget_ops);
21
+ }
22
+
23
+ function form($instance)
24
+ {
25
+ $custom_post_id = esc_attr($instance['custom_post_id']);
26
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
27
+
28
+ ?>
29
+ <p>
30
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:') ?>
31
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
32
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
33
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
34
+ $currentID = get_the_ID();
35
+ if($currentID == $custom_post_id)
36
+ $extra = 'selected' and
37
+ $widgetExtraTitle = get_the_title();
38
+ else
39
+ $extra = '';
40
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
41
+ endwhile; else:
42
+ echo '<option value="empty">No content blocks available</option>';
43
+ endif;
44
+ ?>
45
+ </select>
46
+ </label>
47
+ </p>
48
+ <?php ?>
49
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
50
+ <?php wp_reset_query(); ?>
51
+
52
+ <p>
53
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
54
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title') ?></label>
55
+ </p>
56
+
57
+ <?php
58
+ }
59
+
60
+ function update($new_instance, $old_instance)
61
+ {
62
+ $instance = $old_instance;
63
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
64
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
65
+
66
+ return $instance;
67
+ }
68
+
69
+ function widget($args, $instance)
70
+ {
71
+ extract($args);
72
+
73
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : 'Zoeken';
74
+
75
+ /* Our variables from the widget settings. */
76
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
77
+
78
+ /* Before widget (defined by themes). */
79
+ echo $before_widget;
80
+
81
+ // Output the query to find the custom post
82
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
83
+ while (have_posts()) : the_post();
84
+
85
+ if ( $show_custom_post_title )
86
+ echo the_title($before_title, $after_title); // This is the line that displays the title
87
+
88
+ echo the_content();
89
+ endwhile;
90
+ wp_reset_query();
91
+
92
+ // Output $after_widget
93
+ echo $after_widget;
94
+ }
95
+ }
96
+ add_action('widgets_init', create_function('', 'return register_widget("custom_post_widget");'));
97
+
98
+ // Create the Content Block custom post type
99
+
100
+ add_action('init', 'my_content_block_post_type_init');
101
+
102
+ function my_content_block_post_type_init()
103
+ {
104
+ $labels = array(
105
+ 'name' => _x('Content Blocks', 'post type general name'),
106
+ 'singular_name' => _x('Content Block', 'post type singular name'),
107
+ 'add_new' => _x('Add Content Block', 'block'),
108
+ 'add_new_item' => __('Add New Content Block'),
109
+ 'edit_item' => __('Edit Content Block'),
110
+ 'new_item' => __('New Content Block'),
111
+ 'view_item' => __('View Content Block'),
112
+ 'search_items' => __('Search Content Blocks'),
113
+ 'not_found' => __('No Content Blocks Found'),
114
+ 'not_found_in_trash' => __('No Content Blocks found in Trash'),
115
+ 'parent_item_colon' => ''
116
+ );
117
+ $options = array(
118
+ 'labels' => $labels,
119
+ 'public' => false,
120
+ 'publicly_queryable' => false,
121
+ 'exclude_from_search' => true,
122
+ 'show_ui' => true,
123
+ 'query_var' => true,
124
+ 'rewrite' => true,
125
+ 'capability_type' => 'post',
126
+ 'hierarchical' => false,
127
+ 'menu_position' => null,
128
+ 'supports' => array('title','editor','revisions','thumbnail')
129
+ );
130
+ register_post_type('content_block',$options);
131
+ }
132
+
133
+ add_filter('post_updated_messages', 'content_block_messages');
134
+
135
+ function content_block_messages( $messages ) {
136
+
137
+ $messages['content_block'] = array(
138
+ 0 => '',
139
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
140
+ 2 => __('Custom field updated.'),
141
+ 3 => __('Custom field deleted.'),
142
+ 4 => __('Content Block updated.'),
143
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
144
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>'), esc_url( get_permalink($post_ID) ) ),
145
+ 7 => __('Block saved.'),
146
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
147
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>'),
148
+ date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
149
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>'), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
150
+ );
151
+
152
+ return $messages;
153
+ }
154
+
155
+ ?>
tags/1.8.4/tags/1.2/readme.txt ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.0.4
8
+ Stable tag: 1.3
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ == Changelog ==
53
+
54
+ = 1.0 =
55
+ First release
56
+
57
+ = 1.1 =
58
+ Fixed screenshots for plugin directory
59
+
60
+ = 1.1.1 =
61
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
62
+
63
+ = 1.2 =
64
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
65
+
66
+ = 1.2.1 =
67
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
68
+
69
+ = 1.3 =
70
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
71
+
72
+ == Upgrade Notice ==
73
+
74
+ = 1.1.1 =
75
+ Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
76
+
77
+
tags/1.8.4/tags/1.2/screenshot-1.png ADDED
Binary file
tags/1.8.4/tags/1.2/screenshot-2.png ADDED
Binary file
tags/1.8.4/tags/1.4/custom-post-widget.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.4
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: 1.4 Thanks to Caspar from GlückPress (http://glueckpress.com) the Custom Post Widget plugin is now fully localized.
12
+
13
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ /* Set constant path to the custom-post-widget plugin directory. */
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_TEXTDOMAIN', 'custom-post-widget' );
32
+
33
+ /* Launch the plugin. */
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ /**
37
+ Initialize the plugin. This function loads the required files needed for the plugin
38
+ to run in the proper order and adds needed functions to the required hooks.
39
+ */
40
+ function custom_post_widget_plugin_init() {
41
+
42
+ /* Load the translation of the plugin. */
43
+ load_plugin_textdomain( CUSTOM_POST_WIDGET_TEXTDOMAIN, false, 'custom-post-widget/languages' );
44
+
45
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
46
+ }
47
+
48
+ /**
49
+ Loads the widgets packaged with the plugin.
50
+ */
51
+ function custom_post_widget_load_widgets() {
52
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
53
+ register_widget( 'custom_post_widget' );
54
+ }
55
+
56
+ ?>
tags/1.8.4/tags/1.4/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.8.4/tags/1.4/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.8.4/tags/1.4/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.8.4/tags/1.4/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.8.4/tags/1.4/languages/custom-post-widget-xx_XX.pot ADDED
@@ -0,0 +1 @@
 
1
+ MIME-Version: 1.0\nContent-Type: text/plain; charset=UTF-8\nContent-Transfer-Encoding: 8bit
tags/1.8.4/tags/1.4/post-widget.php ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget
5
+ {
6
+ function custom_post_widget()
7
+ {
8
+ $widget_ops = array('description' => __('Displays custom post content in a widget', CUSTOM_POST_WIDGET_TEXTDOMAIN));
9
+ $this->WP_Widget('custom_post_widget', __('Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN), $widget_ops);
10
+ }
11
+
12
+ function form($instance)
13
+ {
14
+ $custom_post_id = esc_attr($instance['custom_post_id']);
15
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
16
+
17
+ ?>
18
+ <p>
19
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?>
20
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
21
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
22
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
23
+ $currentID = get_the_ID();
24
+ if($currentID == $custom_post_id)
25
+ $extra = 'selected' and
26
+ $widgetExtraTitle = get_the_title();
27
+ else
28
+ $extra = '';
29
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
30
+ endwhile; else:
31
+ echo '<option value="empty">' . __('No content blocks available', CUSTOM_POST_WIDGET_TEXTDOMAIN) . '</option>';
32
+ endif;
33
+ ?>
34
+ </select>
35
+ </label>
36
+ </p>
37
+ <?php ?>
38
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
39
+ <?php wp_reset_query(); ?>
40
+ <p>
41
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
42
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?></label>
43
+ </p>
44
+
45
+ <?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+
54
+ return $instance;
55
+ }
56
+
57
+ function widget($args, $instance)
58
+ {
59
+ extract($args);
60
+
61
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', CUSTOM_POST_WIDGET_TEXTDOMAIN);
62
+
63
+ /* Our variables from the widget settings. */
64
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
65
+
66
+ /* Before widget (defined by themes). */
67
+ echo $before_widget;
68
+
69
+ // Output the query to find the custom post
70
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
71
+ while (have_posts()) : the_post();
72
+
73
+ if ( $show_custom_post_title )
74
+ echo the_title($before_title, $after_title); // This is the line that displays the title
75
+ echo the_content();
76
+ endwhile;
77
+ wp_reset_query();
78
+
79
+ // Output $after_widget
80
+ echo $after_widget;
81
+ }
82
+ }
83
+
84
+ // Create the Content Block custom post type
85
+
86
+ add_action('init', 'my_content_block_post_type_init');
87
+
88
+ function my_content_block_post_type_init()
89
+ {
90
+ $labels = array(
91
+ 'name' => _x('Content Blocks', 'post type general name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
92
+ 'singular_name' => _x('Content Block', 'post type singular name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
93
+ 'plural_name' => _x('Content Blocks', 'post type plural name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
94
+ 'add_new' => _x('Add Content Block', 'block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
95
+ 'add_new_item' => __('Add New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
96
+ 'edit_item' => __('Edit Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
97
+ 'new_item' => __('New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
98
+ 'view_item' => __('View Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
99
+ 'search_items' => __('Search Content Blocks', CUSTOM_POST_WIDGET_TEXTDOMAIN),
100
+ 'not_found' => __('No Content Blocks Found', CUSTOM_POST_WIDGET_TEXTDOMAIN),
101
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', CUSTOM_POST_WIDGET_TEXTDOMAIN),
102
+ 'parent_item_colon' => ''
103
+ );
104
+ $options = array(
105
+ 'labels' => $labels,
106
+ 'public' => false,
107
+ 'publicly_queryable' => false,
108
+ 'exclude_from_search' => true,
109
+ 'show_ui' => true,
110
+ 'query_var' => true,
111
+ 'rewrite' => true,
112
+ 'capability_type' => 'post',
113
+ 'hierarchical' => false,
114
+ 'menu_position' => null,
115
+ 'supports' => array('title','editor','revisions','thumbnail')
116
+ );
117
+ register_post_type('content_block',$options);
118
+ }
119
+
120
+ add_filter('post_updated_messages', 'content_block_messages');
121
+
122
+ function content_block_messages( $messages ) {
123
+
124
+ $messages['content_block'] = array(
125
+ 0 => '',
126
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
127
+ 2 => __('Custom field updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
128
+ 3 => __('Custom field deleted.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
129
+ 4 => __('Content Block updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
130
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', CUSTOM_POST_WIDGET_TEXTDOMAIN), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
131
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
132
+ 7 => __('Block saved.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
133
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
134
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN),
135
+ date_i18n( __( 'M j, Y @ G:i' , CUSTOM_POST_WIDGET_TEXTDOMAIN), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
136
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
137
+ );
138
+
139
+ return $messages;
140
+ }
141
+
142
+ ?>
tags/1.8.4/tags/1.4/readme.txt ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.1
8
+ Stable tag: 1.4
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ == Changelog ==
53
+
54
+ = 1.0 =
55
+ First release
56
+
57
+ = 1.1 =
58
+ Fixed screenshots for plugin directory
59
+
60
+ = 1.1.1 =
61
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
62
+
63
+ = 1.2 =
64
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
65
+
66
+ = 1.2.1 =
67
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
68
+
69
+ = 1.3 =
70
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
71
+
72
+ = 1.4 =
73
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
74
+
75
+
76
+ == Upgrade Notice ==
77
+
78
+ = 1.1.1 =
79
+ Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
tags/1.8.4/tags/1.4/screenshot-1.png ADDED
Binary file
tags/1.8.4/tags/1.4/screenshot-2.png ADDED
Binary file
tags/1.8.4/tags/1.5/custom-post-widget.php ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.5
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: 1.5 Thanks to Caspar from GlückPress (http://glueckpress.com) the plugin
12
+ now has its own icon and as requested by Stephen James the author field has been added
13
+ to the Content Block edit screen.
14
+
15
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
16
+
17
+ This program is free software; you can redistribute it and/or modify
18
+ it under the terms of the GNU General Public License, version 2, as
19
+ published by the Free Software Foundation.
20
+
21
+ This program is distributed in the hope that it will be useful,
22
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
23
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24
+ GNU General Public License for more details.
25
+
26
+ You should have received a copy of the GNU General Public License
27
+ along with this program; if not, write to the Free Software
28
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29
+ */
30
+
31
+ /* Set constant path to the custom-post-widget plugin directory. */
32
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
33
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
34
+ define( 'CUSTOM_POST_WIDGET_TEXTDOMAIN', 'custom-post-widget' );
35
+
36
+ /* Launch the plugin. */
37
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
38
+
39
+ /**
40
+ Initialize the plugin. This function loads the required files needed for the plugin
41
+ to run in the proper order and adds needed functions to the required hooks.
42
+ */
43
+ function custom_post_widget_plugin_init() {
44
+
45
+ /* Load the translation of the plugin. */
46
+ load_plugin_textdomain( CUSTOM_POST_WIDGET_TEXTDOMAIN, false, 'custom-post-widget/languages' );
47
+
48
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
49
+ }
50
+
51
+ /**
52
+ Loads the widgets packaged with the plugin.
53
+ */
54
+ function custom_post_widget_load_widgets() {
55
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
56
+ register_widget( 'custom_post_widget' );
57
+ }
58
+
59
+ ?>
tags/1.8.4/tags/1.5/images/contentblock-32.png ADDED
Binary file
tags/1.8.4/tags/1.5/images/contentblock.png ADDED
Binary file
tags/1.8.4/tags/1.5/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.8.4/tags/1.5/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.8.4/tags/1.5/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.8.4/tags/1.5/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.8.4/tags/1.5/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.8.4/tags/1.5/post-widget.php ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget
5
+ {
6
+ function custom_post_widget()
7
+ {
8
+ $widget_ops = array('description' => __('Displays custom post content in a widget', CUSTOM_POST_WIDGET_TEXTDOMAIN));
9
+ $this->WP_Widget('custom_post_widget', __('Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN), $widget_ops);
10
+ }
11
+
12
+ function form($instance)
13
+ {
14
+ $custom_post_id = esc_attr($instance['custom_post_id']);
15
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
16
+
17
+ ?>
18
+ <p>
19
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?>
20
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
21
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
22
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
23
+ $currentID = get_the_ID();
24
+ if($currentID == $custom_post_id)
25
+ $extra = 'selected' and
26
+ $widgetExtraTitle = get_the_title();
27
+ else
28
+ $extra = '';
29
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
30
+ endwhile; else:
31
+ echo '<option value="empty">' . __('No content blocks available', CUSTOM_POST_WIDGET_TEXTDOMAIN) . '</option>';
32
+ endif;
33
+ ?>
34
+ </select>
35
+ </label>
36
+ </p>
37
+ <?php ?>
38
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
39
+ <?php wp_reset_query(); ?>
40
+ <p>
41
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
42
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?></label>
43
+ </p>
44
+
45
+ <?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+
54
+ return $instance;
55
+ }
56
+
57
+ function widget($args, $instance)
58
+ {
59
+ extract($args);
60
+
61
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', CUSTOM_POST_WIDGET_TEXTDOMAIN);
62
+
63
+ /* Our variables from the widget settings. */
64
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
65
+
66
+ /* Before widget (defined by themes). */
67
+ echo $before_widget;
68
+
69
+ // Output the query to find the custom post
70
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
71
+ while (have_posts()) : the_post();
72
+
73
+ if ( $show_custom_post_title )
74
+ echo the_title($before_title, $after_title); // This is the line that displays the title
75
+ echo the_content();
76
+ endwhile;
77
+ wp_reset_query();
78
+
79
+ // Output $after_widget
80
+ echo $after_widget;
81
+ }
82
+ }
83
+
84
+ // Create the Content Block custom post type
85
+
86
+ add_action('init', 'my_content_block_post_type_init');
87
+
88
+ function my_content_block_post_type_init()
89
+ {
90
+ $labels = array(
91
+ 'name' => _x('Content Blocks', 'post type general name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
92
+ 'singular_name' => _x('Content Block', 'post type singular name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
93
+ 'plural_name' => _x('Content Blocks', 'post type plural name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
94
+ 'add_new' => _x('Add Content Block', 'block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
95
+ 'add_new_item' => __('Add New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
96
+ 'edit_item' => __('Edit Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
97
+ 'new_item' => __('New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
98
+ 'view_item' => __('View Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
99
+ 'search_items' => __('Search Content Blocks', CUSTOM_POST_WIDGET_TEXTDOMAIN),
100
+ 'not_found' => __('No Content Blocks Found', CUSTOM_POST_WIDGET_TEXTDOMAIN),
101
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', CUSTOM_POST_WIDGET_TEXTDOMAIN),
102
+ 'parent_item_colon' => ''
103
+ );
104
+ $options = array(
105
+ 'labels' => $labels,
106
+ 'public' => false,
107
+ 'publicly_queryable' => false,
108
+ 'exclude_from_search' => true,
109
+ 'show_ui' => true,
110
+ 'query_var' => true,
111
+ 'rewrite' => true,
112
+ 'capability_type' => 'post',
113
+ 'hierarchical' => false,
114
+ 'menu_position' => null,
115
+ 'supports' => array('title','editor','revisions','thumbnail','author')
116
+ );
117
+ register_post_type('content_block',$options);
118
+ }
119
+
120
+
121
+ // Add custom styles to admin screen and menu
122
+
123
+ add_action('admin_head', 'content_block_header');
124
+
125
+ function content_block_header() {
126
+
127
+ global $post_type; ?>
128
+
129
+ <style type="text/css"><!--
130
+ <?php if (($post_type == 'content_block')) : ?>
131
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
132
+ <?php endif; ?>
133
+ #adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
134
+ #adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
135
+ --></style><?php
136
+
137
+ }
138
+
139
+ add_filter('post_updated_messages', 'content_block_messages');
140
+
141
+ function content_block_messages( $messages ) {
142
+
143
+ $messages['content_block'] = array(
144
+ 0 => '',
145
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
146
+ 2 => __('Custom field updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
147
+ 3 => __('Custom field deleted.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
148
+ 4 => __('Content Block updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
149
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', CUSTOM_POST_WIDGET_TEXTDOMAIN), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
150
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
151
+ 7 => __('Block saved.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
152
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
153
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN),
154
+ date_i18n( __( 'M j, Y @ G:i' , CUSTOM_POST_WIDGET_TEXTDOMAIN), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
155
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
156
+ );
157
+
158
+ return $messages;
159
+ }
160
+
161
+ ?>
tags/1.8.4/tags/1.5/readme.txt ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.1
8
+ Stable tag: 1.5
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+
98
+ == Upgrade Notice ==
99
+
100
+ = 1.1.1 =
101
+ Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
102
+
103
+
tags/1.8.4/tags/1.5/screenshot-1.png ADDED
Binary file
tags/1.8.4/tags/1.5/screenshot-2.png ADDED
Binary file
tags/1.8.4/tags/1.6/custom-post-widget.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.6
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.6 of the Custom Post Widget plugin now uses the much more efficient
12
+ get_post instead of query_post to display the widget content.
13
+
14
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
15
+
16
+ This program is free software; you can redistribute it and/or modify
17
+ it under the terms of the GNU General Public License, version 2, as
18
+ published by the Free Software Foundation.
19
+
20
+ This program is distributed in the hope that it will be useful,
21
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
+ GNU General Public License for more details.
24
+
25
+ You should have received a copy of the GNU General Public License
26
+ along with this program; if not, write to the Free Software
27
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
+ */
29
+
30
+ /* Set constant path to the custom-post-widget plugin directory. */
31
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
32
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
33
+ define( 'CUSTOM_POST_WIDGET_TEXTDOMAIN', 'custom-post-widget' );
34
+
35
+ /* Launch the plugin. */
36
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
37
+
38
+ /**
39
+ Initialize the plugin. This function loads the required files needed for the plugin
40
+ to run in the proper order and adds needed functions to the required hooks.
41
+ */
42
+ function custom_post_widget_plugin_init() {
43
+
44
+ /* Load the translation of the plugin. */
45
+ load_plugin_textdomain( CUSTOM_POST_WIDGET_TEXTDOMAIN, false, 'custom-post-widget/languages' );
46
+
47
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
48
+ }
49
+
50
+ /**
51
+ Loads the widgets packaged with the plugin.
52
+ */
53
+ function custom_post_widget_load_widgets() {
54
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
55
+ register_widget( 'custom_post_widget' );
56
+ }
57
+
58
+ ?>
tags/1.8.4/tags/1.6/images/contentblock-32.png ADDED
Binary file
tags/1.8.4/tags/1.6/images/contentblock.png ADDED
Binary file
tags/1.8.4/tags/1.6/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.8.4/tags/1.6/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.8.4/tags/1.6/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.8.4/tags/1.6/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.8.4/tags/1.6/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.8.4/tags/1.6/post-widget.php ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget
5
+ {
6
+ function custom_post_widget()
7
+ {
8
+ $widget_ops = array('description' => __('Displays custom post content in a widget', CUSTOM_POST_WIDGET_TEXTDOMAIN));
9
+ $this->WP_Widget('custom_post_widget', __('Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN), $widget_ops);
10
+ }
11
+
12
+ function form($instance)
13
+ {
14
+ $custom_post_id = esc_attr($instance['custom_post_id']);
15
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
16
+
17
+ ?>
18
+ <p>
19
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?>
20
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
21
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
22
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
23
+ $currentID = get_the_ID();
24
+ if($currentID == $custom_post_id)
25
+ $extra = 'selected' and
26
+ $widgetExtraTitle = get_the_title();
27
+ else
28
+ $extra = '';
29
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
30
+ endwhile; else:
31
+ echo '<option value="empty">' . __('No content blocks available', CUSTOM_POST_WIDGET_TEXTDOMAIN) . '</option>';
32
+ endif;
33
+ ?>
34
+ </select>
35
+ </label>
36
+ </p>
37
+ <?php ?>
38
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
39
+ <?php wp_reset_query(); ?>
40
+ <p>
41
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
42
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?></label>
43
+ </p>
44
+
45
+ <?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+
54
+ return $instance;
55
+ }
56
+
57
+ function widget($args, $instance)
58
+ {
59
+ extract($args);
60
+
61
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', CUSTOM_POST_WIDGET_TEXTDOMAIN);
62
+
63
+ /* Variables from the widget settings. */
64
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
65
+
66
+ $content_post = get_post($custom_post_id);
67
+ $content = $content_post->post_content;
68
+ $content = apply_filters('the_content', $content);
69
+ $content = str_replace(']]>', ']]>', $content);
70
+
71
+ echo $before_widget;
72
+ if ( $show_custom_post_title )
73
+ {
74
+ echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
75
+ }
76
+ echo $content; // This is where the actual content of the custom post is being displayed
77
+ echo $after_widget;
78
+
79
+ }
80
+ }
81
+
82
+ // Create the Content Block custom post type
83
+ add_action('init', 'my_content_block_post_type_init');
84
+
85
+ function my_content_block_post_type_init()
86
+ {
87
+ $labels = array(
88
+ 'name' => _x('Content Blocks', 'post type general name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
89
+ 'singular_name' => _x('Content Block', 'post type singular name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
90
+ 'plural_name' => _x('Content Blocks', 'post type plural name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
91
+ 'add_new' => _x('Add Content Block', 'block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
92
+ 'add_new_item' => __('Add New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
93
+ 'edit_item' => __('Edit Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
94
+ 'new_item' => __('New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
95
+ 'view_item' => __('View Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
96
+ 'search_items' => __('Search Content Blocks', CUSTOM_POST_WIDGET_TEXTDOMAIN),
97
+ 'not_found' => __('No Content Blocks Found', CUSTOM_POST_WIDGET_TEXTDOMAIN),
98
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', CUSTOM_POST_WIDGET_TEXTDOMAIN),
99
+ 'parent_item_colon' => ''
100
+ );
101
+ $options = array(
102
+ 'labels' => $labels,
103
+ 'public' => false,
104
+ 'publicly_queryable' => false,
105
+ 'exclude_from_search' => true,
106
+ 'show_ui' => true,
107
+ 'query_var' => true,
108
+ 'rewrite' => true,
109
+ 'capability_type' => 'post',
110
+ 'hierarchical' => false,
111
+ 'menu_position' => null,
112
+ 'supports' => array('title','editor','revisions','thumbnail','author')
113
+ );
114
+ register_post_type('content_block',$options);
115
+ }
116
+
117
+
118
+ // Add custom styles to admin screen and menu
119
+ add_action('admin_head', 'content_block_header');
120
+
121
+ function content_block_header() {
122
+
123
+ global $post_type; ?>
124
+
125
+ <style type="text/css"><!--
126
+ <?php if (($post_type == 'content_block')) : ?>
127
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
128
+ <?php endif; ?>
129
+ #adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
130
+ #adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
131
+ --></style><?php
132
+
133
+ }
134
+
135
+ add_filter('post_updated_messages', 'content_block_messages');
136
+
137
+ function content_block_messages( $messages ) {
138
+
139
+ $messages['content_block'] = array(
140
+ 0 => '',
141
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
142
+ 2 => __('Custom field updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
143
+ 3 => __('Custom field deleted.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
144
+ 4 => __('Content Block updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
145
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', CUSTOM_POST_WIDGET_TEXTDOMAIN), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
146
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink($post_ID) ) ),
147
+ 7 => __('Block saved.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
148
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
149
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN),
150
+ date_i18n( __( 'M j, Y @ G:i' , CUSTOM_POST_WIDGET_TEXTDOMAIN), strtotime( $post->post_date ) ), esc_url( get_permalink($post_ID) ) ),
151
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink($post_ID) ) ) ),
152
+ );
153
+
154
+ return $messages;
155
+ }
156
+
157
+ ?>
tags/1.8.4/tags/1.6/readme.txt ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.1
8
+ Stable tag: 1.6
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * It enables users to use the WYSIWYG editor for editing the content and adding images
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+ = 1.6 =
98
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
99
+
100
+
101
+ == Upgrade Notice ==
102
+
103
+ = 1.1.1 =
104
+ Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
105
+
106
+
tags/1.8.4/tags/1.6/screenshot-1.png ADDED
Binary file
tags/1.8.4/tags/1.6/screenshot-2.png ADDED
Binary file
tags/1.8.4/tags/1.7/custom-post-widget.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.7
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.7 fixes all the error messages that Yoast discovered when reviewing this plugin.
12
+ It also adds the option to use the [content_block id= ] shortcode to insert a content block in a post.
13
+
14
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
15
+
16
+ This program is free software; you can redistribute it and/or modify
17
+ it under the terms of the GNU General Public License, version 2, as
18
+ published by the Free Software Foundation.
19
+
20
+ This program is distributed in the hope that it will be useful,
21
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
+ GNU General Public License for more details.
24
+
25
+ You should have received a copy of the GNU General Public License
26
+ along with this program; if not, write to the Free Software
27
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
+ */
29
+
30
+ /* Set constant path to the custom-post-widget plugin directory. */
31
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
32
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
33
+ define( 'CUSTOM_POST_WIDGET_TEXTDOMAIN', 'custom-post-widget' );
34
+
35
+ /* Launch the plugin. */
36
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
37
+
38
+ /**
39
+ Initialize the plugin. This function loads the required files needed for the plugin
40
+ to run in the proper order and adds needed functions to the required hooks.
41
+ */
42
+ function custom_post_widget_plugin_init() {
43
+
44
+ /* Load the translation of the plugin. */
45
+ load_plugin_textdomain( CUSTOM_POST_WIDGET_TEXTDOMAIN, false, 'custom-post-widget/languages' );
46
+
47
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
48
+ }
49
+
50
+ /**
51
+ Loads the widgets packaged with the plugin.
52
+ */
53
+ function custom_post_widget_load_widgets() {
54
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
55
+ register_widget( 'custom_post_widget' );
56
+ }
57
+
58
+ ?>
tags/1.8.4/tags/1.7/images/contentblock-32.png ADDED
Binary file
tags/1.8.4/tags/1.7/images/contentblock.png ADDED
Binary file
tags/1.8.4/tags/1.7/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.8.4/tags/1.7/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.8.4/tags/1.7/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.8.4/tags/1.7/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.8.4/tags/1.7/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.8.4/tags/1.7/post-widget.php ADDED
@@ -0,0 +1,182 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget
5
+ {
6
+ function custom_post_widget()
7
+ {
8
+ $widget_ops = array('description' => __('Displays custom post content in a widget', CUSTOM_POST_WIDGET_TEXTDOMAIN));
9
+ $this->WP_Widget('custom_post_widget', __('Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN), $widget_ops);
10
+ }
11
+
12
+ function form($instance)
13
+ {
14
+ $custom_post_id = esc_attr($instance['custom_post_id']);
15
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
16
+
17
+ ?>
18
+ <p>
19
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?>
20
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
21
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
22
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
23
+ $currentID = get_the_ID();
24
+ if($currentID == $custom_post_id)
25
+ $extra = 'selected' and
26
+ $widgetExtraTitle = get_the_title();
27
+ else
28
+ $extra = '';
29
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
30
+ endwhile; else:
31
+ echo '<option value="empty">' . __('No content blocks available', CUSTOM_POST_WIDGET_TEXTDOMAIN) . '</option>';
32
+ endif;
33
+ ?>
34
+ </select>
35
+ </label>
36
+ </p>
37
+ <?php ?>
38
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
39
+ <?php wp_reset_query(); ?>
40
+ <p>
41
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
42
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', CUSTOM_POST_WIDGET_TEXTDOMAIN) ?></label>
43
+ </p>
44
+
45
+ <?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+
54
+ return $instance;
55
+ }
56
+
57
+ function widget($args, $instance)
58
+ {
59
+ extract($args);
60
+
61
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', CUSTOM_POST_WIDGET_TEXTDOMAIN);
62
+
63
+ /* Variables from the widget settings. */
64
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
65
+
66
+ $content_post = get_post($custom_post_id);
67
+ $content = $content_post->post_content;
68
+ $content = apply_filters('the_content', $content);
69
+ $content = str_replace(']]>', ']]>', $content);
70
+
71
+ echo $before_widget;
72
+ if ( $show_custom_post_title )
73
+ {
74
+ echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
75
+ }
76
+ echo $content; // This is where the actual content of the custom post is being displayed
77
+ echo $after_widget;
78
+
79
+ }
80
+ }
81
+
82
+ // Create the Content Block custom post type
83
+ add_action('init', 'my_content_block_post_type_init');
84
+
85
+ function my_content_block_post_type_init()
86
+ {
87
+ $labels = array(
88
+ 'name' => _x('Content Blocks', 'post type general name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
89
+ 'singular_name' => _x('Content Block', 'post type singular name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
90
+ 'plural_name' => _x('Content Blocks', 'post type plural name', CUSTOM_POST_WIDGET_TEXTDOMAIN),
91
+ 'add_new' => _x('Add Content Block', 'block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
92
+ 'add_new_item' => __('Add New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
93
+ 'edit_item' => __('Edit Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
94
+ 'new_item' => __('New Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
95
+ 'view_item' => __('View Content Block', CUSTOM_POST_WIDGET_TEXTDOMAIN),
96
+ 'search_items' => __('Search Content Blocks', CUSTOM_POST_WIDGET_TEXTDOMAIN),
97
+ 'not_found' => __('No Content Blocks Found', CUSTOM_POST_WIDGET_TEXTDOMAIN),
98
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', CUSTOM_POST_WIDGET_TEXTDOMAIN),
99
+ 'parent_item_colon' => ''
100
+ );
101
+ $options = array(
102
+ 'labels' => $labels,
103
+ 'public' => false,
104
+ 'publicly_queryable' => false,
105
+ 'exclude_from_search' => true,
106
+ 'show_ui' => true,
107
+ 'query_var' => true,
108
+ 'rewrite' => true,
109
+ 'capability_type' => 'post',
110
+ 'hierarchical' => false,
111
+ 'menu_position' => null,
112
+ 'supports' => array('title','editor','revisions','thumbnail','author')
113
+ );
114
+ register_post_type('content_block',$options);
115
+ }
116
+
117
+
118
+ // Add custom styles to admin screen and menu
119
+ add_action('admin_head', 'content_block_header');
120
+
121
+ function content_block_header() {
122
+
123
+ global $post_type; ?>
124
+
125
+ <style type="text/css"><!--
126
+ <?php if (($post_type == 'content_block')) : ?>
127
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
128
+ <?php endif; ?>
129
+ #adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
130
+ #adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
131
+ --></style><?php
132
+
133
+ }
134
+
135
+ add_filter('post_updated_messages', 'content_block_messages');
136
+
137
+ function content_block_messages( $messages ) {
138
+
139
+ $messages['content_block'] = array(
140
+ 0 => '',
141
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
142
+ 2 => __('Custom field updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
143
+ 3 => __('Custom field deleted.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
144
+ 4 => __('Content Block updated.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
145
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', CUSTOM_POST_WIDGET_TEXTDOMAIN), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
146
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
147
+ 7 => __('Block saved.', CUSTOM_POST_WIDGET_TEXTDOMAIN),
148
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
149
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), date_i18n( __( 'M j, Y @ G:i' , CUSTOM_POST_WIDGET_TEXTDOMAIN), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
150
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', CUSTOM_POST_WIDGET_TEXTDOMAIN), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
151
+ );
152
+
153
+ return $messages;
154
+ }
155
+
156
+ // Add the ability to display the content block in a reqular post using a shortcode
157
+ function custom_post_widget_shortcode($atts) {
158
+ extract(shortcode_atts(array(
159
+ 'id' => '',
160
+ ), $atts));
161
+
162
+ $content = "";
163
+
164
+ if($id != "") {
165
+ $args = array(
166
+ 'post__in' => array($id),
167
+ 'post_type' => 'content_block',
168
+ );
169
+
170
+ $content_post = get_posts($args);
171
+
172
+ foreach( $content_post as $post ) :
173
+ $content .= apply_filters('the_content', $post->post_content);
174
+ endforeach;
175
+ }
176
+
177
+ return $content;
178
+ }
179
+
180
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
181
+
182
+ ?>
tags/1.8.4/tags/1.7/readme.txt ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.1
8
+ Stable tag: 1.6
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+ = 1.6 =
98
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
99
+
100
+ = 1.7 =
101
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
102
+
103
+ == Upgrade Notice ==
104
+
105
+ = 1.1.1 =
106
+ Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
107
+
108
+
tags/1.8.4/tags/1.7/screenshot-1.png ADDED
Binary file
tags/1.8.4/tags/1.7/screenshot-2.png ADDED
Binary file
tags/1.8.4/tags/1.8.1/custom-post-widget.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.8.1
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.8 Button added above content editor to easily insert the shortcode.
12
+
13
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ /* Set constant path to the custom-post-widget plugin directory. */
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ /* Launch the plugin. */
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ /**
37
+ Initialize the plugin. This function loads the required files needed for the plugin
38
+ to run in the proper order and adds needed functions to the required hooks.
39
+ */
40
+ function custom_post_widget_plugin_init() {
41
+
42
+ /* Load the translation of the plugin. */
43
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
44
+
45
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
46
+ }
47
+
48
+ /**
49
+ Loads the widgets packaged with the plugin.
50
+ */
51
+ function custom_post_widget_load_widgets() {
52
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
53
+ register_widget( 'custom_post_widget' );
54
+ }
55
+
56
+ ?>
tags/1.8.4/tags/1.8.1/images/contentblock-13.png ADDED
Binary file
tags/1.8.4/tags/1.8.1/images/contentblock-32.png ADDED
Binary file
tags/1.8.4/tags/1.8.1/images/contentblock.png ADDED
Binary file
tags/1.8.4/tags/1.8.1/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.8.4/tags/1.8.1/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.8.4/tags/1.8.1/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.8.4/tags/1.8.1/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.8.4/tags/1.8.1/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.8.4/tags/1.8.1/popup.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //Action target that displays the popup to insert a content block to a post/page
3
+ function add_mce_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+
13
+ var win = window.dialogArguments || opener || parent || top;
14
+ win.send_to_editor("[content_block id=" + content_id + "]");
15
+ }
16
+ </script>
17
+
18
+ <div id="select_form" style="display:none;">
19
+ <div class="wrap">
20
+ <div>
21
+ <div style="padding:15px 15px 0 15px;">
22
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;"><?php _e("Insert Content Block", 'custom-post-widget'); ?></h3>
23
+ <span><?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?></span>
24
+ </div>
25
+ <div style="padding:15px 15px 0 15px;">
26
+ <select id="add_content_block_id">
27
+ <option value=""><?php _e("Select a Content Block", 'custom-post-widget'); ?></option>
28
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
29
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
30
+ $currentID = get_the_ID();
31
+ if($currentID == $custom_post_id)
32
+ $extra = 'selected' and
33
+ $widgetExtraTitle = get_the_title();
34
+ else
35
+ $extra = '';
36
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
37
+ endwhile; else:
38
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
39
+ endif;
40
+ ?>
41
+ </select>
42
+ <br/>
43
+ <div style="padding:15px;">
44
+ <input type="button" class="button-primary" value="Insert Content Block" onclick="InsertContentBlockForm();"/>&nbsp;&nbsp;&nbsp;
45
+ <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;"><?php _e("Cancel", 'custom-post-widget'); ?></a>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ <?php
51
+ }
tags/1.8.4/tags/1.8.1/post-widget.php ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget
5
+ {
6
+ function custom_post_widget()
7
+ {
8
+ $widget_ops = array('description' => __('Displays custom post content in a widget', 'custom-post-widget'));
9
+ $this->WP_Widget('custom_post_widget', __('Content Block', 'custom-post-widget'), $widget_ops);
10
+ }
11
+
12
+ function form($instance)
13
+ {
14
+ $custom_post_id = esc_attr($instance['custom_post_id']);
15
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
16
+
17
+ ?>
18
+ <p>
19
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', 'custom-post-widget') ?>
20
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
21
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
22
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
23
+ $currentID = get_the_ID();
24
+ if($currentID == $custom_post_id)
25
+ $extra = 'selected' and
26
+ $widgetExtraTitle = get_the_title();
27
+ else
28
+ $extra = '';
29
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
30
+ endwhile; else:
31
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
32
+ endif;
33
+ ?>
34
+ </select>
35
+ </label>
36
+ </p>
37
+ <?php ?>
38
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
39
+ <?php wp_reset_query(); ?>
40
+ <p>
41
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
42
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', 'custom-post-widget') ?></label>
43
+ </p>
44
+
45
+ <?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+
54
+ return $instance;
55
+ }
56
+
57
+ function widget($args, $instance)
58
+ {
59
+ extract($args);
60
+
61
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
62
+
63
+ /* Variables from the widget settings. */
64
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
65
+
66
+ $content_post = get_post($custom_post_id);
67
+ $content = $content_post->post_content;
68
+ $content = apply_filters('the_content', $content);
69
+ $content = str_replace(']]>', ']]>', $content);
70
+
71
+ echo $before_widget;
72
+ if ( $show_custom_post_title )
73
+ {
74
+ echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
75
+ }
76
+ echo $content; // This is where the actual content of the custom post is being displayed
77
+ echo $after_widget;
78
+
79
+ }
80
+ }
81
+
82
+ // Create the Content Block custom post type
83
+ add_action('init', 'my_content_block_post_type_init');
84
+
85
+ function my_content_block_post_type_init()
86
+ {
87
+ $labels = array(
88
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
89
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
90
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
91
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
92
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
93
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
94
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
95
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
96
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
97
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
98
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
99
+ 'parent_item_colon' => ''
100
+ );
101
+ $options = array(
102
+ 'labels' => $labels,
103
+ 'public' => false,
104
+ 'publicly_queryable' => false,
105
+ 'exclude_from_search' => true,
106
+ 'show_ui' => true,
107
+ 'query_var' => true,
108
+ 'rewrite' => true,
109
+ 'capability_type' => 'post',
110
+ 'hierarchical' => false,
111
+ 'menu_position' => null,
112
+ 'supports' => array('title','editor','revisions','thumbnail','author')
113
+ );
114
+ register_post_type('content_block',$options);
115
+ }
116
+
117
+
118
+ // Add custom styles to admin screen and menu
119
+ add_action('admin_head', 'content_block_header');
120
+
121
+ function content_block_header() {
122
+
123
+ global $post_type; ?>
124
+
125
+ <style type="text/css"><!--
126
+ <?php if (($post_type == 'content_block')) : ?>
127
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
128
+ <?php endif; ?>
129
+ #adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
130
+ #adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
131
+ --></style><?php
132
+
133
+ }
134
+
135
+ add_filter('post_updated_messages', 'content_block_messages');
136
+
137
+ function content_block_messages( $messages ) {
138
+
139
+ $messages['content_block'] = array(
140
+ 0 => '',
141
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
142
+ 2 => __('Custom field updated.', 'custom-post-widget'),
143
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
144
+ 4 => __('Content Block updated.', 'custom-post-widget'),
145
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
146
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
147
+ 7 => __('Block saved.', 'custom-post-widget'),
148
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
149
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
150
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
151
+ );
152
+
153
+ return $messages;
154
+ }
155
+
156
+ // Add the ability to display the content block in a reqular post using a shortcode
157
+ function custom_post_widget_shortcode($atts) {
158
+ extract(shortcode_atts(array(
159
+ 'id' => '',
160
+ ), $atts));
161
+
162
+ $content = "";
163
+
164
+ if($id != "")
165
+ {
166
+ $args = array(
167
+ 'post__in' => array($id),
168
+ 'post_type' => 'content_block',
169
+ );
170
+
171
+ $content_post = get_posts($args);
172
+
173
+ foreach( $content_post as $post ) :
174
+ $content .= apply_filters('the_content', $post->post_content);
175
+ endforeach;
176
+ }
177
+
178
+ return $content;
179
+ }
180
+
181
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
182
+
183
+ // Add button above editor
184
+ function add_content_block_icon($initcontext) {
185
+ return $initcontext.
186
+ '<a id="add_content_block" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php#TB_inline?width=450&inlineId=select_form">
187
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
188
+ </a>';
189
+ }
190
+
191
+ add_filter('media_buttons_context', 'add_content_block_icon');
192
+
193
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
194
+
195
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
196
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
197
+
198
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
199
+ add_action('admin_footer', 'add_mce_popup');
200
+ }
201
+ ?>
tags/1.8.4/tags/1.8.1/readme.txt ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.1
8
+ Stable tag: 1.8.1
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+ = 1.6 =
98
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
99
+
100
+ = 1.7 =
101
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
102
+
103
+ = 1.8 =
104
+ Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
105
+
106
+ == Upgrade Notice ==
107
+
108
+ = 1.8 =
109
+ I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
110
+
111
+
tags/1.8.4/tags/1.8.1/screenshot-1.png ADDED
Binary file
tags/1.8.4/tags/1.8.1/screenshot-2.png ADDED
Binary file
tags/1.8.4/tags/1.8.3/custom-post-widget.php ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.8.3
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.8.3 The widget now emulates the $post loop.
12
+
13
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ /* Set constant path to the custom-post-widget plugin directory. */
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ /* Launch the plugin. */
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ /**
37
+ Initialize the plugin. This function loads the required files needed for the plugin
38
+ to run in the proper order and adds needed functions to the required hooks.
39
+ */
40
+ function custom_post_widget_plugin_init() {
41
+
42
+ /* Load the translation of the plugin. */
43
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
44
+
45
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
46
+ }
47
+
48
+ /**
49
+ Loads the widgets packaged with the plugin.
50
+ */
51
+ function custom_post_widget_load_widgets() {
52
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
53
+ register_widget( 'custom_post_widget' );
54
+ }
55
+
56
+ ?>
tags/1.8.4/tags/1.8.3/images/contentblock-13.png ADDED
Binary file
tags/1.8.4/tags/1.8.3/images/contentblock-32.png ADDED
Binary file
tags/1.8.4/tags/1.8.3/images/contentblock.png ADDED
Binary file
tags/1.8.4/tags/1.8.3/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.8.4/tags/1.8.3/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.8.4/tags/1.8.3/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.8.4/tags/1.8.3/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.8.4/tags/1.8.3/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.8.4/tags/1.8.3/popup.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php //Action target that displays the popup to insert a content block to a post/page
2
+
3
+ function add_mce_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+ var win = window.dialogArguments || opener || parent || top;
13
+ win.send_to_editor("[content_block id=" + content_id + "]");
14
+ }
15
+ </script>
16
+
17
+ <div id="select_form" style="display:none;">
18
+ <div class="wrap">
19
+ <div>
20
+ <div style="padding:15px 15px 0 15px;">
21
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;">
22
+ <?php _e("Insert Content Block", 'custom-post-widget'); ?>
23
+ </h3>
24
+ <span>
25
+ <?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?>
26
+ </span>
27
+ </div>
28
+ <div style="padding:15px 15px 0 15px;">
29
+ <select id="add_content_block_id">
30
+ <option value="">
31
+ <?php _e("Select a Content Block", 'custom-post-widget'); ?>
32
+ </option>
33
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
34
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
35
+ $currentID = get_the_ID();
36
+ if($currentID == $custom_post_id)
37
+ $extra = 'selected' and
38
+ $widgetExtraTitle = get_the_title();
39
+ else
40
+ $extra = '';
41
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
42
+ endwhile; else:
43
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
44
+ endif; ?>
45
+ </select>
46
+ <br />
47
+ <div style="padding:15px;">
48
+ <input type="button" class="button-primary" value="<?php _e("Insert Content Block", 'custom-post-widget') ?>" onclick="InsertContentBlockForm();"/>
49
+ &nbsp;&nbsp;&nbsp; <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;">
50
+ <?php _e("Cancel", 'custom-post-widget'); ?>
51
+ </a>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <?php } ?>
tags/1.8.4/tags/1.8.3/post-widget.php ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget {
5
+ function custom_post_widget() {
6
+ $widget_ops = array('description' => __('Displays custom post content in a widget', 'custom-post-widget'));
7
+ $this->WP_Widget('custom_post_widget', __('Content Block', 'custom-post-widget'), $widget_ops);
8
+ }
9
+
10
+ function form($instance) {
11
+ $custom_post_id = esc_attr($instance['custom_post_id']);
12
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true; ?>
13
+
14
+ <p>
15
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', 'custom-post-widget') ?>
16
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
17
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
18
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
19
+ $currentID = get_the_ID();
20
+ if($currentID == $custom_post_id)
21
+ $extra = 'selected' and
22
+ $widgetExtraTitle = get_the_title();
23
+ else
24
+ $extra = '';
25
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
26
+ endwhile; else:
27
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
28
+ endif; ?>
29
+ </select>
30
+ </label>
31
+ </p>
32
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
33
+ <?php wp_reset_query(); ?>
34
+ <p>
35
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
36
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', 'custom-post-widget') ?></label>
37
+ </p> <?php
38
+ }
39
+
40
+ function update($new_instance, $old_instance) {
41
+ $instance = $old_instance;
42
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
43
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
44
+ return $instance;
45
+ }
46
+
47
+ function widget($args, $instance) {
48
+ global $post;
49
+ extract($args);
50
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
51
+ /* Variables from the widget settings. */
52
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
53
+ $old_post = &$post;
54
+ $post = $content_post = get_post($custom_post_id);
55
+ $content = $content_post->post_content;
56
+ $content = apply_filters('the_content', $content);
57
+ $content = str_replace(']]>', ']]>', $content);
58
+ echo $before_widget;
59
+ if ( $show_custom_post_title ) {
60
+ echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
61
+ }
62
+ echo $content; // This is where the actual content of the custom post is being displayed
63
+ echo $after_widget;
64
+ $post = &$old_post;
65
+ }
66
+
67
+ }
68
+
69
+ // Create the Content Block custom post type
70
+ add_action('init', 'my_content_block_post_type_init');
71
+
72
+ function my_content_block_post_type_init() {
73
+ $labels = array(
74
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
75
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
76
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
77
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
78
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
79
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
80
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
81
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
82
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
83
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
84
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
85
+ 'parent_item_colon' => ''
86
+ );
87
+ $options = array(
88
+ 'labels' => $labels,
89
+ 'public' => false,
90
+ 'publicly_queryable' => false,
91
+ 'exclude_from_search' => true,
92
+ 'show_ui' => true,
93
+ 'query_var' => true,
94
+ 'rewrite' => true,
95
+ 'capability_type' => 'post',
96
+ 'hierarchical' => false,
97
+ 'menu_position' => null,
98
+ 'supports' => array('title','editor','revisions','thumbnail','author')
99
+ );
100
+ register_post_type('content_block',$options);
101
+ }
102
+
103
+ // Add custom styles to admin screen and menu
104
+ add_action('admin_head', 'content_block_header');
105
+
106
+ function content_block_header() {
107
+ global $post_type; ?>
108
+ <style type="text/css">
109
+ <!--
110
+ <?php if (($post_type == 'content_block')) : ?>
111
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
112
+ <?php endif; ?>
113
+ #adminmenu #menu-posts-content_block div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
114
+ #adminmenu #menu-posts-content_block:hover div.wp-menu-image,#adminmenu #menu-posts-content_block.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
115
+ -->
116
+ </style>
117
+ <?php
118
+ }
119
+
120
+ add_filter('post_updated_messages', 'content_block_messages');
121
+
122
+ function content_block_messages( $messages ) {
123
+ $messages['content_block'] = array(
124
+ 0 => '',
125
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
126
+ 2 => __('Custom field updated.', 'custom-post-widget'),
127
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
128
+ 4 => __('Content Block updated.', 'custom-post-widget'),
129
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
130
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
131
+ 7 => __('Block saved.', 'custom-post-widget'),
132
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
133
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
134
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
135
+ );
136
+ return $messages;
137
+ }
138
+
139
+ // Add the ability to display the content block in a reqular post using a shortcode
140
+ function custom_post_widget_shortcode($atts) {
141
+ extract(shortcode_atts(array(
142
+ 'id' => '',
143
+ ), $atts));
144
+
145
+ $content = "";
146
+
147
+ if($id != "")
148
+ {
149
+ $args = array(
150
+ 'post__in' => array($id),
151
+ 'post_type' => 'content_block',
152
+ );
153
+
154
+ $content_post = get_posts($args);
155
+
156
+ foreach( $content_post as $post ) :
157
+ $content .= apply_filters('the_content', $post->post_content);
158
+ endforeach;
159
+ }
160
+
161
+ return $content;
162
+ }
163
+
164
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
165
+
166
+ // Add button above editor
167
+ function add_content_block_icon($initcontext) {
168
+ return $initcontext.
169
+ '<a id="add_content_block" style="text-decoration:none;" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php?type=add_mce_popup&amp;TB_inline=true&amp;inlineId=select_form">
170
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
171
+ </a>';
172
+ }
173
+
174
+ add_filter('media_buttons_context', 'add_content_block_icon');
175
+
176
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
177
+
178
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
179
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
180
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
181
+ add_action('admin_footer', 'add_mce_popup');
182
+ }
183
+ ?>
tags/1.8.4/tags/1.8.3/readme.txt ADDED
@@ -0,0 +1,117 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.2
8
+ Stable tag: 1.8.2
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+ = 1.6 =
98
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
99
+
100
+ = 1.7 =
101
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
102
+
103
+ = 1.8 =
104
+ Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
105
+
106
+ = 1.8.2 =
107
+ Updated German translation and various bugfixes.
108
+
109
+ = 1.8.3 =
110
+ The widget now emulates the $post loop. This means you can now make use of WordPress functionality such as inserting a [gallery]. Thanks to Jari Pennanen for providing the code.
111
+
112
+ == Upgrade Notice ==
113
+
114
+ = 1.8 =
115
+ I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
116
+
117
+
tags/1.8.4/tags/1.8.3/screenshot-1.png ADDED
Binary file
tags/1.8.4/tags/1.8.3/screenshot-2.png ADDED
Binary file
tags/1.8.4/tags/1.8/custom-post-widget.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.6
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.6 of the Custom Post Widget plugin now uses the much more efficient
12
+ get_post instead of query_post to display the widget content.
13
+
14
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
15
+
16
+ This program is free software; you can redistribute it and/or modify
17
+ it under the terms of the GNU General Public License, version 2, as
18
+ published by the Free Software Foundation.
19
+
20
+ This program is distributed in the hope that it will be useful,
21
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
+ GNU General Public License for more details.
24
+
25
+ You should have received a copy of the GNU General Public License
26
+ along with this program; if not, write to the Free Software
27
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
+ */
29
+
30
+ /* Set constant path to the custom-post-widget plugin directory. */
31
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
32
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
33
+
34
+ /* Launch the plugin. */
35
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
36
+
37
+ /**
38
+ Initialize the plugin. This function loads the required files needed for the plugin
39
+ to run in the proper order and adds needed functions to the required hooks.
40
+ */
41
+ function custom_post_widget_plugin_init() {
42
+
43
+ /* Load the translation of the plugin. */
44
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
45
+
46
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
47
+ }
48
+
49
+ /**
50
+ Loads the widgets packaged with the plugin.
51
+ */
52
+ function custom_post_widget_load_widgets() {
53
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
54
+ register_widget( 'custom_post_widget' );
55
+ }
56
+
57
+ ?>
tags/1.8.4/tags/1.8/images/contentblock-13.png ADDED
Binary file
tags/1.8.4/tags/1.8/images/contentblock-32.png ADDED
Binary file
tags/1.8.4/tags/1.8/images/contentblock.png ADDED
Binary file
tags/1.8.4/tags/1.8/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.8.4/tags/1.8/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: popup.php:38
38
+ #: post-widget.php:31
39
+ #@ custom-post-widget
40
+ msgid "No content blocks available"
41
+ msgstr "Keine Inhaltsblöcke verfügbar"
42
+
43
+ #: post-widget.php:42
44
+ #@ custom-post-widget
45
+ msgid "Show Post Title"
46
+ msgstr "Beitragstitel anzeigen"
47
+
48
+ #: post-widget.php:61
49
+ #@ custom-post-widget
50
+ msgid "Find"
51
+ msgstr "Finden"
52
+
53
+ #: post-widget.php:88
54
+ #@ custom-post-widget
55
+ msgctxt "post type general name"
56
+ msgid "Content Blocks"
57
+ msgstr "Inhaltsblöcke"
58
+
59
+ #: post-widget.php:89
60
+ #@ custom-post-widget
61
+ msgctxt "post type singular name"
62
+ msgid "Content Block"
63
+ msgstr "Inhaltsblock"
64
+
65
+ #: post-widget.php:91
66
+ #@ custom-post-widget
67
+ msgctxt "block"
68
+ msgid "Add Content Block"
69
+ msgstr "Inhaltsblock erstellen"
70
+
71
+ #: post-widget.php:92
72
+ #@ custom-post-widget
73
+ msgid "Add New Content Block"
74
+ msgstr "Neuen Inhaltsblock erstellen"
75
+
76
+ #: post-widget.php:93
77
+ #@ custom-post-widget
78
+ msgid "Edit Content Block"
79
+ msgstr "Inhaltsblock bearbeiten"
80
+
81
+ #: post-widget.php:94
82
+ #@ custom-post-widget
83
+ msgid "New Content Block"
84
+ msgstr "Neuer Inhaltsblock"
85
+
86
+ #: post-widget.php:95
87
+ #@ custom-post-widget
88
+ msgid "View Content Block"
89
+ msgstr "Inhaltsblock ansehen"
90
+
91
+ #: post-widget.php:96
92
+ #@ custom-post-widget
93
+ msgid "Search Content Blocks"
94
+ msgstr "Inhaltsblöcke durchsuchen"
95
+
96
+ #: post-widget.php:97
97
+ #@ custom-post-widget
98
+ msgid "No Content Blocks Found"
99
+ msgstr "Keine Inhaltsblöcke gefunden"
100
+
101
+ #: post-widget.php:98
102
+ #@ custom-post-widget
103
+ msgid "No Content Blocks found in Trash"
104
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
105
+
106
+ #: post-widget.php:141
107
+ #, php-format
108
+ #@ custom-post-widget
109
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
110
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
111
+
112
+ #: post-widget.php:142
113
+ #@ custom-post-widget
114
+ msgid "Custom field updated."
115
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
116
+
117
+ #: post-widget.php:143
118
+ #@ custom-post-widget
119
+ msgid "Custom field deleted."
120
+ msgstr "Benutzerdefiniertes Feld gelöscht."
121
+
122
+ #: post-widget.php:144
123
+ #@ custom-post-widget
124
+ msgid "Content Block updated."
125
+ msgstr "Inhaltsblock aktualisiert."
126
+
127
+ #: post-widget.php:145
128
+ #, php-format
129
+ #@ custom-post-widget
130
+ msgid "Content Block restored to revision from %s"
131
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
132
+
133
+ #: post-widget.php:146
134
+ #, php-format
135
+ #@ custom-post-widget
136
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
137
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
138
+
139
+ #: post-widget.php:147
140
+ #@ custom-post-widget
141
+ msgid "Block saved."
142
+ msgstr "Inhaltsblock gespeichert."
143
+
144
+ #: post-widget.php:148
145
+ #, php-format
146
+ #@ custom-post-widget
147
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
148
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
149
+
150
+ #: post-widget.php:149
151
+ #, php-format
152
+ #@ custom-post-widget
153
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
154
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
155
+
156
+ #: post-widget.php:149
157
+ #@ custom-post-widget
158
+ msgid "M j, Y @ G:i"
159
+ msgstr "j. M Y @ H:M"
160
+
161
+ #: post-widget.php:150
162
+ #, php-format
163
+ #@ custom-post-widget
164
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
165
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
166
+
167
+ #: post-widget.php:90
168
+ #@ custom-post-widget
169
+ msgctxt "post type plural name"
170
+ msgid "Content Blocks"
171
+ msgstr "Inhaltsblöcke"
172
+
173
+ #: popup.php:9
174
+ #@ custom-post-widget
175
+ msgid "Please select a Content Block"
176
+ msgstr "Bitte wähle einen Inhaltsblock aus."
177
+
178
+ #: popup.php:22
179
+ #@ custom-post-widget
180
+ msgid "Insert Content Block"
181
+ msgstr "Inhaltsblock einfügen"
182
+
183
+ #: popup.php:23
184
+ #@ custom-post-widget
185
+ msgid "Select a Content Block below to add it to your post or page."
186
+ msgstr "Wähle einen dieser Inhaltsblöcke aus, um ihn in deinen Beitrag oder deine Seite einzufügen."
187
+
188
+ #: popup.php:27
189
+ #@ custom-post-widget
190
+ msgid "Select a Content Block"
191
+ msgstr "Inhaltsblock auswählen"
192
+
193
+ #: popup.php:45
194
+ #@ custom-post-widget
195
+ msgid "Cancel"
196
+ msgstr "Abbrechen"
197
+
198
+ #: post-widget.php:186
199
+ #: post-widget.php:187
200
+ #@ custom-post-widget
201
+ msgid "Add Content Block"
202
+ msgstr "Inhaltsblock hinzufügen"
203
+
tags/1.8.4/tags/1.8/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.8.4/tags/1.8/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <johan@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een tekstblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Tekstblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven tekstblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen tekstblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Tekstblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Tekstblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Tekstblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw tekstblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Tekstblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Tekstblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Tekstblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Tekstblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Tekstblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Tekstblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Tekstblok Bijgewerkt. <a href=\"%s\">Toon Tekstblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Tekstblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Tekstblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Tekstblok gepublicieerd. <a href=\"%s\">Bekijk Tekstblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Tekstblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Tekstblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Tekstblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Tekstblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Tekstblokken"
170
+
tags/1.8.4/tags/1.8/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.8.4/tags/1.8/popup.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //Action target that displays the popup to insert a content block to a post/page
3
+ function add_mce_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+
13
+ var win = window.dialogArguments || opener || parent || top;
14
+ win.send_to_editor("[content_block id=" + content_id + "]");
15
+ }
16
+ </script>
17
+
18
+ <div id="select_form" style="display:none;">
19
+ <div class="wrap">
20
+ <div>
21
+ <div style="padding:15px 15px 0 15px;">
22
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;"><?php _e("Insert Content Block", 'custom-post-widget'); ?></h3>
23
+ <span><?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?></span>
24
+ </div>
25
+ <div style="padding:15px 15px 0 15px;">
26
+ <select id="add_content_block_id">
27
+ <option value=""><?php _e("Select a Content Block", 'custom-post-widget'); ?></option>
28
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
29
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
30
+ $currentID = get_the_ID();
31
+ if($currentID == $custom_post_id)
32
+ $extra = 'selected' and
33
+ $widgetExtraTitle = get_the_title();
34
+ else
35
+ $extra = '';
36
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
37
+ endwhile; else:
38
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
39
+ endif;
40
+ ?>
41
+ </select>
42
+ <br/>
43
+ <div style="padding:15px;">
44
+ <input type="button" class="button-primary" value="Insert Content Block" onclick="InsertContentBlockForm();"/>&nbsp;&nbsp;&nbsp;
45
+ <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;"><?php _e("Cancel", 'custom-post-widget'); ?></a>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ <?php
51
+ }
tags/1.8.4/tags/1.8/post-widget.php ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget
5
+ {
6
+ function custom_post_widget()
7
+ {
8
+ $widget_ops = array('description' => __('Displays custom post content in a widget', 'custom-post-widget'));
9
+ $this->WP_Widget('custom_post_widget', __('Content Block', 'custom-post-widget'), $widget_ops);
10
+ }
11
+
12
+ function form($instance)
13
+ {
14
+ $custom_post_id = esc_attr($instance['custom_post_id']);
15
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
16
+
17
+ ?>
18
+ <p>
19
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', 'custom-post-widget') ?>
20
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
21
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
22
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
23
+ $currentID = get_the_ID();
24
+ if($currentID == $custom_post_id)
25
+ $extra = 'selected' and
26
+ $widgetExtraTitle = get_the_title();
27
+ else
28
+ $extra = '';
29
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
30
+ endwhile; else:
31
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
32
+ endif;
33
+ ?>
34
+ </select>
35
+ </label>
36
+ </p>
37
+ <?php ?>
38
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
39
+ <?php wp_reset_query(); ?>
40
+ <p>
41
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
42
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', 'custom-post-widget') ?></label>
43
+ </p>
44
+
45
+ <?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+
54
+ return $instance;
55
+ }
56
+
57
+ function widget($args, $instance)
58
+ {
59
+ extract($args);
60
+
61
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
62
+
63
+ /* Variables from the widget settings. */
64
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
65
+
66
+ $content_post = get_post($custom_post_id);
67
+ $content = $content_post->post_content;
68
+ $content = apply_filters('the_content', $content);
69
+ $content = str_replace(']]>', ']]>', $content);
70
+
71
+ echo $before_widget;
72
+ if ( $show_custom_post_title )
73
+ {
74
+ echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
75
+ }
76
+ echo $content; // This is where the actual content of the custom post is being displayed
77
+ echo $after_widget;
78
+
79
+ }
80
+ }
81
+
82
+ // Create the Content Block custom post type
83
+ add_action('init', 'my_content_block_post_type_init');
84
+
85
+ function my_content_block_post_type_init()
86
+ {
87
+ $labels = array(
88
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
89
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
90
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
91
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
92
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
93
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
94
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
95
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
96
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
97
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
98
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
99
+ 'parent_item_colon' => ''
100
+ );
101
+ $options = array(
102
+ 'labels' => $labels,
103
+ 'public' => false,
104
+ 'publicly_queryable' => false,
105
+ 'exclude_from_search' => true,
106
+ 'show_ui' => true,
107
+ 'query_var' => true,
108
+ 'rewrite' => true,
109
+ 'capability_type' => 'post',
110
+ 'hierarchical' => false,
111
+ 'menu_position' => null,
112
+ 'supports' => array('title','editor','revisions','thumbnail','author')
113
+ );
114
+ register_post_type('content_block',$options);
115
+ }
116
+
117
+
118
+ // Add custom styles to admin screen and menu
119
+ add_action('admin_head', 'content_block_header');
120
+
121
+ function content_block_header() {
122
+
123
+ global $post_type; ?>
124
+
125
+ <style type="text/css"><!--
126
+ <?php if (($post_type == 'content_block')) : ?>
127
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
128
+ <?php endif; ?>
129
+ #adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
130
+ #adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
131
+ --></style><?php
132
+
133
+ }
134
+
135
+ add_filter('post_updated_messages', 'content_block_messages');
136
+
137
+ function content_block_messages( $messages ) {
138
+
139
+ $messages['content_block'] = array(
140
+ 0 => '',
141
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
142
+ 2 => __('Custom field updated.', 'custom-post-widget'),
143
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
144
+ 4 => __('Content Block updated.', 'custom-post-widget'),
145
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
146
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
147
+ 7 => __('Block saved.', 'custom-post-widget'),
148
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
149
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
150
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
151
+ );
152
+
153
+ return $messages;
154
+ }
155
+
156
+ // Add the ability to display the content block in a reqular post using a shortcode
157
+ function custom_post_widget_shortcode($atts) {
158
+ extract(shortcode_atts(array(
159
+ 'id' => '',
160
+ ), $atts));
161
+
162
+ $content = "";
163
+
164
+ if($id != "")
165
+ {
166
+ $args = array(
167
+ 'post__in' => array($id),
168
+ 'post_type' => 'content_block',
169
+ );
170
+
171
+ $content_post = get_posts($args);
172
+
173
+ foreach( $content_post as $post ) :
174
+ $content .= apply_filters('the_content', $post->post_content);
175
+ endforeach;
176
+ }
177
+
178
+ return $content;
179
+ }
180
+
181
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
182
+
183
+ // Add button above editor
184
+ function add_content_block_icon($initcontext) {
185
+ return $initcontext.
186
+ '<a id="add_content_block" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php#TB_inline?width=450&inlineId=select_form">
187
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
188
+ </a>';
189
+ }
190
+
191
+ add_filter('media_buttons_context', 'add_content_block_icon');
192
+
193
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
194
+
195
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
196
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
197
+
198
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
199
+ add_action('admin_footer', 'add_mce_popup');
200
+ }
201
+ ?>
tags/1.8.4/tags/1.8/readme.txt ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.1
8
+ Stable tag: 1.8
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+ = 1.6 =
98
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
99
+
100
+ = 1.7 =
101
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
102
+
103
+ == Upgrade Notice ==
104
+
105
+ = 1.1.1 =
106
+ Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
107
+
108
+
tags/1.8.4/tags/1.8/screenshot-1.png ADDED
Binary file
tags/1.8.4/tags/1.8/screenshot-2.png ADDED
Binary file
tags/1.8.4/trunk/custom-post-widget.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.8.4
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.8.4 Usability improvements.
12
+
13
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ // Set constant path to the custom-post-widget plugin directory.
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ // Launch the plugin.
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ // Load the required files needed for the plugin to run in the proper order and add needed functions to the required hooks.
37
+ function custom_post_widget_plugin_init() {
38
+ // Load the translation of the plugin.
39
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
40
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
41
+ }
42
+
43
+ // Loads the widgets packaged with the plugin.
44
+ function custom_post_widget_load_widgets() {
45
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
46
+ register_widget( 'custom_post_widget' );
47
+ }
48
+
49
+ ?>
tags/1.8.4/trunk/images/contentblock-13.png ADDED
Binary file
tags/1.8.4/trunk/images/contentblock-32.png ADDED
Binary file
tags/1.8.4/trunk/images/contentblock.png ADDED
Binary file
tags/1.8.4/trunk/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.8.4/trunk/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.8.4/trunk/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.8.4/trunk/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.8.4/trunk/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.8.4/trunk/popup.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // Action target that displays the popup to insert a content block to a post/page
2
+
3
+ function add_content_block_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+ var win = window.dialogArguments || opener || parent || top;
13
+ win.send_to_editor("[content_block id=" + content_id + "]");
14
+ }
15
+ </script>
16
+
17
+ <div id="content_block_form" style="display:none;">
18
+ <div class="wrap">
19
+ <div>
20
+ <div style="padding:15px 15px 0 15px;">
21
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;">
22
+ <?php _e("Insert Content Block", 'custom-post-widget'); ?>
23
+ </h3>
24
+ <span>
25
+ <?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?>
26
+ </span>
27
+ </div>
28
+ <div style="padding:15px 15px 0 15px;">
29
+ <select id="add_content_block_id">
30
+ <option value="">
31
+ <?php _e("Select a Content Block", 'custom-post-widget'); ?>
32
+ </option>
33
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
34
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
35
+ $currentID = get_the_ID();
36
+ if($currentID == $custom_post_id)
37
+ $extra = 'selected' and
38
+ $widgetExtraTitle = get_the_title();
39
+ else
40
+ $extra = '';
41
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
42
+ endwhile; else:
43
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
44
+ endif; ?>
45
+ </select>
46
+ <br />
47
+ <div style="padding:15px;">
48
+ <input type="button" class="button-primary" value="<?php _e("Insert Content Block", 'custom-post-widget') ?>" onclick="InsertContentBlockForm();"/>
49
+ &nbsp;&nbsp;&nbsp; <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;">
50
+ <?php _e("Cancel", 'custom-post-widget'); ?>
51
+ </a>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <?php } ?>
tags/1.8.4/trunk/post-widget.php ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget {
5
+ function custom_post_widget() {
6
+ $widget_ops = array('description' => __('Displays custom post content in a widget', 'custom-post-widget'));
7
+ $this->WP_Widget('custom_post_widget', __('Content Block', 'custom-post-widget'), $widget_ops);
8
+ }
9
+
10
+ function form($instance) {
11
+ $custom_post_id = esc_attr($instance['custom_post_id']);
12
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true; ?>
13
+
14
+ <p>
15
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', 'custom-post-widget') ?>
16
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
17
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
18
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
19
+ $currentID = get_the_ID();
20
+ if($currentID == $custom_post_id)
21
+ $extra = 'selected' and
22
+ $widgetExtraTitle = get_the_title();
23
+ else
24
+ $extra = '';
25
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
26
+ endwhile; else:
27
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
28
+ endif; ?>
29
+ </select>
30
+ </label>
31
+ </p>
32
+
33
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
34
+
35
+ <p>
36
+ <?php
37
+ echo '<a href="post.php?post=' . $currentID . '&action=edit">Edit Content Block</a>' ;
38
+ ?>
39
+ </p>
40
+
41
+ <?php wp_reset_query(); ?>
42
+
43
+ <p>
44
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
45
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', 'custom-post-widget') ?></label>
46
+ </p> <?php
47
+ }
48
+
49
+ function update($new_instance, $old_instance) {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+ return $instance;
54
+ }
55
+
56
+ function widget($args, $instance) {
57
+ extract($args);
58
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
59
+ // Variables from the widget settings.
60
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
61
+ $content_post = get_post($custom_post_id);
62
+ $content = $content_post->post_content;
63
+ $content = apply_filters('the_content', $content);
64
+ echo $before_widget;
65
+ if ( $show_custom_post_title ) {
66
+ echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
67
+ }
68
+ echo do_shortcode($content); // This is where the actual content of the custom post is being displayed
69
+ echo $after_widget;
70
+ }
71
+
72
+ }
73
+
74
+ // Create the Content Block custom post type
75
+ add_action('init', 'my_content_block_post_type_init');
76
+
77
+ function my_content_block_post_type_init() {
78
+ $labels = array(
79
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
80
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
81
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
82
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
83
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
84
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
85
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
86
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
87
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
88
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
89
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
90
+ 'parent_item_colon' => ''
91
+ );
92
+ $options = array(
93
+ 'labels' => $labels,
94
+ 'public' => false,
95
+ 'publicly_queryable' => false,
96
+ 'exclude_from_search' => true,
97
+ 'show_ui' => true,
98
+ 'query_var' => true,
99
+ 'rewrite' => true,
100
+ 'capability_type' => 'post',
101
+ 'hierarchical' => false,
102
+ 'menu_position' => null,
103
+ 'supports' => array('title','editor','revisions','thumbnail','author')
104
+ );
105
+ register_post_type('content_block',$options);
106
+ }
107
+
108
+ // Add custom styles to admin screen and menu
109
+ add_action('admin_head', 'content_block_header');
110
+
111
+ function content_block_header() {
112
+ global $post_type; ?>
113
+ <style type="text/css">
114
+ <!--
115
+ <?php if (($post_type == 'content_block')) : ?>
116
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important;}
117
+ #minor-publishing-actions { display:none; /* Hide the Save Draft and Preview buttons */}
118
+ <?php endif; ?>
119
+ #adminmenu #menu-posts-content_block div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
120
+ #adminmenu #menu-posts-content_block:hover div.wp-menu-image,#adminmenu #menu-posts-content_block.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
121
+ -->
122
+ </style>
123
+ <?php
124
+ }
125
+
126
+ add_filter('post_updated_messages', 'content_block_messages');
127
+
128
+ function content_block_messages( $messages ) {
129
+ $messages['content_block'] = array(
130
+ 0 => '',
131
+ 1 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
132
+ 2 => __('Custom field updated.', 'custom-post-widget'),
133
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
134
+ 4 => __('Content Block updated.', 'custom-post-widget'),
135
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
136
+ 6 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block published. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block published.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
137
+ 7 => __('Block saved.', 'custom-post-widget'),
138
+ 8 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block submitted. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block submitted.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
139
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>.', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( 'widgets.php' ) ),
140
+ 10 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block draft updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block draft updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
141
+ );
142
+ return $messages;
143
+ }
144
+
145
+ // Add the ability to display the content block in a reqular post using a shortcode
146
+ function custom_post_widget_shortcode($atts) {
147
+ extract(shortcode_atts(array(
148
+ 'id' => '',
149
+ ), $atts));
150
+
151
+ $content = "";
152
+
153
+ if($id != "")
154
+ {
155
+ $args = array(
156
+ 'post__in' => array($id),
157
+ 'post_type' => 'content_block',
158
+ );
159
+
160
+ $content_post = get_posts($args);
161
+
162
+ foreach( $content_post as $post ) :
163
+ $content .= apply_filters('the_content', $post->post_content);
164
+ endforeach;
165
+ }
166
+
167
+ return $content;
168
+ }
169
+
170
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
171
+
172
+ // Add button above editor
173
+ function add_content_block_icon($initcontext) {
174
+ return $initcontext.
175
+ '<a id="add_content_block" style="text-decoration:none;" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php?type=add_content_block_popup&amp;TB_inline=true&amp;inlineId=content_block_form">
176
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
177
+ </a>';
178
+ }
179
+
180
+ add_filter('media_buttons_context', 'add_content_block_icon');
181
+
182
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
183
+
184
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
185
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
186
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
187
+ add_action('admin_footer', 'add_content_block_popup');
188
+ }
189
+
190
+ ?>
tags/1.8.4/trunk/readme.txt ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.2
8
+ Stable tag: 1.8.4
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
20
+
21
+ This plugin creates a 'content_block' custom post type. You can choose to either display the title on the page or use it to describe the contents and widget position of the content block. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added. You can also see the little icon above the WYSIWYG editor that allows you to insert the content block using the shortcode.
30
+ 2. The widget has a select box to choose the content block. Click on the 'Edit Content Block' link to edit the selected Content Block custom post.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+ = 1.6 =
98
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
99
+
100
+ = 1.7 =
101
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
102
+
103
+ = 1.8 =
104
+ Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
105
+
106
+ = 1.8.2 =
107
+ Updated German translation and various bugfixes.
108
+
109
+ = 1.8.3 -> rolled-back because of some reported issues with social media icons being added to the widget areas =
110
+ The widget now emulates the $post loop. This means you can now make use of WordPress functionality such as inserting a [gallery]. Thanks to Jari Pennanen for providing the code.
111
+
112
+ = 1.8.4 =
113
+ Added edit content block link to the widget editor and changed the 'view content block' message to include a 'manage widgets' link. The 'Draft' and 'Preview' buttons are now hidden via CSS, hopefully this will soon be default WordPress behaviour (see related ticket: http://core.trac.wordpress.org/ticket/18956).
114
+ Thanks to Julian Gardner-Hobbs (http://www.hobwebs.com/) for requesting this functionality.
115
+
116
+ == Upgrade Notice ==
117
+
118
+ = 1.8 =
119
+ I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
120
+
121
+
tags/1.8.4/trunk/screenshot-1.png ADDED
Binary file
tags/1.8.4/trunk/screenshot-2.png ADDED
Binary file
tags/1.8.5/custom-post-widget.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.8.5
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.8.5 Plugin repository fix.
12
+
13
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ // Set constant path to the custom-post-widget plugin directory.
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ // Launch the plugin.
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ // Load the required files needed for the plugin to run in the proper order and add needed functions to the required hooks.
37
+ function custom_post_widget_plugin_init() {
38
+ // Load the translation of the plugin.
39
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
40
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
41
+ }
42
+
43
+ // Loads the widgets packaged with the plugin.
44
+ function custom_post_widget_load_widgets() {
45
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
46
+ register_widget( 'custom_post_widget' );
47
+ }
48
+
49
+ ?>
tags/1.8.5/images/contentblock-13.png ADDED
Binary file
tags/1.8.5/images/contentblock-32.png ADDED
Binary file
tags/1.8.5/images/contentblock.png ADDED
Binary file
tags/1.8.5/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.8.5/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.8.5/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.8.5/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.8.5/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.8.5/popup.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // Action target that displays the popup to insert a content block to a post/page
2
+
3
+ function add_content_block_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+ var win = window.dialogArguments || opener || parent || top;
13
+ win.send_to_editor("[content_block id=" + content_id + "]");
14
+ }
15
+ </script>
16
+
17
+ <div id="content_block_form" style="display:none;">
18
+ <div class="wrap">
19
+ <div>
20
+ <div style="padding:15px 15px 0 15px;">
21
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;">
22
+ <?php _e("Insert Content Block", 'custom-post-widget'); ?>
23
+ </h3>
24
+ <span>
25
+ <?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?>
26
+ </span>
27
+ </div>
28
+ <div style="padding:15px 15px 0 15px;">
29
+ <select id="add_content_block_id">
30
+ <option value="">
31
+ <?php _e("Select a Content Block", 'custom-post-widget'); ?>
32
+ </option>
33
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
34
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
35
+ $currentID = get_the_ID();
36
+ if($currentID == $custom_post_id)
37
+ $extra = 'selected' and
38
+ $widgetExtraTitle = get_the_title();
39
+ else
40
+ $extra = '';
41
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
42
+ endwhile; else:
43
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
44
+ endif; ?>
45
+ </select>
46
+ <br />
47
+ <div style="padding:15px;">
48
+ <input type="button" class="button-primary" value="<?php _e("Insert Content Block", 'custom-post-widget') ?>" onclick="InsertContentBlockForm();"/>
49
+ &nbsp;&nbsp;&nbsp; <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;">
50
+ <?php _e("Cancel", 'custom-post-widget'); ?>
51
+ </a>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <?php } ?>
tags/1.8.5/post-widget.php ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget {
5
+ function custom_post_widget() {
6
+ $widget_ops = array('description' => __('Displays custom post content in a widget', 'custom-post-widget'));
7
+ $this->WP_Widget('custom_post_widget', __('Content Block', 'custom-post-widget'), $widget_ops);
8
+ }
9
+
10
+ function form($instance) {
11
+ $custom_post_id = esc_attr($instance['custom_post_id']);
12
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true; ?>
13
+
14
+ <p>
15
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', 'custom-post-widget') ?>
16
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
17
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
18
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
19
+ $currentID = get_the_ID();
20
+ if($currentID == $custom_post_id)
21
+ $extra = 'selected' and
22
+ $widgetExtraTitle = get_the_title();
23
+ else
24
+ $extra = '';
25
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
26
+ endwhile; else:
27
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
28
+ endif; ?>
29
+ </select>
30
+ </label>
31
+ </p>
32
+
33
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
34
+
35
+ <p>
36
+ <?php
37
+ echo '<a href="post.php?post=' . $currentID . '&action=edit">Edit Content Block</a>' ;
38
+ ?>
39
+ </p>
40
+
41
+ <?php wp_reset_query(); ?>
42
+
43
+ <p>
44
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
45
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', 'custom-post-widget') ?></label>
46
+ </p> <?php
47
+ }
48
+
49
+ function update($new_instance, $old_instance) {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+ return $instance;
54
+ }
55
+
56
+ function widget($args, $instance) {
57
+ extract($args);
58
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
59
+ // Variables from the widget settings.
60
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
61
+ $content_post = get_post($custom_post_id);
62
+ $content = $content_post->post_content;
63
+ $content = apply_filters('the_content', $content);
64
+ echo $before_widget;
65
+ if ( $show_custom_post_title ) {
66
+ echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
67
+ }
68
+ echo do_shortcode($content); // This is where the actual content of the custom post is being displayed
69
+ echo $after_widget;
70
+ }
71
+
72
+ }
73
+
74
+ // Create the Content Block custom post type
75
+ add_action('init', 'my_content_block_post_type_init');
76
+
77
+ function my_content_block_post_type_init() {
78
+ $labels = array(
79
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
80
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
81
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
82
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
83
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
84
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
85
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
86
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
87
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
88
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
89
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
90
+ 'parent_item_colon' => ''
91
+ );
92
+ $options = array(
93
+ 'labels' => $labels,
94
+ 'public' => false,
95
+ 'publicly_queryable' => false,
96
+ 'exclude_from_search' => true,
97
+ 'show_ui' => true,
98
+ 'query_var' => true,
99
+ 'rewrite' => true,
100
+ 'capability_type' => 'post',
101
+ 'hierarchical' => false,
102
+ 'menu_position' => null,
103
+ 'supports' => array('title','editor','revisions','thumbnail','author')
104
+ );
105
+ register_post_type('content_block',$options);
106
+ }
107
+
108
+ // Add custom styles to admin screen and menu
109
+ add_action('admin_head', 'content_block_header');
110
+
111
+ function content_block_header() {
112
+ global $post_type; ?>
113
+ <style type="text/css">
114
+ <!--
115
+ <?php if (($post_type == 'content_block')) : ?>
116
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important;}
117
+ #minor-publishing-actions { display:none; /* Hide the Save Draft and Preview buttons */}
118
+ <?php endif; ?>
119
+ #adminmenu #menu-posts-content_block div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
120
+ #adminmenu #menu-posts-content_block:hover div.wp-menu-image,#adminmenu #menu-posts-content_block.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
121
+ -->
122
+ </style>
123
+ <?php
124
+ }
125
+
126
+ add_filter('post_updated_messages', 'content_block_messages');
127
+
128
+ function content_block_messages( $messages ) {
129
+ $messages['content_block'] = array(
130
+ 0 => '',
131
+ 1 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
132
+ 2 => __('Custom field updated.', 'custom-post-widget'),
133
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
134
+ 4 => __('Content Block updated.', 'custom-post-widget'),
135
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
136
+ 6 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block published. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block published.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
137
+ 7 => __('Block saved.', 'custom-post-widget'),
138
+ 8 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block submitted. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block submitted.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
139
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>.', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( 'widgets.php' ) ),
140
+ 10 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block draft updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block draft updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
141
+ );
142
+ return $messages;
143
+ }
144
+
145
+ // Add the ability to display the content block in a reqular post using a shortcode
146
+ function custom_post_widget_shortcode($atts) {
147
+ extract(shortcode_atts(array(
148
+ 'id' => '',
149
+ ), $atts));
150
+
151
+ $content = "";
152
+
153
+ if($id != "")
154
+ {
155
+ $args = array(
156
+ 'post__in' => array($id),
157
+ 'post_type' => 'content_block',
158
+ );
159
+
160
+ $content_post = get_posts($args);
161
+
162
+ foreach( $content_post as $post ) :
163
+ $content .= apply_filters('the_content', $post->post_content);
164
+ endforeach;
165
+ }
166
+
167
+ return $content;
168
+ }
169
+
170
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
171
+
172
+ // Add button above editor
173
+ function add_content_block_icon($initcontext) {
174
+ return $initcontext.
175
+ '<a id="add_content_block" style="text-decoration:none;" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php?type=add_content_block_popup&amp;TB_inline=true&amp;inlineId=content_block_form">
176
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
177
+ </a>';
178
+ }
179
+
180
+ add_filter('media_buttons_context', 'add_content_block_icon');
181
+
182
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
183
+
184
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
185
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
186
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
187
+ add_action('admin_footer', 'add_content_block_popup');
188
+ }
189
+
190
+ ?>
tags/1.8.5/readme.txt ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.3
8
+ Stable tag: 1.8.5
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
20
+
21
+ This plugin creates a 'content_block' custom post type. You can choose to either display the title on the page or use it to describe the contents and widget position of the content block. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added. You can also see the little icon above the WYSIWYG editor that allows you to insert the content block using the shortcode.
30
+ 2. The widget has a select box to choose the content block. Click on the 'Edit Content Block' link to edit the selected Content Block custom post.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+ = 1.6 =
98
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
99
+
100
+ = 1.7 =
101
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
102
+
103
+ = 1.8 =
104
+ Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
105
+
106
+ = 1.8.2 =
107
+ Updated German translation and various bugfixes.
108
+
109
+ = 1.8.3 -> rolled-back because of some reported issues with social media icons being added to the widget areas =
110
+ The widget now emulates the $post loop. This means you can now make use of WordPress functionality such as inserting a [gallery]. Thanks to Jari Pennanen for providing the code.
111
+
112
+ = 1.8.4 =
113
+ Added edit content block link to the widget editor and changed the 'view content block' message to include a 'manage widgets' link. The 'Draft' and 'Preview' buttons are now hidden via CSS, hopefully this will soon be default WordPress behaviour (see related ticket: http://core.trac.wordpress.org/ticket/18956).
114
+ Thanks to Julian Gardner-Hobbs (http://www.hobwebs.com/) for requesting this functionality.
115
+
116
+ = 1.8.5 =
117
+ This release is to fix an issue with the WordPress plugin repository.
118
+
119
+
120
+ == Upgrade Notice ==
121
+
122
+ = 1.8 =
123
+ I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
124
+
125
+
tags/1.8.5/screenshot-1.png ADDED
Binary file
tags/1.8.5/screenshot-2.png ADDED
Binary file
tags/1.8.6/custom-post-widget.php ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.8.6
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.8.6 Minor bugfix.
12
+
13
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ // Set constant path to the custom-post-widget plugin directory.
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ // Launch the plugin.
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ // Load the required files needed for the plugin to run in the proper order and add needed functions to the required hooks.
37
+ function custom_post_widget_plugin_init() {
38
+ // Load the translation of the plugin.
39
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
40
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
41
+ }
42
+
43
+ // Loads the widgets packaged with the plugin.
44
+ function custom_post_widget_load_widgets() {
45
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
46
+ register_widget( 'custom_post_widget' );
47
+ }
48
+
49
+ ?>
tags/1.8.6/images/contentblock-13.png ADDED
Binary file
tags/1.8.6/images/contentblock-32.png ADDED
Binary file
tags/1.8.6/images/contentblock.png ADDED
Binary file
tags/1.8.6/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.8.6/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.8.6/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.8.6/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.8.6/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.8.6/popup.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // Action target that displays the popup to insert a content block to a post/page
2
+
3
+ function add_content_block_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+ var win = window.dialogArguments || opener || parent || top;
13
+ win.send_to_editor("[content_block id=" + content_id + "]");
14
+ }
15
+ </script>
16
+
17
+ <div id="content_block_form" style="display:none;">
18
+ <div class="wrap">
19
+ <div>
20
+ <div style="padding:15px 15px 0 15px;">
21
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;">
22
+ <?php _e("Insert Content Block", 'custom-post-widget'); ?>
23
+ </h3>
24
+ <span>
25
+ <?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?>
26
+ </span>
27
+ </div>
28
+ <div style="padding:15px 15px 0 15px;">
29
+ <select id="add_content_block_id">
30
+ <option value="">
31
+ <?php _e("Select a Content Block", 'custom-post-widget'); ?>
32
+ </option>
33
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
34
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
35
+ $currentID = get_the_ID();
36
+ if($currentID == $custom_post_id)
37
+ $extra = 'selected' and
38
+ $widgetExtraTitle = get_the_title();
39
+ else
40
+ $extra = '';
41
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
42
+ endwhile; else:
43
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
44
+ endif; ?>
45
+ </select>
46
+ <br />
47
+ <div style="padding:15px;">
48
+ <input type="button" class="button-primary" value="<?php _e("Insert Content Block", 'custom-post-widget') ?>" onclick="InsertContentBlockForm();"/>
49
+ &nbsp;&nbsp;&nbsp; <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;">
50
+ <?php _e("Cancel", 'custom-post-widget'); ?>
51
+ </a>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <?php } ?>
tags/1.8.6/post-widget.php ADDED
@@ -0,0 +1,190 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget {
5
+ function custom_post_widget() {
6
+ $widget_ops = array('description' => __('Displays custom post content in a widget', 'custom-post-widget'));
7
+ $this->WP_Widget('custom_post_widget', __('Content Block', 'custom-post-widget'), $widget_ops);
8
+ }
9
+
10
+ function form($instance) {
11
+ $custom_post_id = esc_attr($instance['custom_post_id']);
12
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true; ?>
13
+
14
+ <p>
15
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', 'custom-post-widget') ?>
16
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
17
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
18
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
19
+ $currentID = get_the_ID();
20
+ if($currentID == $custom_post_id)
21
+ $extra = 'selected' and
22
+ $widgetExtraTitle = get_the_title();
23
+ else
24
+ $extra = '';
25
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
26
+ endwhile; else:
27
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
28
+ endif; ?>
29
+ </select>
30
+ </label>
31
+ </p>
32
+
33
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
34
+
35
+ <p>
36
+ <?php
37
+ echo '<a href="post.php?post=' . $custom_post_id . '&action=edit">Edit Content Block</a>' ;
38
+ ?>
39
+ </p>
40
+
41
+ <?php wp_reset_query(); ?>
42
+
43
+ <p>
44
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
45
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', 'custom-post-widget') ?></label>
46
+ </p> <?php
47
+ }
48
+
49
+ function update($new_instance, $old_instance) {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+ return $instance;
54
+ }
55
+
56
+ function widget($args, $instance) {
57
+ extract($args);
58
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
59
+ // Variables from the widget settings.
60
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
61
+ $content_post = get_post($custom_post_id);
62
+ $content = $content_post->post_content;
63
+ $content = apply_filters('the_content', $content);
64
+ echo $before_widget;
65
+ if ( $show_custom_post_title ) {
66
+ echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
67
+ }
68
+ echo do_shortcode($content); // This is where the actual content of the custom post is being displayed
69
+ echo $after_widget;
70
+ }
71
+
72
+ }
73
+
74
+ // Create the Content Block custom post type
75
+ add_action('init', 'my_content_block_post_type_init');
76
+
77
+ function my_content_block_post_type_init() {
78
+ $labels = array(
79
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
80
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
81
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
82
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
83
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
84
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
85
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
86
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
87
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
88
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
89
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
90
+ 'parent_item_colon' => ''
91
+ );
92
+ $options = array(
93
+ 'labels' => $labels,
94
+ 'public' => false,
95
+ 'publicly_queryable' => false,
96
+ 'exclude_from_search' => true,
97
+ 'show_ui' => true,
98
+ 'query_var' => true,
99
+ 'rewrite' => true,
100
+ 'capability_type' => 'post',
101
+ 'hierarchical' => false,
102
+ 'menu_position' => null,
103
+ 'supports' => array('title','editor','revisions','thumbnail','author')
104
+ );
105
+ register_post_type('content_block',$options);
106
+ }
107
+
108
+ // Add custom styles to admin screen and menu
109
+ add_action('admin_head', 'content_block_header');
110
+
111
+ function content_block_header() {
112
+ global $post_type; ?>
113
+ <style type="text/css">
114
+ <!--
115
+ <?php if (($post_type == 'content_block')) : ?>
116
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important;}
117
+ #minor-publishing-actions { display:none; /* Hide the Save Draft and Preview buttons */}
118
+ <?php endif; ?>
119
+ #adminmenu #menu-posts-content_block div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
120
+ #adminmenu #menu-posts-content_block:hover div.wp-menu-image,#adminmenu #menu-posts-content_block.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
121
+ -->
122
+ </style>
123
+ <?php
124
+ }
125
+
126
+ add_filter('post_updated_messages', 'content_block_messages');
127
+
128
+ function content_block_messages( $messages ) {
129
+ $messages['content_block'] = array(
130
+ 0 => '',
131
+ 1 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
132
+ 2 => __('Custom field updated.', 'custom-post-widget'),
133
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
134
+ 4 => __('Content Block updated.', 'custom-post-widget'),
135
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
136
+ 6 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block published. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block published.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
137
+ 7 => __('Block saved.', 'custom-post-widget'),
138
+ 8 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block submitted. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block submitted.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
139
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>.', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( 'widgets.php' ) ),
140
+ 10 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block draft updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block draft updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
141
+ );
142
+ return $messages;
143
+ }
144
+
145
+ // Add the ability to display the content block in a reqular post using a shortcode
146
+ function custom_post_widget_shortcode($atts) {
147
+ extract(shortcode_atts(array(
148
+ 'id' => '',
149
+ ), $atts));
150
+
151
+ $content = "";
152
+
153
+ if($id != "")
154
+ {
155
+ $args = array(
156
+ 'post__in' => array($id),
157
+ 'post_type' => 'content_block',
158
+ );
159
+
160
+ $content_post = get_posts($args);
161
+
162
+ foreach( $content_post as $post ) :
163
+ $content .= apply_filters('the_content', $post->post_content);
164
+ endforeach;
165
+ }
166
+
167
+ return $content;
168
+ }
169
+
170
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
171
+
172
+ // Add button above editor
173
+ function add_content_block_icon($initcontext) {
174
+ return $initcontext.
175
+ '<a id="add_content_block" style="text-decoration:none;" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php?type=add_content_block_popup&amp;TB_inline=true&amp;inlineId=content_block_form">
176
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
177
+ </a>';
178
+ }
179
+
180
+ add_filter('media_buttons_context', 'add_content_block_icon');
181
+
182
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
183
+
184
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
185
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
186
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
187
+ add_action('admin_footer', 'add_content_block_popup');
188
+ }
189
+
190
+ ?>
tags/1.8.6/readme.txt ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.3
8
+ Stable tag: 1.8.6
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
20
+
21
+ This plugin creates a 'content_block' custom post type. You can choose to either display the title on the page or use it to describe the contents and widget position of the content block. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added. You can also see the little icon above the WYSIWYG editor that allows you to insert the content block using the shortcode.
30
+ 2. The widget has a select box to choose the content block. Click on the 'Edit Content Block' link to edit the selected Content Block custom post.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+ = 1.6 =
98
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
99
+
100
+ = 1.7 =
101
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
102
+
103
+ = 1.8 =
104
+ Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
105
+
106
+ = 1.8.2 =
107
+ Updated German translation and various bugfixes.
108
+
109
+ = 1.8.3 -> rolled-back because of some reported issues with social media icons being added to the widget areas =
110
+ The widget now emulates the $post loop. This means you can now make use of WordPress functionality such as inserting a [gallery]. Thanks to Jari Pennanen for providing the code.
111
+
112
+ = 1.8.4 =
113
+ Added edit content block link to the widget editor and changed the 'view content block' message to include a 'manage widgets' link. The 'Draft' and 'Preview' buttons are now hidden via CSS, hopefully this will soon be default WordPress behaviour (see related ticket: http://core.trac.wordpress.org/ticket/18956).
114
+ Thanks to Julian Gardner-Hobbs (http://www.hobwebs.com/) for requesting this functionality.
115
+
116
+ = 1.8.5 =
117
+ This release is to fix an issue with the WordPress plugin repository.
118
+
119
+ = 1.8.6 =
120
+ Minor bugfix for edit link in widget.
121
+
122
+ == Upgrade Notice ==
123
+
124
+ = 1.8 =
125
+ I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
126
+
127
+
tags/1.8.6/screenshot-1.png ADDED
Binary file
tags/1.8.6/screenshot-2.png ADDED
Binary file
tags/1.8/custom-post-widget.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.6
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.6 of the Custom Post Widget plugin now uses the much more efficient
12
+ get_post instead of query_post to display the widget content.
13
+
14
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
15
+
16
+ This program is free software; you can redistribute it and/or modify
17
+ it under the terms of the GNU General Public License, version 2, as
18
+ published by the Free Software Foundation.
19
+
20
+ This program is distributed in the hope that it will be useful,
21
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
22
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23
+ GNU General Public License for more details.
24
+
25
+ You should have received a copy of the GNU General Public License
26
+ along with this program; if not, write to the Free Software
27
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28
+ */
29
+
30
+ /* Set constant path to the custom-post-widget plugin directory. */
31
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
32
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
33
+
34
+ /* Launch the plugin. */
35
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
36
+
37
+ /**
38
+ Initialize the plugin. This function loads the required files needed for the plugin
39
+ to run in the proper order and adds needed functions to the required hooks.
40
+ */
41
+ function custom_post_widget_plugin_init() {
42
+
43
+ /* Load the translation of the plugin. */
44
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
45
+
46
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
47
+ }
48
+
49
+ /**
50
+ Loads the widgets packaged with the plugin.
51
+ */
52
+ function custom_post_widget_load_widgets() {
53
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
54
+ register_widget( 'custom_post_widget' );
55
+ }
56
+
57
+ ?>
tags/1.8/images/contentblock-13.png ADDED
Binary file
tags/1.8/images/contentblock-32.png ADDED
Binary file
tags/1.8/images/contentblock.png ADDED
Binary file
tags/1.8/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.8/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:6
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:7
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:15
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: popup.php:43
38
+ #: post-widget.php:27
39
+ #@ custom-post-widget
40
+ msgid "No content blocks available"
41
+ msgstr "Keine Inhaltsblöcke verfügbar"
42
+
43
+ #: post-widget.php:45
44
+ #@ custom-post-widget
45
+ msgid "Show Post Title"
46
+ msgstr "Beitragstitel anzeigen"
47
+
48
+ #: post-widget.php:58
49
+ #@ custom-post-widget
50
+ msgid "Find"
51
+ msgstr "Finden"
52
+
53
+ #: post-widget.php:79
54
+ #@ custom-post-widget
55
+ msgctxt "post type general name"
56
+ msgid "Content Blocks"
57
+ msgstr "Inhaltsblöcke"
58
+
59
+ #: post-widget.php:80
60
+ #@ custom-post-widget
61
+ msgctxt "post type singular name"
62
+ msgid "Content Block"
63
+ msgstr "Inhaltsblock"
64
+
65
+ #: post-widget.php:82
66
+ #@ custom-post-widget
67
+ msgctxt "block"
68
+ msgid "Add Content Block"
69
+ msgstr "Inhaltsblock erstellen"
70
+
71
+ #: post-widget.php:83
72
+ #@ custom-post-widget
73
+ msgid "Add New Content Block"
74
+ msgstr "Neuen Inhaltsblock erstellen"
75
+
76
+ #: post-widget.php:84
77
+ #@ custom-post-widget
78
+ msgid "Edit Content Block"
79
+ msgstr "Inhaltsblock bearbeiten"
80
+
81
+ #: post-widget.php:85
82
+ #@ custom-post-widget
83
+ msgid "New Content Block"
84
+ msgstr "Neuer Inhaltsblock"
85
+
86
+ #: post-widget.php:86
87
+ #@ custom-post-widget
88
+ msgid "View Content Block"
89
+ msgstr "Inhaltsblock ansehen"
90
+
91
+ #: post-widget.php:87
92
+ #@ custom-post-widget
93
+ msgid "Search Content Blocks"
94
+ msgstr "Inhaltsblöcke durchsuchen"
95
+
96
+ #: post-widget.php:88
97
+ #@ custom-post-widget
98
+ msgid "No Content Blocks Found"
99
+ msgstr "Keine Inhaltsblöcke gefunden"
100
+
101
+ #: post-widget.php:89
102
+ #@ custom-post-widget
103
+ msgid "No Content Blocks found in Trash"
104
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
105
+
106
+ #: post-widget.php:132
107
+ #@ custom-post-widget
108
+ msgid "Custom field updated."
109
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
110
+
111
+ #: post-widget.php:133
112
+ #@ custom-post-widget
113
+ msgid "Custom field deleted."
114
+ msgstr "Benutzerdefiniertes Feld gelöscht."
115
+
116
+ #: post-widget.php:131
117
+ #: post-widget.php:134
118
+ #@ custom-post-widget
119
+ msgid "Content Block updated."
120
+ msgstr "Inhaltsblock aktualisiert."
121
+
122
+ #: post-widget.php:135
123
+ #, php-format
124
+ #@ custom-post-widget
125
+ msgid "Content Block restored to revision from %s"
126
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
127
+
128
+ #: post-widget.php:137
129
+ #@ custom-post-widget
130
+ msgid "Block saved."
131
+ msgstr "Inhaltsblock gespeichert."
132
+
133
+ #: post-widget.php:139
134
+ #@ custom-post-widget
135
+ msgid "M j, Y @ G:i"
136
+ msgstr "j. M Y @ H:M"
137
+
138
+ #: post-widget.php:81
139
+ #@ custom-post-widget
140
+ msgctxt "post type plural name"
141
+ msgid "Content Blocks"
142
+ msgstr "Inhaltsblöcke"
143
+
144
+ #: popup.php:9
145
+ #@ custom-post-widget
146
+ msgid "Please select a Content Block"
147
+ msgstr "Bitte Inhaltsblock auswählen"
148
+
149
+ #: popup.php:22
150
+ #: popup.php:48
151
+ #@ custom-post-widget
152
+ msgid "Insert Content Block"
153
+ msgstr "Inhaltsblock einfügen"
154
+
155
+ #: popup.php:25
156
+ #@ custom-post-widget
157
+ msgid "Select a Content Block below to add it to your post or page."
158
+ msgstr "Inhaltsblock auswählen und diesen zum Beitrag hinzufügen"
159
+
160
+ #: popup.php:31
161
+ #@ custom-post-widget
162
+ msgid "Select a Content Block"
163
+ msgstr "Inhaltsblock auswählen"
164
+
165
+ #: popup.php:50
166
+ #@ custom-post-widget
167
+ msgid "Cancel"
168
+ msgstr "Abbrechen"
169
+
170
+ #: post-widget.php:131
171
+ #, php-format
172
+ #@ custom-post-widget
173
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
174
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Widgets bearbeiten</a>"
175
+
176
+ #: post-widget.php:136
177
+ #, php-format
178
+ #@ custom-post-widget
179
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
180
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Widgets bearbeiten</a>"
181
+
182
+ #: post-widget.php:136
183
+ #@ custom-post-widget
184
+ msgid "Content Block published."
185
+ msgstr "Inhaltsblock publiziert."
186
+
187
+ #: post-widget.php:138
188
+ #, php-format
189
+ #@ custom-post-widget
190
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
191
+ msgstr "Inhaltsblock gespeichert. <a href=\"%s\">Widgets bearbeiten</a>"
192
+
193
+ #: post-widget.php:138
194
+ #@ custom-post-widget
195
+ msgid "Content Block submitted."
196
+ msgstr "Inhaltsblock gespeichert."
197
+
198
+ #: post-widget.php:139
199
+ #, php-format
200
+ #@ custom-post-widget
201
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
202
+ msgstr "Inhaltsblock terminiert für: <strong>%1$s</strong>."
203
+
204
+ #: post-widget.php:140
205
+ #, php-format
206
+ #@ custom-post-widget
207
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
208
+ msgstr "Inhaltsblock-Entwurf aktualisiert. <a href=\"%s\">Widgets bearbeiten</a>"
209
+
210
+ #: post-widget.php:140
211
+ #@ custom-post-widget
212
+ msgid "Content Block draft updated."
213
+ msgstr "Inhaltsblock-Entwurf aktualisiert."
214
+
215
+ #: post-widget.php:175
216
+ #: post-widget.php:176
217
+ #@ custom-post-widget
218
+ msgid "Add Content Block"
219
+ msgstr "Inhaltsblock hinzufügen"
220
+
tags/1.8/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.8/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <johan@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een tekstblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Tekstblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven tekstblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen tekstblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Tekstblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Tekstblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Tekstblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw tekstblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Tekstblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Tekstblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Tekstblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Tekstblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Tekstblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Tekstblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Tekstblok Bijgewerkt. <a href=\"%s\">Toon Tekstblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Tekstblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Tekstblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Tekstblok gepublicieerd. <a href=\"%s\">Bekijk Tekstblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Tekstblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Tekstblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Tekstblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Tekstblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Tekstblokken"
170
+
tags/1.8/languages/custom-post-widget-ru_RU.mo ADDED
Binary file
tags/1.8/languages/custom-post-widget-ru_RU.po ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-02-23 13:16+0200\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Виталий Капля <vitaliy.kaplya@dasayt.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Poedit-SearchPath-1: ..\n"
21
+
22
+ # @ custom-post-widget
23
+ #: ../popup.php:9
24
+ msgid "Please select a Content Block"
25
+ msgstr "Выберете блок"
26
+
27
+ # @ custom-post-widget
28
+ #: ../popup.php:22
29
+ #: ../popup.php:48
30
+ msgid "Insert Content Block"
31
+ msgstr "Вставить блок"
32
+
33
+ #: ../popup.php:25
34
+ msgid "Select a Content Block below to add it to your post or page."
35
+ msgstr "Выберете блок перед тем, как добавить его на страницу."
36
+
37
+ # @ custom-post-widget
38
+ #: ../popup.php:31
39
+ msgid "Select a Content Block"
40
+ msgstr "Выберите блок"
41
+
42
+ # @ custom-post-widget
43
+ #: ../popup.php:43
44
+ #: ../post-widget.php:27
45
+ msgid "No content blocks available"
46
+ msgstr "Блоки не найдены"
47
+
48
+ #: ../popup.php:50
49
+ msgid "Cancel"
50
+ msgstr "Отмена"
51
+
52
+ # @ custom-post-widget
53
+ #: ../post-widget.php:6
54
+ msgid "Displays custom post content in a widget"
55
+ msgstr "Отображение пользовательского контента в виджете"
56
+
57
+ # @ custom-post-widget
58
+ #: ../post-widget.php:7
59
+ msgid "Content Block"
60
+ msgstr "Блоки"
61
+
62
+ # @ custom-post-widget
63
+ #: ../post-widget.php:15
64
+ msgid "Content Block to Display:"
65
+ msgstr "Отображать следующий блок:"
66
+
67
+ # @ custom-post-widget
68
+ #: ../post-widget.php:45
69
+ msgid "Show Post Title"
70
+ msgstr "Выводить заголовок"
71
+
72
+ # @ custom-post-widget
73
+ #: ../post-widget.php:58
74
+ msgid "Find"
75
+ msgstr "Найти"
76
+
77
+ # @ custom-post-widget
78
+ #: ../post-widget.php:79
79
+ msgctxt "post type general name"
80
+ msgid "Content Blocks"
81
+ msgstr "Блоки"
82
+
83
+ # @ custom-post-widget
84
+ #: ../post-widget.php:80
85
+ msgctxt "post type singular name"
86
+ msgid "Content Block"
87
+ msgstr "Блок"
88
+
89
+ # @ custom-post-widget
90
+ #: ../post-widget.php:81
91
+ msgctxt "post type plural name"
92
+ msgid "Content Blocks"
93
+ msgstr "Блоки"
94
+
95
+ # @ custom-post-widget
96
+ #: ../post-widget.php:82
97
+ msgctxt "block"
98
+ msgid "Add Content Block"
99
+ msgstr "Добавить блок"
100
+
101
+ # @ custom-post-widget
102
+ #: ../post-widget.php:83
103
+ msgid "Add New Content Block"
104
+ msgstr "Добавить новы блок"
105
+
106
+ # @ custom-post-widget
107
+ #: ../post-widget.php:84
108
+ msgid "Edit Content Block"
109
+ msgstr "Редактировать блок"
110
+
111
+ # @ custom-post-widget
112
+ #: ../post-widget.php:85
113
+ msgid "New Content Block"
114
+ msgstr "Новый блок"
115
+
116
+ # @ custom-post-widget
117
+ #: ../post-widget.php:86
118
+ msgid "View Content Block"
119
+ msgstr "Открыть блок"
120
+
121
+ # @ custom-post-widget
122
+ #: ../post-widget.php:87
123
+ msgid "Search Content Blocks"
124
+ msgstr "Найти блок"
125
+
126
+ # @ custom-post-widget
127
+ #: ../post-widget.php:88
128
+ msgid "No Content Blocks Found"
129
+ msgstr "Блоки не найдены"
130
+
131
+ # @ custom-post-widget
132
+ #: ../post-widget.php:89
133
+ msgid "No Content Blocks found in Trash"
134
+ msgstr "В корзине пусто"
135
+
136
+ # @ custom-post-widget
137
+ #: ../post-widget.php:131
138
+ #, php-format
139
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
140
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
141
+
142
+ # @ custom-post-widget
143
+ #: ../post-widget.php:131
144
+ #: ../post-widget.php:134
145
+ msgid "Content Block updated."
146
+ msgstr "Блок обновлен."
147
+
148
+ # @ custom-post-widget
149
+ #: ../post-widget.php:132
150
+ msgid "Custom field updated."
151
+ msgstr "Поле обновлено."
152
+
153
+ # @ custom-post-widget
154
+ #: ../post-widget.php:133
155
+ msgid "Custom field deleted."
156
+ msgstr "Поле удалено"
157
+
158
+ # @ custom-post-widget
159
+ #: ../post-widget.php:135
160
+ #, php-format
161
+ msgid "Content Block restored to revision from %s"
162
+ msgstr "Блок востановлен с ревизии %s"
163
+
164
+ # @ custom-post-widget
165
+ #: ../post-widget.php:136
166
+ #, php-format
167
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
168
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджетами</a>"
169
+
170
+ # @ custom-post-widget
171
+ #: ../post-widget.php:136
172
+ msgid "Content Block published."
173
+ msgstr "Блок опубликован."
174
+
175
+ # @ custom-post-widget
176
+ #: ../post-widget.php:137
177
+ msgid "Block saved."
178
+ msgstr "Блок сохранен"
179
+
180
+ # @ custom-post-widget
181
+ #: ../post-widget.php:138
182
+ #, php-format
183
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
184
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджеатми</a>"
185
+
186
+ # @ custom-post-widget
187
+ #: ../post-widget.php:138
188
+ msgid "Content Block submitted."
189
+ msgstr "Блок опубликован."
190
+
191
+ # @ custom-post-widget
192
+ #: ../post-widget.php:139
193
+ #, php-format
194
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
195
+ msgstr "Блок запланирован на: <strong>%1$s</strong>."
196
+
197
+ # @ custom-post-widget
198
+ #: ../post-widget.php:139
199
+ msgid "M j, Y @ G:i"
200
+ msgstr "M j, Y @ G:i"
201
+
202
+ # @ custom-post-widget
203
+ #: ../post-widget.php:140
204
+ #, php-format
205
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
206
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
207
+
208
+ # @ custom-post-widget
209
+ #: ../post-widget.php:140
210
+ msgid "Content Block draft updated."
211
+ msgstr "Черновик блока обновлен."
212
+
213
+ # @ custom-post-widget
214
+ #: ../post-widget.php:175
215
+ #: ../post-widget.php:176
216
+ msgid "Add Content Block"
217
+ msgstr "Добавить блок"
218
+
tags/1.8/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.8/popup.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ //Action target that displays the popup to insert a content block to a post/page
3
+ function add_mce_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+
13
+ var win = window.dialogArguments || opener || parent || top;
14
+ win.send_to_editor("[content_block id=" + content_id + "]");
15
+ }
16
+ </script>
17
+
18
+ <div id="select_form" style="display:none;">
19
+ <div class="wrap">
20
+ <div>
21
+ <div style="padding:15px 15px 0 15px;">
22
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;"><?php _e("Insert Content Block", 'custom-post-widget'); ?></h3>
23
+ <span><?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?></span>
24
+ </div>
25
+ <div style="padding:15px 15px 0 15px;">
26
+ <select id="add_content_block_id">
27
+ <option value=""><?php _e("Select a Content Block", 'custom-post-widget'); ?></option>
28
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
29
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
30
+ $currentID = get_the_ID();
31
+ if($currentID == $custom_post_id)
32
+ $extra = 'selected' and
33
+ $widgetExtraTitle = get_the_title();
34
+ else
35
+ $extra = '';
36
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
37
+ endwhile; else:
38
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
39
+ endif;
40
+ ?>
41
+ </select>
42
+ <br/>
43
+ <div style="padding:15px;">
44
+ <input type="button" class="button-primary" value="Insert Content Block" onclick="InsertContentBlockForm();"/>&nbsp;&nbsp;&nbsp;
45
+ <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;"><?php _e("Cancel", 'custom-post-widget'); ?></a>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ <?php
51
+ }
tags/1.8/post-widget.php ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget
5
+ {
6
+ function custom_post_widget()
7
+ {
8
+ $widget_ops = array('description' => __('Displays custom post content in a widget', 'custom-post-widget'));
9
+ $this->WP_Widget('custom_post_widget', __('Content Block', 'custom-post-widget'), $widget_ops);
10
+ }
11
+
12
+ function form($instance)
13
+ {
14
+ $custom_post_id = esc_attr($instance['custom_post_id']);
15
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true;
16
+
17
+ ?>
18
+ <p>
19
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', 'custom-post-widget') ?>
20
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
21
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
22
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
23
+ $currentID = get_the_ID();
24
+ if($currentID == $custom_post_id)
25
+ $extra = 'selected' and
26
+ $widgetExtraTitle = get_the_title();
27
+ else
28
+ $extra = '';
29
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
30
+ endwhile; else:
31
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
32
+ endif;
33
+ ?>
34
+ </select>
35
+ </label>
36
+ </p>
37
+ <?php ?>
38
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
39
+ <?php wp_reset_query(); ?>
40
+ <p>
41
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
42
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', 'custom-post-widget') ?></label>
43
+ </p>
44
+
45
+ <?php
46
+ }
47
+
48
+ function update($new_instance, $old_instance)
49
+ {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+
54
+ return $instance;
55
+ }
56
+
57
+ function widget($args, $instance)
58
+ {
59
+ extract($args);
60
+
61
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
62
+
63
+ /* Variables from the widget settings. */
64
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
65
+
66
+ $content_post = get_post($custom_post_id);
67
+ $content = $content_post->post_content;
68
+ $content = apply_filters('the_content', $content);
69
+ $content = str_replace(']]>', ']]>', $content);
70
+
71
+ echo $before_widget;
72
+ if ( $show_custom_post_title )
73
+ {
74
+ echo $before_title . $content_post->post_title . $after_title; // This is the line that displays the title (only if show title is set)
75
+ }
76
+ echo $content; // This is where the actual content of the custom post is being displayed
77
+ echo $after_widget;
78
+
79
+ }
80
+ }
81
+
82
+ // Create the Content Block custom post type
83
+ add_action('init', 'my_content_block_post_type_init');
84
+
85
+ function my_content_block_post_type_init()
86
+ {
87
+ $labels = array(
88
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
89
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
90
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
91
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
92
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
93
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
94
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
95
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
96
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
97
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
98
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
99
+ 'parent_item_colon' => ''
100
+ );
101
+ $options = array(
102
+ 'labels' => $labels,
103
+ 'public' => false,
104
+ 'publicly_queryable' => false,
105
+ 'exclude_from_search' => true,
106
+ 'show_ui' => true,
107
+ 'query_var' => true,
108
+ 'rewrite' => true,
109
+ 'capability_type' => 'post',
110
+ 'hierarchical' => false,
111
+ 'menu_position' => null,
112
+ 'supports' => array('title','editor','revisions','thumbnail','author')
113
+ );
114
+ register_post_type('content_block',$options);
115
+ }
116
+
117
+
118
+ // Add custom styles to admin screen and menu
119
+ add_action('admin_head', 'content_block_header');
120
+
121
+ function content_block_header() {
122
+
123
+ global $post_type; ?>
124
+
125
+ <style type="text/css"><!--
126
+ <?php if (($post_type == 'content_block')) : ?>
127
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important; }
128
+ <?php endif; ?>
129
+ #adminmenu #menu-posts-contentblock div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
130
+ #adminmenu #menu-posts-contentblock:hover div.wp-menu-image,#adminmenu #menu-posts-contentblock.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
131
+ --></style><?php
132
+
133
+ }
134
+
135
+ add_filter('post_updated_messages', 'content_block_messages');
136
+
137
+ function content_block_messages( $messages ) {
138
+
139
+ $messages['content_block'] = array(
140
+ 0 => '',
141
+ 1 => sprintf( __('Content Block updated. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
142
+ 2 => __('Custom field updated.', 'custom-post-widget'),
143
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
144
+ 4 => __('Content Block updated.', 'custom-post-widget'),
145
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
146
+ 6 => sprintf( __('Content Block published. <a href="%s">View Content Block</a>', 'custom-post-widget'), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
147
+ 7 => __('Block saved.', 'custom-post-widget'),
148
+ 8 => sprintf( __('Content Block submitted. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
149
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview block</a>', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( get_permalink(isset($post->ID) ? $post->ID : null) ) ),
150
+ 10 => sprintf( __('Content Block draft updated. <a target="_blank" href="%s">Preview Content Block</a>', 'custom-post-widget'), esc_url( add_query_arg( 'preview', 'true', get_permalink(isset($post->ID) ? $post->ID : null) ) ) ),
151
+ );
152
+
153
+ return $messages;
154
+ }
155
+
156
+ // Add the ability to display the content block in a reqular post using a shortcode
157
+ function custom_post_widget_shortcode($atts) {
158
+ extract(shortcode_atts(array(
159
+ 'id' => '',
160
+ ), $atts));
161
+
162
+ $content = "";
163
+
164
+ if($id != "")
165
+ {
166
+ $args = array(
167
+ 'post__in' => array($id),
168
+ 'post_type' => 'content_block',
169
+ );
170
+
171
+ $content_post = get_posts($args);
172
+
173
+ foreach( $content_post as $post ) :
174
+ $content .= apply_filters('the_content', $post->post_content);
175
+ endforeach;
176
+ }
177
+
178
+ return $content;
179
+ }
180
+
181
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
182
+
183
+ // Add button above editor
184
+ function add_content_block_icon($initcontext) {
185
+ return $initcontext.
186
+ '<a id="add_content_block" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php#TB_inline?width=450&inlineId=select_form">
187
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
188
+ </a>';
189
+ }
190
+
191
+ add_filter('media_buttons_context', 'add_content_block_icon');
192
+
193
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
194
+
195
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
196
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
197
+
198
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
199
+ add_action('admin_footer', 'add_mce_popup');
200
+ }
201
+ ?>
tags/1.8/readme.txt ADDED
@@ -0,0 +1,108 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.1
8
+ Stable tag: 1.8
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
20
+
21
+ This plugin creates a 'content_block' custom post type. The title is never displayed, use this to describe the position of the widget on the page. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
26
+
27
+ == Screenshots ==
28
+
29
+ 1. After activating the plugin a new post type called 'Content Blocks' is added.
30
+ 2. The widget has a select box to choose the content block.
31
+
32
+ == Installation ==
33
+
34
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
35
+ 2. Then activate the plugin in the plugin panel.
36
+ You will see that a new custom post type has been added called Content Block.
37
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
38
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
39
+ 5. Select a Content Block from the drop-down list.
40
+ 6. Click save.
41
+
42
+ == Frequently Asked Questions ==
43
+
44
+ = Why can't I use the default text-widget? =
45
+
46
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
47
+
48
+ = How can I show the content bock on a specific page? =
49
+
50
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
51
+
52
+ = How can I display the featured image in the widget? =
53
+
54
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
55
+
56
+ `function InsertFeaturedImage($content) {
57
+ global $post;
58
+ $original_content = $content;
59
+ if (current_theme_supports('post-thumbnails')) {
60
+ if ('content_block' == get_post_type()) {
61
+ $content = the_post_thumbnail('medium');
62
+ $content .= $original_content;
63
+ }
64
+ }
65
+ return $content;
66
+ }
67
+ add_filter('the_content', 'InsertFeaturedImage');`
68
+
69
+
70
+ == Changelog ==
71
+
72
+ = 1.0 =
73
+ First release
74
+
75
+ = 1.1 =
76
+ Fixed screenshots for plugin directory
77
+
78
+ = 1.1.1 =
79
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
80
+
81
+ = 1.2 =
82
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
83
+
84
+ = 1.2.1 =
85
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
86
+
87
+ = 1.3 =
88
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
89
+
90
+ = 1.4 =
91
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
92
+
93
+ = 1.5 =
94
+ Thanks to Caspar Huebinger the plugin
95
+ now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
96
+
97
+ = 1.6 =
98
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
99
+
100
+ = 1.7 =
101
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
102
+
103
+ == Upgrade Notice ==
104
+
105
+ = 1.1.1 =
106
+ Now supports more than 10 custom posts in the select box. Note that after upgrading you might have to save the widget state before the correct posts are being displayed.
107
+
108
+
tags/1.8/screenshot-1.png ADDED
Binary file
tags/1.8/screenshot-2.png ADDED
Binary file
tags/1.9.2/custom-post-widget.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.9.2
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.9.2 Added Polish translation.
12
+
13
+ Copyright 2012 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ // Set constant path to the custom-post-widget plugin directory.
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ // Launch the plugin.
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ // Load the required files needed for the plugin to run in the proper order and add needed functions to the required hooks.
37
+ function custom_post_widget_plugin_init() {
38
+ // Load the translation of the plugin.
39
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
40
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
41
+ }
42
+
43
+ // Loads the widgets packaged with the plugin.
44
+ function custom_post_widget_load_widgets() {
45
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
46
+ register_widget( 'custom_post_widget' );
47
+ }
48
+ ?>
tags/1.9.2/images/contentblock-13.png ADDED
Binary file
tags/1.9.2/images/contentblock-32.png ADDED
Binary file
tags/1.9.2/images/contentblock.png ADDED
Binary file
tags/1.9.2/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.9.2/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.9.2/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.9.2/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.9.2/languages/custom-post-widget-pl_PL.mo ADDED
Binary file
tags/1.9.2/languages/custom-post-widget-pl_PL.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Kuba Es <poedit@webnova.pl>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
15
+ "X-Textdomain-Support: yes\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #@ custom-post-widget
19
+ #: post-widget.php:8
20
+ msgid "Displays custom post content in a widget"
21
+ msgstr "Wyświetla zawartość w widgecie"
22
+
23
+ #@ custom-post-widget
24
+ #: post-widget.php:9
25
+ msgid "Content Block"
26
+ msgstr "Blok Treści"
27
+
28
+ #@ custom-post-widget
29
+ #: post-widget.php:19
30
+ msgid "Content Block to Display:"
31
+ msgstr "Blok Treści do wyświetlenia"
32
+
33
+ #@ custom-post-widget
34
+ #: post-widget.php:31
35
+ msgid "No content blocks available"
36
+ msgstr "Nie utworzono Bloków Treści"
37
+
38
+ #@ custom-post-widget
39
+ #: post-widget.php:43
40
+ msgid "Show Post Title"
41
+ msgstr "Pokaż tytuł postu"
42
+
43
+ #@ custom-post-widget
44
+ #: post-widget.php:62
45
+ msgid "Find"
46
+ msgstr "Znajdź"
47
+
48
+ #@ custom-post-widget
49
+ #: post-widget.php:94
50
+ msgctxt "post type general name"
51
+ msgid "Content Blocks"
52
+ msgstr "Bloki Treści"
53
+
54
+ #@ custom-post-widget
55
+ #: post-widget.php:95
56
+ msgctxt "post type singular name"
57
+ msgid "Content Block"
58
+ msgstr "Blok Treści"
59
+
60
+ #@ custom-post-widget
61
+ #: post-widget.php:97
62
+ msgctxt "block"
63
+ msgid "Add Content Block"
64
+ msgstr "Dodaj Blok Treści"
65
+
66
+ #@ custom-post-widget
67
+ #: post-widget.php:98
68
+ msgid "Add New Content Block"
69
+ msgstr "Nowy Blok Treści"
70
+
71
+ #@ custom-post-widget
72
+ #: post-widget.php:99
73
+ msgid "Edit Content Block"
74
+ msgstr "Edytuj Blok Treści"
75
+
76
+ #@ custom-post-widget
77
+ #: post-widget.php:100
78
+ msgid "New Content Block"
79
+ msgstr "Nowy Blok Treści"
80
+
81
+ #@ custom-post-widget
82
+ #: post-widget.php:101
83
+ msgid "View Content Block"
84
+ msgstr "Zobacz Blok Treści"
85
+
86
+ #@ custom-post-widget
87
+ #: post-widget.php:102
88
+ msgid "Search Content Blocks"
89
+ msgstr "Szukaj Bloków Treśc"
90
+
91
+ #@ custom-post-widget
92
+ #: post-widget.php:103
93
+ msgid "No Content Blocks Found"
94
+ msgstr "Nie znaleziono Bloków Treści"
95
+
96
+ #@ custom-post-widget
97
+ #: post-widget.php:104
98
+ msgid "No Content Blocks found in Trash"
99
+ msgstr "Nie znaleziono Bloków Treści w archiwum"
100
+
101
+ #@ custom-post-widget
102
+ #: post-widget.php:129
103
+ #, php-format
104
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
105
+ msgstr "Blok Treści został zapisany. <a href=\"%s\">Zobacz</a>"
106
+
107
+ #@ custom-post-widget
108
+ #: post-widget.php:130
109
+ msgid "Custom field updated."
110
+ msgstr "Własne pola zostały zaktualizowane."
111
+
112
+ #@ custom-post-widget
113
+ #: post-widget.php:131
114
+ msgid "Custom field deleted."
115
+ msgstr "Własne pola zostały usunięte."
116
+
117
+ #@ custom-post-widget
118
+ #: post-widget.php:132
119
+ msgid "Content Block updated."
120
+ msgstr "Blok Treści zaktualizowany."
121
+
122
+ #@ custom-post-widget
123
+ #: post-widget.php:133
124
+ #, php-format
125
+ msgid "Content Block restored to revision from %s"
126
+ msgstr "Przywrócono Blok Treści do rewizji z %s"
127
+
128
+ #@ custom-post-widget
129
+ #: post-widget.php:134
130
+ #, php-format
131
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
132
+ msgstr "Blok Treści został opublikowany. <a href=\"%s\">Zobacz</a>"
133
+
134
+ #@ custom-post-widget
135
+ #: post-widget.php:135
136
+ msgid "Block saved."
137
+ msgstr "Blok zapisany."
138
+
139
+ #@ custom-post-widget
140
+ #: post-widget.php:136
141
+ #, php-format
142
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
143
+ msgstr "Blok Treści przesłany. <a target=\"_blank\" href=\"%s\">Podgląd Bloku</a>"
144
+
145
+ #@ custom-post-widget
146
+ #: post-widget.php:137
147
+ #, php-format
148
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
149
+ msgstr "Blok Treści zaplanowany na: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Podgląd Bloku</a>"
150
+
151
+ #@ custom-post-widget
152
+ #: post-widget.php:138
153
+ msgid "M j, Y @ G:i"
154
+ msgstr "j. M Y @ H:M"
155
+
156
+ #@ custom-post-widget
157
+ #: post-widget.php:139
158
+ #, php-format
159
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
160
+ msgstr "Szkic zapisany. <a target=\"_blank\" href=\"%s\">Podgląd Bloku</a>"
161
+
162
+ #@ custom-post-widget
163
+ #: post-widget.php:96
164
+ msgctxt "post type plural name"
165
+ msgid "Content Blocks"
166
+ msgstr "Bloki Treści"
167
+
tags/1.9.2/languages/custom-post-widget-ru_RU.mo ADDED
Binary file
tags/1.9.2/languages/custom-post-widget-ru_RU.po ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-02-23 13:16+0200\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Виталий Капля <vitaliy.kaplya@dasayt.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Poedit-SearchPath-1: ..\n"
21
+
22
+ # @ custom-post-widget
23
+ #: ../popup.php:9
24
+ msgid "Please select a Content Block"
25
+ msgstr "Выберете блок"
26
+
27
+ # @ custom-post-widget
28
+ #: ../popup.php:22
29
+ #: ../popup.php:48
30
+ msgid "Insert Content Block"
31
+ msgstr "Вставить блок"
32
+
33
+ #: ../popup.php:25
34
+ msgid "Select a Content Block below to add it to your post or page."
35
+ msgstr "Выберете блок перед тем, как добавить его на страницу."
36
+
37
+ # @ custom-post-widget
38
+ #: ../popup.php:31
39
+ msgid "Select a Content Block"
40
+ msgstr "Выберите блок"
41
+
42
+ # @ custom-post-widget
43
+ #: ../popup.php:43
44
+ #: ../post-widget.php:27
45
+ msgid "No content blocks available"
46
+ msgstr "Блоки не найдены"
47
+
48
+ #: ../popup.php:50
49
+ msgid "Cancel"
50
+ msgstr "Отмена"
51
+
52
+ # @ custom-post-widget
53
+ #: ../post-widget.php:6
54
+ msgid "Displays custom post content in a widget"
55
+ msgstr "Отображение пользовательского контента в виджете"
56
+
57
+ # @ custom-post-widget
58
+ #: ../post-widget.php:7
59
+ msgid "Content Block"
60
+ msgstr "Блоки"
61
+
62
+ # @ custom-post-widget
63
+ #: ../post-widget.php:15
64
+ msgid "Content Block to Display:"
65
+ msgstr "Отображать следующий блок:"
66
+
67
+ # @ custom-post-widget
68
+ #: ../post-widget.php:45
69
+ msgid "Show Post Title"
70
+ msgstr "Выводить заголовок"
71
+
72
+ # @ custom-post-widget
73
+ #: ../post-widget.php:58
74
+ msgid "Find"
75
+ msgstr "Найти"
76
+
77
+ # @ custom-post-widget
78
+ #: ../post-widget.php:79
79
+ msgctxt "post type general name"
80
+ msgid "Content Blocks"
81
+ msgstr "Блоки"
82
+
83
+ # @ custom-post-widget
84
+ #: ../post-widget.php:80
85
+ msgctxt "post type singular name"
86
+ msgid "Content Block"
87
+ msgstr "Блок"
88
+
89
+ # @ custom-post-widget
90
+ #: ../post-widget.php:81
91
+ msgctxt "post type plural name"
92
+ msgid "Content Blocks"
93
+ msgstr "Блоки"
94
+
95
+ # @ custom-post-widget
96
+ #: ../post-widget.php:82
97
+ msgctxt "block"
98
+ msgid "Add Content Block"
99
+ msgstr "Добавить блок"
100
+
101
+ # @ custom-post-widget
102
+ #: ../post-widget.php:83
103
+ msgid "Add New Content Block"
104
+ msgstr "Добавить новы блок"
105
+
106
+ # @ custom-post-widget
107
+ #: ../post-widget.php:84
108
+ msgid "Edit Content Block"
109
+ msgstr "Редактировать блок"
110
+
111
+ # @ custom-post-widget
112
+ #: ../post-widget.php:85
113
+ msgid "New Content Block"
114
+ msgstr "Новый блок"
115
+
116
+ # @ custom-post-widget
117
+ #: ../post-widget.php:86
118
+ msgid "View Content Block"
119
+ msgstr "Открыть блок"
120
+
121
+ # @ custom-post-widget
122
+ #: ../post-widget.php:87
123
+ msgid "Search Content Blocks"
124
+ msgstr "Найти блок"
125
+
126
+ # @ custom-post-widget
127
+ #: ../post-widget.php:88
128
+ msgid "No Content Blocks Found"
129
+ msgstr "Блоки не найдены"
130
+
131
+ # @ custom-post-widget
132
+ #: ../post-widget.php:89
133
+ msgid "No Content Blocks found in Trash"
134
+ msgstr "В корзине пусто"
135
+
136
+ # @ custom-post-widget
137
+ #: ../post-widget.php:131
138
+ #, php-format
139
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
140
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
141
+
142
+ # @ custom-post-widget
143
+ #: ../post-widget.php:131
144
+ #: ../post-widget.php:134
145
+ msgid "Content Block updated."
146
+ msgstr "Блок обновлен."
147
+
148
+ # @ custom-post-widget
149
+ #: ../post-widget.php:132
150
+ msgid "Custom field updated."
151
+ msgstr "Поле обновлено."
152
+
153
+ # @ custom-post-widget
154
+ #: ../post-widget.php:133
155
+ msgid "Custom field deleted."
156
+ msgstr "Поле удалено"
157
+
158
+ # @ custom-post-widget
159
+ #: ../post-widget.php:135
160
+ #, php-format
161
+ msgid "Content Block restored to revision from %s"
162
+ msgstr "Блок востановлен с ревизии %s"
163
+
164
+ # @ custom-post-widget
165
+ #: ../post-widget.php:136
166
+ #, php-format
167
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
168
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджетами</a>"
169
+
170
+ # @ custom-post-widget
171
+ #: ../post-widget.php:136
172
+ msgid "Content Block published."
173
+ msgstr "Блок опубликован."
174
+
175
+ # @ custom-post-widget
176
+ #: ../post-widget.php:137
177
+ msgid "Block saved."
178
+ msgstr "Блок сохранен"
179
+
180
+ # @ custom-post-widget
181
+ #: ../post-widget.php:138
182
+ #, php-format
183
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
184
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджеатми</a>"
185
+
186
+ # @ custom-post-widget
187
+ #: ../post-widget.php:138
188
+ msgid "Content Block submitted."
189
+ msgstr "Блок опубликован."
190
+
191
+ # @ custom-post-widget
192
+ #: ../post-widget.php:139
193
+ #, php-format
194
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
195
+ msgstr "Блок запланирован на: <strong>%1$s</strong>."
196
+
197
+ # @ custom-post-widget
198
+ #: ../post-widget.php:139
199
+ msgid "M j, Y @ G:i"
200
+ msgstr "M j, Y @ G:i"
201
+
202
+ # @ custom-post-widget
203
+ #: ../post-widget.php:140
204
+ #, php-format
205
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
206
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
207
+
208
+ # @ custom-post-widget
209
+ #: ../post-widget.php:140
210
+ msgid "Content Block draft updated."
211
+ msgstr "Черновик блока обновлен."
212
+
213
+ # @ custom-post-widget
214
+ #: ../post-widget.php:175
215
+ #: ../post-widget.php:176
216
+ msgid "Add Content Block"
217
+ msgstr "Добавить блок"
218
+
tags/1.9.2/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.9.2/popup.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // Action target that displays the popup to insert a content block to a post/page
2
+
3
+ function add_content_block_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+ var win = window.dialogArguments || opener || parent || top;
13
+ win.send_to_editor("[content_block id=" + content_id + "]");
14
+ }
15
+ </script>
16
+
17
+ <div id="content_block_form" style="display:none;">
18
+ <div class="wrap">
19
+ <div>
20
+ <div style="padding:15px 15px 0 15px;">
21
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;">
22
+ <?php _e("Insert Content Block", 'custom-post-widget'); ?>
23
+ </h3>
24
+ <span>
25
+ <?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?>
26
+ </span>
27
+ </div>
28
+ <div style="padding:15px 15px 0 15px;">
29
+ <select id="add_content_block_id">
30
+ <option value="">
31
+ <?php _e("Select a Content Block", 'custom-post-widget'); ?>
32
+ </option>
33
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
34
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
35
+ $currentID = get_the_ID();
36
+ if($currentID == $custom_post_id)
37
+ $extra = 'selected' and
38
+ $widgetExtraTitle = get_the_title();
39
+ else
40
+ $extra = '';
41
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
42
+ endwhile; else:
43
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
44
+ endif; ?>
45
+ </select>
46
+ <br />
47
+ <div style="padding:15px;">
48
+ <input type="button" class="button-primary" value="<?php _e("Insert Content Block", 'custom-post-widget') ?>" onclick="InsertContentBlockForm();"/>
49
+ &nbsp;&nbsp;&nbsp; <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;">
50
+ <?php _e("Cancel", 'custom-post-widget'); ?>
51
+ </a>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <?php } ?>
tags/1.9.2/post-widget.php ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget {
5
+ function custom_post_widget() {
6
+ $widget_ops = array('description' => __('Displays custom post content in a widget', 'custom-post-widget'));
7
+ $this->WP_Widget('custom_post_widget', __('Content Block', 'custom-post-widget'), $widget_ops);
8
+ }
9
+
10
+ function form($instance) {
11
+ $custom_post_id = esc_attr($instance['custom_post_id']);
12
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true; ?>
13
+
14
+ <p>
15
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', 'custom-post-widget') ?>
16
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
17
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
18
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
19
+ $currentID = get_the_ID();
20
+ if($currentID == $custom_post_id)
21
+ $extra = 'selected' and
22
+ $widgetExtraTitle = get_the_title();
23
+ else
24
+ $extra = '';
25
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
26
+ endwhile; else:
27
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
28
+ endif; ?>
29
+ </select>
30
+ </label>
31
+ </p>
32
+
33
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
34
+
35
+ <p>
36
+ <?php
37
+ echo '<a href="post.php?post=' . $custom_post_id . '&action=edit">Edit Content Block</a>' ;
38
+ ?>
39
+ </p>
40
+
41
+ <?php wp_reset_query(); ?>
42
+
43
+ <p>
44
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
45
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', 'custom-post-widget') ?></label>
46
+ </p> <?php
47
+ }
48
+
49
+ function update($new_instance, $old_instance) {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+ return $instance;
54
+ }
55
+
56
+ function widget($args, $instance) {
57
+ extract($args);
58
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
59
+ // Add support for WPML Plugin.
60
+ if ( function_exists( 'icl_object_id' ) ){
61
+ $custom_post_id = icl_object_id( $custom_post_id, 'content_block', true );
62
+ }
63
+ // Variables from the widget settings.
64
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
65
+ $content_post = get_post($custom_post_id);
66
+ $content = $content_post->post_content;
67
+ $content = apply_filters('the_content', $content);
68
+ echo $before_widget;
69
+ if ( $show_custom_post_title ) {
70
+ echo $before_title . apply_filters('widget_title',$content_post->post_title) . $after_title; // This is the line that displays the title (only if show title is set)
71
+ }
72
+ echo do_shortcode($content); // This is where the actual content of the custom post is being displayed
73
+ echo $after_widget;
74
+ }
75
+
76
+ }
77
+
78
+ // Create the Content Block custom post type
79
+ add_action('init', 'my_content_block_post_type_init');
80
+
81
+ function my_content_block_post_type_init() {
82
+ $labels = array(
83
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
84
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
85
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
86
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
87
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
88
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
89
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
90
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
91
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
92
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
93
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
94
+ 'parent_item_colon' => ''
95
+ );
96
+ $options = array(
97
+ 'labels' => $labels,
98
+ 'public' => false,
99
+ 'publicly_queryable' => false,
100
+ 'exclude_from_search' => true,
101
+ 'show_ui' => true,
102
+ 'query_var' => true,
103
+ 'rewrite' => true,
104
+ 'capability_type' => 'post',
105
+ 'hierarchical' => false,
106
+ 'menu_position' => null,
107
+ 'supports' => array('title','editor','revisions','thumbnail','author')
108
+ );
109
+ register_post_type('content_block',$options);
110
+ }
111
+
112
+ // Add custom styles to admin screen and menu
113
+ add_action('admin_head', 'content_block_header');
114
+
115
+ function content_block_header() {
116
+ global $post_type; ?>
117
+ <style type="text/css">
118
+ <!--
119
+ <?php if (($post_type == 'content_block')) : ?>
120
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important;}
121
+ #minor-publishing-actions { display:none; /* Hide the Save Draft and Preview buttons */}
122
+ <?php endif; ?>
123
+ #adminmenu #menu-posts-content_block div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
124
+ #adminmenu #menu-posts-content_block:hover div.wp-menu-image,#adminmenu #menu-posts-content_block.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
125
+ -->
126
+ </style>
127
+ <?php
128
+ }
129
+
130
+ add_filter('post_updated_messages', 'content_block_messages');
131
+
132
+ function content_block_messages( $messages ) {
133
+ $messages['content_block'] = array(
134
+ 0 => '',
135
+ 1 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
136
+ 2 => __('Custom field updated.', 'custom-post-widget'),
137
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
138
+ 4 => __('Content Block updated.', 'custom-post-widget'),
139
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
140
+ 6 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block published. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block published.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
141
+ 7 => __('Block saved.', 'custom-post-widget'),
142
+ 8 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block submitted. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block submitted.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
143
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>.', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( 'widgets.php' ) ),
144
+ 10 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block draft updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block draft updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
145
+ );
146
+ return $messages;
147
+ }
148
+
149
+ // Add the ability to display the content block in a reqular post using a shortcode
150
+ function custom_post_widget_shortcode($atts) {
151
+ extract(shortcode_atts(array(
152
+ 'id' => '',
153
+ 'class' => 'content_block'
154
+ ), $atts));
155
+
156
+ $content = "";
157
+
158
+ if($id != "") {
159
+ $args = array(
160
+ 'post__in' => array($id),
161
+ 'post_type' => 'content_block',
162
+ );
163
+
164
+ $content_post = get_posts($args);
165
+
166
+ foreach( $content_post as $post ) :
167
+ $content .= '<div class="'. esc_attr($class) .'">';
168
+ $content .= apply_filters('the_content', $post->post_content);
169
+ $content .= '</div>';
170
+ endforeach;
171
+ }
172
+
173
+ return $content;
174
+ }
175
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
176
+
177
+ // Add button above editor
178
+ function add_content_block_icon($initcontext) {
179
+ return $initcontext.
180
+ '<a id="add_content_block" style="text-decoration:none;" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php?type=add_content_block_popup&amp;TB_inline=true&amp;inlineId=content_block_form">
181
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
182
+ </a>';
183
+ }
184
+
185
+ add_filter('media_buttons_context', 'add_content_block_icon');
186
+
187
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
188
+
189
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
190
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
191
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
192
+ add_action('admin_footer', 'add_content_block_popup');
193
+ }
194
+ ?>
tags/1.9.2/readme.txt ADDED
@@ -0,0 +1,136 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar, content block, content, block, custom, post, shortcode
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.3.1
8
+ Stable tag: 1.9.2
9
+
10
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
11
+
12
+ == Description ==
13
+
14
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
15
+
16
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
17
+
18
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
19
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
20
+
21
+ This plugin creates a 'content_block' custom post type. You can choose to either display the title on the page or use it to describe the contents and widget position of the content block. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
22
+
23
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
24
+
25
+ This plugin is ready for localization and Dutch, German and Russian language files are included.
26
+
27
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
28
+
29
+ == Screenshots ==
30
+
31
+ 1. After activating the plugin a new post type called 'Content Blocks' is added. You can also see the little icon above the WYSIWYG editor that allows you to insert the content block using the shortcode.
32
+ 2. The widget has a select box to choose the content block. Click on the 'Edit Content Block' link to edit the selected Content Block custom post.
33
+
34
+ == Installation ==
35
+
36
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
37
+ 2. Then activate the plugin in the plugin panel.
38
+ You will see that a new custom post type has been added called Content Block.
39
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
40
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
41
+ 5. Select a Content Block from the drop-down list.
42
+ 6. Click save.
43
+
44
+ == Frequently Asked Questions ==
45
+
46
+ = Why can't I use the default text-widget? =
47
+
48
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
49
+
50
+ = How can I show the content bock on a specific page? =
51
+
52
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
53
+
54
+ = How can I display the featured image in the widget? =
55
+
56
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
57
+
58
+ `function InsertFeaturedImage($content) {
59
+ global $post;
60
+ $original_content = $content;
61
+ if (current_theme_supports('post-thumbnails')) {
62
+ if ('content_block' == get_post_type()) {
63
+ $content = the_post_thumbnail('medium');
64
+ $content .= $original_content;
65
+ }
66
+ }
67
+ return $content;
68
+ }
69
+ add_filter('the_content', 'InsertFeaturedImage');`
70
+
71
+
72
+ == Changelog ==
73
+
74
+ = 1.0 =
75
+ First release
76
+
77
+ = 1.1 =
78
+ Fixed screenshots for plugin directory
79
+
80
+ = 1.1.1 =
81
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
82
+
83
+ = 1.2 =
84
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
85
+
86
+ = 1.2.1 =
87
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
88
+
89
+ = 1.3 =
90
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
91
+
92
+ = 1.4 =
93
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
94
+
95
+ = 1.5 =
96
+ Thanks to Caspar Huebinger the plugin now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
97
+
98
+ = 1.6 =
99
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
100
+
101
+ = 1.7 =
102
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
103
+
104
+ = 1.8 =
105
+ Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
106
+
107
+ = 1.8.2 =
108
+ Updated German translation and various bugfixes.
109
+
110
+ = 1.8.3 -> rolled-back because of some reported issues with social media icons being added to the widget areas =
111
+ The widget now emulates the $post loop. This means you can now make use of WordPress functionality such as inserting a [gallery]. Thanks to Jari Pennanen for providing the code.
112
+
113
+ = 1.8.4 =
114
+ Added edit content block link to the widget editor and changed the 'view content block' message to include a 'manage widgets' link. The 'Draft' and 'Preview' buttons are now hidden via CSS, hopefully this will soon be default WordPress behaviour (see related ticket: http://core.trac.wordpress.org/ticket/18956).
115
+ Thanks to Julian Gardner-Hobbs (http://www.hobwebs.com/) for requesting this functionality.
116
+
117
+ = 1.8.5 =
118
+ This release is to fix an issue with the WordPress plugin repository.
119
+
120
+ = 1.8.6 =
121
+ Minor bugfix for edit link in widget.
122
+
123
+ = 1.9 =
124
+ The content blocks can now be translated using the WPML plugin, thanks to Jonathan Liuti (http://unboxed-logic.com/).
125
+ Thanks to Vitaliy Kaplya (http://www.dasayt.com/) a Russian translation has been added to the plugin.
126
+
127
+ = 1.9.2 =
128
+ Now includes Polish language files as created by Kuba Skublicki.
129
+
130
+
131
+ == Upgrade Notice ==
132
+
133
+ = 1.8 =
134
+ I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
135
+
136
+
tags/1.9.2/screenshot-1.png ADDED
Binary file
tags/1.9.2/screenshot-2.png ADDED
Binary file
tags/1.9.3/custom-post-widget.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.9.3
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.9.3 Added French translation and minor bugfix.
12
+
13
+ Copyright 2012 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ // Set constant path to the custom-post-widget plugin directory.
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ // Launch the plugin.
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ // Load the required files needed for the plugin to run in the proper order and add needed functions to the required hooks.
37
+ function custom_post_widget_plugin_init() {
38
+ // Load the translation of the plugin.
39
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
40
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
41
+ }
42
+
43
+ // Loads the widgets packaged with the plugin.
44
+ function custom_post_widget_load_widgets() {
45
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
46
+ register_widget( 'custom_post_widget' );
47
+ }
48
+ ?>
tags/1.9.3/images/contentblock-13.png ADDED
Binary file
tags/1.9.3/images/contentblock-32.png ADDED
Binary file
tags/1.9.3/images/contentblock.png ADDED
Binary file
tags/1.9.3/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.9.3/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.9.3/languages/custom-post-widget-fr_FR.mo ADDED
Binary file
tags/1.9.3/languages/custom-post-widget-fr_FR.po ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget v1.9.2\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
5
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
6
+ "PO-Revision-Date: 2012-06-21 17:06:30+0200\n"
7
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
+ "Language-Team: LANGUAGE <LL@li.org>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:6
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Affiche le contenu d'un bloc dans un widget."
26
+
27
+ #: post-widget.php:7
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Bloc de contenu"
31
+
32
+ #: post-widget.php:15
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Bloc de contenu à afficher:"
36
+
37
+ #: popup.php:43
38
+ #: post-widget.php:27
39
+ #@ custom-post-widget
40
+ msgid "No content blocks available"
41
+ msgstr "Aucun bloc disponible"
42
+
43
+ #: post-widget.php:45
44
+ #@ custom-post-widget
45
+ msgid "Show Post Title"
46
+ msgstr "Afficher le titre du bloc"
47
+
48
+ #: post-widget.php:58
49
+ #@ custom-post-widget
50
+ msgid "Find"
51
+ msgstr "Rechercher"
52
+
53
+ #: post-widget.php:83
54
+ #@ custom-post-widget
55
+ msgctxt "post type general name"
56
+ msgid "Content Blocks"
57
+ msgstr "Blocs de contenu"
58
+
59
+ #: post-widget.php:84
60
+ #@ custom-post-widget
61
+ msgctxt "post type singular name"
62
+ msgid "Content Block"
63
+ msgstr "Bloc de contenu"
64
+
65
+ #: post-widget.php:85
66
+ #@ custom-post-widget
67
+ msgctxt "post type plural name"
68
+ msgid "Content Blocks"
69
+ msgstr "Blocs de contenu"
70
+
71
+ #: post-widget.php:86
72
+ #@ custom-post-widget
73
+ msgctxt "block"
74
+ msgid "Add Content Block"
75
+ msgstr "Ajouter un bloc"
76
+
77
+ #: post-widget.php:87
78
+ #@ custom-post-widget
79
+ msgid "Add New Content Block"
80
+ msgstr "Ajouter un bloc"
81
+
82
+ #: post-widget.php:88
83
+ #@ custom-post-widget
84
+ msgid "Edit Content Block"
85
+ msgstr "Modifier le bloc"
86
+
87
+ #: post-widget.php:89
88
+ #@ custom-post-widget
89
+ msgid "New Content Block"
90
+ msgstr "Nouveau bloc"
91
+
92
+ #: post-widget.php:90
93
+ #@ custom-post-widget
94
+ msgid "View Content Block"
95
+ msgstr "Afficher le bloc"
96
+
97
+ #: post-widget.php:91
98
+ #@ custom-post-widget
99
+ msgid "Search Content Blocks"
100
+ msgstr "Recherche dans les blocs"
101
+
102
+ #: post-widget.php:92
103
+ #@ custom-post-widget
104
+ msgid "No Content Blocks Found"
105
+ msgstr "Aucun bloc trouvé"
106
+
107
+ #: post-widget.php:93
108
+ #@ custom-post-widget
109
+ msgid "No Content Blocks found in Trash"
110
+ msgstr "Aucun bloc trouvé dans la corbeille"
111
+
112
+ #: post-widget.php:136
113
+ #@ custom-post-widget
114
+ msgid "Custom field updated."
115
+ msgstr "Champ personnalisé mis à jour."
116
+
117
+ #: post-widget.php:137
118
+ #@ custom-post-widget
119
+ msgid "Custom field deleted."
120
+ msgstr "Champ personnalisé supprimé."
121
+
122
+ #: post-widget.php:135
123
+ #: post-widget.php:138
124
+ #@ custom-post-widget
125
+ msgid "Content Block updated."
126
+ msgstr "Bloc de contenu mis à jour."
127
+
128
+ #: post-widget.php:139
129
+ #, php-format
130
+ #@ custom-post-widget
131
+ msgid "Content Block restored to revision from %s"
132
+ msgstr "Bloc de contenu restauré à partir de la révision %s"
133
+
134
+ #: post-widget.php:141
135
+ #@ custom-post-widget
136
+ msgid "Block saved."
137
+ msgstr "Bloc sauvegardé."
138
+
139
+ #: post-widget.php:143
140
+ #@ custom-post-widget
141
+ msgid "M j, Y @ G:i"
142
+ msgstr "le j M Y, à G:i"
143
+
144
+ #: popup.php:9
145
+ #@ custom-post-widget
146
+ msgid "Please select a Content Block"
147
+ msgstr "Veuillez choisir un bloc de contenu"
148
+
149
+ #: popup.php:22
150
+ #: popup.php:48
151
+ #@ custom-post-widget
152
+ msgid "Insert Content Block"
153
+ msgstr "Insérer un bloc de contenu"
154
+
155
+ #: popup.php:25
156
+ #@ custom-post-widget
157
+ msgid "Select a Content Block below to add it to your post or page."
158
+ msgstr "Choisissez un bloc de contenu ci-bas pour l'ajouter à votre article ou page."
159
+
160
+ #: popup.php:31
161
+ #@ custom-post-widget
162
+ msgid "Select a Content Block"
163
+ msgstr "Choisissez un bloc"
164
+
165
+ #: popup.php:50
166
+ #@ custom-post-widget
167
+ msgid "Cancel"
168
+ msgstr "Annuler"
169
+
170
+ #: post-widget.php:135
171
+ #, php-format
172
+ #@ custom-post-widget
173
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
174
+ msgstr "Bloc de contenu mis à jour. <a href=\"%s\">Gérer les widgets</a>"
175
+
176
+ #: post-widget.php:140
177
+ #, php-format
178
+ #@ custom-post-widget
179
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
180
+ msgstr "Bloc de contenu publié. <a href=\"%s\">Gérer les widgets</a>"
181
+
182
+ #: post-widget.php:140
183
+ #@ custom-post-widget
184
+ msgid "Content Block published."
185
+ msgstr "Bloc de contenu publié."
186
+
187
+ #: post-widget.php:142
188
+ #, php-format
189
+ #@ custom-post-widget
190
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
191
+ msgstr "Bloc de contenu envoyé. <a href=\"%s\">Gérer les widgets</a>"
192
+
193
+ #: post-widget.php:142
194
+ #@ custom-post-widget
195
+ msgid "Content Block submitted."
196
+ msgstr "Bloc de contenu envoyé."
197
+
198
+ #: post-widget.php:143
199
+ #, php-format
200
+ #@ custom-post-widget
201
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
202
+ msgstr "Publication du bloc prévue pour le <strong>%1$s</strong>."
203
+
204
+ #: post-widget.php:144
205
+ #, php-format
206
+ #@ custom-post-widget
207
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
208
+ msgstr "Brouillon du bloc de contenu mis à jour. <a href=\"%s\">Gérer les widgets</a>"
209
+
210
+ #: post-widget.php:144
211
+ #@ custom-post-widget
212
+ msgid "Content Block draft updated."
213
+ msgstr "Brouillon du bloc de contenu mis à jour."
214
+
215
+ #: post-widget.php:180
216
+ #: post-widget.php:181
217
+ #@ custom-post-widget
218
+ msgid "Add Content Block"
219
+ msgstr "Ajouter un bloc de contenu"
220
+
tags/1.9.3/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.9.3/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.9.3/languages/custom-post-widget-pl_PL.mo ADDED
Binary file
tags/1.9.3/languages/custom-post-widget-pl_PL.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Kuba Es <poedit@webnova.pl>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
15
+ "X-Textdomain-Support: yes\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #@ custom-post-widget
19
+ #: post-widget.php:8
20
+ msgid "Displays custom post content in a widget"
21
+ msgstr "Wyświetla zawartość w widgecie"
22
+
23
+ #@ custom-post-widget
24
+ #: post-widget.php:9
25
+ msgid "Content Block"
26
+ msgstr "Blok Treści"
27
+
28
+ #@ custom-post-widget
29
+ #: post-widget.php:19
30
+ msgid "Content Block to Display:"
31
+ msgstr "Blok Treści do wyświetlenia"
32
+
33
+ #@ custom-post-widget
34
+ #: post-widget.php:31
35
+ msgid "No content blocks available"
36
+ msgstr "Nie utworzono Bloków Treści"
37
+
38
+ #@ custom-post-widget
39
+ #: post-widget.php:43
40
+ msgid "Show Post Title"
41
+ msgstr "Pokaż tytuł postu"
42
+
43
+ #@ custom-post-widget
44
+ #: post-widget.php:62
45
+ msgid "Find"
46
+ msgstr "Znajdź"
47
+
48
+ #@ custom-post-widget
49
+ #: post-widget.php:94
50
+ msgctxt "post type general name"
51
+ msgid "Content Blocks"
52
+ msgstr "Bloki Treści"
53
+
54
+ #@ custom-post-widget
55
+ #: post-widget.php:95
56
+ msgctxt "post type singular name"
57
+ msgid "Content Block"
58
+ msgstr "Blok Treści"
59
+
60
+ #@ custom-post-widget
61
+ #: post-widget.php:97
62
+ msgctxt "block"
63
+ msgid "Add Content Block"
64
+ msgstr "Dodaj Blok Treści"
65
+
66
+ #@ custom-post-widget
67
+ #: post-widget.php:98
68
+ msgid "Add New Content Block"
69
+ msgstr "Nowy Blok Treści"
70
+
71
+ #@ custom-post-widget
72
+ #: post-widget.php:99
73
+ msgid "Edit Content Block"
74
+ msgstr "Edytuj Blok Treści"
75
+
76
+ #@ custom-post-widget
77
+ #: post-widget.php:100
78
+ msgid "New Content Block"
79
+ msgstr "Nowy Blok Treści"
80
+
81
+ #@ custom-post-widget
82
+ #: post-widget.php:101
83
+ msgid "View Content Block"
84
+ msgstr "Zobacz Blok Treści"
85
+
86
+ #@ custom-post-widget
87
+ #: post-widget.php:102
88
+ msgid "Search Content Blocks"
89
+ msgstr "Szukaj Bloków Treśc"
90
+
91
+ #@ custom-post-widget
92
+ #: post-widget.php:103
93
+ msgid "No Content Blocks Found"
94
+ msgstr "Nie znaleziono Bloków Treści"
95
+
96
+ #@ custom-post-widget
97
+ #: post-widget.php:104
98
+ msgid "No Content Blocks found in Trash"
99
+ msgstr "Nie znaleziono Bloków Treści w archiwum"
100
+
101
+ #@ custom-post-widget
102
+ #: post-widget.php:129
103
+ #, php-format
104
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
105
+ msgstr "Blok Treści został zapisany. <a href=\"%s\">Zobacz</a>"
106
+
107
+ #@ custom-post-widget
108
+ #: post-widget.php:130
109
+ msgid "Custom field updated."
110
+ msgstr "Własne pola zostały zaktualizowane."
111
+
112
+ #@ custom-post-widget
113
+ #: post-widget.php:131
114
+ msgid "Custom field deleted."
115
+ msgstr "Własne pola zostały usunięte."
116
+
117
+ #@ custom-post-widget
118
+ #: post-widget.php:132
119
+ msgid "Content Block updated."
120
+ msgstr "Blok Treści zaktualizowany."
121
+
122
+ #@ custom-post-widget
123
+ #: post-widget.php:133
124
+ #, php-format
125
+ msgid "Content Block restored to revision from %s"
126
+ msgstr "Przywrócono Blok Treści do rewizji z %s"
127
+
128
+ #@ custom-post-widget
129
+ #: post-widget.php:134
130
+ #, php-format
131
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
132
+ msgstr "Blok Treści został opublikowany. <a href=\"%s\">Zobacz</a>"
133
+
134
+ #@ custom-post-widget
135
+ #: post-widget.php:135
136
+ msgid "Block saved."
137
+ msgstr "Blok zapisany."
138
+
139
+ #@ custom-post-widget
140
+ #: post-widget.php:136
141
+ #, php-format
142
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
143
+ msgstr "Blok Treści przesłany. <a target=\"_blank\" href=\"%s\">Podgląd Bloku</a>"
144
+
145
+ #@ custom-post-widget
146
+ #: post-widget.php:137
147
+ #, php-format
148
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
149
+ msgstr "Blok Treści zaplanowany na: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Podgląd Bloku</a>"
150
+
151
+ #@ custom-post-widget
152
+ #: post-widget.php:138
153
+ msgid "M j, Y @ G:i"
154
+ msgstr "j. M Y @ H:M"
155
+
156
+ #@ custom-post-widget
157
+ #: post-widget.php:139
158
+ #, php-format
159
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
160
+ msgstr "Szkic zapisany. <a target=\"_blank\" href=\"%s\">Podgląd Bloku</a>"
161
+
162
+ #@ custom-post-widget
163
+ #: post-widget.php:96
164
+ msgctxt "post type plural name"
165
+ msgid "Content Blocks"
166
+ msgstr "Bloki Treści"
167
+
tags/1.9.3/languages/custom-post-widget-ru_RU.mo ADDED
Binary file
tags/1.9.3/languages/custom-post-widget-ru_RU.po ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-02-23 13:16+0200\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Виталий Капля <vitaliy.kaplya@dasayt.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Poedit-SearchPath-1: ..\n"
21
+
22
+ # @ custom-post-widget
23
+ #: ../popup.php:9
24
+ msgid "Please select a Content Block"
25
+ msgstr "Выберете блок"
26
+
27
+ # @ custom-post-widget
28
+ #: ../popup.php:22
29
+ #: ../popup.php:48
30
+ msgid "Insert Content Block"
31
+ msgstr "Вставить блок"
32
+
33
+ #: ../popup.php:25
34
+ msgid "Select a Content Block below to add it to your post or page."
35
+ msgstr "Выберете блок перед тем, как добавить его на страницу."
36
+
37
+ # @ custom-post-widget
38
+ #: ../popup.php:31
39
+ msgid "Select a Content Block"
40
+ msgstr "Выберите блок"
41
+
42
+ # @ custom-post-widget
43
+ #: ../popup.php:43
44
+ #: ../post-widget.php:27
45
+ msgid "No content blocks available"
46
+ msgstr "Блоки не найдены"
47
+
48
+ #: ../popup.php:50
49
+ msgid "Cancel"
50
+ msgstr "Отмена"
51
+
52
+ # @ custom-post-widget
53
+ #: ../post-widget.php:6
54
+ msgid "Displays custom post content in a widget"
55
+ msgstr "Отображение пользовательского контента в виджете"
56
+
57
+ # @ custom-post-widget
58
+ #: ../post-widget.php:7
59
+ msgid "Content Block"
60
+ msgstr "Блоки"
61
+
62
+ # @ custom-post-widget
63
+ #: ../post-widget.php:15
64
+ msgid "Content Block to Display:"
65
+ msgstr "Отображать следующий блок:"
66
+
67
+ # @ custom-post-widget
68
+ #: ../post-widget.php:45
69
+ msgid "Show Post Title"
70
+ msgstr "Выводить заголовок"
71
+
72
+ # @ custom-post-widget
73
+ #: ../post-widget.php:58
74
+ msgid "Find"
75
+ msgstr "Найти"
76
+
77
+ # @ custom-post-widget
78
+ #: ../post-widget.php:79
79
+ msgctxt "post type general name"
80
+ msgid "Content Blocks"
81
+ msgstr "Блоки"
82
+
83
+ # @ custom-post-widget
84
+ #: ../post-widget.php:80
85
+ msgctxt "post type singular name"
86
+ msgid "Content Block"
87
+ msgstr "Блок"
88
+
89
+ # @ custom-post-widget
90
+ #: ../post-widget.php:81
91
+ msgctxt "post type plural name"
92
+ msgid "Content Blocks"
93
+ msgstr "Блоки"
94
+
95
+ # @ custom-post-widget
96
+ #: ../post-widget.php:82
97
+ msgctxt "block"
98
+ msgid "Add Content Block"
99
+ msgstr "Добавить блок"
100
+
101
+ # @ custom-post-widget
102
+ #: ../post-widget.php:83
103
+ msgid "Add New Content Block"
104
+ msgstr "Добавить новы блок"
105
+
106
+ # @ custom-post-widget
107
+ #: ../post-widget.php:84
108
+ msgid "Edit Content Block"
109
+ msgstr "Редактировать блок"
110
+
111
+ # @ custom-post-widget
112
+ #: ../post-widget.php:85
113
+ msgid "New Content Block"
114
+ msgstr "Новый блок"
115
+
116
+ # @ custom-post-widget
117
+ #: ../post-widget.php:86
118
+ msgid "View Content Block"
119
+ msgstr "Открыть блок"
120
+
121
+ # @ custom-post-widget
122
+ #: ../post-widget.php:87
123
+ msgid "Search Content Blocks"
124
+ msgstr "Найти блок"
125
+
126
+ # @ custom-post-widget
127
+ #: ../post-widget.php:88
128
+ msgid "No Content Blocks Found"
129
+ msgstr "Блоки не найдены"
130
+
131
+ # @ custom-post-widget
132
+ #: ../post-widget.php:89
133
+ msgid "No Content Blocks found in Trash"
134
+ msgstr "В корзине пусто"
135
+
136
+ # @ custom-post-widget
137
+ #: ../post-widget.php:131
138
+ #, php-format
139
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
140
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
141
+
142
+ # @ custom-post-widget
143
+ #: ../post-widget.php:131
144
+ #: ../post-widget.php:134
145
+ msgid "Content Block updated."
146
+ msgstr "Блок обновлен."
147
+
148
+ # @ custom-post-widget
149
+ #: ../post-widget.php:132
150
+ msgid "Custom field updated."
151
+ msgstr "Поле обновлено."
152
+
153
+ # @ custom-post-widget
154
+ #: ../post-widget.php:133
155
+ msgid "Custom field deleted."
156
+ msgstr "Поле удалено"
157
+
158
+ # @ custom-post-widget
159
+ #: ../post-widget.php:135
160
+ #, php-format
161
+ msgid "Content Block restored to revision from %s"
162
+ msgstr "Блок востановлен с ревизии %s"
163
+
164
+ # @ custom-post-widget
165
+ #: ../post-widget.php:136
166
+ #, php-format
167
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
168
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджетами</a>"
169
+
170
+ # @ custom-post-widget
171
+ #: ../post-widget.php:136
172
+ msgid "Content Block published."
173
+ msgstr "Блок опубликован."
174
+
175
+ # @ custom-post-widget
176
+ #: ../post-widget.php:137
177
+ msgid "Block saved."
178
+ msgstr "Блок сохранен"
179
+
180
+ # @ custom-post-widget
181
+ #: ../post-widget.php:138
182
+ #, php-format
183
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
184
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджеатми</a>"
185
+
186
+ # @ custom-post-widget
187
+ #: ../post-widget.php:138
188
+ msgid "Content Block submitted."
189
+ msgstr "Блок опубликован."
190
+
191
+ # @ custom-post-widget
192
+ #: ../post-widget.php:139
193
+ #, php-format
194
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
195
+ msgstr "Блок запланирован на: <strong>%1$s</strong>."
196
+
197
+ # @ custom-post-widget
198
+ #: ../post-widget.php:139
199
+ msgid "M j, Y @ G:i"
200
+ msgstr "M j, Y @ G:i"
201
+
202
+ # @ custom-post-widget
203
+ #: ../post-widget.php:140
204
+ #, php-format
205
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
206
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
207
+
208
+ # @ custom-post-widget
209
+ #: ../post-widget.php:140
210
+ msgid "Content Block draft updated."
211
+ msgstr "Черновик блока обновлен."
212
+
213
+ # @ custom-post-widget
214
+ #: ../post-widget.php:175
215
+ #: ../post-widget.php:176
216
+ msgid "Add Content Block"
217
+ msgstr "Добавить блок"
218
+
tags/1.9.3/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.9.3/popup.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // Action target that displays the popup to insert a content block to a post/page
2
+
3
+ function add_content_block_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+ var win = window.dialogArguments || opener || parent || top;
13
+ win.send_to_editor("[content_block id=" + content_id + "]");
14
+ }
15
+ </script>
16
+
17
+ <div id="content_block_form" style="display:none;">
18
+ <div class="wrap">
19
+ <div>
20
+ <div style="padding:15px 15px 0 15px;">
21
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;">
22
+ <?php _e("Insert Content Block", 'custom-post-widget'); ?>
23
+ </h3>
24
+ <span>
25
+ <?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?>
26
+ </span>
27
+ </div>
28
+ <div style="padding:15px 15px 0 15px;">
29
+ <select id="add_content_block_id">
30
+ <option value="">
31
+ <?php _e("Select a Content Block", 'custom-post-widget'); ?>
32
+ </option>
33
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
34
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
35
+ $currentID = get_the_ID();
36
+ if($currentID == $custom_post_id)
37
+ $extra = 'selected' and
38
+ $widgetExtraTitle = get_the_title();
39
+ else
40
+ $extra = '';
41
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
42
+ endwhile; else:
43
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
44
+ endif; ?>
45
+ </select>
46
+ <br />
47
+ <div style="padding:15px;">
48
+ <input type="button" class="button-primary" value="<?php _e("Insert Content Block", 'custom-post-widget') ?>" onclick="InsertContentBlockForm();"/>
49
+ &nbsp;&nbsp;&nbsp; <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;">
50
+ <?php _e("Cancel", 'custom-post-widget'); ?>
51
+ </a>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <?php } ?>
tags/1.9.3/post-widget.php ADDED
@@ -0,0 +1,194 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget {
5
+ function custom_post_widget() {
6
+ $widget_ops = array('description' => __('Displays custom post content in a widget', 'custom-post-widget'));
7
+ $this->WP_Widget('custom_post_widget', __('Content Block', 'custom-post-widget'), $widget_ops);
8
+ }
9
+
10
+ function form($instance) {
11
+ $custom_post_id = esc_attr($instance['custom_post_id']);
12
+ $show_custom_post_title = isset($instance['show_custom_post_title ']) ? $instance['show_custom_post_title '] : true; ?>
13
+
14
+ <p>
15
+ <label for="<?php echo $this->get_field_id('custom_post_id'); ?>"> <?php echo __('Content Block to Display:', 'custom-post-widget') ?>
16
+ <select class="widefat" id="<?php echo $this->get_field_id('custom_post_id'); ?>" name="<?php echo $this->get_field_name('custom_post_id'); ?>">
17
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
18
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
19
+ $currentID = get_the_ID();
20
+ if($currentID == $custom_post_id)
21
+ $extra = 'selected' and
22
+ $widgetExtraTitle = get_the_title();
23
+ else
24
+ $extra = '';
25
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
26
+ endwhile; else:
27
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
28
+ endif; ?>
29
+ </select>
30
+ </label>
31
+ </p>
32
+
33
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
34
+
35
+ <p>
36
+ <?php
37
+ echo '<a href="post.php?post=' . $custom_post_id . '&action=edit">' . __('Edit Content Block', 'custom-post-widget') . '</a>' ;
38
+ ?>
39
+ </p>
40
+
41
+ <?php wp_reset_query(); ?>
42
+
43
+ <p>
44
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
45
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __('Show Post Title', 'custom-post-widget') ?></label>
46
+ </p> <?php
47
+ }
48
+
49
+ function update($new_instance, $old_instance) {
50
+ $instance = $old_instance;
51
+ $instance['custom_post_id'] = strip_tags($new_instance['custom_post_id']);
52
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
53
+ return $instance;
54
+ }
55
+
56
+ function widget($args, $instance) {
57
+ extract($args);
58
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
59
+ // Add support for WPML Plugin.
60
+ if ( function_exists( 'icl_object_id' ) ){
61
+ $custom_post_id = icl_object_id( $custom_post_id, 'content_block', true );
62
+ }
63
+ // Variables from the widget settings.
64
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
65
+ $content_post = get_post($custom_post_id);
66
+ $content = $content_post->post_content;
67
+ $content = apply_filters('the_content', $content);
68
+ echo $before_widget;
69
+ if ( $show_custom_post_title ) {
70
+ echo $before_title . apply_filters('widget_title',$content_post->post_title) . $after_title; // This is the line that displays the title (only if show title is set)
71
+ }
72
+ echo do_shortcode($content); // This is where the actual content of the custom post is being displayed
73
+ echo $after_widget;
74
+ }
75
+
76
+ }
77
+
78
+ // Create the Content Block custom post type
79
+ add_action('init', 'my_content_block_post_type_init');
80
+
81
+ function my_content_block_post_type_init() {
82
+ $labels = array(
83
+ 'name' => __('Content Blocks', 'post type general name', 'custom-post-widget'),
84
+ 'singular_name' => __('Content Block', 'post type singular name', 'custom-post-widget'),
85
+ 'plural_name' => __('Content Blocks', 'post type plural name', 'custom-post-widget'),
86
+ 'add_new' => __('Add Content Block', 'block', 'custom-post-widget'),
87
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
88
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
89
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
90
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
91
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
92
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
93
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
94
+ 'parent_item_colon' => ''
95
+ );
96
+ $options = array(
97
+ 'labels' => $labels,
98
+ 'public' => false,
99
+ 'publicly_queryable' => false,
100
+ 'exclude_from_search' => true,
101
+ 'show_ui' => true,
102
+ 'query_var' => true,
103
+ 'rewrite' => true,
104
+ 'capability_type' => 'post',
105
+ 'hierarchical' => false,
106
+ 'menu_position' => null,
107
+ 'supports' => array('title','editor','revisions','thumbnail','author')
108
+ );
109
+ register_post_type('content_block',$options);
110
+ }
111
+
112
+ // Add custom styles to admin screen and menu
113
+ add_action('admin_head', 'content_block_header');
114
+
115
+ function content_block_header() {
116
+ global $post_type; ?>
117
+ <style type="text/css">
118
+ <!--
119
+ <?php if (($post_type == 'content_block')) : ?>
120
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important;}
121
+ #minor-publishing-actions { display:none; /* Hide the Save Draft and Preview buttons */}
122
+ <?php endif; ?>
123
+ #adminmenu #menu-posts-content_block div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
124
+ #adminmenu #menu-posts-content_block:hover div.wp-menu-image,#adminmenu #menu-posts-content_block.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
125
+ -->
126
+ </style>
127
+ <?php
128
+ }
129
+
130
+ add_filter('post_updated_messages', 'content_block_messages');
131
+
132
+ function content_block_messages( $messages ) {
133
+ $messages['content_block'] = array(
134
+ 0 => '',
135
+ 1 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
136
+ 2 => __('Custom field updated.', 'custom-post-widget'),
137
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
138
+ 4 => __('Content Block updated.', 'custom-post-widget'),
139
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
140
+ 6 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block published. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block published.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
141
+ 7 => __('Block saved.', 'custom-post-widget'),
142
+ 8 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block submitted. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block submitted.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
143
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>.', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( 'widgets.php' ) ),
144
+ 10 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block draft updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block draft updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
145
+ );
146
+ return $messages;
147
+ }
148
+
149
+ // Add the ability to display the content block in a reqular post using a shortcode
150
+ function custom_post_widget_shortcode($atts) {
151
+ extract(shortcode_atts(array(
152
+ 'id' => '',
153
+ 'class' => 'content_block'
154
+ ), $atts));
155
+
156
+ $content = "";
157
+
158
+ if($id != "") {
159
+ $args = array(
160
+ 'post__in' => array($id),
161
+ 'post_type' => 'content_block',
162
+ );
163
+
164
+ $content_post = get_posts($args);
165
+
166
+ foreach( $content_post as $post ) :
167
+ $content .= '<div class="'. esc_attr($class) .'">';
168
+ $content .= apply_filters('the_content', $post->post_content);
169
+ $content .= '</div>';
170
+ endforeach;
171
+ }
172
+
173
+ return $content;
174
+ }
175
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
176
+
177
+ // Add button above editor
178
+ function add_content_block_icon($initcontext) {
179
+ return $initcontext.
180
+ '<a id="add_content_block" style="text-decoration:none;" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php?type=add_content_block_popup&amp;TB_inline=true&amp;inlineId=content_block_form">
181
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
182
+ </a>';
183
+ }
184
+
185
+ add_filter('media_buttons_context', 'add_content_block_icon');
186
+
187
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
188
+
189
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
190
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
191
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
192
+ add_action('admin_footer', 'add_content_block_popup');
193
+ }
194
+ ?>
tags/1.9.3/readme.txt ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar, content block, content, block, custom, post, shortcode
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.4
8
+ Stable tag: 1.9.3
9
+ License: GPLv2 or later
10
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
+
12
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
13
+
14
+ == Description ==
15
+
16
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
17
+
18
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
19
+
20
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
21
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
22
+
23
+ This plugin creates a 'content_block' custom post type. You can choose to either display the title on the page or use it to describe the contents and widget position of the content block. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
24
+
25
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
26
+
27
+ This plugin is ready for localization and Dutch, German, Polish and Russian language files are included.
28
+
29
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
30
+
31
+ == Screenshots ==
32
+
33
+ 1. After activating the plugin a new post type called 'Content Blocks' is added. You can also see the little icon above the WYSIWYG editor that allows you to insert the content block using the shortcode.
34
+ 2. The widget has a select box to choose the content block. Click on the 'Edit Content Block' link to edit the selected Content Block custom post.
35
+
36
+ == Installation ==
37
+
38
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
39
+ 2. Then activate the plugin in the plugin panel.
40
+ You will see that a new custom post type has been added called Content Block.
41
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
42
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
43
+ 5. Select a Content Block from the drop-down list.
44
+ 6. Click save.
45
+
46
+ == Frequently Asked Questions ==
47
+
48
+ = Why can't I use the default text-widget? =
49
+
50
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
51
+
52
+ = How can I show the content bock on a specific page? =
53
+
54
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
55
+
56
+ = How can I display the featured image in the widget? =
57
+
58
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
59
+
60
+ `function InsertFeaturedImage($content) {
61
+ global $post;
62
+ $original_content = $content;
63
+ if (current_theme_supports('post-thumbnails')) {
64
+ if ('content_block' == get_post_type()) {
65
+ $content = the_post_thumbnail('medium');
66
+ $content .= $original_content;
67
+ }
68
+ }
69
+ return $content;
70
+ }
71
+ add_filter('the_content', 'InsertFeaturedImage');`
72
+
73
+
74
+ == Changelog ==
75
+
76
+ = 1.0 =
77
+ First release
78
+
79
+ = 1.1 =
80
+ Fixed screenshots for plugin directory
81
+
82
+ = 1.1.1 =
83
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
84
+
85
+ = 1.2 =
86
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
87
+
88
+ = 1.2.1 =
89
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
90
+
91
+ = 1.3 =
92
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
93
+
94
+ = 1.4 =
95
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
96
+
97
+ = 1.5 =
98
+ Thanks to Caspar Huebinger the plugin now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
99
+
100
+ = 1.6 =
101
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
102
+
103
+ = 1.7 =
104
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
105
+
106
+ = 1.8 =
107
+ Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
108
+
109
+ = 1.8.2 =
110
+ Updated German translation and various bugfixes.
111
+
112
+ = 1.8.3 -> rolled-back because of some reported issues with social media icons being added to the widget areas =
113
+ The widget now emulates the $post loop. This means you can now make use of WordPress functionality such as inserting a [gallery]. Thanks to Jari Pennanen for providing the code.
114
+
115
+ = 1.8.4 =
116
+ Added edit content block link to the widget editor and changed the 'view content block' message to include a 'manage widgets' link. The 'Draft' and 'Preview' buttons are now hidden via CSS, hopefully this will soon be default WordPress behaviour (see related ticket: http://core.trac.wordpress.org/ticket/18956).
117
+ Thanks to Julian Gardner-Hobbs (http://www.hobwebs.com/) for requesting this functionality.
118
+
119
+ = 1.8.5 =
120
+ This release is to fix an issue with the WordPress plugin repository.
121
+
122
+ = 1.8.6 =
123
+ Minor bugfix for edit link in widget.
124
+
125
+ = 1.9 =
126
+ The content blocks can now be translated using the WPML plugin, thanks to Jonathan Liuti (http://unboxed-logic.com/).
127
+ Thanks to Vitaliy Kaplya (http://www.dasayt.com/) a Russian translation has been added to the plugin.
128
+
129
+ = 1.9.2 =
130
+ Now includes Polish language files as created by Kuba Skublicki.
131
+
132
+ = 1.9.3 =
133
+ Minor bugfix and added the French translation which was created by Alexandre Simard (http://brocheafoin.biz/).
134
+
135
+
136
+ == Upgrade Notice ==
137
+
138
+ = 1.8 =
139
+ I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
140
+
141
+
tags/1.9.3/screenshot-1.png ADDED
Binary file
tags/1.9.3/screenshot-2.png ADDED
Binary file
tags/1.9.4/custom-post-widget.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.9.4
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.9.4 Added option to disable content filter
12
+
13
+ Copyright 2012 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ // Set constant path to the custom-post-widget plugin directory.
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ // Launch the plugin.
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ // Load the required files needed for the plugin to run in the proper order and add needed functions to the required hooks.
37
+ function custom_post_widget_plugin_init() {
38
+ // Load the translation of the plugin.
39
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
40
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
41
+ }
42
+
43
+ // Loads the widgets packaged with the plugin.
44
+ function custom_post_widget_load_widgets() {
45
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
46
+ register_widget( 'custom_post_widget' );
47
+ }
48
+ ?>
tags/1.9.4/images/contentblock-13.png ADDED
Binary file
tags/1.9.4/images/contentblock-32.png ADDED
Binary file
tags/1.9.4/images/contentblock.png ADDED
Binary file
tags/1.9.4/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.9.4/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.9.4/languages/custom-post-widget-fr_FR.mo ADDED
Binary file
tags/1.9.4/languages/custom-post-widget-fr_FR.po ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget v1.9.2\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
5
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
6
+ "PO-Revision-Date: 2012-06-21 17:06:30+0200\n"
7
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
+ "Language-Team: LANGUAGE <LL@li.org>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:6
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Affiche le contenu d'un bloc dans un widget."
26
+
27
+ #: post-widget.php:7
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Bloc de contenu"
31
+
32
+ #: post-widget.php:15
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Bloc de contenu à afficher:"
36
+
37
+ #: popup.php:43
38
+ #: post-widget.php:27
39
+ #@ custom-post-widget
40
+ msgid "No content blocks available"
41
+ msgstr "Aucun bloc disponible"
42
+
43
+ #: post-widget.php:45
44
+ #@ custom-post-widget
45
+ msgid "Show Post Title"
46
+ msgstr "Afficher le titre du bloc"
47
+
48
+ #: post-widget.php:58
49
+ #@ custom-post-widget
50
+ msgid "Find"
51
+ msgstr "Rechercher"
52
+
53
+ #: post-widget.php:83
54
+ #@ custom-post-widget
55
+ msgctxt "post type general name"
56
+ msgid "Content Blocks"
57
+ msgstr "Blocs de contenu"
58
+
59
+ #: post-widget.php:84
60
+ #@ custom-post-widget
61
+ msgctxt "post type singular name"
62
+ msgid "Content Block"
63
+ msgstr "Bloc de contenu"
64
+
65
+ #: post-widget.php:85
66
+ #@ custom-post-widget
67
+ msgctxt "post type plural name"
68
+ msgid "Content Blocks"
69
+ msgstr "Blocs de contenu"
70
+
71
+ #: post-widget.php:86
72
+ #@ custom-post-widget
73
+ msgctxt "block"
74
+ msgid "Add Content Block"
75
+ msgstr "Ajouter un bloc"
76
+
77
+ #: post-widget.php:87
78
+ #@ custom-post-widget
79
+ msgid "Add New Content Block"
80
+ msgstr "Ajouter un bloc"
81
+
82
+ #: post-widget.php:88
83
+ #@ custom-post-widget
84
+ msgid "Edit Content Block"
85
+ msgstr "Modifier le bloc"
86
+
87
+ #: post-widget.php:89
88
+ #@ custom-post-widget
89
+ msgid "New Content Block"
90
+ msgstr "Nouveau bloc"
91
+
92
+ #: post-widget.php:90
93
+ #@ custom-post-widget
94
+ msgid "View Content Block"
95
+ msgstr "Afficher le bloc"
96
+
97
+ #: post-widget.php:91
98
+ #@ custom-post-widget
99
+ msgid "Search Content Blocks"
100
+ msgstr "Recherche dans les blocs"
101
+
102
+ #: post-widget.php:92
103
+ #@ custom-post-widget
104
+ msgid "No Content Blocks Found"
105
+ msgstr "Aucun bloc trouvé"
106
+
107
+ #: post-widget.php:93
108
+ #@ custom-post-widget
109
+ msgid "No Content Blocks found in Trash"
110
+ msgstr "Aucun bloc trouvé dans la corbeille"
111
+
112
+ #: post-widget.php:136
113
+ #@ custom-post-widget
114
+ msgid "Custom field updated."
115
+ msgstr "Champ personnalisé mis à jour."
116
+
117
+ #: post-widget.php:137
118
+ #@ custom-post-widget
119
+ msgid "Custom field deleted."
120
+ msgstr "Champ personnalisé supprimé."
121
+
122
+ #: post-widget.php:135
123
+ #: post-widget.php:138
124
+ #@ custom-post-widget
125
+ msgid "Content Block updated."
126
+ msgstr "Bloc de contenu mis à jour."
127
+
128
+ #: post-widget.php:139
129
+ #, php-format
130
+ #@ custom-post-widget
131
+ msgid "Content Block restored to revision from %s"
132
+ msgstr "Bloc de contenu restauré à partir de la révision %s"
133
+
134
+ #: post-widget.php:141
135
+ #@ custom-post-widget
136
+ msgid "Block saved."
137
+ msgstr "Bloc sauvegardé."
138
+
139
+ #: post-widget.php:143
140
+ #@ custom-post-widget
141
+ msgid "M j, Y @ G:i"
142
+ msgstr "le j M Y, à G:i"
143
+
144
+ #: popup.php:9
145
+ #@ custom-post-widget
146
+ msgid "Please select a Content Block"
147
+ msgstr "Veuillez choisir un bloc de contenu"
148
+
149
+ #: popup.php:22
150
+ #: popup.php:48
151
+ #@ custom-post-widget
152
+ msgid "Insert Content Block"
153
+ msgstr "Insérer un bloc de contenu"
154
+
155
+ #: popup.php:25
156
+ #@ custom-post-widget
157
+ msgid "Select a Content Block below to add it to your post or page."
158
+ msgstr "Choisissez un bloc de contenu ci-bas pour l'ajouter à votre article ou page."
159
+
160
+ #: popup.php:31
161
+ #@ custom-post-widget
162
+ msgid "Select a Content Block"
163
+ msgstr "Choisissez un bloc"
164
+
165
+ #: popup.php:50
166
+ #@ custom-post-widget
167
+ msgid "Cancel"
168
+ msgstr "Annuler"
169
+
170
+ #: post-widget.php:135
171
+ #, php-format
172
+ #@ custom-post-widget
173
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
174
+ msgstr "Bloc de contenu mis à jour. <a href=\"%s\">Gérer les widgets</a>"
175
+
176
+ #: post-widget.php:140
177
+ #, php-format
178
+ #@ custom-post-widget
179
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
180
+ msgstr "Bloc de contenu publié. <a href=\"%s\">Gérer les widgets</a>"
181
+
182
+ #: post-widget.php:140
183
+ #@ custom-post-widget
184
+ msgid "Content Block published."
185
+ msgstr "Bloc de contenu publié."
186
+
187
+ #: post-widget.php:142
188
+ #, php-format
189
+ #@ custom-post-widget
190
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
191
+ msgstr "Bloc de contenu envoyé. <a href=\"%s\">Gérer les widgets</a>"
192
+
193
+ #: post-widget.php:142
194
+ #@ custom-post-widget
195
+ msgid "Content Block submitted."
196
+ msgstr "Bloc de contenu envoyé."
197
+
198
+ #: post-widget.php:143
199
+ #, php-format
200
+ #@ custom-post-widget
201
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
202
+ msgstr "Publication du bloc prévue pour le <strong>%1$s</strong>."
203
+
204
+ #: post-widget.php:144
205
+ #, php-format
206
+ #@ custom-post-widget
207
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
208
+ msgstr "Brouillon du bloc de contenu mis à jour. <a href=\"%s\">Gérer les widgets</a>"
209
+
210
+ #: post-widget.php:144
211
+ #@ custom-post-widget
212
+ msgid "Content Block draft updated."
213
+ msgstr "Brouillon du bloc de contenu mis à jour."
214
+
215
+ #: post-widget.php:180
216
+ #: post-widget.php:181
217
+ #@ custom-post-widget
218
+ msgid "Add Content Block"
219
+ msgstr "Ajouter un bloc de contenu"
220
+
tags/1.9.4/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.9.4/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,170 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #@ custom-post-widget
47
+ #: post-widget.php:62
48
+ msgid "Find"
49
+ msgstr "Zoeken"
50
+
51
+ #@ custom-post-widget
52
+ #: post-widget.php:94
53
+ msgctxt "post type general name"
54
+ msgid "Content Blocks"
55
+ msgstr "Inhoudsblokken"
56
+
57
+ #@ custom-post-widget
58
+ #: post-widget.php:95
59
+ msgctxt "post type singular name"
60
+ msgid "Content Block"
61
+ msgstr "Inhoudsblok"
62
+
63
+ #@ custom-post-widget
64
+ #: post-widget.php:97
65
+ msgctxt "block"
66
+ msgid "Add Content Block"
67
+ msgstr "Nieuw Inhoudsblok"
68
+
69
+ #@ custom-post-widget
70
+ #: post-widget.php:98
71
+ msgid "Add New Content Block"
72
+ msgstr "Nieuw inhoudsblok toevoegen"
73
+
74
+ #@ custom-post-widget
75
+ #: post-widget.php:99
76
+ msgid "Edit Content Block"
77
+ msgstr "Inhoudsblok Bewerken"
78
+
79
+ #@ custom-post-widget
80
+ #: post-widget.php:100
81
+ msgid "New Content Block"
82
+ msgstr "Nieuw Inhoudsblok"
83
+
84
+ #@ custom-post-widget
85
+ #: post-widget.php:101
86
+ msgid "View Content Block"
87
+ msgstr "Inhoudsblok Bekijken"
88
+
89
+ #@ custom-post-widget
90
+ #: post-widget.php:102
91
+ msgid "Search Content Blocks"
92
+ msgstr "Inhoudsblokken zoeken"
93
+
94
+ #@ custom-post-widget
95
+ #: post-widget.php:103
96
+ msgid "No Content Blocks Found"
97
+ msgstr "Geen Inhoudsblokken"
98
+
99
+ #@ custom-post-widget
100
+ #: post-widget.php:104
101
+ msgid "No Content Blocks found in Trash"
102
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
103
+
104
+ #@ custom-post-widget
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
108
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
109
+
110
+ #@ custom-post-widget
111
+ #: post-widget.php:130
112
+ msgid "Custom field updated."
113
+ msgstr "Custom field bijgewerkt."
114
+
115
+ #@ custom-post-widget
116
+ #: post-widget.php:131
117
+ msgid "Custom field deleted."
118
+ msgstr "Custom field verwijderd."
119
+
120
+ #@ custom-post-widget
121
+ #: post-widget.php:132
122
+ msgid "Content Block updated."
123
+ msgstr "Inhoudsblok bijgewerkt."
124
+
125
+ #@ custom-post-widget
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ msgid "Content Block restored to revision from %s"
129
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
130
+
131
+ #@ custom-post-widget
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
135
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
136
+
137
+ #@ custom-post-widget
138
+ #: post-widget.php:135
139
+ msgid "Block saved."
140
+ msgstr "Inhoudsblok Opgeslagen."
141
+
142
+ #@ custom-post-widget
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
146
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
147
+
148
+ #@ custom-post-widget
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
152
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
153
+
154
+ #@ custom-post-widget
155
+ #: post-widget.php:138
156
+ msgid "M j, Y @ G:i"
157
+ msgstr "j. M Y @ H:M"
158
+
159
+ #@ custom-post-widget
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
163
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
164
+
165
+ #@ custom-post-widget
166
+ #: post-widget.php:96
167
+ msgctxt "post type plural name"
168
+ msgid "Content Blocks"
169
+ msgstr "Inhoudsblokken"
170
+
tags/1.9.4/languages/custom-post-widget-pl_PL.mo ADDED
Binary file
tags/1.9.4/languages/custom-post-widget-pl_PL.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Kuba Es <poedit@webnova.pl>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
15
+ "X-Textdomain-Support: yes\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #@ custom-post-widget
19
+ #: post-widget.php:8
20
+ msgid "Displays custom post content in a widget"
21
+ msgstr "Wyświetla zawartość w widgecie"
22
+
23
+ #@ custom-post-widget
24
+ #: post-widget.php:9
25
+ msgid "Content Block"
26
+ msgstr "Blok Treści"
27
+
28
+ #@ custom-post-widget
29
+ #: post-widget.php:19
30
+ msgid "Content Block to Display:"
31
+ msgstr "Blok Treści do wyświetlenia"
32
+
33
+ #@ custom-post-widget
34
+ #: post-widget.php:31
35
+ msgid "No content blocks available"
36
+ msgstr "Nie utworzono Bloków Treści"
37
+
38
+ #@ custom-post-widget
39
+ #: post-widget.php:43
40
+ msgid "Show Post Title"
41
+ msgstr "Pokaż tytuł postu"
42
+
43
+ #@ custom-post-widget
44
+ #: post-widget.php:62
45
+ msgid "Find"
46
+ msgstr "Znajdź"
47
+
48
+ #@ custom-post-widget
49
+ #: post-widget.php:94
50
+ msgctxt "post type general name"
51
+ msgid "Content Blocks"
52
+ msgstr "Bloki Treści"
53
+
54
+ #@ custom-post-widget
55
+ #: post-widget.php:95
56
+ msgctxt "post type singular name"
57
+ msgid "Content Block"
58
+ msgstr "Blok Treści"
59
+
60
+ #@ custom-post-widget
61
+ #: post-widget.php:97
62
+ msgctxt "block"
63
+ msgid "Add Content Block"
64
+ msgstr "Dodaj Blok Treści"
65
+
66
+ #@ custom-post-widget
67
+ #: post-widget.php:98
68
+ msgid "Add New Content Block"
69
+ msgstr "Nowy Blok Treści"
70
+
71
+ #@ custom-post-widget
72
+ #: post-widget.php:99
73
+ msgid "Edit Content Block"
74
+ msgstr "Edytuj Blok Treści"
75
+
76
+ #@ custom-post-widget
77
+ #: post-widget.php:100
78
+ msgid "New Content Block"
79
+ msgstr "Nowy Blok Treści"
80
+
81
+ #@ custom-post-widget
82
+ #: post-widget.php:101
83
+ msgid "View Content Block"
84
+ msgstr "Zobacz Blok Treści"
85
+
86
+ #@ custom-post-widget
87
+ #: post-widget.php:102
88
+ msgid "Search Content Blocks"
89
+ msgstr "Szukaj Bloków Treśc"
90
+
91
+ #@ custom-post-widget
92
+ #: post-widget.php:103
93
+ msgid "No Content Blocks Found"
94
+ msgstr "Nie znaleziono Bloków Treści"
95
+
96
+ #@ custom-post-widget
97
+ #: post-widget.php:104
98
+ msgid "No Content Blocks found in Trash"
99
+ msgstr "Nie znaleziono Bloków Treści w archiwum"
100
+
101
+ #@ custom-post-widget
102
+ #: post-widget.php:129
103
+ #, php-format
104
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
105
+ msgstr "Blok Treści został zapisany. <a href=\"%s\">Zobacz</a>"
106
+
107
+ #@ custom-post-widget
108
+ #: post-widget.php:130
109
+ msgid "Custom field updated."
110
+ msgstr "Własne pola zostały zaktualizowane."
111
+
112
+ #@ custom-post-widget
113
+ #: post-widget.php:131
114
+ msgid "Custom field deleted."
115
+ msgstr "Własne pola zostały usunięte."
116
+
117
+ #@ custom-post-widget
118
+ #: post-widget.php:132
119
+ msgid "Content Block updated."
120
+ msgstr "Blok Treści zaktualizowany."
121
+
122
+ #@ custom-post-widget
123
+ #: post-widget.php:133
124
+ #, php-format
125
+ msgid "Content Block restored to revision from %s"
126
+ msgstr "Przywrócono Blok Treści do rewizji z %s"
127
+
128
+ #@ custom-post-widget
129
+ #: post-widget.php:134
130
+ #, php-format
131
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
132
+ msgstr "Blok Treści został opublikowany. <a href=\"%s\">Zobacz</a>"
133
+
134
+ #@ custom-post-widget
135
+ #: post-widget.php:135
136
+ msgid "Block saved."
137
+ msgstr "Blok zapisany."
138
+
139
+ #@ custom-post-widget
140
+ #: post-widget.php:136
141
+ #, php-format
142
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
143
+ msgstr "Blok Treści przesłany. <a target=\"_blank\" href=\"%s\">Podgląd Bloku</a>"
144
+
145
+ #@ custom-post-widget
146
+ #: post-widget.php:137
147
+ #, php-format
148
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
149
+ msgstr "Blok Treści zaplanowany na: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Podgląd Bloku</a>"
150
+
151
+ #@ custom-post-widget
152
+ #: post-widget.php:138
153
+ msgid "M j, Y @ G:i"
154
+ msgstr "j. M Y @ H:M"
155
+
156
+ #@ custom-post-widget
157
+ #: post-widget.php:139
158
+ #, php-format
159
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
160
+ msgstr "Szkic zapisany. <a target=\"_blank\" href=\"%s\">Podgląd Bloku</a>"
161
+
162
+ #@ custom-post-widget
163
+ #: post-widget.php:96
164
+ msgctxt "post type plural name"
165
+ msgid "Content Blocks"
166
+ msgstr "Bloki Treści"
167
+
tags/1.9.4/languages/custom-post-widget-ru_RU.mo ADDED
Binary file
tags/1.9.4/languages/custom-post-widget-ru_RU.po ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-02-23 13:16+0200\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Виталий Капля <vitaliy.kaplya@dasayt.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Poedit-SearchPath-1: ..\n"
21
+
22
+ # @ custom-post-widget
23
+ #: ../popup.php:9
24
+ msgid "Please select a Content Block"
25
+ msgstr "Выберете блок"
26
+
27
+ # @ custom-post-widget
28
+ #: ../popup.php:22
29
+ #: ../popup.php:48
30
+ msgid "Insert Content Block"
31
+ msgstr "Вставить блок"
32
+
33
+ #: ../popup.php:25
34
+ msgid "Select a Content Block below to add it to your post or page."
35
+ msgstr "Выберете блок перед тем, как добавить его на страницу."
36
+
37
+ # @ custom-post-widget
38
+ #: ../popup.php:31
39
+ msgid "Select a Content Block"
40
+ msgstr "Выберите блок"
41
+
42
+ # @ custom-post-widget
43
+ #: ../popup.php:43
44
+ #: ../post-widget.php:27
45
+ msgid "No content blocks available"
46
+ msgstr "Блоки не найдены"
47
+
48
+ #: ../popup.php:50
49
+ msgid "Cancel"
50
+ msgstr "Отмена"
51
+
52
+ # @ custom-post-widget
53
+ #: ../post-widget.php:6
54
+ msgid "Displays custom post content in a widget"
55
+ msgstr "Отображение пользовательского контента в виджете"
56
+
57
+ # @ custom-post-widget
58
+ #: ../post-widget.php:7
59
+ msgid "Content Block"
60
+ msgstr "Блоки"
61
+
62
+ # @ custom-post-widget
63
+ #: ../post-widget.php:15
64
+ msgid "Content Block to Display:"
65
+ msgstr "Отображать следующий блок:"
66
+
67
+ # @ custom-post-widget
68
+ #: ../post-widget.php:45
69
+ msgid "Show Post Title"
70
+ msgstr "Выводить заголовок"
71
+
72
+ # @ custom-post-widget
73
+ #: ../post-widget.php:58
74
+ msgid "Find"
75
+ msgstr "Найти"
76
+
77
+ # @ custom-post-widget
78
+ #: ../post-widget.php:79
79
+ msgctxt "post type general name"
80
+ msgid "Content Blocks"
81
+ msgstr "Блоки"
82
+
83
+ # @ custom-post-widget
84
+ #: ../post-widget.php:80
85
+ msgctxt "post type singular name"
86
+ msgid "Content Block"
87
+ msgstr "Блок"
88
+
89
+ # @ custom-post-widget
90
+ #: ../post-widget.php:81
91
+ msgctxt "post type plural name"
92
+ msgid "Content Blocks"
93
+ msgstr "Блоки"
94
+
95
+ # @ custom-post-widget
96
+ #: ../post-widget.php:82
97
+ msgctxt "block"
98
+ msgid "Add Content Block"
99
+ msgstr "Добавить блок"
100
+
101
+ # @ custom-post-widget
102
+ #: ../post-widget.php:83
103
+ msgid "Add New Content Block"
104
+ msgstr "Добавить новы блок"
105
+
106
+ # @ custom-post-widget
107
+ #: ../post-widget.php:84
108
+ msgid "Edit Content Block"
109
+ msgstr "Редактировать блок"
110
+
111
+ # @ custom-post-widget
112
+ #: ../post-widget.php:85
113
+ msgid "New Content Block"
114
+ msgstr "Новый блок"
115
+
116
+ # @ custom-post-widget
117
+ #: ../post-widget.php:86
118
+ msgid "View Content Block"
119
+ msgstr "Открыть блок"
120
+
121
+ # @ custom-post-widget
122
+ #: ../post-widget.php:87
123
+ msgid "Search Content Blocks"
124
+ msgstr "Найти блок"
125
+
126
+ # @ custom-post-widget
127
+ #: ../post-widget.php:88
128
+ msgid "No Content Blocks Found"
129
+ msgstr "Блоки не найдены"
130
+
131
+ # @ custom-post-widget
132
+ #: ../post-widget.php:89
133
+ msgid "No Content Blocks found in Trash"
134
+ msgstr "В корзине пусто"
135
+
136
+ # @ custom-post-widget
137
+ #: ../post-widget.php:131
138
+ #, php-format
139
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
140
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
141
+
142
+ # @ custom-post-widget
143
+ #: ../post-widget.php:131
144
+ #: ../post-widget.php:134
145
+ msgid "Content Block updated."
146
+ msgstr "Блок обновлен."
147
+
148
+ # @ custom-post-widget
149
+ #: ../post-widget.php:132
150
+ msgid "Custom field updated."
151
+ msgstr "Поле обновлено."
152
+
153
+ # @ custom-post-widget
154
+ #: ../post-widget.php:133
155
+ msgid "Custom field deleted."
156
+ msgstr "Поле удалено"
157
+
158
+ # @ custom-post-widget
159
+ #: ../post-widget.php:135
160
+ #, php-format
161
+ msgid "Content Block restored to revision from %s"
162
+ msgstr "Блок востановлен с ревизии %s"
163
+
164
+ # @ custom-post-widget
165
+ #: ../post-widget.php:136
166
+ #, php-format
167
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
168
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджетами</a>"
169
+
170
+ # @ custom-post-widget
171
+ #: ../post-widget.php:136
172
+ msgid "Content Block published."
173
+ msgstr "Блок опубликован."
174
+
175
+ # @ custom-post-widget
176
+ #: ../post-widget.php:137
177
+ msgid "Block saved."
178
+ msgstr "Блок сохранен"
179
+
180
+ # @ custom-post-widget
181
+ #: ../post-widget.php:138
182
+ #, php-format
183
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
184
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджеатми</a>"
185
+
186
+ # @ custom-post-widget
187
+ #: ../post-widget.php:138
188
+ msgid "Content Block submitted."
189
+ msgstr "Блок опубликован."
190
+
191
+ # @ custom-post-widget
192
+ #: ../post-widget.php:139
193
+ #, php-format
194
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
195
+ msgstr "Блок запланирован на: <strong>%1$s</strong>."
196
+
197
+ # @ custom-post-widget
198
+ #: ../post-widget.php:139
199
+ msgid "M j, Y @ G:i"
200
+ msgstr "M j, Y @ G:i"
201
+
202
+ # @ custom-post-widget
203
+ #: ../post-widget.php:140
204
+ #, php-format
205
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
206
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
207
+
208
+ # @ custom-post-widget
209
+ #: ../post-widget.php:140
210
+ msgid "Content Block draft updated."
211
+ msgstr "Черновик блока обновлен."
212
+
213
+ # @ custom-post-widget
214
+ #: ../post-widget.php:175
215
+ #: ../post-widget.php:176
216
+ msgid "Add Content Block"
217
+ msgstr "Добавить блок"
218
+
tags/1.9.4/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,157 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:61
36
+ msgid "Find"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:91
40
+ msgctxt "post type general name"
41
+ msgid "Content Blocks"
42
+ msgstr ""
43
+
44
+ #: post-widget.php:92
45
+ msgctxt "post type singular name"
46
+ msgid "Content Block"
47
+ msgstr ""
48
+
49
+ #: post-widget.php:93
50
+ msgctxt "post type plural name"
51
+ msgid "Content Blocks"
52
+ msgstr ""
53
+
54
+ #: post-widget.php:94
55
+ msgctxt "block"
56
+ msgid "Add Content Block"
57
+ msgstr ""
58
+
59
+ #: post-widget.php:95
60
+ msgid "Add New Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:96
64
+ msgid "Edit Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:97
68
+ msgid "New Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:98
72
+ msgid "View Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:99
76
+ msgid "Search Content Blocks"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:100
80
+ msgid "No Content Blocks Found"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:101
84
+ msgid "No Content Blocks found in Trash"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:126
88
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:127
92
+ msgid "Custom field updated."
93
+ msgstr ""
94
+
95
+ #: post-widget.php:128
96
+ msgid "Custom field deleted."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:129
100
+ msgid "Content Block updated."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:130
104
+ msgid "Content Block restored to revision from %s"
105
+ msgstr ""
106
+
107
+ #: post-widget.php:131
108
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:132
112
+ msgid "Block saved."
113
+ msgstr ""
114
+
115
+ #: post-widget.php:133
116
+ msgid ""
117
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
118
+ "Block</a>"
119
+ msgstr ""
120
+
121
+ #: post-widget.php:134
122
+ msgid ""
123
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
124
+ "href=\"%2$s\">Preview block</a>"
125
+ msgstr ""
126
+
127
+ #: post-widget.php:135
128
+ msgid "M j, Y @ G:i"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:136
132
+ msgid ""
133
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
134
+ "Content Block</a>"
135
+ msgstr ""
136
+
137
+ #. Plugin Name of the plugin/theme
138
+ msgid "Custom Post Widget"
139
+ msgstr ""
140
+
141
+ #. Plugin URI of the plugin/theme
142
+ msgid ""
143
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
144
+ msgstr ""
145
+
146
+ #. Description of the plugin/theme
147
+ msgid ""
148
+ "Show the content of a custom post of the type 'content_block' in a widget."
149
+ msgstr ""
150
+
151
+ #. Author of the plugin/theme
152
+ msgid "Johan van der Wijk"
153
+ msgstr ""
154
+
155
+ #. Author URI of the plugin/theme
156
+ msgid "http://www.vanderwijk.com"
157
+ msgstr ""
tags/1.9.4/popup.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // Action target that displays the popup to insert a content block to a post/page
2
+
3
+ function add_content_block_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+ var win = window.dialogArguments || opener || parent || top;
13
+ win.send_to_editor("[content_block id=" + content_id + "]");
14
+ }
15
+ </script>
16
+
17
+ <div id="content_block_form" style="display:none;">
18
+ <div class="wrap">
19
+ <div>
20
+ <div style="padding:15px 15px 0 15px;">
21
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;">
22
+ <?php _e("Insert Content Block", 'custom-post-widget'); ?>
23
+ </h3>
24
+ <span>
25
+ <?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?>
26
+ </span>
27
+ </div>
28
+ <div style="padding:15px 15px 0 15px;">
29
+ <select id="add_content_block_id">
30
+ <option value="">
31
+ <?php _e("Select a Content Block", 'custom-post-widget'); ?>
32
+ </option>
33
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
34
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
35
+ $currentID = get_the_ID();
36
+ if($currentID == $custom_post_id)
37
+ $extra = 'selected' and
38
+ $widgetExtraTitle = get_the_title();
39
+ else
40
+ $extra = '';
41
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
42
+ endwhile; else:
43
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
44
+ endif; ?>
45
+ </select>
46
+ <br />
47
+ <div style="padding:15px;">
48
+ <input type="button" class="button-primary" value="<?php _e("Insert Content Block", 'custom-post-widget') ?>" onclick="InsertContentBlockForm();"/>
49
+ &nbsp;&nbsp;&nbsp; <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;">
50
+ <?php _e("Cancel", 'custom-post-widget'); ?>
51
+ </a>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <?php } ?>
tags/1.9.4/post-widget.php ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget {
5
+ function custom_post_widget() {
6
+ $widget_ops = array( 'description' => __( 'Displays custom post content in a widget', 'custom-post-widget' ) );
7
+ $this->WP_Widget( 'custom_post_widget', __( 'Content Block', 'custom-post-widget' ), $widget_ops );
8
+ }
9
+
10
+ function form( $instance ) {
11
+ $custom_post_id = esc_attr( $instance['custom_post_id'] );
12
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : true;
13
+ $apply_content_filters = isset( $instance['apply_content_filters'] ) ? $instance['apply_content_filters'] : true;
14
+ ?>
15
+
16
+ <p>
17
+ <label for="<?php echo $this->get_field_id( 'custom_post_id' ); ?>"> <?php echo __( 'Content Block to Display:', 'custom-post-widget' ) ?>
18
+ <select class="widefat" id="<?php echo $this->get_field_id( 'custom_post_id' ); ?>" name="<?php echo $this->get_field_name( 'custom_post_id' ); ?>">
19
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
20
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
21
+ $currentID = get_the_ID();
22
+ if( $currentID == $custom_post_id )
23
+ $extra = 'selected' and
24
+ $widgetExtraTitle = get_the_title();
25
+ else
26
+ $extra = '';
27
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
28
+ endwhile; else:
29
+ echo '<option value="empty">' . __( 'No content blocks available', 'custom-post-widget' ) . '</option>';
30
+ endif; ?>
31
+ </select>
32
+ </label>
33
+ </p>
34
+
35
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
36
+
37
+ <p>
38
+ <?php
39
+ echo '<a href="post.php?post=' . $custom_post_id . '&action=edit">' . __( 'Edit Content Block', 'custom-post-widget' ) . '</a>' ;
40
+ ?>
41
+ </p>
42
+
43
+ <?php wp_reset_query(); ?>
44
+
45
+ <p>
46
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
47
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __( 'Show Post Title', 'custom-post-widget' ) ?></label>
48
+ </p>
49
+
50
+ <p>
51
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['apply_content_filters'], true ); ?> id="<?php echo $this->get_field_id( 'apply_content_filters' ); ?>" name="<?php echo $this->get_field_name( 'apply_content_filters' ); ?>" />
52
+ <label for="<?php echo $this->get_field_id( 'apply_content_filters' ); ?>"><?php echo __( 'Do not apply content filters', 'custom-post-widget' ) ?></label>
53
+ </p> <?php
54
+ }
55
+
56
+ function update( $new_instance, $old_instance ) {
57
+ $instance = $old_instance;
58
+ $instance['custom_post_id'] = strip_tags( $new_instance['custom_post_id'] );
59
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
60
+ $instance['apply_content_filters'] = $new_instance['apply_content_filters'];
61
+ return $instance;
62
+ }
63
+
64
+ function widget($args, $instance) {
65
+ extract($args);
66
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
67
+ // Add support for WPML Plugin.
68
+ if ( function_exists( 'icl_object_id' ) ){
69
+ $custom_post_id = icl_object_id( $custom_post_id, 'content_block', true );
70
+ }
71
+ // Variables from the widget settings.
72
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
73
+ $apply_content_filters = isset($instance['apply_content_filters']) ? $instance['apply_content_filters'] : false;
74
+ $content_post = get_post($custom_post_id);
75
+ $content = $content_post->post_content;
76
+ if ( !$apply_content_filters ) { // Don't apply the content filter if checkbox selected
77
+ $content = apply_filters('the_content', $content);
78
+ }
79
+ echo $before_widget;
80
+ if ( $show_custom_post_title ) {
81
+ echo $before_title . apply_filters('widget_title',$content_post->post_title) . $after_title; // This is the line that displays the title (only if show title is set)
82
+ }
83
+ echo do_shortcode($content); // This is where the actual content of the custom post is being displayed
84
+ echo $after_widget;
85
+ }
86
+
87
+ }
88
+
89
+ // Create the Content Block custom post type
90
+ add_action('init', 'my_content_block_post_type_init');
91
+
92
+ function my_content_block_post_type_init() {
93
+ $labels = array(
94
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
95
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
96
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
97
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
98
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
99
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
100
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
101
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
102
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
103
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
104
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
105
+ 'parent_item_colon' => ''
106
+ );
107
+ $options = array(
108
+ 'labels' => $labels,
109
+ 'public' => false,
110
+ 'publicly_queryable' => false,
111
+ 'exclude_from_search' => true,
112
+ 'show_ui' => true,
113
+ 'query_var' => true,
114
+ 'rewrite' => true,
115
+ 'capability_type' => 'post',
116
+ 'hierarchical' => false,
117
+ 'menu_position' => null,
118
+ 'supports' => array('title','editor','revisions','thumbnail','author')
119
+ );
120
+ register_post_type('content_block',$options);
121
+ }
122
+
123
+ // Add custom styles to admin screen and menu
124
+ add_action('admin_head', 'content_block_header');
125
+
126
+ function content_block_header() {
127
+ global $post_type; ?>
128
+ <style type="text/css">
129
+ <!--
130
+ <?php if (($post_type == 'content_block')) : ?>
131
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important;}
132
+ #minor-publishing-actions { display:none; /* Hide the Save Draft and Preview buttons */}
133
+ <?php endif; ?>
134
+ #adminmenu #menu-posts-content_block div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
135
+ #adminmenu #menu-posts-content_block:hover div.wp-menu-image,#adminmenu #menu-posts-content_block.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
136
+ -->
137
+ </style>
138
+ <?php
139
+ }
140
+
141
+ add_filter('post_updated_messages', 'content_block_messages');
142
+
143
+ function content_block_messages( $messages ) {
144
+ $messages['content_block'] = array(
145
+ 0 => '',
146
+ 1 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
147
+ 2 => __('Custom field updated.', 'custom-post-widget'),
148
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
149
+ 4 => __('Content Block updated.', 'custom-post-widget'),
150
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
151
+ 6 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block published. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block published.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
152
+ 7 => __('Block saved.', 'custom-post-widget'),
153
+ 8 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block submitted. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block submitted.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
154
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>.', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( 'widgets.php' ) ),
155
+ 10 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block draft updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block draft updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
156
+ );
157
+ return $messages;
158
+ }
159
+
160
+ // Add the ability to display the content block in a reqular post using a shortcode
161
+ function custom_post_widget_shortcode($atts) {
162
+ extract(shortcode_atts(array(
163
+ 'id' => '',
164
+ 'class' => 'content_block'
165
+ ), $atts));
166
+
167
+ $content = "";
168
+
169
+ if($id != "") {
170
+ $args = array(
171
+ 'post__in' => array($id),
172
+ 'post_type' => 'content_block',
173
+ );
174
+
175
+ $content_post = get_posts($args);
176
+
177
+ foreach( $content_post as $post ) :
178
+ $content .= '<div class="'. esc_attr($class) .'">';
179
+ $content .= apply_filters('the_content', $post->post_content);
180
+ $content .= '</div>';
181
+ endforeach;
182
+ }
183
+
184
+ return $content;
185
+ }
186
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
187
+
188
+ // Add button above editor
189
+ function add_content_block_icon($initcontext) {
190
+ return $initcontext.
191
+ '<a id="add_content_block" style="text-decoration:none;" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php?type=add_content_block_popup&amp;TB_inline=true&amp;inlineId=content_block_form">
192
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
193
+ </a>';
194
+ }
195
+
196
+ add_filter('media_buttons_context', 'add_content_block_icon');
197
+
198
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
199
+
200
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
201
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
202
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
203
+ add_action('admin_footer', 'add_content_block_popup');
204
+ }
205
+ ?>
tags/1.9.4/readme.txt ADDED
@@ -0,0 +1,144 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar, content block, content, block, custom, post, shortcode
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.4.1
8
+ Stable tag: 1.9.3
9
+ License: GPLv2 or later
10
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
+
12
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
13
+
14
+ == Description ==
15
+
16
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
17
+
18
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
19
+
20
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
21
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
22
+
23
+ This plugin creates a 'content_block' custom post type. You can choose to either display the title on the page or use it to describe the contents and widget position of the content block. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
24
+
25
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
26
+
27
+ This plugin is ready for localization and Dutch, French, German, Polish and Russian language files are included.
28
+
29
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
30
+
31
+ == Screenshots ==
32
+
33
+ 1. After activating the plugin a new post type called 'Content Blocks' is added. You can also see the little icon above the WYSIWYG editor that allows you to insert the content block using the shortcode.
34
+ 2. The widget has a select box to choose the content block. Click on the 'Edit Content Block' link to edit the selected Content Block custom post.
35
+
36
+ == Installation ==
37
+
38
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
39
+ 2. Then activate the plugin in the plugin panel.
40
+ You will see that a new custom post type has been added called Content Block.
41
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
42
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
43
+ 5. Select a Content Block from the drop-down list.
44
+ 6. Click save.
45
+
46
+ == Frequently Asked Questions ==
47
+
48
+ = Why can't I use the default text-widget? =
49
+
50
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
51
+
52
+ = How can I show the content bock on a specific page? =
53
+
54
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
55
+
56
+ = How can I display the featured image in the widget? =
57
+
58
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
59
+
60
+ `function InsertFeaturedImage($content) {
61
+ global $post;
62
+ $original_content = $content;
63
+ if (current_theme_supports('post-thumbnails')) {
64
+ if ('content_block' == get_post_type()) {
65
+ $content = the_post_thumbnail('medium');
66
+ $content .= $original_content;
67
+ }
68
+ }
69
+ return $content;
70
+ }
71
+ add_filter('the_content', 'InsertFeaturedImage');`
72
+
73
+
74
+ == Changelog ==
75
+
76
+ = 1.9.4 =
77
+ Added the option to disable apply_filters on the content to prevent issues with misbehaving plugins. I would have rather not added this, but it appears many plugin developers do not know how to properly use filters (see http://pippinsplugins.com/playing-nice-with-the-content-filter/).
78
+
79
+ = 1.9.3 =
80
+ Minor bugfix and added the French translation which was created by Alexandre Simard (http://brocheafoin.biz/).
81
+
82
+ = 1.9.2 =
83
+ Now includes Polish language files as created by Kuba Skublicki.
84
+
85
+ = 1.9 =
86
+ The content blocks can now be translated using the WPML plugin, thanks to Jonathan Liuti (http://unboxed-logic.com/).
87
+ Thanks to Vitaliy Kaplya (http://www.dasayt.com/) a Russian translation has been added to the plugin.
88
+
89
+ = 1.8.6 =
90
+ Minor bugfix for edit link in widget.
91
+
92
+ = 1.8.5 =
93
+ This release is to fix an issue with the WordPress plugin repository.
94
+
95
+ = 1.8.4 =
96
+ Added edit content block link to the widget editor and changed the 'view content block' message to include a 'manage widgets' link. The 'Draft' and 'Preview' buttons are now hidden via CSS, hopefully this will soon be default WordPress behaviour (see related ticket: http://core.trac.wordpress.org/ticket/18956).
97
+ Thanks to Julian Gardner-Hobbs (http://www.hobwebs.com/) for requesting this functionality.
98
+
99
+ = 1.8.3 -> rolled-back because of some reported issues with social media icons being added to the widget areas =
100
+ The widget now emulates the $post loop. This means you can now make use of WordPress functionality such as inserting a [gallery]. Thanks to Jari Pennanen for providing the code.
101
+
102
+ = 1.8.2 =
103
+ Updated German translation and various bugfixes.
104
+
105
+ = 1.8 =
106
+ Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
107
+
108
+ = 1.7 =
109
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
110
+
111
+ = 1.6 =
112
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
113
+
114
+ = 1.5 =
115
+ Thanks to Caspar Huebinger the plugin now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
116
+
117
+ = 1.4 =
118
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
119
+
120
+ = 1.3 =
121
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
122
+
123
+ = 1.2.1 =
124
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
125
+
126
+ = 1.2 =
127
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
128
+
129
+ = 1.1.1 =
130
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
131
+
132
+ = 1.1 =
133
+ Fixed screenshots for plugin directory
134
+
135
+ = 1.0 =
136
+ First release
137
+
138
+
139
+ == Upgrade Notice ==
140
+
141
+ = 1.8 =
142
+ I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
143
+
144
+
tags/1.9.4/screenshot-1.png ADDED
Binary file
tags/1.9.4/screenshot-2.png ADDED
Binary file
tags/1.9.5/custom-post-widget.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.9.5
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.9.5 Added option to disable content filter
12
+
13
+ Copyright 2012 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ // Set constant path to the custom-post-widget plugin directory.
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ // Launch the plugin.
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ // Load the required files needed for the plugin to run in the proper order and add needed functions to the required hooks.
37
+ function custom_post_widget_plugin_init() {
38
+ // Load the translation of the plugin.
39
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
40
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
41
+ }
42
+
43
+ // Loads the widgets packaged with the plugin.
44
+ function custom_post_widget_load_widgets() {
45
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
46
+ register_widget( 'custom_post_widget' );
47
+ }
48
+ ?>
tags/1.9.5/images/contentblock-13.png ADDED
Binary file
tags/1.9.5/images/contentblock-32.png ADDED
Binary file
tags/1.9.5/images/contentblock.png ADDED
Binary file
tags/1.9.5/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.9.5/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.9.5/languages/custom-post-widget-fr_FR.mo ADDED
Binary file
tags/1.9.5/languages/custom-post-widget-fr_FR.po ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget v1.9.2\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
5
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
6
+ "PO-Revision-Date: 2012-06-21 17:06:30+0200\n"
7
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
+ "Language-Team: LANGUAGE <LL@li.org>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:6
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Affiche le contenu d'un bloc dans un widget."
26
+
27
+ #: post-widget.php:7
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Bloc de contenu"
31
+
32
+ #: post-widget.php:15
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Bloc de contenu à afficher:"
36
+
37
+ #: popup.php:43
38
+ #: post-widget.php:27
39
+ #@ custom-post-widget
40
+ msgid "No content blocks available"
41
+ msgstr "Aucun bloc disponible"
42
+
43
+ #: post-widget.php:45
44
+ #@ custom-post-widget
45
+ msgid "Show Post Title"
46
+ msgstr "Afficher le titre du bloc"
47
+
48
+ #: post-widget.php:58
49
+ #@ custom-post-widget
50
+ msgid "Find"
51
+ msgstr "Rechercher"
52
+
53
+ #: post-widget.php:83
54
+ #@ custom-post-widget
55
+ msgctxt "post type general name"
56
+ msgid "Content Blocks"
57
+ msgstr "Blocs de contenu"
58
+
59
+ #: post-widget.php:84
60
+ #@ custom-post-widget
61
+ msgctxt "post type singular name"
62
+ msgid "Content Block"
63
+ msgstr "Bloc de contenu"
64
+
65
+ #: post-widget.php:85
66
+ #@ custom-post-widget
67
+ msgctxt "post type plural name"
68
+ msgid "Content Blocks"
69
+ msgstr "Blocs de contenu"
70
+
71
+ #: post-widget.php:86
72
+ #@ custom-post-widget
73
+ msgctxt "block"
74
+ msgid "Add Content Block"
75
+ msgstr "Ajouter un bloc"
76
+
77
+ #: post-widget.php:87
78
+ #@ custom-post-widget
79
+ msgid "Add New Content Block"
80
+ msgstr "Ajouter un bloc"
81
+
82
+ #: post-widget.php:88
83
+ #@ custom-post-widget
84
+ msgid "Edit Content Block"
85
+ msgstr "Modifier le bloc"
86
+
87
+ #: post-widget.php:89
88
+ #@ custom-post-widget
89
+ msgid "New Content Block"
90
+ msgstr "Nouveau bloc"
91
+
92
+ #: post-widget.php:90
93
+ #@ custom-post-widget
94
+ msgid "View Content Block"
95
+ msgstr "Afficher le bloc"
96
+
97
+ #: post-widget.php:91
98
+ #@ custom-post-widget
99
+ msgid "Search Content Blocks"
100
+ msgstr "Recherche dans les blocs"
101
+
102
+ #: post-widget.php:92
103
+ #@ custom-post-widget
104
+ msgid "No Content Blocks Found"
105
+ msgstr "Aucun bloc trouvé"
106
+
107
+ #: post-widget.php:93
108
+ #@ custom-post-widget
109
+ msgid "No Content Blocks found in Trash"
110
+ msgstr "Aucun bloc trouvé dans la corbeille"
111
+
112
+ #: post-widget.php:136
113
+ #@ custom-post-widget
114
+ msgid "Custom field updated."
115
+ msgstr "Champ personnalisé mis à jour."
116
+
117
+ #: post-widget.php:137
118
+ #@ custom-post-widget
119
+ msgid "Custom field deleted."
120
+ msgstr "Champ personnalisé supprimé."
121
+
122
+ #: post-widget.php:135
123
+ #: post-widget.php:138
124
+ #@ custom-post-widget
125
+ msgid "Content Block updated."
126
+ msgstr "Bloc de contenu mis à jour."
127
+
128
+ #: post-widget.php:139
129
+ #, php-format
130
+ #@ custom-post-widget
131
+ msgid "Content Block restored to revision from %s"
132
+ msgstr "Bloc de contenu restauré à partir de la révision %s"
133
+
134
+ #: post-widget.php:141
135
+ #@ custom-post-widget
136
+ msgid "Block saved."
137
+ msgstr "Bloc sauvegardé."
138
+
139
+ #: post-widget.php:143
140
+ #@ custom-post-widget
141
+ msgid "M j, Y @ G:i"
142
+ msgstr "le j M Y, à G:i"
143
+
144
+ #: popup.php:9
145
+ #@ custom-post-widget
146
+ msgid "Please select a Content Block"
147
+ msgstr "Veuillez choisir un bloc de contenu"
148
+
149
+ #: popup.php:22
150
+ #: popup.php:48
151
+ #@ custom-post-widget
152
+ msgid "Insert Content Block"
153
+ msgstr "Insérer un bloc de contenu"
154
+
155
+ #: popup.php:25
156
+ #@ custom-post-widget
157
+ msgid "Select a Content Block below to add it to your post or page."
158
+ msgstr "Choisissez un bloc de contenu ci-bas pour l'ajouter à votre article ou page."
159
+
160
+ #: popup.php:31
161
+ #@ custom-post-widget
162
+ msgid "Select a Content Block"
163
+ msgstr "Choisissez un bloc"
164
+
165
+ #: popup.php:50
166
+ #@ custom-post-widget
167
+ msgid "Cancel"
168
+ msgstr "Annuler"
169
+
170
+ #: post-widget.php:135
171
+ #, php-format
172
+ #@ custom-post-widget
173
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
174
+ msgstr "Bloc de contenu mis à jour. <a href=\"%s\">Gérer les widgets</a>"
175
+
176
+ #: post-widget.php:140
177
+ #, php-format
178
+ #@ custom-post-widget
179
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
180
+ msgstr "Bloc de contenu publié. <a href=\"%s\">Gérer les widgets</a>"
181
+
182
+ #: post-widget.php:140
183
+ #@ custom-post-widget
184
+ msgid "Content Block published."
185
+ msgstr "Bloc de contenu publié."
186
+
187
+ #: post-widget.php:142
188
+ #, php-format
189
+ #@ custom-post-widget
190
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
191
+ msgstr "Bloc de contenu envoyé. <a href=\"%s\">Gérer les widgets</a>"
192
+
193
+ #: post-widget.php:142
194
+ #@ custom-post-widget
195
+ msgid "Content Block submitted."
196
+ msgstr "Bloc de contenu envoyé."
197
+
198
+ #: post-widget.php:143
199
+ #, php-format
200
+ #@ custom-post-widget
201
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
202
+ msgstr "Publication du bloc prévue pour le <strong>%1$s</strong>."
203
+
204
+ #: post-widget.php:144
205
+ #, php-format
206
+ #@ custom-post-widget
207
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
208
+ msgstr "Brouillon du bloc de contenu mis à jour. <a href=\"%s\">Gérer les widgets</a>"
209
+
210
+ #: post-widget.php:144
211
+ #@ custom-post-widget
212
+ msgid "Content Block draft updated."
213
+ msgstr "Brouillon du bloc de contenu mis à jour."
214
+
215
+ #: post-widget.php:180
216
+ #: post-widget.php:181
217
+ #@ custom-post-widget
218
+ msgid "Add Content Block"
219
+ msgstr "Ajouter un bloc de contenu"
220
+
tags/1.9.5/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.9.5/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #: post-widget.php:52
47
+ msgid "Do not apply content filters"
48
+ msgstr "Apply_filters niet toepassen"
49
+
50
+ #@ custom-post-widget
51
+ #: post-widget.php:62
52
+ msgid "Find"
53
+ msgstr "Zoeken"
54
+
55
+ #@ custom-post-widget
56
+ #: post-widget.php:94
57
+ msgctxt "post type general name"
58
+ msgid "Content Blocks"
59
+ msgstr "Inhoudsblokken"
60
+
61
+ #@ custom-post-widget
62
+ #: post-widget.php:95
63
+ msgctxt "post type singular name"
64
+ msgid "Content Block"
65
+ msgstr "Inhoudsblok"
66
+
67
+ #@ custom-post-widget
68
+ #: post-widget.php:97
69
+ msgctxt "block"
70
+ msgid "Add Content Block"
71
+ msgstr "Nieuw Inhoudsblok"
72
+
73
+ #@ custom-post-widget
74
+ #: post-widget.php:98
75
+ msgid "Add New Content Block"
76
+ msgstr "Nieuw inhoudsblok toevoegen"
77
+
78
+ #@ custom-post-widget
79
+ #: post-widget.php:99
80
+ msgid "Edit Content Block"
81
+ msgstr "Inhoudsblok Bewerken"
82
+
83
+ #@ custom-post-widget
84
+ #: post-widget.php:100
85
+ msgid "New Content Block"
86
+ msgstr "Nieuw Inhoudsblok"
87
+
88
+ #@ custom-post-widget
89
+ #: post-widget.php:101
90
+ msgid "View Content Block"
91
+ msgstr "Inhoudsblok Bekijken"
92
+
93
+ #@ custom-post-widget
94
+ #: post-widget.php:102
95
+ msgid "Search Content Blocks"
96
+ msgstr "Inhoudsblokken zoeken"
97
+
98
+ #@ custom-post-widget
99
+ #: post-widget.php:103
100
+ msgid "No Content Blocks Found"
101
+ msgstr "Geen Inhoudsblokken"
102
+
103
+ #@ custom-post-widget
104
+ #: post-widget.php:104
105
+ msgid "No Content Blocks found in Trash"
106
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
107
+
108
+ #@ custom-post-widget
109
+ #: post-widget.php:129
110
+ #, php-format
111
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
112
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
113
+
114
+ #@ custom-post-widget
115
+ #: post-widget.php:130
116
+ msgid "Custom field updated."
117
+ msgstr "Custom field bijgewerkt."
118
+
119
+ #@ custom-post-widget
120
+ #: post-widget.php:131
121
+ msgid "Custom field deleted."
122
+ msgstr "Custom field verwijderd."
123
+
124
+ #@ custom-post-widget
125
+ #: post-widget.php:132
126
+ msgid "Content Block updated."
127
+ msgstr "Inhoudsblok bijgewerkt."
128
+
129
+ #@ custom-post-widget
130
+ #: post-widget.php:133
131
+ #, php-format
132
+ msgid "Content Block restored to revision from %s"
133
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
134
+
135
+ #@ custom-post-widget
136
+ #: post-widget.php:134
137
+ #, php-format
138
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
139
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
140
+
141
+ #@ custom-post-widget
142
+ #: post-widget.php:135
143
+ msgid "Block saved."
144
+ msgstr "Inhoudsblok Opgeslagen."
145
+
146
+ #@ custom-post-widget
147
+ #: post-widget.php:136
148
+ #, php-format
149
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
150
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
151
+
152
+ #@ custom-post-widget
153
+ #: post-widget.php:137
154
+ #, php-format
155
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
156
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
157
+
158
+ #@ custom-post-widget
159
+ #: post-widget.php:138
160
+ msgid "M j, Y @ G:i"
161
+ msgstr "j. M Y @ H:M"
162
+
163
+ #@ custom-post-widget
164
+ #: post-widget.php:139
165
+ #, php-format
166
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
167
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
168
+
169
+ #@ custom-post-widget
170
+ #: post-widget.php:96
171
+ msgctxt "post type plural name"
172
+ msgid "Content Blocks"
173
+ msgstr "Inhoudsblokken"
174
+
tags/1.9.5/languages/custom-post-widget-pl_PL.mo ADDED
Binary file
tags/1.9.5/languages/custom-post-widget-pl_PL.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Kuba Es <poedit@webnova.pl>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
15
+ "X-Textdomain-Support: yes\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #@ custom-post-widget
19
+ #: post-widget.php:8
20
+ msgid "Displays custom post content in a widget"
21
+ msgstr "Wyświetla zawartość w widgecie"
22
+
23
+ #@ custom-post-widget
24
+ #: post-widget.php:9
25
+ msgid "Content Block"
26
+ msgstr "Blok Treści"
27
+
28
+ #@ custom-post-widget
29
+ #: post-widget.php:19
30
+ msgid "Content Block to Display:"
31
+ msgstr "Blok Treści do wyświetlenia"
32
+
33
+ #@ custom-post-widget
34
+ #: post-widget.php:31
35
+ msgid "No content blocks available"
36
+ msgstr "Nie utworzono Bloków Treści"
37
+
38
+ #@ custom-post-widget
39
+ #: post-widget.php:43
40
+ msgid "Show Post Title"
41
+ msgstr "Pokaż tytuł postu"
42
+
43
+ #@ custom-post-widget
44
+ #: post-widget.php:62
45
+ msgid "Find"
46
+ msgstr "Znajdź"
47
+
48
+ #@ custom-post-widget
49
+ #: post-widget.php:94
50
+ msgctxt "post type general name"
51
+ msgid "Content Blocks"
52
+ msgstr "Bloki Treści"
53
+
54
+ #@ custom-post-widget
55
+ #: post-widget.php:95
56
+ msgctxt "post type singular name"
57
+ msgid "Content Block"
58
+ msgstr "Blok Treści"
59
+
60
+ #@ custom-post-widget
61
+ #: post-widget.php:97
62
+ msgctxt "block"
63
+ msgid "Add Content Block"
64
+ msgstr "Dodaj Blok Treści"
65
+
66
+ #@ custom-post-widget
67
+ #: post-widget.php:98
68
+ msgid "Add New Content Block"
69
+ msgstr "Nowy Blok Treści"
70
+
71
+ #@ custom-post-widget
72
+ #: post-widget.php:99
73
+ msgid "Edit Content Block"
74
+ msgstr "Edytuj Blok Treści"
75
+
76
+ #@ custom-post-widget
77
+ #: post-widget.php:100
78
+ msgid "New Content Block"
79
+ msgstr "Nowy Blok Treści"
80
+
81
+ #@ custom-post-widget
82
+ #: post-widget.php:101
83
+ msgid "View Content Block"
84
+ msgstr "Zobacz Blok Treści"
85
+
86
+ #@ custom-post-widget
87
+ #: post-widget.php:102
88
+ msgid "Search Content Blocks"
89
+ msgstr "Szukaj Bloków Treśc"
90
+
91
+ #@ custom-post-widget
92
+ #: post-widget.php:103
93
+ msgid "No Content Blocks Found"
94
+ msgstr "Nie znaleziono Bloków Treści"
95
+
96
+ #@ custom-post-widget
97
+ #: post-widget.php:104
98
+ msgid "No Content Blocks found in Trash"
99
+ msgstr "Nie znaleziono Bloków Treści w archiwum"
100
+
101
+ #@ custom-post-widget
102
+ #: post-widget.php:129
103
+ #, php-format
104
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
105
+ msgstr "Blok Treści został zapisany. <a href=\"%s\">Zobacz</a>"
106
+
107
+ #@ custom-post-widget
108
+ #: post-widget.php:130
109
+ msgid "Custom field updated."
110
+ msgstr "Własne pola zostały zaktualizowane."
111
+
112
+ #@ custom-post-widget
113
+ #: post-widget.php:131
114
+ msgid "Custom field deleted."
115
+ msgstr "Własne pola zostały usunięte."
116
+
117
+ #@ custom-post-widget
118
+ #: post-widget.php:132
119
+ msgid "Content Block updated."
120
+ msgstr "Blok Treści zaktualizowany."
121
+
122
+ #@ custom-post-widget
123
+ #: post-widget.php:133
124
+ #, php-format
125
+ msgid "Content Block restored to revision from %s"
126
+ msgstr "Przywrócono Blok Treści do rewizji z %s"
127
+
128
+ #@ custom-post-widget
129
+ #: post-widget.php:134
130
+ #, php-format
131
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
132
+ msgstr "Blok Treści został opublikowany. <a href=\"%s\">Zobacz</a>"
133
+
134
+ #@ custom-post-widget
135
+ #: post-widget.php:135
136
+ msgid "Block saved."
137
+ msgstr "Blok zapisany."
138
+
139
+ #@ custom-post-widget
140
+ #: post-widget.php:136
141
+ #, php-format
142
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
143
+ msgstr "Blok Treści przesłany. <a target=\"_blank\" href=\"%s\">Podgląd Bloku</a>"
144
+
145
+ #@ custom-post-widget
146
+ #: post-widget.php:137
147
+ #, php-format
148
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
149
+ msgstr "Blok Treści zaplanowany na: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Podgląd Bloku</a>"
150
+
151
+ #@ custom-post-widget
152
+ #: post-widget.php:138
153
+ msgid "M j, Y @ G:i"
154
+ msgstr "j. M Y @ H:M"
155
+
156
+ #@ custom-post-widget
157
+ #: post-widget.php:139
158
+ #, php-format
159
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
160
+ msgstr "Szkic zapisany. <a target=\"_blank\" href=\"%s\">Podgląd Bloku</a>"
161
+
162
+ #@ custom-post-widget
163
+ #: post-widget.php:96
164
+ msgctxt "post type plural name"
165
+ msgid "Content Blocks"
166
+ msgstr "Bloki Treści"
167
+
tags/1.9.5/languages/custom-post-widget-ru_RU.mo ADDED
Binary file
tags/1.9.5/languages/custom-post-widget-ru_RU.po ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-02-23 13:16+0200\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Виталий Капля <vitaliy.kaplya@dasayt.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Poedit-SearchPath-1: ..\n"
21
+
22
+ # @ custom-post-widget
23
+ #: ../popup.php:9
24
+ msgid "Please select a Content Block"
25
+ msgstr "Выберете блок"
26
+
27
+ # @ custom-post-widget
28
+ #: ../popup.php:22
29
+ #: ../popup.php:48
30
+ msgid "Insert Content Block"
31
+ msgstr "Вставить блок"
32
+
33
+ #: ../popup.php:25
34
+ msgid "Select a Content Block below to add it to your post or page."
35
+ msgstr "Выберете блок перед тем, как добавить его на страницу."
36
+
37
+ # @ custom-post-widget
38
+ #: ../popup.php:31
39
+ msgid "Select a Content Block"
40
+ msgstr "Выберите блок"
41
+
42
+ # @ custom-post-widget
43
+ #: ../popup.php:43
44
+ #: ../post-widget.php:27
45
+ msgid "No content blocks available"
46
+ msgstr "Блоки не найдены"
47
+
48
+ #: ../popup.php:50
49
+ msgid "Cancel"
50
+ msgstr "Отмена"
51
+
52
+ # @ custom-post-widget
53
+ #: ../post-widget.php:6
54
+ msgid "Displays custom post content in a widget"
55
+ msgstr "Отображение пользовательского контента в виджете"
56
+
57
+ # @ custom-post-widget
58
+ #: ../post-widget.php:7
59
+ msgid "Content Block"
60
+ msgstr "Блоки"
61
+
62
+ # @ custom-post-widget
63
+ #: ../post-widget.php:15
64
+ msgid "Content Block to Display:"
65
+ msgstr "Отображать следующий блок:"
66
+
67
+ # @ custom-post-widget
68
+ #: ../post-widget.php:45
69
+ msgid "Show Post Title"
70
+ msgstr "Выводить заголовок"
71
+
72
+ # @ custom-post-widget
73
+ #: ../post-widget.php:58
74
+ msgid "Find"
75
+ msgstr "Найти"
76
+
77
+ # @ custom-post-widget
78
+ #: ../post-widget.php:79
79
+ msgctxt "post type general name"
80
+ msgid "Content Blocks"
81
+ msgstr "Блоки"
82
+
83
+ # @ custom-post-widget
84
+ #: ../post-widget.php:80
85
+ msgctxt "post type singular name"
86
+ msgid "Content Block"
87
+ msgstr "Блок"
88
+
89
+ # @ custom-post-widget
90
+ #: ../post-widget.php:81
91
+ msgctxt "post type plural name"
92
+ msgid "Content Blocks"
93
+ msgstr "Блоки"
94
+
95
+ # @ custom-post-widget
96
+ #: ../post-widget.php:82
97
+ msgctxt "block"
98
+ msgid "Add Content Block"
99
+ msgstr "Добавить блок"
100
+
101
+ # @ custom-post-widget
102
+ #: ../post-widget.php:83
103
+ msgid "Add New Content Block"
104
+ msgstr "Добавить новы блок"
105
+
106
+ # @ custom-post-widget
107
+ #: ../post-widget.php:84
108
+ msgid "Edit Content Block"
109
+ msgstr "Редактировать блок"
110
+
111
+ # @ custom-post-widget
112
+ #: ../post-widget.php:85
113
+ msgid "New Content Block"
114
+ msgstr "Новый блок"
115
+
116
+ # @ custom-post-widget
117
+ #: ../post-widget.php:86
118
+ msgid "View Content Block"
119
+ msgstr "Открыть блок"
120
+
121
+ # @ custom-post-widget
122
+ #: ../post-widget.php:87
123
+ msgid "Search Content Blocks"
124
+ msgstr "Найти блок"
125
+
126
+ # @ custom-post-widget
127
+ #: ../post-widget.php:88
128
+ msgid "No Content Blocks Found"
129
+ msgstr "Блоки не найдены"
130
+
131
+ # @ custom-post-widget
132
+ #: ../post-widget.php:89
133
+ msgid "No Content Blocks found in Trash"
134
+ msgstr "В корзине пусто"
135
+
136
+ # @ custom-post-widget
137
+ #: ../post-widget.php:131
138
+ #, php-format
139
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
140
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
141
+
142
+ # @ custom-post-widget
143
+ #: ../post-widget.php:131
144
+ #: ../post-widget.php:134
145
+ msgid "Content Block updated."
146
+ msgstr "Блок обновлен."
147
+
148
+ # @ custom-post-widget
149
+ #: ../post-widget.php:132
150
+ msgid "Custom field updated."
151
+ msgstr "Поле обновлено."
152
+
153
+ # @ custom-post-widget
154
+ #: ../post-widget.php:133
155
+ msgid "Custom field deleted."
156
+ msgstr "Поле удалено"
157
+
158
+ # @ custom-post-widget
159
+ #: ../post-widget.php:135
160
+ #, php-format
161
+ msgid "Content Block restored to revision from %s"
162
+ msgstr "Блок востановлен с ревизии %s"
163
+
164
+ # @ custom-post-widget
165
+ #: ../post-widget.php:136
166
+ #, php-format
167
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
168
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджетами</a>"
169
+
170
+ # @ custom-post-widget
171
+ #: ../post-widget.php:136
172
+ msgid "Content Block published."
173
+ msgstr "Блок опубликован."
174
+
175
+ # @ custom-post-widget
176
+ #: ../post-widget.php:137
177
+ msgid "Block saved."
178
+ msgstr "Блок сохранен"
179
+
180
+ # @ custom-post-widget
181
+ #: ../post-widget.php:138
182
+ #, php-format
183
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
184
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджеатми</a>"
185
+
186
+ # @ custom-post-widget
187
+ #: ../post-widget.php:138
188
+ msgid "Content Block submitted."
189
+ msgstr "Блок опубликован."
190
+
191
+ # @ custom-post-widget
192
+ #: ../post-widget.php:139
193
+ #, php-format
194
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
195
+ msgstr "Блок запланирован на: <strong>%1$s</strong>."
196
+
197
+ # @ custom-post-widget
198
+ #: ../post-widget.php:139
199
+ msgid "M j, Y @ G:i"
200
+ msgstr "M j, Y @ G:i"
201
+
202
+ # @ custom-post-widget
203
+ #: ../post-widget.php:140
204
+ #, php-format
205
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
206
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
207
+
208
+ # @ custom-post-widget
209
+ #: ../post-widget.php:140
210
+ msgid "Content Block draft updated."
211
+ msgstr "Черновик блока обновлен."
212
+
213
+ # @ custom-post-widget
214
+ #: ../post-widget.php:175
215
+ #: ../post-widget.php:176
216
+ msgid "Add Content Block"
217
+ msgstr "Добавить блок"
218
+
tags/1.9.5/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:52
36
+ msgid "Do not apply content filters"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:61
40
+ msgid "Find"
41
+ msgstr ""
42
+
43
+ #: post-widget.php:91
44
+ msgctxt "post type general name"
45
+ msgid "Content Blocks"
46
+ msgstr ""
47
+
48
+ #: post-widget.php:92
49
+ msgctxt "post type singular name"
50
+ msgid "Content Block"
51
+ msgstr ""
52
+
53
+ #: post-widget.php:93
54
+ msgctxt "post type plural name"
55
+ msgid "Content Blocks"
56
+ msgstr ""
57
+
58
+ #: post-widget.php:94
59
+ msgctxt "block"
60
+ msgid "Add Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:95
64
+ msgid "Add New Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:96
68
+ msgid "Edit Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:97
72
+ msgid "New Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:98
76
+ msgid "View Content Block"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:99
80
+ msgid "Search Content Blocks"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:100
84
+ msgid "No Content Blocks Found"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:101
88
+ msgid "No Content Blocks found in Trash"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:126
92
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
93
+ msgstr ""
94
+
95
+ #: post-widget.php:127
96
+ msgid "Custom field updated."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:128
100
+ msgid "Custom field deleted."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:129
104
+ msgid "Content Block updated."
105
+ msgstr ""
106
+
107
+ #: post-widget.php:130
108
+ msgid "Content Block restored to revision from %s"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:131
112
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
113
+ msgstr ""
114
+
115
+ #: post-widget.php:132
116
+ msgid "Block saved."
117
+ msgstr ""
118
+
119
+ #: post-widget.php:133
120
+ msgid ""
121
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
122
+ "Block</a>"
123
+ msgstr ""
124
+
125
+ #: post-widget.php:134
126
+ msgid ""
127
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
128
+ "href=\"%2$s\">Preview block</a>"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:135
132
+ msgid "M j, Y @ G:i"
133
+ msgstr ""
134
+
135
+ #: post-widget.php:136
136
+ msgid ""
137
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
138
+ "Content Block</a>"
139
+ msgstr ""
140
+
141
+ #. Plugin Name of the plugin/theme
142
+ msgid "Custom Post Widget"
143
+ msgstr ""
144
+
145
+ #. Plugin URI of the plugin/theme
146
+ msgid ""
147
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
148
+ msgstr ""
149
+
150
+ #. Description of the plugin/theme
151
+ msgid ""
152
+ "Show the content of a custom post of the type 'content_block' in a widget."
153
+ msgstr ""
154
+
155
+ #. Author of the plugin/theme
156
+ msgid "Johan van der Wijk"
157
+ msgstr ""
158
+
159
+ #. Author URI of the plugin/theme
160
+ msgid "http://www.vanderwijk.com"
161
+ msgstr ""
tags/1.9.5/popup.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // Action target that displays the popup to insert a content block to a post/page
2
+
3
+ function add_content_block_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+ var win = window.dialogArguments || opener || parent || top;
13
+ win.send_to_editor("[content_block id=" + content_id + "]");
14
+ }
15
+ </script>
16
+
17
+ <div id="content_block_form" style="display:none;">
18
+ <div class="wrap">
19
+ <div>
20
+ <div style="padding:15px 15px 0 15px;">
21
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;">
22
+ <?php _e("Insert Content Block", 'custom-post-widget'); ?>
23
+ </h3>
24
+ <span>
25
+ <?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?>
26
+ </span>
27
+ </div>
28
+ <div style="padding:15px 15px 0 15px;">
29
+ <select id="add_content_block_id">
30
+ <option value="">
31
+ <?php _e("Select a Content Block", 'custom-post-widget'); ?>
32
+ </option>
33
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
34
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
35
+ $currentID = get_the_ID();
36
+ if($currentID == $custom_post_id)
37
+ $extra = 'selected' and
38
+ $widgetExtraTitle = get_the_title();
39
+ else
40
+ $extra = '';
41
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
42
+ endwhile; else:
43
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
44
+ endif; ?>
45
+ </select>
46
+ <br />
47
+ <div style="padding:15px;">
48
+ <input type="button" class="button-primary" value="<?php _e("Insert Content Block", 'custom-post-widget') ?>" onclick="InsertContentBlockForm();"/>
49
+ &nbsp;&nbsp;&nbsp; <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;">
50
+ <?php _e("Cancel", 'custom-post-widget'); ?>
51
+ </a>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <?php } ?>
tags/1.9.5/post-widget.php ADDED
@@ -0,0 +1,205 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget {
5
+ function custom_post_widget() {
6
+ $widget_ops = array( 'description' => __( 'Displays custom post content in a widget', 'custom-post-widget' ) );
7
+ $this->WP_Widget( 'custom_post_widget', __( 'Content Block', 'custom-post-widget' ), $widget_ops );
8
+ }
9
+
10
+ function form( $instance ) {
11
+ $custom_post_id = esc_attr( $instance['custom_post_id'] );
12
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : true;
13
+ $apply_content_filters = isset( $instance['apply_content_filters'] ) ? $instance['apply_content_filters'] : true;
14
+ ?>
15
+
16
+ <p>
17
+ <label for="<?php echo $this->get_field_id( 'custom_post_id' ); ?>"> <?php echo __( 'Content Block to Display:', 'custom-post-widget' ) ?>
18
+ <select class="widefat" id="<?php echo $this->get_field_id( 'custom_post_id' ); ?>" name="<?php echo $this->get_field_name( 'custom_post_id' ); ?>">
19
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
20
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
21
+ $currentID = get_the_ID();
22
+ if( $currentID == $custom_post_id )
23
+ $extra = 'selected' and
24
+ $widgetExtraTitle = get_the_title();
25
+ else
26
+ $extra = '';
27
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
28
+ endwhile; else:
29
+ echo '<option value="empty">' . __( 'No content blocks available', 'custom-post-widget' ) . '</option>';
30
+ endif; ?>
31
+ </select>
32
+ </label>
33
+ </p>
34
+
35
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
36
+
37
+ <p>
38
+ <?php
39
+ echo '<a href="post.php?post=' . $custom_post_id . '&action=edit">' . __( 'Edit Content Block', 'custom-post-widget' ) . '</a>' ;
40
+ ?>
41
+ </p>
42
+
43
+ <?php wp_reset_query(); ?>
44
+
45
+ <p>
46
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['show_custom_post_title'], true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
47
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __( 'Show Post Title', 'custom-post-widget' ) ?></label>
48
+ </p>
49
+
50
+ <p>
51
+ <input class="checkbox" type="checkbox" <?php checked( (bool) $instance['apply_content_filters'], true ); ?> id="<?php echo $this->get_field_id( 'apply_content_filters' ); ?>" name="<?php echo $this->get_field_name( 'apply_content_filters' ); ?>" />
52
+ <label for="<?php echo $this->get_field_id( 'apply_content_filters' ); ?>"><?php echo __( 'Do not apply content filters', 'custom-post-widget' ) ?></label>
53
+ </p> <?php
54
+ }
55
+
56
+ function update( $new_instance, $old_instance ) {
57
+ $instance = $old_instance;
58
+ $instance['custom_post_id'] = strip_tags( $new_instance['custom_post_id'] );
59
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
60
+ $instance['apply_content_filters'] = $new_instance['apply_content_filters'];
61
+ return $instance;
62
+ }
63
+
64
+ function widget($args, $instance) {
65
+ extract($args);
66
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
67
+ // Add support for WPML Plugin.
68
+ if ( function_exists( 'icl_object_id' ) ){
69
+ $custom_post_id = icl_object_id( $custom_post_id, 'content_block', true );
70
+ }
71
+ // Variables from the widget settings.
72
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
73
+ $apply_content_filters = isset($instance['apply_content_filters']) ? $instance['apply_content_filters'] : false;
74
+ $content_post = get_post($custom_post_id);
75
+ $content = $content_post->post_content;
76
+ if ( !$apply_content_filters ) { // Don't apply the content filter if checkbox selected
77
+ $content = apply_filters('the_content', $content);
78
+ }
79
+ echo $before_widget;
80
+ if ( $show_custom_post_title ) {
81
+ echo $before_title . apply_filters('widget_title',$content_post->post_title) . $after_title; // This is the line that displays the title (only if show title is set)
82
+ }
83
+ echo do_shortcode($content); // This is where the actual content of the custom post is being displayed
84
+ echo $after_widget;
85
+ }
86
+
87
+ }
88
+
89
+ // Create the Content Block custom post type
90
+ add_action('init', 'my_content_block_post_type_init');
91
+
92
+ function my_content_block_post_type_init() {
93
+ $labels = array(
94
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
95
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
96
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
97
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
98
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
99
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
100
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
101
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
102
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
103
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
104
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
105
+ 'parent_item_colon' => ''
106
+ );
107
+ $options = array(
108
+ 'labels' => $labels,
109
+ 'public' => false,
110
+ 'publicly_queryable' => false,
111
+ 'exclude_from_search' => true,
112
+ 'show_ui' => true,
113
+ 'query_var' => true,
114
+ 'rewrite' => true,
115
+ 'capability_type' => 'post',
116
+ 'hierarchical' => false,
117
+ 'menu_position' => null,
118
+ 'supports' => array('title','editor','revisions','thumbnail','author')
119
+ );
120
+ register_post_type('content_block',$options);
121
+ }
122
+
123
+ // Add custom styles to admin screen and menu
124
+ add_action('admin_head', 'content_block_header');
125
+
126
+ function content_block_header() {
127
+ global $post_type; ?>
128
+ <style type="text/css">
129
+ <!--
130
+ <?php if (($post_type == 'content_block')) : ?>
131
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important;}
132
+ #minor-publishing-actions { display:none; /* Hide the Save Draft and Preview buttons */}
133
+ <?php endif; ?>
134
+ #adminmenu #menu-posts-content_block div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
135
+ #adminmenu #menu-posts-content_block:hover div.wp-menu-image,#adminmenu #menu-posts-content_block.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
136
+ -->
137
+ </style>
138
+ <?php
139
+ }
140
+
141
+ add_filter('post_updated_messages', 'content_block_messages');
142
+
143
+ function content_block_messages( $messages ) {
144
+ $messages['content_block'] = array(
145
+ 0 => '',
146
+ 1 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
147
+ 2 => __('Custom field updated.', 'custom-post-widget'),
148
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
149
+ 4 => __('Content Block updated.', 'custom-post-widget'),
150
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
151
+ 6 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block published. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block published.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
152
+ 7 => __('Block saved.', 'custom-post-widget'),
153
+ 8 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block submitted. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block submitted.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
154
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>.', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( 'widgets.php' ) ),
155
+ 10 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block draft updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block draft updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
156
+ );
157
+ return $messages;
158
+ }
159
+
160
+ // Add the ability to display the content block in a reqular post using a shortcode
161
+ function custom_post_widget_shortcode($atts) {
162
+ extract(shortcode_atts(array(
163
+ 'id' => '',
164
+ 'class' => 'content_block'
165
+ ), $atts));
166
+
167
+ $content = "";
168
+
169
+ if($id != "") {
170
+ $args = array(
171
+ 'post__in' => array($id),
172
+ 'post_type' => 'content_block',
173
+ );
174
+
175
+ $content_post = get_posts($args);
176
+
177
+ foreach( $content_post as $post ) :
178
+ $content .= '<div class="'. esc_attr($class) .'">';
179
+ $content .= apply_filters('the_content', $post->post_content);
180
+ $content .= '</div>';
181
+ endforeach;
182
+ }
183
+
184
+ return $content;
185
+ }
186
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
187
+
188
+ // Add button above editor
189
+ function add_content_block_icon($initcontext) {
190
+ return $initcontext.
191
+ '<a id="add_content_block" style="text-decoration:none;" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php?type=add_content_block_popup&amp;TB_inline=true&amp;inlineId=content_block_form">
192
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
193
+ </a>';
194
+ }
195
+
196
+ add_filter('media_buttons_context', 'add_content_block_icon');
197
+
198
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
199
+
200
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
201
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
202
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
203
+ add_action('admin_footer', 'add_content_block_popup');
204
+ }
205
+ ?>
tags/1.9.5/readme.txt ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar, content block, content, block, custom, post, shortcode
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.4.1
8
+ Stable tag: 1.9.5
9
+ License: GPLv2 or later
10
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
+
12
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
13
+
14
+ == Description ==
15
+
16
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
17
+
18
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
19
+
20
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
21
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
22
+
23
+ This plugin creates a 'content_block' custom post type. You can choose to either display the title on the page or use it to describe the contents and widget position of the content block. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
24
+
25
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
26
+
27
+ This plugin is ready for localization and Dutch, French, German, Polish and Russian language files are included.
28
+
29
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
30
+
31
+ == Screenshots ==
32
+
33
+ 1. After activating the plugin a new post type called 'Content Blocks' is added. You can also see the little icon above the WYSIWYG editor that allows you to insert the content block using the shortcode.
34
+ 2. The widget has a select box to choose the content block. Click on the 'Edit Content Block' link to edit the selected Content Block custom post.
35
+
36
+ == Installation ==
37
+
38
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
39
+ 2. Then activate the plugin in the plugin panel.
40
+ You will see that a new custom post type has been added called Content Block.
41
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
42
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
43
+ 5. Select a Content Block from the drop-down list.
44
+ 6. Check the 'Show Post Title' checkbox if you would like to display the title of your Content Block
45
+ 7. If you are experiencing issues with content being added automatically to your posts (Social media sharing buttons for instance), check the 'Do not apply content filters' checkbox. Use this with caution!
46
+ 8. Click save.
47
+
48
+ == Frequently Asked Questions ==
49
+
50
+ = Why can't I use the default text-widget? =
51
+
52
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
53
+
54
+ = How can I show the content bock on a specific page? =
55
+
56
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
57
+
58
+ = How can I display the featured image in the widget? =
59
+
60
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
61
+
62
+ `function InsertFeaturedImage($content) {
63
+ global $post;
64
+ $original_content = $content;
65
+ if (current_theme_supports('post-thumbnails')) {
66
+ if ('content_block' == get_post_type()) {
67
+ $content = the_post_thumbnail('medium');
68
+ $content .= $original_content;
69
+ }
70
+ }
71
+ return $content;
72
+ }
73
+ add_filter('the_content', 'InsertFeaturedImage');`
74
+
75
+ = My social sharing plugin adds buttons to all the Custom Post Widget areas =
76
+
77
+ If your social media sharing plugin adds buttons to the widget areas you could check the 'Do not apply content filters' checkbox. Note that when this is done, WordPress will also stop adding paragraph tags to your text, so use this setting with caution. It is much better to ask the developer of the social media sharing buttons plugin to correctly use the content filters (see http://pippinsplugins.com/playing-nice-with-the-content-filter/).
78
+
79
+
80
+ == Changelog ==
81
+
82
+ = 1.9.5 =
83
+ Added the option to disable apply_filters on the content to prevent issues with misbehaving plugins. I would have rather not added this, but it appears many plugin developers do not know how to properly use filters (see http://pippinsplugins.com/playing-nice-with-the-content-filter/).
84
+
85
+ = 1.9.4 =
86
+ Corrected a minor bug regarding translation strings.
87
+
88
+ = 1.9.3 =
89
+ Minor bugfix and added the French translation which was created by Alexandre Simard (http://brocheafoin.biz/).
90
+
91
+ = 1.9.2 =
92
+ Now includes Polish language files as created by Kuba Skublicki.
93
+
94
+ = 1.9 =
95
+ The content blocks can now be translated using the WPML plugin, thanks to Jonathan Liuti (http://unboxed-logic.com/).
96
+ Thanks to Vitaliy Kaplya (http://www.dasayt.com/) a Russian translation has been added to the plugin.
97
+
98
+ = 1.8.6 =
99
+ Minor bugfix for edit link in widget.
100
+
101
+ = 1.8.5 =
102
+ This release is to fix an issue with the WordPress plugin repository.
103
+
104
+ = 1.8.4 =
105
+ Added edit content block link to the widget editor and changed the 'view content block' message to include a 'manage widgets' link. The 'Draft' and 'Preview' buttons are now hidden via CSS, hopefully this will soon be default WordPress behaviour (see related ticket: http://core.trac.wordpress.org/ticket/18956).
106
+ Thanks to Julian Gardner-Hobbs (http://www.hobwebs.com/) for requesting this functionality.
107
+
108
+ = 1.8.3 -> rolled-back because of some reported issues with social media icons being added to the widget areas =
109
+ The widget now emulates the $post loop. This means you can now make use of WordPress functionality such as inserting a [gallery]. Thanks to Jari Pennanen for providing the code.
110
+
111
+ = 1.8.2 =
112
+ Updated German translation and various bugfixes.
113
+
114
+ = 1.8 =
115
+ Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
116
+
117
+ = 1.7 =
118
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
119
+
120
+ = 1.6 =
121
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
122
+
123
+ = 1.5 =
124
+ Thanks to Caspar Huebinger the plugin now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
125
+
126
+ = 1.4 =
127
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
128
+
129
+ = 1.3 =
130
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
131
+
132
+ = 1.2.1 =
133
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
134
+
135
+ = 1.2 =
136
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
137
+
138
+ = 1.1.1 =
139
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
140
+
141
+ = 1.1 =
142
+ Fixed screenshots for plugin directory
143
+
144
+ = 1.0 =
145
+ First release
146
+
147
+
148
+ == Upgrade Notice ==
149
+
150
+ = 1.8 =
151
+ I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
tags/1.9.5/screenshot-1.png ADDED
Binary file
tags/1.9.5/screenshot-2.png ADDED
Binary file
tags/1.9.6/custom-post-widget.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.9.5
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.9.6 Fixed all WP debug errors and removed insert content block icon from content block edit screen.
12
+
13
+ Copyright 2012 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ // Set constant path to the custom-post-widget plugin directory.
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ // Launch the plugin.
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ // Load the required files needed for the plugin to run in the proper order and add needed functions to the required hooks.
37
+ function custom_post_widget_plugin_init() {
38
+ // Load the translation of the plugin.
39
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
40
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
41
+ }
42
+
43
+ // Loads the widgets packaged with the plugin.
44
+ function custom_post_widget_load_widgets() {
45
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
46
+ register_widget( 'custom_post_widget' );
47
+ }
48
+ ?>
tags/1.9.6/images/contentblock-13.png ADDED
Binary file
tags/1.9.6/images/contentblock-32.png ADDED
Binary file
tags/1.9.6/images/contentblock.png ADDED
Binary file
tags/1.9.6/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.9.6/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.9.6/languages/custom-post-widget-fr_FR.mo ADDED
Binary file
tags/1.9.6/languages/custom-post-widget-fr_FR.po ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget v1.9.2\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
5
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
6
+ "PO-Revision-Date: 2012-06-21 17:06:30+0200\n"
7
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
+ "Language-Team: LANGUAGE <LL@li.org>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:6
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Affiche le contenu d'un bloc dans un widget."
26
+
27
+ #: post-widget.php:7
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Bloc de contenu"
31
+
32
+ #: post-widget.php:15
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Bloc de contenu à afficher:"
36
+
37
+ #: popup.php:43
38
+ #: post-widget.php:27
39
+ #@ custom-post-widget
40
+ msgid "No content blocks available"
41
+ msgstr "Aucun bloc disponible"
42
+
43
+ #: post-widget.php:45
44
+ #@ custom-post-widget
45
+ msgid "Show Post Title"
46
+ msgstr "Afficher le titre du bloc"
47
+
48
+ #: post-widget.php:58
49
+ #@ custom-post-widget
50
+ msgid "Find"
51
+ msgstr "Rechercher"
52
+
53
+ #: post-widget.php:83
54
+ #@ custom-post-widget
55
+ msgctxt "post type general name"
56
+ msgid "Content Blocks"
57
+ msgstr "Blocs de contenu"
58
+
59
+ #: post-widget.php:84
60
+ #@ custom-post-widget
61
+ msgctxt "post type singular name"
62
+ msgid "Content Block"
63
+ msgstr "Bloc de contenu"
64
+
65
+ #: post-widget.php:85
66
+ #@ custom-post-widget
67
+ msgctxt "post type plural name"
68
+ msgid "Content Blocks"
69
+ msgstr "Blocs de contenu"
70
+
71
+ #: post-widget.php:86
72
+ #@ custom-post-widget
73
+ msgctxt "block"
74
+ msgid "Add Content Block"
75
+ msgstr "Ajouter un bloc"
76
+
77
+ #: post-widget.php:87
78
+ #@ custom-post-widget
79
+ msgid "Add New Content Block"
80
+ msgstr "Ajouter un bloc"
81
+
82
+ #: post-widget.php:88
83
+ #@ custom-post-widget
84
+ msgid "Edit Content Block"
85
+ msgstr "Modifier le bloc"
86
+
87
+ #: post-widget.php:89
88
+ #@ custom-post-widget
89
+ msgid "New Content Block"
90
+ msgstr "Nouveau bloc"
91
+
92
+ #: post-widget.php:90
93
+ #@ custom-post-widget
94
+ msgid "View Content Block"
95
+ msgstr "Afficher le bloc"
96
+
97
+ #: post-widget.php:91
98
+ #@ custom-post-widget
99
+ msgid "Search Content Blocks"
100
+ msgstr "Recherche dans les blocs"
101
+
102
+ #: post-widget.php:92
103
+ #@ custom-post-widget
104
+ msgid "No Content Blocks Found"
105
+ msgstr "Aucun bloc trouvé"
106
+
107
+ #: post-widget.php:93
108
+ #@ custom-post-widget
109
+ msgid "No Content Blocks found in Trash"
110
+ msgstr "Aucun bloc trouvé dans la corbeille"
111
+
112
+ #: post-widget.php:136
113
+ #@ custom-post-widget
114
+ msgid "Custom field updated."
115
+ msgstr "Champ personnalisé mis à jour."
116
+
117
+ #: post-widget.php:137
118
+ #@ custom-post-widget
119
+ msgid "Custom field deleted."
120
+ msgstr "Champ personnalisé supprimé."
121
+
122
+ #: post-widget.php:135
123
+ #: post-widget.php:138
124
+ #@ custom-post-widget
125
+ msgid "Content Block updated."
126
+ msgstr "Bloc de contenu mis à jour."
127
+
128
+ #: post-widget.php:139
129
+ #, php-format
130
+ #@ custom-post-widget
131
+ msgid "Content Block restored to revision from %s"
132
+ msgstr "Bloc de contenu restauré à partir de la révision %s"
133
+
134
+ #: post-widget.php:141
135
+ #@ custom-post-widget
136
+ msgid "Block saved."
137
+ msgstr "Bloc sauvegardé."
138
+
139
+ #: post-widget.php:143
140
+ #@ custom-post-widget
141
+ msgid "M j, Y @ G:i"
142
+ msgstr "le j M Y, à G:i"
143
+
144
+ #: popup.php:9
145
+ #@ custom-post-widget
146
+ msgid "Please select a Content Block"
147
+ msgstr "Veuillez choisir un bloc de contenu"
148
+
149
+ #: popup.php:22
150
+ #: popup.php:48
151
+ #@ custom-post-widget
152
+ msgid "Insert Content Block"
153
+ msgstr "Insérer un bloc de contenu"
154
+
155
+ #: popup.php:25
156
+ #@ custom-post-widget
157
+ msgid "Select a Content Block below to add it to your post or page."
158
+ msgstr "Choisissez un bloc de contenu ci-bas pour l'ajouter à votre article ou page."
159
+
160
+ #: popup.php:31
161
+ #@ custom-post-widget
162
+ msgid "Select a Content Block"
163
+ msgstr "Choisissez un bloc"
164
+
165
+ #: popup.php:50
166
+ #@ custom-post-widget
167
+ msgid "Cancel"
168
+ msgstr "Annuler"
169
+
170
+ #: post-widget.php:135
171
+ #, php-format
172
+ #@ custom-post-widget
173
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
174
+ msgstr "Bloc de contenu mis à jour. <a href=\"%s\">Gérer les widgets</a>"
175
+
176
+ #: post-widget.php:140
177
+ #, php-format
178
+ #@ custom-post-widget
179
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
180
+ msgstr "Bloc de contenu publié. <a href=\"%s\">Gérer les widgets</a>"
181
+
182
+ #: post-widget.php:140
183
+ #@ custom-post-widget
184
+ msgid "Content Block published."
185
+ msgstr "Bloc de contenu publié."
186
+
187
+ #: post-widget.php:142
188
+ #, php-format
189
+ #@ custom-post-widget
190
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
191
+ msgstr "Bloc de contenu envoyé. <a href=\"%s\">Gérer les widgets</a>"
192
+
193
+ #: post-widget.php:142
194
+ #@ custom-post-widget
195
+ msgid "Content Block submitted."
196
+ msgstr "Bloc de contenu envoyé."
197
+
198
+ #: post-widget.php:143
199
+ #, php-format
200
+ #@ custom-post-widget
201
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
202
+ msgstr "Publication du bloc prévue pour le <strong>%1$s</strong>."
203
+
204
+ #: post-widget.php:144
205
+ #, php-format
206
+ #@ custom-post-widget
207
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
208
+ msgstr "Brouillon du bloc de contenu mis à jour. <a href=\"%s\">Gérer les widgets</a>"
209
+
210
+ #: post-widget.php:144
211
+ #@ custom-post-widget
212
+ msgid "Content Block draft updated."
213
+ msgstr "Brouillon du bloc de contenu mis à jour."
214
+
215
+ #: post-widget.php:180
216
+ #: post-widget.php:181
217
+ #@ custom-post-widget
218
+ msgid "Add Content Block"
219
+ msgstr "Ajouter un bloc de contenu"
220
+
tags/1.9.6/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.9.6/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #: post-widget.php:52
47
+ msgid "Do not apply content filters"
48
+ msgstr "Apply_filters niet toepassen"
49
+
50
+ #@ custom-post-widget
51
+ #: post-widget.php:62
52
+ msgid "Find"
53
+ msgstr "Zoeken"
54
+
55
+ #@ custom-post-widget
56
+ #: post-widget.php:94
57
+ msgctxt "post type general name"
58
+ msgid "Content Blocks"
59
+ msgstr "Inhoudsblokken"
60
+
61
+ #@ custom-post-widget
62
+ #: post-widget.php:95
63
+ msgctxt "post type singular name"
64
+ msgid "Content Block"
65
+ msgstr "Inhoudsblok"
66
+
67
+ #@ custom-post-widget
68
+ #: post-widget.php:97
69
+ msgctxt "block"
70
+ msgid "Add Content Block"
71
+ msgstr "Nieuw Inhoudsblok"
72
+
73
+ #@ custom-post-widget
74
+ #: post-widget.php:98
75
+ msgid "Add New Content Block"
76
+ msgstr "Nieuw inhoudsblok toevoegen"
77
+
78
+ #@ custom-post-widget
79
+ #: post-widget.php:99
80
+ msgid "Edit Content Block"
81
+ msgstr "Inhoudsblok Bewerken"
82
+
83
+ #@ custom-post-widget
84
+ #: post-widget.php:100
85
+ msgid "New Content Block"
86
+ msgstr "Nieuw Inhoudsblok"
87
+
88
+ #@ custom-post-widget
89
+ #: post-widget.php:101
90
+ msgid "View Content Block"
91
+ msgstr "Inhoudsblok Bekijken"
92
+
93
+ #@ custom-post-widget
94
+ #: post-widget.php:102
95
+ msgid "Search Content Blocks"
96
+ msgstr "Inhoudsblokken zoeken"
97
+
98
+ #@ custom-post-widget
99
+ #: post-widget.php:103
100
+ msgid "No Content Blocks Found"
101
+ msgstr "Geen Inhoudsblokken"
102
+
103
+ #@ custom-post-widget
104
+ #: post-widget.php:104
105
+ msgid "No Content Blocks found in Trash"
106
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
107
+
108
+ #@ custom-post-widget
109
+ #: post-widget.php:129
110
+ #, php-format
111
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
112
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
113
+
114
+ #@ custom-post-widget
115
+ #: post-widget.php:130
116
+ msgid "Custom field updated."
117
+ msgstr "Custom field bijgewerkt."
118
+
119
+ #@ custom-post-widget
120
+ #: post-widget.php:131
121
+ msgid "Custom field deleted."
122
+ msgstr "Custom field verwijderd."
123
+
124
+ #@ custom-post-widget
125
+ #: post-widget.php:132
126
+ msgid "Content Block updated."
127
+ msgstr "Inhoudsblok bijgewerkt."
128
+
129
+ #@ custom-post-widget
130
+ #: post-widget.php:133
131
+ #, php-format
132
+ msgid "Content Block restored to revision from %s"
133
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
134
+
135
+ #@ custom-post-widget
136
+ #: post-widget.php:134
137
+ #, php-format
138
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
139
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
140
+
141
+ #@ custom-post-widget
142
+ #: post-widget.php:135
143
+ msgid "Block saved."
144
+ msgstr "Inhoudsblok Opgeslagen."
145
+
146
+ #@ custom-post-widget
147
+ #: post-widget.php:136
148
+ #, php-format
149
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
150
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
151
+
152
+ #@ custom-post-widget
153
+ #: post-widget.php:137
154
+ #, php-format
155
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
156
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
157
+
158
+ #@ custom-post-widget
159
+ #: post-widget.php:138
160
+ msgid "M j, Y @ G:i"
161
+ msgstr "j. M Y @ H:M"
162
+
163
+ #@ custom-post-widget
164
+ #: post-widget.php:139
165
+ #, php-format
166
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
167
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
168
+
169
+ #@ custom-post-widget
170
+ #: post-widget.php:96
171
+ msgctxt "post type plural name"
172
+ msgid "Content Blocks"
173
+ msgstr "Inhoudsblokken"
174
+
tags/1.9.6/languages/custom-post-widget-pl_PL.mo ADDED
Binary file
tags/1.9.6/languages/custom-post-widget-pl_PL.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Kuba Es <poedit@webnova.pl>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
15
+ "X-Textdomain-Support: yes\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #@ custom-post-widget
19
+ #: post-widget.php:8
20
+ msgid "Displays custom post content in a widget"
21
+ msgstr "Wyświetla zawartość w widgecie"
22
+
23
+ #@ custom-post-widget
24
+ #: post-widget.php:9
25
+ msgid "Content Block"
26
+ msgstr "Blok Treści"
27
+
28
+ #@ custom-post-widget
29
+ #: post-widget.php:19
30
+ msgid "Content Block to Display:"
31
+ msgstr "Blok Treści do wyświetlenia"
32
+
33
+ #@ custom-post-widget
34
+ #: post-widget.php:31
35
+ msgid "No content blocks available"
36
+ msgstr "Nie utworzono Bloków Treści"
37
+
38
+ #@ custom-post-widget
39
+ #: post-widget.php:43
40
+ msgid "Show Post Title"
41
+ msgstr "Pokaż tytuł postu"
42
+
43
+ #@ custom-post-widget
44
+ #: post-widget.php:62
45
+ msgid "Find"
46
+ msgstr "Znajdź"
47
+
48
+ #@ custom-post-widget
49
+ #: post-widget.php:94
50
+ msgctxt "post type general name"
51
+ msgid "Content Blocks"
52
+ msgstr "Bloki Treści"
53
+
54
+ #@ custom-post-widget
55
+ #: post-widget.php:95
56
+ msgctxt "post type singular name"
57
+ msgid "Content Block"
58
+ msgstr "Blok Treści"
59
+
60
+ #@ custom-post-widget
61
+ #: post-widget.php:97
62
+ msgctxt "block"
63
+ msgid "Add Content Block"
64
+ msgstr "Dodaj Blok Treści"
65
+
66
+ #@ custom-post-widget
67
+ #: post-widget.php:98
68
+ msgid "Add New Content Block"
69
+ msgstr "Nowy Blok Treści"
70
+
71
+ #@ custom-post-widget
72
+ #: post-widget.php:99
73
+ msgid "Edit Content Block"
74
+ msgstr "Edytuj Blok Treści"
75
+
76
+ #@ custom-post-widget
77
+ #: post-widget.php:100
78
+ msgid "New Content Block"
79
+ msgstr "Nowy Blok Treści"
80
+
81
+ #@ custom-post-widget
82
+ #: post-widget.php:101
83
+ msgid "View Content Block"
84
+ msgstr "Zobacz Blok Treści"
85
+
86
+ #@ custom-post-widget
87
+ #: post-widget.php:102
88
+ msgid "Search Content Blocks"
89
+ msgstr "Szukaj Bloków Treśc"
90
+
91
+ #@ custom-post-widget
92
+ #: post-widget.php:103
93
+ msgid "No Content Blocks Found"
94
+ msgstr "Nie znaleziono Bloków Treści"
95
+
96
+ #@ custom-post-widget
97
+ #: post-widget.php:104
98
+ msgid "No Content Blocks found in Trash"
99
+ msgstr "Nie znaleziono Bloków Treści w archiwum"
100
+
101
+ #@ custom-post-widget
102
+ #: post-widget.php:129
103
+ #, php-format
104
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
105
+ msgstr "Blok Treści został zapisany. <a href=\"%s\">Zobacz</a>"
106
+
107
+ #@ custom-post-widget
108
+ #: post-widget.php:130
109
+ msgid "Custom field updated."
110
+ msgstr "Własne pola zostały zaktualizowane."
111
+
112
+ #@ custom-post-widget
113
+ #: post-widget.php:131
114
+ msgid "Custom field deleted."
115
+ msgstr "Własne pola zostały usunięte."
116
+
117
+ #@ custom-post-widget
118
+ #: post-widget.php:132
119
+ msgid "Content Block updated."
120
+ msgstr "Blok Treści zaktualizowany."
121
+
122
+ #@ custom-post-widget
123
+ #: post-widget.php:133
124
+ #, php-format
125
+ msgid "Content Block restored to revision from %s"
126
+ msgstr "Przywrócono Blok Treści do rewizji z %s"
127
+
128
+ #@ custom-post-widget
129
+ #: post-widget.php:134
130
+ #, php-format
131
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
132
+ msgstr "Blok Treści został opublikowany. <a href=\"%s\">Zobacz</a>"
133
+
134
+ #@ custom-post-widget
135
+ #: post-widget.php:135
136
+ msgid "Block saved."
137
+ msgstr "Blok zapisany."
138
+
139
+ #@ custom-post-widget
140
+ #: post-widget.php:136
141
+ #, php-format
142
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
143
+ msgstr "Blok Treści przesłany. <a target=\"_blank\" href=\"%s\">Podgląd Bloku</a>"
144
+
145
+ #@ custom-post-widget
146
+ #: post-widget.php:137
147
+ #, php-format
148
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
149
+ msgstr "Blok Treści zaplanowany na: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Podgląd Bloku</a>"
150
+
151
+ #@ custom-post-widget
152
+ #: post-widget.php:138
153
+ msgid "M j, Y @ G:i"
154
+ msgstr "j. M Y @ H:M"
155
+
156
+ #@ custom-post-widget
157
+ #: post-widget.php:139
158
+ #, php-format
159
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
160
+ msgstr "Szkic zapisany. <a target=\"_blank\" href=\"%s\">Podgląd Bloku</a>"
161
+
162
+ #@ custom-post-widget
163
+ #: post-widget.php:96
164
+ msgctxt "post type plural name"
165
+ msgid "Content Blocks"
166
+ msgstr "Bloki Treści"
167
+
tags/1.9.6/languages/custom-post-widget-ru_RU.mo ADDED
Binary file
tags/1.9.6/languages/custom-post-widget-ru_RU.po ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-02-23 13:16+0200\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Виталий Капля <vitaliy.kaplya@dasayt.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Poedit-SearchPath-1: ..\n"
21
+
22
+ # @ custom-post-widget
23
+ #: ../popup.php:9
24
+ msgid "Please select a Content Block"
25
+ msgstr "Выберете блок"
26
+
27
+ # @ custom-post-widget
28
+ #: ../popup.php:22
29
+ #: ../popup.php:48
30
+ msgid "Insert Content Block"
31
+ msgstr "Вставить блок"
32
+
33
+ #: ../popup.php:25
34
+ msgid "Select a Content Block below to add it to your post or page."
35
+ msgstr "Выберете блок перед тем, как добавить его на страницу."
36
+
37
+ # @ custom-post-widget
38
+ #: ../popup.php:31
39
+ msgid "Select a Content Block"
40
+ msgstr "Выберите блок"
41
+
42
+ # @ custom-post-widget
43
+ #: ../popup.php:43
44
+ #: ../post-widget.php:27
45
+ msgid "No content blocks available"
46
+ msgstr "Блоки не найдены"
47
+
48
+ #: ../popup.php:50
49
+ msgid "Cancel"
50
+ msgstr "Отмена"
51
+
52
+ # @ custom-post-widget
53
+ #: ../post-widget.php:6
54
+ msgid "Displays custom post content in a widget"
55
+ msgstr "Отображение пользовательского контента в виджете"
56
+
57
+ # @ custom-post-widget
58
+ #: ../post-widget.php:7
59
+ msgid "Content Block"
60
+ msgstr "Блоки"
61
+
62
+ # @ custom-post-widget
63
+ #: ../post-widget.php:15
64
+ msgid "Content Block to Display:"
65
+ msgstr "Отображать следующий блок:"
66
+
67
+ # @ custom-post-widget
68
+ #: ../post-widget.php:45
69
+ msgid "Show Post Title"
70
+ msgstr "Выводить заголовок"
71
+
72
+ # @ custom-post-widget
73
+ #: ../post-widget.php:58
74
+ msgid "Find"
75
+ msgstr "Найти"
76
+
77
+ # @ custom-post-widget
78
+ #: ../post-widget.php:79
79
+ msgctxt "post type general name"
80
+ msgid "Content Blocks"
81
+ msgstr "Блоки"
82
+
83
+ # @ custom-post-widget
84
+ #: ../post-widget.php:80
85
+ msgctxt "post type singular name"
86
+ msgid "Content Block"
87
+ msgstr "Блок"
88
+
89
+ # @ custom-post-widget
90
+ #: ../post-widget.php:81
91
+ msgctxt "post type plural name"
92
+ msgid "Content Blocks"
93
+ msgstr "Блоки"
94
+
95
+ # @ custom-post-widget
96
+ #: ../post-widget.php:82
97
+ msgctxt "block"
98
+ msgid "Add Content Block"
99
+ msgstr "Добавить блок"
100
+
101
+ # @ custom-post-widget
102
+ #: ../post-widget.php:83
103
+ msgid "Add New Content Block"
104
+ msgstr "Добавить новы блок"
105
+
106
+ # @ custom-post-widget
107
+ #: ../post-widget.php:84
108
+ msgid "Edit Content Block"
109
+ msgstr "Редактировать блок"
110
+
111
+ # @ custom-post-widget
112
+ #: ../post-widget.php:85
113
+ msgid "New Content Block"
114
+ msgstr "Новый блок"
115
+
116
+ # @ custom-post-widget
117
+ #: ../post-widget.php:86
118
+ msgid "View Content Block"
119
+ msgstr "Открыть блок"
120
+
121
+ # @ custom-post-widget
122
+ #: ../post-widget.php:87
123
+ msgid "Search Content Blocks"
124
+ msgstr "Найти блок"
125
+
126
+ # @ custom-post-widget
127
+ #: ../post-widget.php:88
128
+ msgid "No Content Blocks Found"
129
+ msgstr "Блоки не найдены"
130
+
131
+ # @ custom-post-widget
132
+ #: ../post-widget.php:89
133
+ msgid "No Content Blocks found in Trash"
134
+ msgstr "В корзине пусто"
135
+
136
+ # @ custom-post-widget
137
+ #: ../post-widget.php:131
138
+ #, php-format
139
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
140
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
141
+
142
+ # @ custom-post-widget
143
+ #: ../post-widget.php:131
144
+ #: ../post-widget.php:134
145
+ msgid "Content Block updated."
146
+ msgstr "Блок обновлен."
147
+
148
+ # @ custom-post-widget
149
+ #: ../post-widget.php:132
150
+ msgid "Custom field updated."
151
+ msgstr "Поле обновлено."
152
+
153
+ # @ custom-post-widget
154
+ #: ../post-widget.php:133
155
+ msgid "Custom field deleted."
156
+ msgstr "Поле удалено"
157
+
158
+ # @ custom-post-widget
159
+ #: ../post-widget.php:135
160
+ #, php-format
161
+ msgid "Content Block restored to revision from %s"
162
+ msgstr "Блок востановлен с ревизии %s"
163
+
164
+ # @ custom-post-widget
165
+ #: ../post-widget.php:136
166
+ #, php-format
167
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
168
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджетами</a>"
169
+
170
+ # @ custom-post-widget
171
+ #: ../post-widget.php:136
172
+ msgid "Content Block published."
173
+ msgstr "Блок опубликован."
174
+
175
+ # @ custom-post-widget
176
+ #: ../post-widget.php:137
177
+ msgid "Block saved."
178
+ msgstr "Блок сохранен"
179
+
180
+ # @ custom-post-widget
181
+ #: ../post-widget.php:138
182
+ #, php-format
183
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
184
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджеатми</a>"
185
+
186
+ # @ custom-post-widget
187
+ #: ../post-widget.php:138
188
+ msgid "Content Block submitted."
189
+ msgstr "Блок опубликован."
190
+
191
+ # @ custom-post-widget
192
+ #: ../post-widget.php:139
193
+ #, php-format
194
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
195
+ msgstr "Блок запланирован на: <strong>%1$s</strong>."
196
+
197
+ # @ custom-post-widget
198
+ #: ../post-widget.php:139
199
+ msgid "M j, Y @ G:i"
200
+ msgstr "M j, Y @ G:i"
201
+
202
+ # @ custom-post-widget
203
+ #: ../post-widget.php:140
204
+ #, php-format
205
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
206
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
207
+
208
+ # @ custom-post-widget
209
+ #: ../post-widget.php:140
210
+ msgid "Content Block draft updated."
211
+ msgstr "Черновик блока обновлен."
212
+
213
+ # @ custom-post-widget
214
+ #: ../post-widget.php:175
215
+ #: ../post-widget.php:176
216
+ msgid "Add Content Block"
217
+ msgstr "Добавить блок"
218
+
tags/1.9.6/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:52
36
+ msgid "Do not apply content filters"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:61
40
+ msgid "Find"
41
+ msgstr ""
42
+
43
+ #: post-widget.php:91
44
+ msgctxt "post type general name"
45
+ msgid "Content Blocks"
46
+ msgstr ""
47
+
48
+ #: post-widget.php:92
49
+ msgctxt "post type singular name"
50
+ msgid "Content Block"
51
+ msgstr ""
52
+
53
+ #: post-widget.php:93
54
+ msgctxt "post type plural name"
55
+ msgid "Content Blocks"
56
+ msgstr ""
57
+
58
+ #: post-widget.php:94
59
+ msgctxt "block"
60
+ msgid "Add Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:95
64
+ msgid "Add New Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:96
68
+ msgid "Edit Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:97
72
+ msgid "New Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:98
76
+ msgid "View Content Block"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:99
80
+ msgid "Search Content Blocks"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:100
84
+ msgid "No Content Blocks Found"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:101
88
+ msgid "No Content Blocks found in Trash"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:126
92
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
93
+ msgstr ""
94
+
95
+ #: post-widget.php:127
96
+ msgid "Custom field updated."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:128
100
+ msgid "Custom field deleted."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:129
104
+ msgid "Content Block updated."
105
+ msgstr ""
106
+
107
+ #: post-widget.php:130
108
+ msgid "Content Block restored to revision from %s"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:131
112
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
113
+ msgstr ""
114
+
115
+ #: post-widget.php:132
116
+ msgid "Block saved."
117
+ msgstr ""
118
+
119
+ #: post-widget.php:133
120
+ msgid ""
121
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
122
+ "Block</a>"
123
+ msgstr ""
124
+
125
+ #: post-widget.php:134
126
+ msgid ""
127
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
128
+ "href=\"%2$s\">Preview block</a>"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:135
132
+ msgid "M j, Y @ G:i"
133
+ msgstr ""
134
+
135
+ #: post-widget.php:136
136
+ msgid ""
137
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
138
+ "Content Block</a>"
139
+ msgstr ""
140
+
141
+ #. Plugin Name of the plugin/theme
142
+ msgid "Custom Post Widget"
143
+ msgstr ""
144
+
145
+ #. Plugin URI of the plugin/theme
146
+ msgid ""
147
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
148
+ msgstr ""
149
+
150
+ #. Description of the plugin/theme
151
+ msgid ""
152
+ "Show the content of a custom post of the type 'content_block' in a widget."
153
+ msgstr ""
154
+
155
+ #. Author of the plugin/theme
156
+ msgid "Johan van der Wijk"
157
+ msgstr ""
158
+
159
+ #. Author URI of the plugin/theme
160
+ msgid "http://www.vanderwijk.com"
161
+ msgstr ""
tags/1.9.6/popup.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // Action target that displays the popup to insert a content block to a post/page
2
+
3
+ function add_content_block_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+ var win = window.dialogArguments || opener || parent || top;
13
+ win.send_to_editor("[content_block id=" + content_id + "]");
14
+ }
15
+ </script>
16
+
17
+ <div id="content_block_form" style="display:none;">
18
+ <div class="wrap">
19
+ <div>
20
+ <div style="padding:15px 15px 0 15px;">
21
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;">
22
+ <?php _e("Insert Content Block", 'custom-post-widget'); ?>
23
+ </h3>
24
+ <span>
25
+ <?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?>
26
+ </span>
27
+ </div>
28
+ <div style="padding:15px 15px 0 15px;">
29
+ <select id="add_content_block_id">
30
+ <option value="">
31
+ <?php _e("Select a Content Block", 'custom-post-widget'); ?>
32
+ </option>
33
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
34
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
35
+ $currentID = get_the_ID();
36
+ if($currentID == $custom_post_id)
37
+ $extra = 'selected' and
38
+ $widgetExtraTitle = get_the_title();
39
+ else
40
+ $extra = '';
41
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
42
+ endwhile; else:
43
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
44
+ endif; ?>
45
+ </select>
46
+ <br />
47
+ <div style="padding:15px;">
48
+ <input type="button" class="button-primary" value="<?php _e("Insert Content Block", 'custom-post-widget') ?>" onclick="InsertContentBlockForm();"/>
49
+ &nbsp;&nbsp;&nbsp; <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;">
50
+ <?php _e("Cancel", 'custom-post-widget'); ?>
51
+ </a>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <?php } ?>
tags/1.9.6/post-widget.php ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // First create the widget for the admin panel
4
+ class custom_post_widget extends WP_Widget {
5
+ function custom_post_widget() {
6
+ $widget_ops = array( 'description' => __( 'Displays custom post content in a widget', 'custom-post-widget' ) );
7
+ $this->WP_Widget( 'custom_post_widget', __( 'Content Block', 'custom-post-widget' ), $widget_ops );
8
+ }
9
+
10
+ function form( $instance ) {
11
+ $custom_post_id = ''; // initialize the variable
12
+ if (isset($instance['custom_post_id'])) {
13
+ $custom_post_id = esc_attr($instance['custom_post_id']);
14
+ };
15
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : true;
16
+ $apply_content_filters = isset( $instance['apply_content_filters'] ) ? $instance['apply_content_filters'] : true;
17
+ ?>
18
+
19
+ <p>
20
+ <label for="<?php echo $this->get_field_id( 'custom_post_id' ); ?>"> <?php echo __( 'Content Block to Display:', 'custom-post-widget' ) ?>
21
+ <select class="widefat" id="<?php echo $this->get_field_id( 'custom_post_id' ); ?>" name="<?php echo $this->get_field_name( 'custom_post_id' ); ?>">
22
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
23
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
24
+ $currentID = get_the_ID();
25
+ if( $currentID == $custom_post_id )
26
+ $extra = 'selected' and
27
+ $widgetExtraTitle = get_the_title();
28
+ else
29
+ $extra = '';
30
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
31
+ endwhile; else:
32
+ echo '<option value="empty">' . __( 'No content blocks available', 'custom-post-widget' ) . '</option>';
33
+ endif; ?>
34
+ </select>
35
+ </label>
36
+ </p>
37
+
38
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
39
+
40
+ <p>
41
+ <?php
42
+ echo '<a href="post.php?post=' . $custom_post_id . '&action=edit">' . __( 'Edit Content Block', 'custom-post-widget' ) . '</a>' ;
43
+ ?>
44
+ </p>
45
+
46
+ <?php wp_reset_query(); ?>
47
+
48
+ <p>
49
+ <input class="checkbox" type="checkbox" <?php checked( (bool) isset( $instance['show_custom_post_title'] ), true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
50
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __( 'Show Post Title', 'custom-post-widget' ) ?></label>
51
+ </p>
52
+
53
+ <p>
54
+ <input class="checkbox" type="checkbox" <?php checked( (bool) isset( $instance['apply_content_filters'] ), true ); ?> id="<?php echo $this->get_field_id( 'apply_content_filters' ); ?>" name="<?php echo $this->get_field_name( 'apply_content_filters' ); ?>" />
55
+ <label for="<?php echo $this->get_field_id( 'apply_content_filters' ); ?>"><?php echo __( 'Do not apply content filters', 'custom-post-widget' ) ?></label>
56
+ </p> <?php
57
+ }
58
+
59
+ function update( $new_instance, $old_instance ) {
60
+ $instance = $old_instance;
61
+ $instance['custom_post_id'] = strip_tags( $new_instance['custom_post_id'] );
62
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
63
+ $instance['apply_content_filters'] = $new_instance['apply_content_filters'];
64
+ return $instance;
65
+ }
66
+
67
+ function widget($args, $instance) {
68
+ extract($args);
69
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
70
+ // Add support for WPML Plugin.
71
+ if ( function_exists( 'icl_object_id' ) ){
72
+ $custom_post_id = icl_object_id( $custom_post_id, 'content_block', true );
73
+ }
74
+ // Variables from the widget settings.
75
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
76
+ $apply_content_filters = isset($instance['apply_content_filters']) ? $instance['apply_content_filters'] : false;
77
+ $content_post = get_post($custom_post_id);
78
+ $content = $content_post->post_content;
79
+ if ( !$apply_content_filters ) { // Don't apply the content filter if checkbox selected
80
+ $content = apply_filters('the_content', $content);
81
+ }
82
+ echo $before_widget;
83
+ if ( $show_custom_post_title ) {
84
+ echo $before_title . apply_filters('widget_title',$content_post->post_title) . $after_title; // This is the line that displays the title (only if show title is set)
85
+ }
86
+ echo do_shortcode($content); // This is where the actual content of the custom post is being displayed
87
+ echo $after_widget;
88
+ }
89
+
90
+ }
91
+
92
+ // Create the Content Block custom post type
93
+ add_action('init', 'my_content_block_post_type_init');
94
+
95
+ function my_content_block_post_type_init() {
96
+ $labels = array(
97
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
98
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
99
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
100
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
101
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
102
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
103
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
104
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
105
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
106
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
107
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
108
+ 'parent_item_colon' => ''
109
+ );
110
+ $options = array(
111
+ 'labels' => $labels,
112
+ 'public' => false,
113
+ 'publicly_queryable' => false,
114
+ 'exclude_from_search' => true,
115
+ 'show_ui' => true,
116
+ 'query_var' => true,
117
+ 'rewrite' => true,
118
+ 'capability_type' => 'post',
119
+ 'hierarchical' => false,
120
+ 'menu_position' => null,
121
+ 'supports' => array('title','editor','revisions','thumbnail','author')
122
+ );
123
+ register_post_type('content_block',$options);
124
+ }
125
+
126
+ // Add custom styles to admin screen and menu
127
+ add_action('admin_head', 'content_block_header');
128
+
129
+ function content_block_header() {
130
+ global $post_type; ?>
131
+ <style type="text/css">
132
+ <!--
133
+ <?php if (($post_type == 'content_block')) : ?>
134
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important;}
135
+ #minor-publishing-actions { display:none; /* Hide the Save Draft and Preview buttons */}
136
+ <?php endif; ?>
137
+ #adminmenu #menu-posts-content_block div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
138
+ #adminmenu #menu-posts-content_block:hover div.wp-menu-image,#adminmenu #menu-posts-content_block.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
139
+ -->
140
+ </style>
141
+ <?php
142
+ }
143
+
144
+ add_filter('post_updated_messages', 'content_block_messages');
145
+
146
+ function content_block_messages( $messages ) {
147
+ $messages['content_block'] = array(
148
+ 0 => '',
149
+ 1 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
150
+ 2 => __('Custom field updated.', 'custom-post-widget'),
151
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
152
+ 4 => __('Content Block updated.', 'custom-post-widget'),
153
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
154
+ 6 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block published. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block published.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
155
+ 7 => __('Block saved.', 'custom-post-widget'),
156
+ 8 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block submitted. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block submitted.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
157
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>.', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( 'widgets.php' ) ),
158
+ 10 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block draft updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block draft updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
159
+ );
160
+ return $messages;
161
+ }
162
+
163
+ // Add the ability to display the content block in a reqular post using a shortcode
164
+ function custom_post_widget_shortcode($atts) {
165
+ extract(shortcode_atts(array(
166
+ 'id' => '',
167
+ 'class' => 'content_block'
168
+ ), $atts));
169
+
170
+ $content = "";
171
+
172
+ if($id != "") {
173
+ $args = array(
174
+ 'post__in' => array($id),
175
+ 'post_type' => 'content_block',
176
+ );
177
+
178
+ $content_post = get_posts($args);
179
+
180
+ foreach( $content_post as $post ) :
181
+ $content .= '<div class="'. esc_attr($class) .'">';
182
+ $content .= apply_filters('the_content', $post->post_content);
183
+ $content .= '</div>';
184
+ endforeach;
185
+ }
186
+
187
+ return $content;
188
+ }
189
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
190
+
191
+ // Add button above editor if not editing content_block
192
+ function add_content_block_icon($initcontext) {
193
+ return $initcontext.
194
+ '<a id="add_content_block" style="text-decoration:none;" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php?type=add_content_block_popup&amp;TB_inline=true&amp;inlineId=content_block_form">
195
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
196
+ </a>';
197
+ }
198
+ // Only add content_block icon above posts and pages
199
+ function check_post_type_and_remove_media_buttons() {
200
+ global $current_screen;
201
+ if( 'content_block' != $current_screen->post_type ) add_filter('media_buttons_context', 'add_content_block_icon' );
202
+ }
203
+ add_action('admin_head','check_post_type_and_remove_media_buttons');
204
+
205
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
206
+
207
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
208
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
209
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
210
+ add_action('admin_footer', 'add_content_block_popup');
211
+ }
212
+ ?>
tags/1.9.6/readme.txt ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar, content block, content, block, custom, post, shortcode
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.4.1
8
+ Stable tag: 1.9.5
9
+ License: GPLv2 or later
10
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
+
12
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
13
+
14
+ == Description ==
15
+
16
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
17
+
18
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
19
+
20
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
21
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
22
+
23
+ This plugin creates a 'content_block' custom post type. You can choose to either display the title on the page or use it to describe the contents and widget position of the content block. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
24
+
25
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
26
+
27
+ This plugin is ready for localization and Dutch, French, German, Polish and Russian language files are included.
28
+
29
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
30
+
31
+ == Screenshots ==
32
+
33
+ 1. After activating the plugin a new post type called 'Content Blocks' is added. You can also see the little icon above the WYSIWYG editor that allows you to insert the content block using the shortcode.
34
+ 2. The widget has a select box to choose the content block. Click on the 'Edit Content Block' link to edit the selected Content Block custom post.
35
+
36
+ == Installation ==
37
+
38
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
39
+ 2. Then activate the plugin in the plugin panel.
40
+ You will see that a new custom post type has been added called Content Block.
41
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
42
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
43
+ 5. Select a Content Block from the drop-down list.
44
+ 6. Check the 'Show Post Title' checkbox if you would like to display the title of your Content Block
45
+ 7. If you are experiencing issues with content being added automatically to your posts (Social media sharing buttons for instance), check the 'Do not apply content filters' checkbox. Use this with caution!
46
+ 8. Click save.
47
+
48
+ == Frequently Asked Questions ==
49
+
50
+ = Why can't I use the default text-widget? =
51
+
52
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
53
+
54
+ = How can I show the content bock on a specific page? =
55
+
56
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
57
+
58
+ = How can I display the featured image in the widget? =
59
+
60
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
61
+
62
+ `function InsertFeaturedImage($content) {
63
+ global $post;
64
+ $original_content = $content;
65
+ if (current_theme_supports('post-thumbnails')) {
66
+ if ('content_block' == get_post_type()) {
67
+ $content = the_post_thumbnail('medium');
68
+ $content .= $original_content;
69
+ }
70
+ }
71
+ return $content;
72
+ }
73
+ add_filter('the_content', 'InsertFeaturedImage');`
74
+
75
+ = My social sharing plugin adds buttons to all the Custom Post Widget areas =
76
+
77
+ If your social media sharing plugin adds buttons to the widget areas you could check the 'Do not apply content filters' checkbox. Note that when this is done, WordPress will also stop adding paragraph tags to your text, so use this setting with caution. It is much better to ask the developer of the social media sharing buttons plugin to correctly use the content filters (see http://pippinsplugins.com/playing-nice-with-the-content-filter/).
78
+
79
+
80
+ == Changelog ==
81
+
82
+ = 1.9.6 =
83
+ Fixed debug notices when dragging a new content block to the widget areas and removed the add content block shortcode from the content block editing screen.
84
+
85
+ = 1.9.5 =
86
+ Added the option to disable apply_filters on the content to prevent issues with misbehaving plugins. I would have rather not added this, but it appears many plugin developers do not know how to properly use filters (see http://pippinsplugins.com/playing-nice-with-the-content-filter/).
87
+
88
+ = 1.9.4 =
89
+ Corrected a minor bug regarding translation strings.
90
+
91
+ = 1.9.3 =
92
+ Minor bugfix and added the French translation which was created by Alexandre Simard (http://brocheafoin.biz/).
93
+
94
+ = 1.9.2 =
95
+ Now includes Polish language files as created by Kuba Skublicki.
96
+
97
+ = 1.9 =
98
+ The content blocks can now be translated using the WPML plugin, thanks to Jonathan Liuti (http://unboxed-logic.com/).
99
+ Thanks to Vitaliy Kaplya (http://www.dasayt.com/) a Russian translation has been added to the plugin.
100
+
101
+ = 1.8.6 =
102
+ Minor bugfix for edit link in widget.
103
+
104
+ = 1.8.5 =
105
+ This release is to fix an issue with the WordPress plugin repository.
106
+
107
+ = 1.8.4 =
108
+ Added edit content block link to the widget editor and changed the 'view content block' message to include a 'manage widgets' link. The 'Draft' and 'Preview' buttons are now hidden via CSS, hopefully this will soon be default WordPress behaviour (see related ticket: http://core.trac.wordpress.org/ticket/18956).
109
+ Thanks to Julian Gardner-Hobbs (http://www.hobwebs.com/) for requesting this functionality.
110
+
111
+ = 1.8.3 -> rolled-back because of some reported issues with social media icons being added to the widget areas =
112
+ The widget now emulates the $post loop. This means you can now make use of WordPress functionality such as inserting a [gallery]. Thanks to Jari Pennanen for providing the code.
113
+
114
+ = 1.8.2 =
115
+ Updated German translation and various bugfixes.
116
+
117
+ = 1.8 =
118
+ Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
119
+
120
+ = 1.7 =
121
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
122
+
123
+ = 1.6 =
124
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
125
+
126
+ = 1.5 =
127
+ Thanks to Caspar Huebinger the plugin now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
128
+
129
+ = 1.4 =
130
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
131
+
132
+ = 1.3 =
133
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
134
+
135
+ = 1.2.1 =
136
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
137
+
138
+ = 1.2 =
139
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
140
+
141
+ = 1.1.1 =
142
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
143
+
144
+ = 1.1 =
145
+ Fixed screenshots for plugin directory
146
+
147
+ = 1.0 =
148
+ First release
149
+
150
+
151
+ == Upgrade Notice ==
152
+
153
+ = 1.8 =
154
+ I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
155
+
156
+
tags/1.9.6/screenshot-1.png ADDED
Binary file
tags/1.9.6/screenshot-2.png ADDED
Binary file
tags/1.9.7/custom-post-widget.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.9.7
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.9.7 Added featured image support and switched back to using query_posts
12
+
13
+ Copyright 2012 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ // Set constant path to the custom-post-widget plugin directory.
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ // Launch the plugin.
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ // Load the required files needed for the plugin to run in the proper order and add needed functions to the required hooks.
37
+ function custom_post_widget_plugin_init() {
38
+ // Load the translation of the plugin.
39
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
40
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
41
+ }
42
+
43
+ // Loads the widgets packaged with the plugin.
44
+ function custom_post_widget_load_widgets() {
45
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
46
+ register_widget( 'custom_post_widget' );
47
+ }
48
+ ?>
tags/1.9.7/images/contentblock-13.png ADDED
Binary file
tags/1.9.7/images/contentblock-32.png ADDED
Binary file
tags/1.9.7/images/contentblock.png ADDED
Binary file
tags/1.9.7/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.9.7/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.9.7/languages/custom-post-widget-fr_FR.mo ADDED
Binary file
tags/1.9.7/languages/custom-post-widget-fr_FR.po ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget v1.9.2\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
5
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
6
+ "PO-Revision-Date: 2012-06-21 17:06:30+0200\n"
7
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
+ "Language-Team: LANGUAGE <LL@li.org>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:6
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Affiche le contenu d'un bloc dans un widget."
26
+
27
+ #: post-widget.php:7
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Bloc de contenu"
31
+
32
+ #: post-widget.php:15
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Bloc de contenu à afficher:"
36
+
37
+ #: popup.php:43
38
+ #: post-widget.php:27
39
+ #@ custom-post-widget
40
+ msgid "No content blocks available"
41
+ msgstr "Aucun bloc disponible"
42
+
43
+ #: post-widget.php:45
44
+ #@ custom-post-widget
45
+ msgid "Show Post Title"
46
+ msgstr "Afficher le titre du bloc"
47
+
48
+ #: post-widget.php:58
49
+ #@ custom-post-widget
50
+ msgid "Find"
51
+ msgstr "Rechercher"
52
+
53
+ #: post-widget.php:83
54
+ #@ custom-post-widget
55
+ msgctxt "post type general name"
56
+ msgid "Content Blocks"
57
+ msgstr "Blocs de contenu"
58
+
59
+ #: post-widget.php:84
60
+ #@ custom-post-widget
61
+ msgctxt "post type singular name"
62
+ msgid "Content Block"
63
+ msgstr "Bloc de contenu"
64
+
65
+ #: post-widget.php:85
66
+ #@ custom-post-widget
67
+ msgctxt "post type plural name"
68
+ msgid "Content Blocks"
69
+ msgstr "Blocs de contenu"
70
+
71
+ #: post-widget.php:86
72
+ #@ custom-post-widget
73
+ msgctxt "block"
74
+ msgid "Add Content Block"
75
+ msgstr "Ajouter un bloc"
76
+
77
+ #: post-widget.php:87
78
+ #@ custom-post-widget
79
+ msgid "Add New Content Block"
80
+ msgstr "Ajouter un bloc"
81
+
82
+ #: post-widget.php:88
83
+ #@ custom-post-widget
84
+ msgid "Edit Content Block"
85
+ msgstr "Modifier le bloc"
86
+
87
+ #: post-widget.php:89
88
+ #@ custom-post-widget
89
+ msgid "New Content Block"
90
+ msgstr "Nouveau bloc"
91
+
92
+ #: post-widget.php:90
93
+ #@ custom-post-widget
94
+ msgid "View Content Block"
95
+ msgstr "Afficher le bloc"
96
+
97
+ #: post-widget.php:91
98
+ #@ custom-post-widget
99
+ msgid "Search Content Blocks"
100
+ msgstr "Recherche dans les blocs"
101
+
102
+ #: post-widget.php:92
103
+ #@ custom-post-widget
104
+ msgid "No Content Blocks Found"
105
+ msgstr "Aucun bloc trouvé"
106
+
107
+ #: post-widget.php:93
108
+ #@ custom-post-widget
109
+ msgid "No Content Blocks found in Trash"
110
+ msgstr "Aucun bloc trouvé dans la corbeille"
111
+
112
+ #: post-widget.php:136
113
+ #@ custom-post-widget
114
+ msgid "Custom field updated."
115
+ msgstr "Champ personnalisé mis à jour."
116
+
117
+ #: post-widget.php:137
118
+ #@ custom-post-widget
119
+ msgid "Custom field deleted."
120
+ msgstr "Champ personnalisé supprimé."
121
+
122
+ #: post-widget.php:135
123
+ #: post-widget.php:138
124
+ #@ custom-post-widget
125
+ msgid "Content Block updated."
126
+ msgstr "Bloc de contenu mis à jour."
127
+
128
+ #: post-widget.php:139
129
+ #, php-format
130
+ #@ custom-post-widget
131
+ msgid "Content Block restored to revision from %s"
132
+ msgstr "Bloc de contenu restauré à partir de la révision %s"
133
+
134
+ #: post-widget.php:141
135
+ #@ custom-post-widget
136
+ msgid "Block saved."
137
+ msgstr "Bloc sauvegardé."
138
+
139
+ #: post-widget.php:143
140
+ #@ custom-post-widget
141
+ msgid "M j, Y @ G:i"
142
+ msgstr "le j M Y, à G:i"
143
+
144
+ #: popup.php:9
145
+ #@ custom-post-widget
146
+ msgid "Please select a Content Block"
147
+ msgstr "Veuillez choisir un bloc de contenu"
148
+
149
+ #: popup.php:22
150
+ #: popup.php:48
151
+ #@ custom-post-widget
152
+ msgid "Insert Content Block"
153
+ msgstr "Insérer un bloc de contenu"
154
+
155
+ #: popup.php:25
156
+ #@ custom-post-widget
157
+ msgid "Select a Content Block below to add it to your post or page."
158
+ msgstr "Choisissez un bloc de contenu ci-bas pour l'ajouter à votre article ou page."
159
+
160
+ #: popup.php:31
161
+ #@ custom-post-widget
162
+ msgid "Select a Content Block"
163
+ msgstr "Choisissez un bloc"
164
+
165
+ #: popup.php:50
166
+ #@ custom-post-widget
167
+ msgid "Cancel"
168
+ msgstr "Annuler"
169
+
170
+ #: post-widget.php:135
171
+ #, php-format
172
+ #@ custom-post-widget
173
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
174
+ msgstr "Bloc de contenu mis à jour. <a href=\"%s\">Gérer les widgets</a>"
175
+
176
+ #: post-widget.php:140
177
+ #, php-format
178
+ #@ custom-post-widget
179
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
180
+ msgstr "Bloc de contenu publié. <a href=\"%s\">Gérer les widgets</a>"
181
+
182
+ #: post-widget.php:140
183
+ #@ custom-post-widget
184
+ msgid "Content Block published."
185
+ msgstr "Bloc de contenu publié."
186
+
187
+ #: post-widget.php:142
188
+ #, php-format
189
+ #@ custom-post-widget
190
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
191
+ msgstr "Bloc de contenu envoyé. <a href=\"%s\">Gérer les widgets</a>"
192
+
193
+ #: post-widget.php:142
194
+ #@ custom-post-widget
195
+ msgid "Content Block submitted."
196
+ msgstr "Bloc de contenu envoyé."
197
+
198
+ #: post-widget.php:143
199
+ #, php-format
200
+ #@ custom-post-widget
201
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
202
+ msgstr "Publication du bloc prévue pour le <strong>%1$s</strong>."
203
+
204
+ #: post-widget.php:144
205
+ #, php-format
206
+ #@ custom-post-widget
207
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
208
+ msgstr "Brouillon du bloc de contenu mis à jour. <a href=\"%s\">Gérer les widgets</a>"
209
+
210
+ #: post-widget.php:144
211
+ #@ custom-post-widget
212
+ msgid "Content Block draft updated."
213
+ msgstr "Brouillon du bloc de contenu mis à jour."
214
+
215
+ #: post-widget.php:180
216
+ #: post-widget.php:181
217
+ #@ custom-post-widget
218
+ msgid "Add Content Block"
219
+ msgstr "Ajouter un bloc de contenu"
220
+
tags/1.9.7/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.9.7/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #: post-widget.php:52
47
+ msgid "Do not apply content filters"
48
+ msgstr "Apply_filters niet toepassen"
49
+
50
+ #@ custom-post-widget
51
+ #: post-widget.php:62
52
+ msgid "Find"
53
+ msgstr "Zoeken"
54
+
55
+ #@ custom-post-widget
56
+ #: post-widget.php:94
57
+ msgctxt "post type general name"
58
+ msgid "Content Blocks"
59
+ msgstr "Inhoudsblokken"
60
+
61
+ #@ custom-post-widget
62
+ #: post-widget.php:95
63
+ msgctxt "post type singular name"
64
+ msgid "Content Block"
65
+ msgstr "Inhoudsblok"
66
+
67
+ #@ custom-post-widget
68
+ #: post-widget.php:97
69
+ msgctxt "block"
70
+ msgid "Add Content Block"
71
+ msgstr "Nieuw Inhoudsblok"
72
+
73
+ #@ custom-post-widget
74
+ #: post-widget.php:98
75
+ msgid "Add New Content Block"
76
+ msgstr "Nieuw inhoudsblok toevoegen"
77
+
78
+ #@ custom-post-widget
79
+ #: post-widget.php:99
80
+ msgid "Edit Content Block"
81
+ msgstr "Inhoudsblok Bewerken"
82
+
83
+ #@ custom-post-widget
84
+ #: post-widget.php:100
85
+ msgid "New Content Block"
86
+ msgstr "Nieuw Inhoudsblok"
87
+
88
+ #@ custom-post-widget
89
+ #: post-widget.php:101
90
+ msgid "View Content Block"
91
+ msgstr "Inhoudsblok Bekijken"
92
+
93
+ #@ custom-post-widget
94
+ #: post-widget.php:102
95
+ msgid "Search Content Blocks"
96
+ msgstr "Inhoudsblokken zoeken"
97
+
98
+ #@ custom-post-widget
99
+ #: post-widget.php:103
100
+ msgid "No Content Blocks Found"
101
+ msgstr "Geen Inhoudsblokken"
102
+
103
+ #@ custom-post-widget
104
+ #: post-widget.php:104
105
+ msgid "No Content Blocks found in Trash"
106
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
107
+
108
+ #@ custom-post-widget
109
+ #: post-widget.php:129
110
+ #, php-format
111
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
112
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
113
+
114
+ #@ custom-post-widget
115
+ #: post-widget.php:130
116
+ msgid "Custom field updated."
117
+ msgstr "Custom field bijgewerkt."
118
+
119
+ #@ custom-post-widget
120
+ #: post-widget.php:131
121
+ msgid "Custom field deleted."
122
+ msgstr "Custom field verwijderd."
123
+
124
+ #@ custom-post-widget
125
+ #: post-widget.php:132
126
+ msgid "Content Block updated."
127
+ msgstr "Inhoudsblok bijgewerkt."
128
+
129
+ #@ custom-post-widget
130
+ #: post-widget.php:133
131
+ #, php-format
132
+ msgid "Content Block restored to revision from %s"
133
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
134
+
135
+ #@ custom-post-widget
136
+ #: post-widget.php:134
137
+ #, php-format
138
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
139
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
140
+
141
+ #@ custom-post-widget
142
+ #: post-widget.php:135
143
+ msgid "Block saved."
144
+ msgstr "Inhoudsblok Opgeslagen."
145
+
146
+ #@ custom-post-widget
147
+ #: post-widget.php:136
148
+ #, php-format
149
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
150
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
151
+
152
+ #@ custom-post-widget
153
+ #: post-widget.php:137
154
+ #, php-format
155
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
156
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
157
+
158
+ #@ custom-post-widget
159
+ #: post-widget.php:138
160
+ msgid "M j, Y @ G:i"
161
+ msgstr "j. M Y @ H:M"
162
+
163
+ #@ custom-post-widget
164
+ #: post-widget.php:139
165
+ #, php-format
166
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
167
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
168
+
169
+ #@ custom-post-widget
170
+ #: post-widget.php:96
171
+ msgctxt "post type plural name"
172
+ msgid "Content Blocks"
173
+ msgstr "Inhoudsblokken"
174
+
tags/1.9.7/languages/custom-post-widget-pl_PL.mo ADDED
Binary file
tags/1.9.7/languages/custom-post-widget-pl_PL.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Kuba Es <poedit@webnova.pl>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
15
+ "X-Textdomain-Support: yes\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #@ custom-post-widget
19
+ #: post-widget.php:8
20
+ msgid "Displays custom post content in a widget"
21
+ msgstr "Wyświetla zawartość w widgecie"
22
+
23
+ #@ custom-post-widget
24
+ #: post-widget.php:9
25
+ msgid "Content Block"
26
+ msgstr "Blok Treści"
27
+
28
+ #@ custom-post-widget
29
+ #: post-widget.php:19
30
+ msgid "Content Block to Display:"
31
+ msgstr "Blok Treści do wyświetlenia"
32
+
33
+ #@ custom-post-widget
34
+ #: post-widget.php:31
35
+ msgid "No content blocks available"
36
+ msgstr "Nie utworzono Bloków Treści"
37
+
38
+ #@ custom-post-widget
39
+ #: post-widget.php:43
40
+ msgid "Show Post Title"
41
+ msgstr "Pokaż tytuł postu"
42
+
43
+ #@ custom-post-widget
44
+ #: post-widget.php:62
45
+ msgid "Find"
46
+ msgstr "Znajdź"
47
+
48
+ #@ custom-post-widget
49
+ #: post-widget.php:94
50
+ msgctxt "post type general name"
51
+ msgid "Content Blocks"
52
+ msgstr "Bloki Treści"
53
+
54
+ #@ custom-post-widget
55
+ #: post-widget.php:95
56
+ msgctxt "post type singular name"
57
+ msgid "Content Block"
58
+ msgstr "Blok Treści"
59
+
60
+ #@ custom-post-widget
61
+ #: post-widget.php:97
62
+ msgctxt "block"
63
+ msgid "Add Content Block"
64
+ msgstr "Dodaj Blok Treści"
65
+
66
+ #@ custom-post-widget
67
+ #: post-widget.php:98
68
+ msgid "Add New Content Block"
69
+ msgstr "Nowy Blok Treści"
70
+
71
+ #@ custom-post-widget
72
+ #: post-widget.php:99
73
+ msgid "Edit Content Block"
74
+ msgstr "Edytuj Blok Treści"
75
+
76
+ #@ custom-post-widget
77
+ #: post-widget.php:100
78
+ msgid "New Content Block"
79
+ msgstr "Nowy Blok Treści"
80
+
81
+ #@ custom-post-widget
82
+ #: post-widget.php:101
83
+ msgid "View Content Block"
84
+ msgstr "Zobacz Blok Treści"
85
+
86
+ #@ custom-post-widget
87
+ #: post-widget.php:102
88
+ msgid "Search Content Blocks"
89
+ msgstr "Szukaj Bloków Treśc"
90
+
91
+ #@ custom-post-widget
92
+ #: post-widget.php:103
93
+ msgid "No Content Blocks Found"
94
+ msgstr "Nie znaleziono Bloków Treści"
95
+
96
+ #@ custom-post-widget
97
+ #: post-widget.php:104
98
+ msgid "No Content Blocks found in Trash"
99
+ msgstr "Nie znaleziono Bloków Treści w archiwum"
100
+
101
+ #@ custom-post-widget
102
+ #: post-widget.php:129
103
+ #, php-format
104
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
105
+ msgstr "Blok Treści został zapisany. <a href=\"%s\">Zobacz</a>"
106
+
107
+ #@ custom-post-widget
108
+ #: post-widget.php:130
109
+ msgid "Custom field updated."
110
+ msgstr "Własne pola zostały zaktualizowane."
111
+
112
+ #@ custom-post-widget
113
+ #: post-widget.php:131
114
+ msgid "Custom field deleted."
115
+ msgstr "Własne pola zostały usunięte."
116
+
117
+ #@ custom-post-widget
118
+ #: post-widget.php:132
119
+ msgid "Content Block updated."
120
+ msgstr "Blok Treści zaktualizowany."
121
+
122
+ #@ custom-post-widget
123
+ #: post-widget.php:133
124
+ #, php-format
125
+ msgid "Content Block restored to revision from %s"
126
+ msgstr "Przywrócono Blok Treści do rewizji z %s"
127
+
128
+ #@ custom-post-widget
129
+ #: post-widget.php:134
130
+ #, php-format
131
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
132
+ msgstr "Blok Treści został opublikowany. <a href=\"%s\">Zobacz</a>"
133
+
134
+ #@ custom-post-widget
135
+ #: post-widget.php:135
136
+ msgid "Block saved."
137
+ msgstr "Blok zapisany."
138
+
139
+ #@ custom-post-widget
140
+ #: post-widget.php:136
141
+ #, php-format
142
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
143
+ msgstr "Blok Treści przesłany. <a target=\"_blank\" href=\"%s\">Podgląd Bloku</a>"
144
+
145
+ #@ custom-post-widget
146
+ #: post-widget.php:137
147
+ #, php-format
148
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
149
+ msgstr "Blok Treści zaplanowany na: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Podgląd Bloku</a>"
150
+
151
+ #@ custom-post-widget
152
+ #: post-widget.php:138
153
+ msgid "M j, Y @ G:i"
154
+ msgstr "j. M Y @ H:M"
155
+
156
+ #@ custom-post-widget
157
+ #: post-widget.php:139
158
+ #, php-format
159
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
160
+ msgstr "Szkic zapisany. <a target=\"_blank\" href=\"%s\">Podgląd Bloku</a>"
161
+
162
+ #@ custom-post-widget
163
+ #: post-widget.php:96
164
+ msgctxt "post type plural name"
165
+ msgid "Content Blocks"
166
+ msgstr "Bloki Treści"
167
+
tags/1.9.7/languages/custom-post-widget-ru_RU.mo ADDED
Binary file
tags/1.9.7/languages/custom-post-widget-ru_RU.po ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-02-23 13:16+0200\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Виталий Капля <vitaliy.kaplya@dasayt.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Poedit-SearchPath-1: ..\n"
21
+
22
+ # @ custom-post-widget
23
+ #: ../popup.php:9
24
+ msgid "Please select a Content Block"
25
+ msgstr "Выберете блок"
26
+
27
+ # @ custom-post-widget
28
+ #: ../popup.php:22
29
+ #: ../popup.php:48
30
+ msgid "Insert Content Block"
31
+ msgstr "Вставить блок"
32
+
33
+ #: ../popup.php:25
34
+ msgid "Select a Content Block below to add it to your post or page."
35
+ msgstr "Выберете блок перед тем, как добавить его на страницу."
36
+
37
+ # @ custom-post-widget
38
+ #: ../popup.php:31
39
+ msgid "Select a Content Block"
40
+ msgstr "Выберите блок"
41
+
42
+ # @ custom-post-widget
43
+ #: ../popup.php:43
44
+ #: ../post-widget.php:27
45
+ msgid "No content blocks available"
46
+ msgstr "Блоки не найдены"
47
+
48
+ #: ../popup.php:50
49
+ msgid "Cancel"
50
+ msgstr "Отмена"
51
+
52
+ # @ custom-post-widget
53
+ #: ../post-widget.php:6
54
+ msgid "Displays custom post content in a widget"
55
+ msgstr "Отображение пользовательского контента в виджете"
56
+
57
+ # @ custom-post-widget
58
+ #: ../post-widget.php:7
59
+ msgid "Content Block"
60
+ msgstr "Блоки"
61
+
62
+ # @ custom-post-widget
63
+ #: ../post-widget.php:15
64
+ msgid "Content Block to Display:"
65
+ msgstr "Отображать следующий блок:"
66
+
67
+ # @ custom-post-widget
68
+ #: ../post-widget.php:45
69
+ msgid "Show Post Title"
70
+ msgstr "Выводить заголовок"
71
+
72
+ # @ custom-post-widget
73
+ #: ../post-widget.php:58
74
+ msgid "Find"
75
+ msgstr "Найти"
76
+
77
+ # @ custom-post-widget
78
+ #: ../post-widget.php:79
79
+ msgctxt "post type general name"
80
+ msgid "Content Blocks"
81
+ msgstr "Блоки"
82
+
83
+ # @ custom-post-widget
84
+ #: ../post-widget.php:80
85
+ msgctxt "post type singular name"
86
+ msgid "Content Block"
87
+ msgstr "Блок"
88
+
89
+ # @ custom-post-widget
90
+ #: ../post-widget.php:81
91
+ msgctxt "post type plural name"
92
+ msgid "Content Blocks"
93
+ msgstr "Блоки"
94
+
95
+ # @ custom-post-widget
96
+ #: ../post-widget.php:82
97
+ msgctxt "block"
98
+ msgid "Add Content Block"
99
+ msgstr "Добавить блок"
100
+
101
+ # @ custom-post-widget
102
+ #: ../post-widget.php:83
103
+ msgid "Add New Content Block"
104
+ msgstr "Добавить новы блок"
105
+
106
+ # @ custom-post-widget
107
+ #: ../post-widget.php:84
108
+ msgid "Edit Content Block"
109
+ msgstr "Редактировать блок"
110
+
111
+ # @ custom-post-widget
112
+ #: ../post-widget.php:85
113
+ msgid "New Content Block"
114
+ msgstr "Новый блок"
115
+
116
+ # @ custom-post-widget
117
+ #: ../post-widget.php:86
118
+ msgid "View Content Block"
119
+ msgstr "Открыть блок"
120
+
121
+ # @ custom-post-widget
122
+ #: ../post-widget.php:87
123
+ msgid "Search Content Blocks"
124
+ msgstr "Найти блок"
125
+
126
+ # @ custom-post-widget
127
+ #: ../post-widget.php:88
128
+ msgid "No Content Blocks Found"
129
+ msgstr "Блоки не найдены"
130
+
131
+ # @ custom-post-widget
132
+ #: ../post-widget.php:89
133
+ msgid "No Content Blocks found in Trash"
134
+ msgstr "В корзине пусто"
135
+
136
+ # @ custom-post-widget
137
+ #: ../post-widget.php:131
138
+ #, php-format
139
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
140
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
141
+
142
+ # @ custom-post-widget
143
+ #: ../post-widget.php:131
144
+ #: ../post-widget.php:134
145
+ msgid "Content Block updated."
146
+ msgstr "Блок обновлен."
147
+
148
+ # @ custom-post-widget
149
+ #: ../post-widget.php:132
150
+ msgid "Custom field updated."
151
+ msgstr "Поле обновлено."
152
+
153
+ # @ custom-post-widget
154
+ #: ../post-widget.php:133
155
+ msgid "Custom field deleted."
156
+ msgstr "Поле удалено"
157
+
158
+ # @ custom-post-widget
159
+ #: ../post-widget.php:135
160
+ #, php-format
161
+ msgid "Content Block restored to revision from %s"
162
+ msgstr "Блок востановлен с ревизии %s"
163
+
164
+ # @ custom-post-widget
165
+ #: ../post-widget.php:136
166
+ #, php-format
167
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
168
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджетами</a>"
169
+
170
+ # @ custom-post-widget
171
+ #: ../post-widget.php:136
172
+ msgid "Content Block published."
173
+ msgstr "Блок опубликован."
174
+
175
+ # @ custom-post-widget
176
+ #: ../post-widget.php:137
177
+ msgid "Block saved."
178
+ msgstr "Блок сохранен"
179
+
180
+ # @ custom-post-widget
181
+ #: ../post-widget.php:138
182
+ #, php-format
183
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
184
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджеатми</a>"
185
+
186
+ # @ custom-post-widget
187
+ #: ../post-widget.php:138
188
+ msgid "Content Block submitted."
189
+ msgstr "Блок опубликован."
190
+
191
+ # @ custom-post-widget
192
+ #: ../post-widget.php:139
193
+ #, php-format
194
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
195
+ msgstr "Блок запланирован на: <strong>%1$s</strong>."
196
+
197
+ # @ custom-post-widget
198
+ #: ../post-widget.php:139
199
+ msgid "M j, Y @ G:i"
200
+ msgstr "M j, Y @ G:i"
201
+
202
+ # @ custom-post-widget
203
+ #: ../post-widget.php:140
204
+ #, php-format
205
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
206
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
207
+
208
+ # @ custom-post-widget
209
+ #: ../post-widget.php:140
210
+ msgid "Content Block draft updated."
211
+ msgstr "Черновик блока обновлен."
212
+
213
+ # @ custom-post-widget
214
+ #: ../post-widget.php:175
215
+ #: ../post-widget.php:176
216
+ msgid "Add Content Block"
217
+ msgstr "Добавить блок"
218
+
tags/1.9.7/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:52
36
+ msgid "Do not apply content filters"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:61
40
+ msgid "Find"
41
+ msgstr ""
42
+
43
+ #: post-widget.php:91
44
+ msgctxt "post type general name"
45
+ msgid "Content Blocks"
46
+ msgstr ""
47
+
48
+ #: post-widget.php:92
49
+ msgctxt "post type singular name"
50
+ msgid "Content Block"
51
+ msgstr ""
52
+
53
+ #: post-widget.php:93
54
+ msgctxt "post type plural name"
55
+ msgid "Content Blocks"
56
+ msgstr ""
57
+
58
+ #: post-widget.php:94
59
+ msgctxt "block"
60
+ msgid "Add Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:95
64
+ msgid "Add New Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:96
68
+ msgid "Edit Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:97
72
+ msgid "New Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:98
76
+ msgid "View Content Block"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:99
80
+ msgid "Search Content Blocks"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:100
84
+ msgid "No Content Blocks Found"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:101
88
+ msgid "No Content Blocks found in Trash"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:126
92
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
93
+ msgstr ""
94
+
95
+ #: post-widget.php:127
96
+ msgid "Custom field updated."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:128
100
+ msgid "Custom field deleted."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:129
104
+ msgid "Content Block updated."
105
+ msgstr ""
106
+
107
+ #: post-widget.php:130
108
+ msgid "Content Block restored to revision from %s"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:131
112
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
113
+ msgstr ""
114
+
115
+ #: post-widget.php:132
116
+ msgid "Block saved."
117
+ msgstr ""
118
+
119
+ #: post-widget.php:133
120
+ msgid ""
121
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
122
+ "Block</a>"
123
+ msgstr ""
124
+
125
+ #: post-widget.php:134
126
+ msgid ""
127
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
128
+ "href=\"%2$s\">Preview block</a>"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:135
132
+ msgid "M j, Y @ G:i"
133
+ msgstr ""
134
+
135
+ #: post-widget.php:136
136
+ msgid ""
137
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
138
+ "Content Block</a>"
139
+ msgstr ""
140
+
141
+ #. Plugin Name of the plugin/theme
142
+ msgid "Custom Post Widget"
143
+ msgstr ""
144
+
145
+ #. Plugin URI of the plugin/theme
146
+ msgid ""
147
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
148
+ msgstr ""
149
+
150
+ #. Description of the plugin/theme
151
+ msgid ""
152
+ "Show the content of a custom post of the type 'content_block' in a widget."
153
+ msgstr ""
154
+
155
+ #. Author of the plugin/theme
156
+ msgid "Johan van der Wijk"
157
+ msgstr ""
158
+
159
+ #. Author URI of the plugin/theme
160
+ msgid "http://www.vanderwijk.com"
161
+ msgstr ""
tags/1.9.7/popup.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // Action target that displays the popup to insert a content block to a post/page
2
+
3
+ function add_content_block_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+ var win = window.dialogArguments || opener || parent || top;
13
+ win.send_to_editor("[content_block id=" + content_id + "]");
14
+ }
15
+ </script>
16
+
17
+ <div id="content_block_form" style="display:none;">
18
+ <div class="wrap">
19
+ <div>
20
+ <div style="padding:15px 15px 0 15px;">
21
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;">
22
+ <?php _e("Insert Content Block", 'custom-post-widget'); ?>
23
+ </h3>
24
+ <span>
25
+ <?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?>
26
+ </span>
27
+ </div>
28
+ <div style="padding:15px 15px 0 15px;">
29
+ <select id="add_content_block_id">
30
+ <option value="">
31
+ <?php _e("Select a Content Block", 'custom-post-widget'); ?>
32
+ </option>
33
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
34
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
35
+ $currentID = get_the_ID();
36
+ if($currentID == $custom_post_id)
37
+ $extra = 'selected' and
38
+ $widgetExtraTitle = get_the_title();
39
+ else
40
+ $extra = '';
41
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
42
+ endwhile; else:
43
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
44
+ endif; ?>
45
+ </select>
46
+ <br />
47
+ <div style="padding:15px;">
48
+ <input type="button" class="button-primary" value="<?php _e("Insert Content Block", 'custom-post-widget') ?>" onclick="InsertContentBlockForm();"/>
49
+ &nbsp;&nbsp;&nbsp; <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;">
50
+ <?php _e("Cancel", 'custom-post-widget'); ?>
51
+ </a>
52
+ </div>
53
+ </div>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <?php } ?>
tags/1.9.7/post-widget.php ADDED
@@ -0,0 +1,236 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Add featured image support
4
+ if ( function_exists( 'add_theme_support' ) ) {
5
+ add_theme_support( 'post-thumbnails' );
6
+ }
7
+
8
+ // First create the widget for the admin panel
9
+ class custom_post_widget extends WP_Widget {
10
+ function custom_post_widget() {
11
+ $widget_ops = array( 'description' => __( 'Displays custom post content in a widget', 'custom-post-widget' ) );
12
+ $this->WP_Widget( 'custom_post_widget', __( 'Content Block', 'custom-post-widget' ), $widget_ops );
13
+ }
14
+
15
+ function form( $instance ) {
16
+ $custom_post_id = ''; // initialize the variable
17
+ if (isset($instance['custom_post_id'])) {
18
+ $custom_post_id = esc_attr($instance['custom_post_id']);
19
+ };
20
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : true;
21
+ $show_featured_image = isset( $instance['show_featured_image'] ) ? $instance['show_featured_image'] : true;
22
+ $apply_content_filters = isset( $instance['apply_content_filters'] ) ? $instance['apply_content_filters'] : true;
23
+ ?>
24
+
25
+ <p>
26
+ <label for="<?php echo $this->get_field_id( 'custom_post_id' ); ?>"> <?php echo __( 'Content Block to Display:', 'custom-post-widget' ) ?>
27
+ <select class="widefat" id="<?php echo $this->get_field_id( 'custom_post_id' ); ?>" name="<?php echo $this->get_field_name( 'custom_post_id' ); ?>">
28
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
29
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
30
+ $currentID = get_the_ID();
31
+ if( $currentID == $custom_post_id )
32
+ $extra = 'selected' and
33
+ $widgetExtraTitle = get_the_title();
34
+ else
35
+ $extra = '';
36
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
37
+ endwhile; else:
38
+ echo '<option value="empty">' . __( 'No content blocks available', 'custom-post-widget' ) . '</option>';
39
+ endif; ?>
40
+ </select>
41
+ </label>
42
+ </p>
43
+
44
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
45
+
46
+ <p>
47
+ <?php
48
+ echo '<a href="post.php?post=' . $custom_post_id . '&action=edit">' . __( 'Edit Content Block', 'custom-post-widget' ) . '</a>' ;
49
+ ?>
50
+ </p>
51
+
52
+ <?php wp_reset_query(); ?>
53
+
54
+ <p>
55
+ <input class="checkbox" type="checkbox" <?php checked( (bool) isset( $instance['show_custom_post_title'] ), true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
56
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __( 'Show Post Title', 'custom-post-widget' ) ?></label>
57
+ </p>
58
+
59
+ <p>
60
+ <input class="checkbox" type="checkbox" <?php checked( (bool) isset( $instance['show_featured_image'] ), true ); ?> id="<?php echo $this->get_field_id( 'show_featured_image' ); ?>" name="<?php echo $this->get_field_name( 'show_featured_image' ); ?>" />
61
+ <label for="<?php echo $this->get_field_id( 'show_featured_image' ); ?>"><?php echo __( 'Show Featured Image', 'custom-post-widget' ) ?></label>
62
+ </p>
63
+
64
+ <p>
65
+ <input class="checkbox" type="checkbox" <?php checked( (bool) isset( $instance['apply_content_filters'] ), true ); ?> id="<?php echo $this->get_field_id( 'apply_content_filters' ); ?>" name="<?php echo $this->get_field_name( 'apply_content_filters' ); ?>" />
66
+ <label for="<?php echo $this->get_field_id( 'apply_content_filters' ); ?>"><?php echo __( 'Do not apply content filters', 'custom-post-widget' ) ?></label>
67
+ </p> <?php
68
+ }
69
+
70
+ function update( $new_instance, $old_instance ) {
71
+ $instance = $old_instance;
72
+ $instance['custom_post_id'] = strip_tags( $new_instance['custom_post_id'] );
73
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
74
+ $instance['show_featured_image'] = $new_instance['show_featured_image'];
75
+ $instance['apply_content_filters'] = $new_instance['apply_content_filters'];
76
+ return $instance;
77
+ }
78
+
79
+ function widget($args, $instance) {
80
+ extract($args);
81
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
82
+ // Add support for WPML Plugin.
83
+ if ( function_exists( 'icl_object_id' ) ){
84
+ $custom_post_id = icl_object_id( $custom_post_id, 'content_block', true );
85
+ }
86
+ // Variables from the widget settings.
87
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
88
+ $show_featured_image = isset($instance['show_featured_image']) ? $instance['show_featured_image'] : false;
89
+ $apply_content_filters = isset($instance['apply_content_filters']) ? $instance['apply_content_filters'] : false;
90
+
91
+ // Output the query to find the custom post
92
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
93
+ while (have_posts()) : the_post();
94
+ echo $before_widget;
95
+ if ( $show_custom_post_title ) {
96
+ echo $before_title;
97
+ the_title();
98
+ echo $after_title; // This is the line that displays the title (only if show title is set)
99
+ }
100
+ if ( $show_featured_image ) {
101
+ the_post_thumbnail();
102
+ }
103
+ if ( $apply_content_filters ) { // Don't apply the content filter if checkbox selected
104
+ remove_filter('the_content', 'wpautop');
105
+ the_content(); // This is where the actual content of the custom post is being displayed
106
+ } else {
107
+ the_content(); // This is where the actual content of the custom post is being displayed
108
+ }
109
+ echo $after_widget;
110
+ endwhile;
111
+ wp_reset_query();
112
+ }
113
+
114
+ }
115
+
116
+ // Create the Content Block custom post type
117
+ add_action('init', 'my_content_block_post_type_init');
118
+
119
+ function my_content_block_post_type_init() {
120
+ $labels = array(
121
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
122
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
123
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
124
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
125
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
126
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
127
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
128
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
129
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
130
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
131
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
132
+ 'parent_item_colon' => ''
133
+ );
134
+ $options = array(
135
+ 'labels' => $labels,
136
+ 'public' => false,
137
+ 'publicly_queryable' => false,
138
+ 'exclude_from_search' => true,
139
+ 'show_ui' => true,
140
+ 'query_var' => true,
141
+ 'rewrite' => true,
142
+ 'capability_type' => 'post',
143
+ 'hierarchical' => false,
144
+ 'menu_position' => null,
145
+ 'supports' => array('title','editor','revisions','thumbnail','author')
146
+ );
147
+ register_post_type('content_block',$options);
148
+ }
149
+
150
+ // Add custom styles to admin screen and menu
151
+ add_action('admin_head', 'content_block_header');
152
+
153
+ function content_block_header() {
154
+ global $post_type; ?>
155
+ <style type="text/css">
156
+ <!--
157
+ <?php if (($post_type == 'content_block')) : ?>
158
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important;}
159
+ #minor-publishing-actions { display:none; /* Hide the Save Draft and Preview buttons */}
160
+ <?php endif; ?>
161
+ #adminmenu #menu-posts-content_block div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
162
+ #adminmenu #menu-posts-content_block:hover div.wp-menu-image,#adminmenu #menu-posts-content_block.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
163
+ -->
164
+ </style>
165
+ <?php
166
+ }
167
+
168
+ add_filter('post_updated_messages', 'content_block_messages');
169
+
170
+ function content_block_messages( $messages ) {
171
+ $messages['content_block'] = array(
172
+ 0 => '',
173
+ 1 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
174
+ 2 => __('Custom field updated.', 'custom-post-widget'),
175
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
176
+ 4 => __('Content Block updated.', 'custom-post-widget'),
177
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
178
+ 6 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block published. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block published.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
179
+ 7 => __('Block saved.', 'custom-post-widget'),
180
+ 8 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block submitted. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block submitted.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
181
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>.', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( 'widgets.php' ) ),
182
+ 10 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block draft updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block draft updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
183
+ );
184
+ return $messages;
185
+ }
186
+
187
+ // Add the ability to display the content block in a reqular post using a shortcode
188
+ function custom_post_widget_shortcode($atts) {
189
+ extract(shortcode_atts(array(
190
+ 'id' => '',
191
+ 'class' => 'content_block'
192
+ ), $atts));
193
+
194
+ $content = "";
195
+
196
+ if($id != "") {
197
+ $args = array(
198
+ 'post__in' => array($id),
199
+ 'post_type' => 'content_block',
200
+ );
201
+
202
+ $content_post = get_posts($args);
203
+
204
+ foreach( $content_post as $post ) :
205
+ $content .= '<div class="'. esc_attr($class) .'">';
206
+ $content .= apply_filters('the_content', $post->post_content);
207
+ $content .= '</div>';
208
+ endforeach;
209
+ }
210
+
211
+ return $content;
212
+ }
213
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
214
+
215
+ // Add button above editor if not editing content_block
216
+ function add_content_block_icon($initcontext) {
217
+ return $initcontext.
218
+ '<a id="add_content_block" style="text-decoration:none;" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php?type=add_content_block_popup&amp;TB_inline=true&amp;inlineId=content_block_form">
219
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
220
+ </a>';
221
+ }
222
+ // Only add content_block icon above posts and pages
223
+ function check_post_type_and_remove_media_buttons() {
224
+ global $current_screen;
225
+ if( 'content_block' != $current_screen->post_type ) add_filter('media_buttons_context', 'add_content_block_icon' );
226
+ }
227
+ add_action('admin_head','check_post_type_and_remove_media_buttons');
228
+
229
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
230
+
231
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
232
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
233
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
234
+ add_action('admin_footer', 'add_content_block_popup');
235
+ }
236
+ ?>
tags/1.9.7/readme.txt ADDED
@@ -0,0 +1,159 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar, content block, content, block, custom, post, shortcode
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.4.1
8
+ Stable tag: 1.9.5
9
+ License: GPLv2 or later
10
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
+
12
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
13
+
14
+ == Description ==
15
+
16
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
17
+
18
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
19
+
20
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
21
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
22
+
23
+ This plugin creates a 'content_block' custom post type. You can choose to either display the title on the page or use it to describe the contents and widget position of the content block. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
24
+
25
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
26
+
27
+ This plugin is ready for localization and Dutch, French, German, Polish and Russian language files are included.
28
+
29
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
30
+
31
+ == Screenshots ==
32
+
33
+ 1. After activating the plugin a new post type called 'Content Blocks' is added. You can also see the little icon above the WYSIWYG editor that allows you to insert the content block using the shortcode.
34
+ 2. The widget has a select box to choose the content block. Click on the 'Edit Content Block' link to edit the selected Content Block custom post.
35
+
36
+ == Installation ==
37
+
38
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
39
+ 2. Then activate the plugin in the plugin panel.
40
+ You will see that a new custom post type has been added called Content Block.
41
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
42
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
43
+ 5. Select a Content Block from the drop-down list.
44
+ 6. Check the 'Show Post Title' checkbox if you would like to display the title of your Content Block
45
+ 7. If you are experiencing issues with content being added automatically to your posts (Social media sharing buttons for instance), check the 'Do not apply content filters' checkbox. Use this with caution!
46
+ 8. Click save.
47
+
48
+ == Frequently Asked Questions ==
49
+
50
+ = Why can't I use the default text-widget? =
51
+
52
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
53
+
54
+ = How can I show the content bock on a specific page? =
55
+
56
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
57
+
58
+ = How can I display the featured image in the widget? =
59
+
60
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
61
+
62
+ `function InsertFeaturedImage($content) {
63
+ global $post;
64
+ $original_content = $content;
65
+ if (current_theme_supports('post-thumbnails')) {
66
+ if ('content_block' == get_post_type()) {
67
+ $content = the_post_thumbnail('medium');
68
+ $content .= $original_content;
69
+ }
70
+ }
71
+ return $content;
72
+ }
73
+ add_filter('the_content', 'InsertFeaturedImage');`
74
+
75
+ = My social sharing plugin adds buttons to all the Custom Post Widget areas =
76
+
77
+ If your social media sharing plugin adds buttons to the widget areas you could check the 'Do not apply content filters' checkbox. Note that when this is done, WordPress will also stop adding paragraph tags to your text, so use this setting with caution. It is much better to ask the developer of the social media sharing buttons plugin to correctly use the content filters (see http://pippinsplugins.com/playing-nice-with-the-content-filter/).
78
+
79
+
80
+ == Changelog ==
81
+
82
+ = 1.9.7 =
83
+ Added featured image support and now using query_posts instead of get_post
84
+
85
+ = 1.9.6 =
86
+ Fixed debug notices when dragging a new content block to the widget areas and removed the add content block shortcode from the content block editing screen.
87
+
88
+ = 1.9.5 =
89
+ Added the option to disable apply_filters on the content to prevent issues with misbehaving plugins. I would have rather not added this, but it appears many plugin developers do not know how to properly use filters (see http://pippinsplugins.com/playing-nice-with-the-content-filter/).
90
+
91
+ = 1.9.4 =
92
+ Corrected a minor bug regarding translation strings.
93
+
94
+ = 1.9.3 =
95
+ Minor bugfix and added the French translation which was created by Alexandre Simard (http://brocheafoin.biz/).
96
+
97
+ = 1.9.2 =
98
+ Now includes Polish language files as created by Kuba Skublicki.
99
+
100
+ = 1.9 =
101
+ The content blocks can now be translated using the WPML plugin, thanks to Jonathan Liuti (http://unboxed-logic.com/).
102
+ Thanks to Vitaliy Kaplya (http://www.dasayt.com/) a Russian translation has been added to the plugin.
103
+
104
+ = 1.8.6 =
105
+ Minor bugfix for edit link in widget.
106
+
107
+ = 1.8.5 =
108
+ This release is to fix an issue with the WordPress plugin repository.
109
+
110
+ = 1.8.4 =
111
+ Added edit content block link to the widget editor and changed the 'view content block' message to include a 'manage widgets' link. The 'Draft' and 'Preview' buttons are now hidden via CSS, hopefully this will soon be default WordPress behaviour (see related ticket: http://core.trac.wordpress.org/ticket/18956).
112
+ Thanks to Julian Gardner-Hobbs (http://www.hobwebs.com/) for requesting this functionality.
113
+
114
+ = 1.8.3 -> rolled-back because of some reported issues with social media icons being added to the widget areas =
115
+ The widget now emulates the $post loop. This means you can now make use of WordPress functionality such as inserting a [gallery]. Thanks to Jari Pennanen for providing the code.
116
+
117
+ = 1.8.2 =
118
+ Updated German translation and various bugfixes.
119
+
120
+ = 1.8 =
121
+ Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
122
+
123
+ = 1.7 =
124
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
125
+
126
+ = 1.6 =
127
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
128
+
129
+ = 1.5 =
130
+ Thanks to Caspar Huebinger the plugin now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
131
+
132
+ = 1.4 =
133
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
134
+
135
+ = 1.3 =
136
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
137
+
138
+ = 1.2.1 =
139
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
140
+
141
+ = 1.2 =
142
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
143
+
144
+ = 1.1.1 =
145
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
146
+
147
+ = 1.1 =
148
+ Fixed screenshots for plugin directory
149
+
150
+ = 1.0 =
151
+ First release
152
+
153
+
154
+ == Upgrade Notice ==
155
+
156
+ = 1.8 =
157
+ I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
158
+
159
+
tags/1.9.7/screenshot-1.png ADDED
Binary file
tags/1.9.7/screenshot-2.png ADDED
Binary file
tags/1.9.8/custom-post-widget.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.9.8
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.9.8 Fix for debug message when using shortcode with the WPML plugin
12
+
13
+ Copyright 2012 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ // Set constant path to the custom-post-widget plugin directory.
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ // Launch the plugin.
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ // Load the required files needed for the plugin to run in the proper order and add needed functions to the required hooks.
37
+ function custom_post_widget_plugin_init() {
38
+ // Load the translation of the plugin.
39
+ load_plugin_textdomain( 'custom-post-widget', false, 'custom-post-widget/languages' );
40
+ add_action( 'widgets_init', 'custom_post_widget_load_widgets' );
41
+ }
42
+
43
+ // Loads the widgets packaged with the plugin.
44
+ function custom_post_widget_load_widgets() {
45
+ require_once( CUSTOM_POST_WIDGET_DIR . '/post-widget.php' );
46
+ register_widget( 'custom_post_widget' );
47
+ }
48
+ ?>
tags/1.9.8/images/contentblock-13.png ADDED
Binary file
tags/1.9.8/images/contentblock-32.png ADDED
Binary file
tags/1.9.8/images/contentblock.png ADDED
Binary file
tags/1.9.8/languages/custom-post-widget-de_DE.mo ADDED
Binary file
tags/1.9.8/languages/custom-post-widget-de_DE.po ADDED
@@ -0,0 +1,171 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:8
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Zeigt benutzerdefinierte Inhalte in einem Widget an"
26
+
27
+ #: post-widget.php:9
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Inhaltsblock"
31
+
32
+ #: post-widget.php:19
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Anzuzeigender Inhaltsblock"
36
+
37
+ #: post-widget.php:31
38
+ #@ custom-post-widget
39
+ msgid "No content blocks available"
40
+ msgstr "Keine Inhaltsblöcke verfügbar"
41
+
42
+ #: post-widget.php:43
43
+ #@ custom-post-widget
44
+ msgid "Show Post Title"
45
+ msgstr "Beitragstitel anzeigen"
46
+
47
+ #: post-widget.php:62
48
+ #@ custom-post-widget
49
+ msgid "Find"
50
+ msgstr "Finden"
51
+
52
+ #: post-widget.php:94
53
+ #@ custom-post-widget
54
+ msgctxt "post type general name"
55
+ msgid "Content Blocks"
56
+ msgstr "Inhaltsblöcke"
57
+
58
+ #: post-widget.php:95
59
+ #@ custom-post-widget
60
+ msgctxt "post type singular name"
61
+ msgid "Content Block"
62
+ msgstr "Inhaltsblock"
63
+
64
+ #: post-widget.php:97
65
+ #@ custom-post-widget
66
+ msgctxt "block"
67
+ msgid "Add Content Block"
68
+ msgstr "Inhaltsblock erstellen"
69
+
70
+ #: post-widget.php:98
71
+ #@ custom-post-widget
72
+ msgid "Add New Content Block"
73
+ msgstr "Neuen Inhaltsblock erstellen"
74
+
75
+ #: post-widget.php:99
76
+ #@ custom-post-widget
77
+ msgid "Edit Content Block"
78
+ msgstr "Inhaltsblock bearbeiten"
79
+
80
+ #: post-widget.php:100
81
+ #@ custom-post-widget
82
+ msgid "New Content Block"
83
+ msgstr "Neuer Inhaltsblock"
84
+
85
+ #: post-widget.php:101
86
+ #@ custom-post-widget
87
+ msgid "View Content Block"
88
+ msgstr "Inhaltsblock ansehen"
89
+
90
+ #: post-widget.php:102
91
+ #@ custom-post-widget
92
+ msgid "Search Content Blocks"
93
+ msgstr "Inhaltsblöcke durchsuchen"
94
+
95
+ #: post-widget.php:103
96
+ #@ custom-post-widget
97
+ msgid "No Content Blocks Found"
98
+ msgstr "Keine Inhaltsblöcke gefunden"
99
+
100
+ #: post-widget.php:104
101
+ #@ custom-post-widget
102
+ msgid "No Content Blocks found in Trash"
103
+ msgstr "Keine Inhaltsblöcke im Papierkorb gefunden"
104
+
105
+ #: post-widget.php:129
106
+ #, php-format
107
+ #@ custom-post-widget
108
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
109
+ msgstr "Inhaltsblock aktualisiert. <a href=\"%s\">Ansehen</a>"
110
+
111
+ #: post-widget.php:130
112
+ #@ custom-post-widget
113
+ msgid "Custom field updated."
114
+ msgstr "Benutzerdefiniertes Feld aktualisiert."
115
+
116
+ #: post-widget.php:131
117
+ #@ custom-post-widget
118
+ msgid "Custom field deleted."
119
+ msgstr "Benutzerdefiniertes Feld gelöscht."
120
+
121
+ #: post-widget.php:132
122
+ #@ custom-post-widget
123
+ msgid "Content Block updated."
124
+ msgstr "Inhaltsblock aktualisiert."
125
+
126
+ #: post-widget.php:133
127
+ #, php-format
128
+ #@ custom-post-widget
129
+ msgid "Content Block restored to revision from %s"
130
+ msgstr "Inhaltsblock wiederhergestellt als Revision vom %s"
131
+
132
+ #: post-widget.php:134
133
+ #, php-format
134
+ #@ custom-post-widget
135
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
136
+ msgstr "Inhaltsblock publiziert. <a href=\"%s\">Ansehen</a>"
137
+
138
+ #: post-widget.php:135
139
+ #@ custom-post-widget
140
+ msgid "Block saved."
141
+ msgstr "Inhaltsblock gespeichert."
142
+
143
+ #: post-widget.php:136
144
+ #, php-format
145
+ #@ custom-post-widget
146
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
147
+ msgstr "Inhaltsblock gesendet. <a target=\"_blank\" href=\"%s\">Vorschau anzeigen</a>"
148
+
149
+ #: post-widget.php:137
150
+ #, php-format
151
+ #@ custom-post-widget
152
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
153
+ msgstr "Inhaltsblock terminiert zum: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Vorschau ansehen</a>"
154
+
155
+ #: post-widget.php:138
156
+ #@ custom-post-widget
157
+ msgid "M j, Y @ G:i"
158
+ msgstr "j. M Y @ H:M"
159
+
160
+ #: post-widget.php:139
161
+ #, php-format
162
+ #@ custom-post-widget
163
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
164
+ msgstr "Entwurf aktualisiert. <a target=\"_blank\" href=\"%s\">Vorschau ansehen</a>"
165
+
166
+ #: post-widget.php:96
167
+ #@ custom-post-widget
168
+ msgctxt "post type plural name"
169
+ msgid "Content Blocks"
170
+ msgstr "Inhaltsblöcke"
171
+
tags/1.9.8/languages/custom-post-widget-fr_FR.mo ADDED
Binary file
tags/1.9.8/languages/custom-post-widget-fr_FR.po ADDED
@@ -0,0 +1,220 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget v1.9.2\n"
4
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
5
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
6
+ "PO-Revision-Date: 2012-06-21 17:06:30+0200\n"
7
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
8
+ "Language-Team: LANGUAGE <LL@li.org>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: \n"
14
+ "X-Poedit-Country: \n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
17
+ "X-Poedit-Basepath: \n"
18
+ "X-Poedit-Bookmarks: \n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Textdomain-Support: yes"
21
+
22
+ #: post-widget.php:6
23
+ #@ custom-post-widget
24
+ msgid "Displays custom post content in a widget"
25
+ msgstr "Affiche le contenu d'un bloc dans un widget."
26
+
27
+ #: post-widget.php:7
28
+ #@ custom-post-widget
29
+ msgid "Content Block"
30
+ msgstr "Bloc de contenu"
31
+
32
+ #: post-widget.php:15
33
+ #@ custom-post-widget
34
+ msgid "Content Block to Display:"
35
+ msgstr "Bloc de contenu à afficher:"
36
+
37
+ #: popup.php:43
38
+ #: post-widget.php:27
39
+ #@ custom-post-widget
40
+ msgid "No content blocks available"
41
+ msgstr "Aucun bloc disponible"
42
+
43
+ #: post-widget.php:45
44
+ #@ custom-post-widget
45
+ msgid "Show Post Title"
46
+ msgstr "Afficher le titre du bloc"
47
+
48
+ #: post-widget.php:58
49
+ #@ custom-post-widget
50
+ msgid "Find"
51
+ msgstr "Rechercher"
52
+
53
+ #: post-widget.php:83
54
+ #@ custom-post-widget
55
+ msgctxt "post type general name"
56
+ msgid "Content Blocks"
57
+ msgstr "Blocs de contenu"
58
+
59
+ #: post-widget.php:84
60
+ #@ custom-post-widget
61
+ msgctxt "post type singular name"
62
+ msgid "Content Block"
63
+ msgstr "Bloc de contenu"
64
+
65
+ #: post-widget.php:85
66
+ #@ custom-post-widget
67
+ msgctxt "post type plural name"
68
+ msgid "Content Blocks"
69
+ msgstr "Blocs de contenu"
70
+
71
+ #: post-widget.php:86
72
+ #@ custom-post-widget
73
+ msgctxt "block"
74
+ msgid "Add Content Block"
75
+ msgstr "Ajouter un bloc"
76
+
77
+ #: post-widget.php:87
78
+ #@ custom-post-widget
79
+ msgid "Add New Content Block"
80
+ msgstr "Ajouter un bloc"
81
+
82
+ #: post-widget.php:88
83
+ #@ custom-post-widget
84
+ msgid "Edit Content Block"
85
+ msgstr "Modifier le bloc"
86
+
87
+ #: post-widget.php:89
88
+ #@ custom-post-widget
89
+ msgid "New Content Block"
90
+ msgstr "Nouveau bloc"
91
+
92
+ #: post-widget.php:90
93
+ #@ custom-post-widget
94
+ msgid "View Content Block"
95
+ msgstr "Afficher le bloc"
96
+
97
+ #: post-widget.php:91
98
+ #@ custom-post-widget
99
+ msgid "Search Content Blocks"
100
+ msgstr "Recherche dans les blocs"
101
+
102
+ #: post-widget.php:92
103
+ #@ custom-post-widget
104
+ msgid "No Content Blocks Found"
105
+ msgstr "Aucun bloc trouvé"
106
+
107
+ #: post-widget.php:93
108
+ #@ custom-post-widget
109
+ msgid "No Content Blocks found in Trash"
110
+ msgstr "Aucun bloc trouvé dans la corbeille"
111
+
112
+ #: post-widget.php:136
113
+ #@ custom-post-widget
114
+ msgid "Custom field updated."
115
+ msgstr "Champ personnalisé mis à jour."
116
+
117
+ #: post-widget.php:137
118
+ #@ custom-post-widget
119
+ msgid "Custom field deleted."
120
+ msgstr "Champ personnalisé supprimé."
121
+
122
+ #: post-widget.php:135
123
+ #: post-widget.php:138
124
+ #@ custom-post-widget
125
+ msgid "Content Block updated."
126
+ msgstr "Bloc de contenu mis à jour."
127
+
128
+ #: post-widget.php:139
129
+ #, php-format
130
+ #@ custom-post-widget
131
+ msgid "Content Block restored to revision from %s"
132
+ msgstr "Bloc de contenu restauré à partir de la révision %s"
133
+
134
+ #: post-widget.php:141
135
+ #@ custom-post-widget
136
+ msgid "Block saved."
137
+ msgstr "Bloc sauvegardé."
138
+
139
+ #: post-widget.php:143
140
+ #@ custom-post-widget
141
+ msgid "M j, Y @ G:i"
142
+ msgstr "le j M Y, à G:i"
143
+
144
+ #: popup.php:9
145
+ #@ custom-post-widget
146
+ msgid "Please select a Content Block"
147
+ msgstr "Veuillez choisir un bloc de contenu"
148
+
149
+ #: popup.php:22
150
+ #: popup.php:48
151
+ #@ custom-post-widget
152
+ msgid "Insert Content Block"
153
+ msgstr "Insérer un bloc de contenu"
154
+
155
+ #: popup.php:25
156
+ #@ custom-post-widget
157
+ msgid "Select a Content Block below to add it to your post or page."
158
+ msgstr "Choisissez un bloc de contenu ci-bas pour l'ajouter à votre article ou page."
159
+
160
+ #: popup.php:31
161
+ #@ custom-post-widget
162
+ msgid "Select a Content Block"
163
+ msgstr "Choisissez un bloc"
164
+
165
+ #: popup.php:50
166
+ #@ custom-post-widget
167
+ msgid "Cancel"
168
+ msgstr "Annuler"
169
+
170
+ #: post-widget.php:135
171
+ #, php-format
172
+ #@ custom-post-widget
173
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
174
+ msgstr "Bloc de contenu mis à jour. <a href=\"%s\">Gérer les widgets</a>"
175
+
176
+ #: post-widget.php:140
177
+ #, php-format
178
+ #@ custom-post-widget
179
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
180
+ msgstr "Bloc de contenu publié. <a href=\"%s\">Gérer les widgets</a>"
181
+
182
+ #: post-widget.php:140
183
+ #@ custom-post-widget
184
+ msgid "Content Block published."
185
+ msgstr "Bloc de contenu publié."
186
+
187
+ #: post-widget.php:142
188
+ #, php-format
189
+ #@ custom-post-widget
190
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
191
+ msgstr "Bloc de contenu envoyé. <a href=\"%s\">Gérer les widgets</a>"
192
+
193
+ #: post-widget.php:142
194
+ #@ custom-post-widget
195
+ msgid "Content Block submitted."
196
+ msgstr "Bloc de contenu envoyé."
197
+
198
+ #: post-widget.php:143
199
+ #, php-format
200
+ #@ custom-post-widget
201
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
202
+ msgstr "Publication du bloc prévue pour le <strong>%1$s</strong>."
203
+
204
+ #: post-widget.php:144
205
+ #, php-format
206
+ #@ custom-post-widget
207
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
208
+ msgstr "Brouillon du bloc de contenu mis à jour. <a href=\"%s\">Gérer les widgets</a>"
209
+
210
+ #: post-widget.php:144
211
+ #@ custom-post-widget
212
+ msgid "Content Block draft updated."
213
+ msgstr "Brouillon du bloc de contenu mis à jour."
214
+
215
+ #: post-widget.php:180
216
+ #: post-widget.php:181
217
+ #@ custom-post-widget
218
+ msgid "Add Content Block"
219
+ msgstr "Ajouter un bloc de contenu"
220
+
tags/1.9.8/languages/custom-post-widget-nl_NL.mo ADDED
Binary file
tags/1.9.8/languages/custom-post-widget-nl_NL.po ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Johan van der Wijk <info@vanderwijk.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+
21
+ #@ custom-post-widget
22
+ #: post-widget.php:8
23
+ msgid "Displays custom post content in a widget"
24
+ msgstr "Toont een inhoudsblok in een widget"
25
+
26
+ #@ custom-post-widget
27
+ #: post-widget.php:9
28
+ msgid "Content Block"
29
+ msgstr "Inhoudsblok"
30
+
31
+ #@ custom-post-widget
32
+ #: post-widget.php:19
33
+ msgid "Content Block to Display:"
34
+ msgstr "Weer te geven inhoudsblok:"
35
+
36
+ #@ custom-post-widget
37
+ #: post-widget.php:31
38
+ msgid "No content blocks available"
39
+ msgstr "Geen inhoudsblokken beschikbaar"
40
+
41
+ #@ custom-post-widget
42
+ #: post-widget.php:43
43
+ msgid "Show Post Title"
44
+ msgstr "Toon de titel"
45
+
46
+ #: post-widget.php:52
47
+ msgid "Do not apply content filters"
48
+ msgstr "Apply_filters niet toepassen"
49
+
50
+ #@ custom-post-widget
51
+ #: post-widget.php:62
52
+ msgid "Find"
53
+ msgstr "Zoeken"
54
+
55
+ #@ custom-post-widget
56
+ #: post-widget.php:94
57
+ msgctxt "post type general name"
58
+ msgid "Content Blocks"
59
+ msgstr "Inhoudsblokken"
60
+
61
+ #@ custom-post-widget
62
+ #: post-widget.php:95
63
+ msgctxt "post type singular name"
64
+ msgid "Content Block"
65
+ msgstr "Inhoudsblok"
66
+
67
+ #@ custom-post-widget
68
+ #: post-widget.php:97
69
+ msgctxt "block"
70
+ msgid "Add Content Block"
71
+ msgstr "Nieuw Inhoudsblok"
72
+
73
+ #@ custom-post-widget
74
+ #: post-widget.php:98
75
+ msgid "Add New Content Block"
76
+ msgstr "Nieuw inhoudsblok toevoegen"
77
+
78
+ #@ custom-post-widget
79
+ #: post-widget.php:99
80
+ msgid "Edit Content Block"
81
+ msgstr "Inhoudsblok Bewerken"
82
+
83
+ #@ custom-post-widget
84
+ #: post-widget.php:100
85
+ msgid "New Content Block"
86
+ msgstr "Nieuw Inhoudsblok"
87
+
88
+ #@ custom-post-widget
89
+ #: post-widget.php:101
90
+ msgid "View Content Block"
91
+ msgstr "Inhoudsblok Bekijken"
92
+
93
+ #@ custom-post-widget
94
+ #: post-widget.php:102
95
+ msgid "Search Content Blocks"
96
+ msgstr "Inhoudsblokken zoeken"
97
+
98
+ #@ custom-post-widget
99
+ #: post-widget.php:103
100
+ msgid "No Content Blocks Found"
101
+ msgstr "Geen Inhoudsblokken"
102
+
103
+ #@ custom-post-widget
104
+ #: post-widget.php:104
105
+ msgid "No Content Blocks found in Trash"
106
+ msgstr "Geen Inhoudsblokken in de Prullenbak"
107
+
108
+ #@ custom-post-widget
109
+ #: post-widget.php:129
110
+ #, php-format
111
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
112
+ msgstr "Inhoudsblok Bijgewerkt. <a href=\"%s\">Toon Inhoudsblok</a>"
113
+
114
+ #@ custom-post-widget
115
+ #: post-widget.php:130
116
+ msgid "Custom field updated."
117
+ msgstr "Custom field bijgewerkt."
118
+
119
+ #@ custom-post-widget
120
+ #: post-widget.php:131
121
+ msgid "Custom field deleted."
122
+ msgstr "Custom field verwijderd."
123
+
124
+ #@ custom-post-widget
125
+ #: post-widget.php:132
126
+ msgid "Content Block updated."
127
+ msgstr "Inhoudsblok bijgewerkt."
128
+
129
+ #@ custom-post-widget
130
+ #: post-widget.php:133
131
+ #, php-format
132
+ msgid "Content Block restored to revision from %s"
133
+ msgstr "Inhoudsblok teruggezet naar revisie %s"
134
+
135
+ #@ custom-post-widget
136
+ #: post-widget.php:134
137
+ #, php-format
138
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
139
+ msgstr "Inhoudsblok gepublicieerd. <a href=\"%s\">Bekijk Inhoudsblok</a>"
140
+
141
+ #@ custom-post-widget
142
+ #: post-widget.php:135
143
+ msgid "Block saved."
144
+ msgstr "Inhoudsblok Opgeslagen."
145
+
146
+ #@ custom-post-widget
147
+ #: post-widget.php:136
148
+ #, php-format
149
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
150
+ msgstr "Inhoudsblok Bewaard. <a target=\"_blank\" href=\"%s\">Toon Preview</a>"
151
+
152
+ #@ custom-post-widget
153
+ #: post-widget.php:137
154
+ #, php-format
155
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
156
+ msgstr "Inhoudsblok zal worden gepubliceerd op: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Toon preview</a>"
157
+
158
+ #@ custom-post-widget
159
+ #: post-widget.php:138
160
+ msgid "M j, Y @ G:i"
161
+ msgstr "j. M Y @ H:M"
162
+
163
+ #@ custom-post-widget
164
+ #: post-widget.php:139
165
+ #, php-format
166
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
167
+ msgstr "Inhoudsblok draft bijgewerkt. <a target=\"_blank\" href=\"%s\">Toon preview</a>"
168
+
169
+ #@ custom-post-widget
170
+ #: post-widget.php:96
171
+ msgctxt "post type plural name"
172
+ msgid "Content Blocks"
173
+ msgstr "Inhoudsblokken"
174
+
tags/1.9.8/languages/custom-post-widget-pl_PL.mo ADDED
Binary file
tags/1.9.8/languages/custom-post-widget-pl_PL.po ADDED
@@ -0,0 +1,167 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: \n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Kuba Es <poedit@webnova.pl>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-SourceCharset: utf-8\n"
14
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
15
+ "X-Textdomain-Support: yes\n"
16
+ "X-Poedit-SearchPath-0: .\n"
17
+
18
+ #@ custom-post-widget
19
+ #: post-widget.php:8
20
+ msgid "Displays custom post content in a widget"
21
+ msgstr "Wyświetla zawartość w widgecie"
22
+
23
+ #@ custom-post-widget
24
+ #: post-widget.php:9
25
+ msgid "Content Block"
26
+ msgstr "Blok Treści"
27
+
28
+ #@ custom-post-widget
29
+ #: post-widget.php:19
30
+ msgid "Content Block to Display:"
31
+ msgstr "Blok Treści do wyświetlenia"
32
+
33
+ #@ custom-post-widget
34
+ #: post-widget.php:31
35
+ msgid "No content blocks available"
36
+ msgstr "Nie utworzono Bloków Treści"
37
+
38
+ #@ custom-post-widget
39
+ #: post-widget.php:43
40
+ msgid "Show Post Title"
41
+ msgstr "Pokaż tytuł postu"
42
+
43
+ #@ custom-post-widget
44
+ #: post-widget.php:62
45
+ msgid "Find"
46
+ msgstr "Znajdź"
47
+
48
+ #@ custom-post-widget
49
+ #: post-widget.php:94
50
+ msgctxt "post type general name"
51
+ msgid "Content Blocks"
52
+ msgstr "Bloki Treści"
53
+
54
+ #@ custom-post-widget
55
+ #: post-widget.php:95
56
+ msgctxt "post type singular name"
57
+ msgid "Content Block"
58
+ msgstr "Blok Treści"
59
+
60
+ #@ custom-post-widget
61
+ #: post-widget.php:97
62
+ msgctxt "block"
63
+ msgid "Add Content Block"
64
+ msgstr "Dodaj Blok Treści"
65
+
66
+ #@ custom-post-widget
67
+ #: post-widget.php:98
68
+ msgid "Add New Content Block"
69
+ msgstr "Nowy Blok Treści"
70
+
71
+ #@ custom-post-widget
72
+ #: post-widget.php:99
73
+ msgid "Edit Content Block"
74
+ msgstr "Edytuj Blok Treści"
75
+
76
+ #@ custom-post-widget
77
+ #: post-widget.php:100
78
+ msgid "New Content Block"
79
+ msgstr "Nowy Blok Treści"
80
+
81
+ #@ custom-post-widget
82
+ #: post-widget.php:101
83
+ msgid "View Content Block"
84
+ msgstr "Zobacz Blok Treści"
85
+
86
+ #@ custom-post-widget
87
+ #: post-widget.php:102
88
+ msgid "Search Content Blocks"
89
+ msgstr "Szukaj Bloków Treśc"
90
+
91
+ #@ custom-post-widget
92
+ #: post-widget.php:103
93
+ msgid "No Content Blocks Found"
94
+ msgstr "Nie znaleziono Bloków Treści"
95
+
96
+ #@ custom-post-widget
97
+ #: post-widget.php:104
98
+ msgid "No Content Blocks found in Trash"
99
+ msgstr "Nie znaleziono Bloków Treści w archiwum"
100
+
101
+ #@ custom-post-widget
102
+ #: post-widget.php:129
103
+ #, php-format
104
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
105
+ msgstr "Blok Treści został zapisany. <a href=\"%s\">Zobacz</a>"
106
+
107
+ #@ custom-post-widget
108
+ #: post-widget.php:130
109
+ msgid "Custom field updated."
110
+ msgstr "Własne pola zostały zaktualizowane."
111
+
112
+ #@ custom-post-widget
113
+ #: post-widget.php:131
114
+ msgid "Custom field deleted."
115
+ msgstr "Własne pola zostały usunięte."
116
+
117
+ #@ custom-post-widget
118
+ #: post-widget.php:132
119
+ msgid "Content Block updated."
120
+ msgstr "Blok Treści zaktualizowany."
121
+
122
+ #@ custom-post-widget
123
+ #: post-widget.php:133
124
+ #, php-format
125
+ msgid "Content Block restored to revision from %s"
126
+ msgstr "Przywrócono Blok Treści do rewizji z %s"
127
+
128
+ #@ custom-post-widget
129
+ #: post-widget.php:134
130
+ #, php-format
131
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
132
+ msgstr "Blok Treści został opublikowany. <a href=\"%s\">Zobacz</a>"
133
+
134
+ #@ custom-post-widget
135
+ #: post-widget.php:135
136
+ msgid "Block saved."
137
+ msgstr "Blok zapisany."
138
+
139
+ #@ custom-post-widget
140
+ #: post-widget.php:136
141
+ #, php-format
142
+ msgid "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
143
+ msgstr "Blok Treści przesłany. <a target=\"_blank\" href=\"%s\">Podgląd Bloku</a>"
144
+
145
+ #@ custom-post-widget
146
+ #: post-widget.php:137
147
+ #, php-format
148
+ msgid "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview block</a>"
149
+ msgstr "Blok Treści zaplanowany na: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Podgląd Bloku</a>"
150
+
151
+ #@ custom-post-widget
152
+ #: post-widget.php:138
153
+ msgid "M j, Y @ G:i"
154
+ msgstr "j. M Y @ H:M"
155
+
156
+ #@ custom-post-widget
157
+ #: post-widget.php:139
158
+ #, php-format
159
+ msgid "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview Content Block</a>"
160
+ msgstr "Szkic zapisany. <a target=\"_blank\" href=\"%s\">Podgląd Bloku</a>"
161
+
162
+ #@ custom-post-widget
163
+ #: post-widget.php:96
164
+ msgctxt "post type plural name"
165
+ msgid "Content Blocks"
166
+ msgstr "Bloki Treści"
167
+
tags/1.9.8/languages/custom-post-widget-ru_RU.mo ADDED
Binary file
tags/1.9.8/languages/custom-post-widget-ru_RU.po ADDED
@@ -0,0 +1,218 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Custom Post Widget\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-02-23 13:16+0200\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Виталий Капля <vitaliy.kaplya@dasayt.com>\n"
8
+ "Language-Team: Johan van der Wijk <info@vanderwijk.com>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Poedit-Language: Dutch\n"
14
+ "X-Poedit-Country: NETHERLANDS\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
17
+ "X-Poedit-Basepath: .\n"
18
+ "X-Textdomain-Support: yes\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Poedit-SearchPath-1: ..\n"
21
+
22
+ # @ custom-post-widget
23
+ #: ../popup.php:9
24
+ msgid "Please select a Content Block"
25
+ msgstr "Выберете блок"
26
+
27
+ # @ custom-post-widget
28
+ #: ../popup.php:22
29
+ #: ../popup.php:48
30
+ msgid "Insert Content Block"
31
+ msgstr "Вставить блок"
32
+
33
+ #: ../popup.php:25
34
+ msgid "Select a Content Block below to add it to your post or page."
35
+ msgstr "Выберете блок перед тем, как добавить его на страницу."
36
+
37
+ # @ custom-post-widget
38
+ #: ../popup.php:31
39
+ msgid "Select a Content Block"
40
+ msgstr "Выберите блок"
41
+
42
+ # @ custom-post-widget
43
+ #: ../popup.php:43
44
+ #: ../post-widget.php:27
45
+ msgid "No content blocks available"
46
+ msgstr "Блоки не найдены"
47
+
48
+ #: ../popup.php:50
49
+ msgid "Cancel"
50
+ msgstr "Отмена"
51
+
52
+ # @ custom-post-widget
53
+ #: ../post-widget.php:6
54
+ msgid "Displays custom post content in a widget"
55
+ msgstr "Отображение пользовательского контента в виджете"
56
+
57
+ # @ custom-post-widget
58
+ #: ../post-widget.php:7
59
+ msgid "Content Block"
60
+ msgstr "Блоки"
61
+
62
+ # @ custom-post-widget
63
+ #: ../post-widget.php:15
64
+ msgid "Content Block to Display:"
65
+ msgstr "Отображать следующий блок:"
66
+
67
+ # @ custom-post-widget
68
+ #: ../post-widget.php:45
69
+ msgid "Show Post Title"
70
+ msgstr "Выводить заголовок"
71
+
72
+ # @ custom-post-widget
73
+ #: ../post-widget.php:58
74
+ msgid "Find"
75
+ msgstr "Найти"
76
+
77
+ # @ custom-post-widget
78
+ #: ../post-widget.php:79
79
+ msgctxt "post type general name"
80
+ msgid "Content Blocks"
81
+ msgstr "Блоки"
82
+
83
+ # @ custom-post-widget
84
+ #: ../post-widget.php:80
85
+ msgctxt "post type singular name"
86
+ msgid "Content Block"
87
+ msgstr "Блок"
88
+
89
+ # @ custom-post-widget
90
+ #: ../post-widget.php:81
91
+ msgctxt "post type plural name"
92
+ msgid "Content Blocks"
93
+ msgstr "Блоки"
94
+
95
+ # @ custom-post-widget
96
+ #: ../post-widget.php:82
97
+ msgctxt "block"
98
+ msgid "Add Content Block"
99
+ msgstr "Добавить блок"
100
+
101
+ # @ custom-post-widget
102
+ #: ../post-widget.php:83
103
+ msgid "Add New Content Block"
104
+ msgstr "Добавить новы блок"
105
+
106
+ # @ custom-post-widget
107
+ #: ../post-widget.php:84
108
+ msgid "Edit Content Block"
109
+ msgstr "Редактировать блок"
110
+
111
+ # @ custom-post-widget
112
+ #: ../post-widget.php:85
113
+ msgid "New Content Block"
114
+ msgstr "Новый блок"
115
+
116
+ # @ custom-post-widget
117
+ #: ../post-widget.php:86
118
+ msgid "View Content Block"
119
+ msgstr "Открыть блок"
120
+
121
+ # @ custom-post-widget
122
+ #: ../post-widget.php:87
123
+ msgid "Search Content Blocks"
124
+ msgstr "Найти блок"
125
+
126
+ # @ custom-post-widget
127
+ #: ../post-widget.php:88
128
+ msgid "No Content Blocks Found"
129
+ msgstr "Блоки не найдены"
130
+
131
+ # @ custom-post-widget
132
+ #: ../post-widget.php:89
133
+ msgid "No Content Blocks found in Trash"
134
+ msgstr "В корзине пусто"
135
+
136
+ # @ custom-post-widget
137
+ #: ../post-widget.php:131
138
+ #, php-format
139
+ msgid "Content Block updated. <a href=\"%s\">Manage Widgets</a>"
140
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
141
+
142
+ # @ custom-post-widget
143
+ #: ../post-widget.php:131
144
+ #: ../post-widget.php:134
145
+ msgid "Content Block updated."
146
+ msgstr "Блок обновлен."
147
+
148
+ # @ custom-post-widget
149
+ #: ../post-widget.php:132
150
+ msgid "Custom field updated."
151
+ msgstr "Поле обновлено."
152
+
153
+ # @ custom-post-widget
154
+ #: ../post-widget.php:133
155
+ msgid "Custom field deleted."
156
+ msgstr "Поле удалено"
157
+
158
+ # @ custom-post-widget
159
+ #: ../post-widget.php:135
160
+ #, php-format
161
+ msgid "Content Block restored to revision from %s"
162
+ msgstr "Блок востановлен с ревизии %s"
163
+
164
+ # @ custom-post-widget
165
+ #: ../post-widget.php:136
166
+ #, php-format
167
+ msgid "Content Block published. <a href=\"%s\">Manage Widgets</a>"
168
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджетами</a>"
169
+
170
+ # @ custom-post-widget
171
+ #: ../post-widget.php:136
172
+ msgid "Content Block published."
173
+ msgstr "Блок опубликован."
174
+
175
+ # @ custom-post-widget
176
+ #: ../post-widget.php:137
177
+ msgid "Block saved."
178
+ msgstr "Блок сохранен"
179
+
180
+ # @ custom-post-widget
181
+ #: ../post-widget.php:138
182
+ #, php-format
183
+ msgid "Content Block submitted. <a href=\"%s\">Manage Widgets</a>"
184
+ msgstr "Блок опубликован. <a href=\"%s\">Управление виджеатми</a>"
185
+
186
+ # @ custom-post-widget
187
+ #: ../post-widget.php:138
188
+ msgid "Content Block submitted."
189
+ msgstr "Блок опубликован."
190
+
191
+ # @ custom-post-widget
192
+ #: ../post-widget.php:139
193
+ #, php-format
194
+ msgid "Content Block scheduled for: <strong>%1$s</strong>."
195
+ msgstr "Блок запланирован на: <strong>%1$s</strong>."
196
+
197
+ # @ custom-post-widget
198
+ #: ../post-widget.php:139
199
+ msgid "M j, Y @ G:i"
200
+ msgstr "M j, Y @ G:i"
201
+
202
+ # @ custom-post-widget
203
+ #: ../post-widget.php:140
204
+ #, php-format
205
+ msgid "Content Block draft updated. <a href=\"%s\">Manage Widgets</a>"
206
+ msgstr "Блок обновлен. <a href=\"%s\">Управление виджетами</a>"
207
+
208
+ # @ custom-post-widget
209
+ #: ../post-widget.php:140
210
+ msgid "Content Block draft updated."
211
+ msgstr "Черновик блока обновлен."
212
+
213
+ # @ custom-post-widget
214
+ #: ../post-widget.php:175
215
+ #: ../post-widget.php:176
216
+ msgid "Add Content Block"
217
+ msgstr "Добавить блок"
218
+
tags/1.9.8/languages/custom-post-widget.pot ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2010 Custom Post Widget
2
+ # This file is distributed under the same license as the Custom Post Widget package.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Custom Post Widget 1.4\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tag/custom-post-widget\n"
7
+ "POT-Creation-Date: 2011-02-25 20:06:24+00:00\n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2010-MO-DA HO:MI+ZONE\n"
12
+ "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
+ "Language-Team: LANGUAGE <LL@li.org>\n"
14
+
15
+ #: post-widget.php:8
16
+ msgid "Displays custom post content in a widget"
17
+ msgstr ""
18
+
19
+ #: post-widget.php:9
20
+ msgid "Content Block"
21
+ msgstr ""
22
+
23
+ #: post-widget.php:19
24
+ msgid "Content Block to Display:"
25
+ msgstr ""
26
+
27
+ #: post-widget.php:31
28
+ msgid "No content blocks available"
29
+ msgstr ""
30
+
31
+ #: post-widget.php:42
32
+ msgid "Show Post Title"
33
+ msgstr ""
34
+
35
+ #: post-widget.php:52
36
+ msgid "Do not apply content filters"
37
+ msgstr ""
38
+
39
+ #: post-widget.php:61
40
+ msgid "Find"
41
+ msgstr ""
42
+
43
+ #: post-widget.php:91
44
+ msgctxt "post type general name"
45
+ msgid "Content Blocks"
46
+ msgstr ""
47
+
48
+ #: post-widget.php:92
49
+ msgctxt "post type singular name"
50
+ msgid "Content Block"
51
+ msgstr ""
52
+
53
+ #: post-widget.php:93
54
+ msgctxt "post type plural name"
55
+ msgid "Content Blocks"
56
+ msgstr ""
57
+
58
+ #: post-widget.php:94
59
+ msgctxt "block"
60
+ msgid "Add Content Block"
61
+ msgstr ""
62
+
63
+ #: post-widget.php:95
64
+ msgid "Add New Content Block"
65
+ msgstr ""
66
+
67
+ #: post-widget.php:96
68
+ msgid "Edit Content Block"
69
+ msgstr ""
70
+
71
+ #: post-widget.php:97
72
+ msgid "New Content Block"
73
+ msgstr ""
74
+
75
+ #: post-widget.php:98
76
+ msgid "View Content Block"
77
+ msgstr ""
78
+
79
+ #: post-widget.php:99
80
+ msgid "Search Content Blocks"
81
+ msgstr ""
82
+
83
+ #: post-widget.php:100
84
+ msgid "No Content Blocks Found"
85
+ msgstr ""
86
+
87
+ #: post-widget.php:101
88
+ msgid "No Content Blocks found in Trash"
89
+ msgstr ""
90
+
91
+ #: post-widget.php:126
92
+ msgid "Content Block updated. <a href=\"%s\">View Content Block</a>"
93
+ msgstr ""
94
+
95
+ #: post-widget.php:127
96
+ msgid "Custom field updated."
97
+ msgstr ""
98
+
99
+ #: post-widget.php:128
100
+ msgid "Custom field deleted."
101
+ msgstr ""
102
+
103
+ #: post-widget.php:129
104
+ msgid "Content Block updated."
105
+ msgstr ""
106
+
107
+ #: post-widget.php:130
108
+ msgid "Content Block restored to revision from %s"
109
+ msgstr ""
110
+
111
+ #: post-widget.php:131
112
+ msgid "Content Block published. <a href=\"%s\">View Content Block</a>"
113
+ msgstr ""
114
+
115
+ #: post-widget.php:132
116
+ msgid "Block saved."
117
+ msgstr ""
118
+
119
+ #: post-widget.php:133
120
+ msgid ""
121
+ "Content Block submitted. <a target=\"_blank\" href=\"%s\">Preview Content "
122
+ "Block</a>"
123
+ msgstr ""
124
+
125
+ #: post-widget.php:134
126
+ msgid ""
127
+ "Content Block scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" "
128
+ "href=\"%2$s\">Preview block</a>"
129
+ msgstr ""
130
+
131
+ #: post-widget.php:135
132
+ msgid "M j, Y @ G:i"
133
+ msgstr ""
134
+
135
+ #: post-widget.php:136
136
+ msgid ""
137
+ "Content Block draft updated. <a target=\"_blank\" href=\"%s\">Preview "
138
+ "Content Block</a>"
139
+ msgstr ""
140
+
141
+ #. Plugin Name of the plugin/theme
142
+ msgid "Custom Post Widget"
143
+ msgstr ""
144
+
145
+ #. Plugin URI of the plugin/theme
146
+ msgid ""
147
+ "http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/"
148
+ msgstr ""
149
+
150
+ #. Description of the plugin/theme
151
+ msgid ""
152
+ "Show the content of a custom post of the type 'content_block' in a widget."
153
+ msgstr ""
154
+
155
+ #. Author of the plugin/theme
156
+ msgid "Johan van der Wijk"
157
+ msgstr ""
158
+
159
+ #. Author URI of the plugin/theme
160
+ msgid "http://www.vanderwijk.com"
161
+ msgstr ""
tags/1.9.8/popup.php ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php // Action target that displays the popup to insert a content block to a post/page
2
+
3
+ function add_content_block_popup(){ ?>
4
+
5
+ <script>
6
+ function InsertContentBlockForm(){
7
+ var content_id = jQuery("#add_content_block_id").val();
8
+ if(content_id == ""){
9
+ alert("<?php _e("Please select a Content Block", 'custom-post-widget') ?>");
10
+ return;
11
+ }
12
+ var win = window.dialogArguments || opener || parent || top;
13
+ win.send_to_editor("[content_block id=" + content_id + "]");
14
+ }
15
+ </script>
16
+
17
+ <div id="content_block_form" style="display:none;">
18
+ <div class="wrap">
19
+ <div>
20
+ <div style="padding:15px 15px 0 15px;">
21
+ <h3 style="color:#5A5A5A!important; font-family:Georgia,Times New Roman,Times,serif!important; font-size:1.8em!important; font-weight:normal!important;">
22
+ <?php _e("Insert Content Block", 'custom-post-widget'); ?>
23
+ </h3>
24
+ <span>
25
+ <?php _e("Select a Content Block below to add it to your post or page.", 'custom-post-widget'); ?>
26
+ </span>
27
+ </div>
28
+ <div style="padding:15px 15px 0 15px;">
29
+ <select id="add_content_block_id">
30
+ <option value="">
31
+ <?php _e("Select a Content Block", 'custom-post-widget'); ?>
32
+ </option>
33
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
34
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
35
+ $currentID = get_the_ID();
36
+ // Add support for WPML Plugin.
37
+ if ( function_exists( 'icl_object_id' ) ){
38
+ $custom_post_id = icl_object_id( $custom_post_id, 'content_block', true );
39
+ }
40
+ if($currentID == $custom_post_id)
41
+ $extra = 'selected' and
42
+ $widgetExtraTitle = get_the_title();
43
+ else
44
+ $extra = '';
45
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
46
+ endwhile; else:
47
+ echo '<option value="empty">' . __('No content blocks available', 'custom-post-widget') . '</option>';
48
+ endif; ?>
49
+ </select>
50
+ <br />
51
+ <div style="padding:15px;">
52
+ <input type="button" class="button-primary" value="<?php _e("Insert Content Block", 'custom-post-widget') ?>" onclick="InsertContentBlockForm();"/>
53
+ &nbsp;&nbsp;&nbsp; <a class="button" style="color:#bbb;" href="#" onclick="tb_remove(); return false;">
54
+ <?php _e("Cancel", 'custom-post-widget'); ?>
55
+ </a>
56
+ </div>
57
+ </div>
58
+ </div>
59
+ </div>
60
+ </div>
61
+ <?php } ?>
tags/1.9.8/post-widget.php ADDED
@@ -0,0 +1,240 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ // Add featured image support
4
+ if ( function_exists( 'add_theme_support' ) ) {
5
+ add_theme_support( 'post-thumbnails' );
6
+ }
7
+
8
+ // First create the widget for the admin panel
9
+ class custom_post_widget extends WP_Widget {
10
+ function custom_post_widget() {
11
+ $widget_ops = array( 'description' => __( 'Displays custom post content in a widget', 'custom-post-widget' ) );
12
+ $this->WP_Widget( 'custom_post_widget', __( 'Content Block', 'custom-post-widget' ), $widget_ops );
13
+ }
14
+
15
+ function form( $instance ) {
16
+ $custom_post_id = ''; // initialize the variable
17
+ if (isset($instance['custom_post_id'])) {
18
+ $custom_post_id = esc_attr($instance['custom_post_id']);
19
+ };
20
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : true;
21
+ $show_featured_image = isset( $instance['show_featured_image'] ) ? $instance['show_featured_image'] : true;
22
+ $apply_content_filters = isset( $instance['apply_content_filters'] ) ? $instance['apply_content_filters'] : true;
23
+ ?>
24
+
25
+ <p>
26
+ <label for="<?php echo $this->get_field_id( 'custom_post_id' ); ?>"> <?php echo __( 'Content Block to Display:', 'custom-post-widget' ) ?>
27
+ <select class="widefat" id="<?php echo $this->get_field_id( 'custom_post_id' ); ?>" name="<?php echo $this->get_field_name( 'custom_post_id' ); ?>">
28
+ <?php query_posts('post_type=content_block&orderby=ID&order=ASC&showposts=-1');
29
+ if ( have_posts() ) : while ( have_posts() ) : the_post();
30
+ $currentID = get_the_ID();
31
+ if( $currentID == $custom_post_id )
32
+ $extra = 'selected' and
33
+ $widgetExtraTitle = get_the_title();
34
+ else
35
+ $extra = '';
36
+ echo '<option value="'.$currentID.'" '.$extra.'>'.get_the_title().'</option>';
37
+ endwhile; else:
38
+ echo '<option value="empty">' . __( 'No content blocks available', 'custom-post-widget' ) . '</option>';
39
+ endif; ?>
40
+ </select>
41
+ </label>
42
+ </p>
43
+
44
+ <input type="hidden" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" value="<?php echo $widgetExtraTitle; ?>" />
45
+
46
+ <p>
47
+ <?php
48
+ echo '<a href="post.php?post=' . $custom_post_id . '&action=edit">' . __( 'Edit Content Block', 'custom-post-widget' ) . '</a>' ;
49
+ ?>
50
+ </p>
51
+
52
+ <?php wp_reset_query(); ?>
53
+
54
+ <p>
55
+ <input class="checkbox" type="checkbox" <?php checked( (bool) isset( $instance['show_custom_post_title'] ), true ); ?> id="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>" name="<?php echo $this->get_field_name( 'show_custom_post_title' ); ?>" />
56
+ <label for="<?php echo $this->get_field_id( 'show_custom_post_title' ); ?>"><?php echo __( 'Show Post Title', 'custom-post-widget' ) ?></label>
57
+ </p>
58
+
59
+ <p>
60
+ <input class="checkbox" type="checkbox" <?php checked( (bool) isset( $instance['show_featured_image'] ), true ); ?> id="<?php echo $this->get_field_id( 'show_featured_image' ); ?>" name="<?php echo $this->get_field_name( 'show_featured_image' ); ?>" />
61
+ <label for="<?php echo $this->get_field_id( 'show_featured_image' ); ?>"><?php echo __( 'Show featured image', 'custom-post-widget' ) ?></label>
62
+ </p>
63
+
64
+ <p>
65
+ <input class="checkbox" type="checkbox" <?php checked( (bool) isset( $instance['apply_content_filters'] ), true ); ?> id="<?php echo $this->get_field_id( 'apply_content_filters' ); ?>" name="<?php echo $this->get_field_name( 'apply_content_filters' ); ?>" />
66
+ <label for="<?php echo $this->get_field_id( 'apply_content_filters' ); ?>"><?php echo __( 'Do not apply content filters', 'custom-post-widget' ) ?></label>
67
+ </p> <?php
68
+ }
69
+
70
+ function update( $new_instance, $old_instance ) {
71
+ $instance = $old_instance;
72
+ $instance['custom_post_id'] = strip_tags( $new_instance['custom_post_id'] );
73
+ $instance['show_custom_post_title'] = $new_instance['show_custom_post_title'];
74
+ $instance['show_featured_image'] = $new_instance['show_featured_image'];
75
+ $instance['apply_content_filters'] = $new_instance['apply_content_filters'];
76
+ return $instance;
77
+ }
78
+
79
+ function widget($args, $instance) {
80
+ extract($args);
81
+ $custom_post_id = ( $instance['custom_post_id'] != '' ) ? esc_attr($instance['custom_post_id']) : __('Find', 'custom-post-widget');
82
+ // Add support for WPML Plugin.
83
+ if ( function_exists( 'icl_object_id' ) ){
84
+ $custom_post_id = icl_object_id( $custom_post_id, 'content_block', true );
85
+ }
86
+ // Variables from the widget settings.
87
+ $show_custom_post_title = isset( $instance['show_custom_post_title'] ) ? $instance['show_custom_post_title'] : false;
88
+ $show_featured_image = isset($instance['show_featured_image']) ? $instance['show_featured_image'] : false;
89
+ $apply_content_filters = isset($instance['apply_content_filters']) ? $instance['apply_content_filters'] : false;
90
+
91
+ // Output the query to find the custom post
92
+ query_posts( 'post_type=content_block&p=' . $custom_post_id );
93
+ while (have_posts()) : the_post();
94
+ echo $before_widget;
95
+ if ( $show_custom_post_title ) {
96
+ echo $before_title;
97
+ the_title();
98
+ echo $after_title; // This is the line that displays the title (only if show title is set)
99
+ }
100
+ if ( $show_featured_image ) {
101
+ the_post_thumbnail();
102
+ }
103
+ if ( $apply_content_filters ) { // Don't apply the content filter if checkbox selected
104
+ remove_filter('the_content', 'wpautop');
105
+ the_content(); // This is where the actual content of the custom post is being displayed
106
+
107
+ //remove_all_filters('the_content', 'plugin_filters');
108
+ //add_filter('the_content', 'do_shortcode');
109
+
110
+ } else {
111
+ the_content(); // This is where the actual content of the custom post is being displayed
112
+ }
113
+ echo $after_widget;
114
+ endwhile;
115
+ wp_reset_query();
116
+ }
117
+
118
+ }
119
+
120
+ // Create the Content Block custom post type
121
+ add_action('init', 'my_content_block_post_type_init');
122
+
123
+ function my_content_block_post_type_init() {
124
+ $labels = array(
125
+ 'name' => _x('Content Blocks', 'post type general name', 'custom-post-widget'),
126
+ 'singular_name' => _x('Content Block', 'post type singular name', 'custom-post-widget'),
127
+ 'plural_name' => _x('Content Blocks', 'post type plural name', 'custom-post-widget'),
128
+ 'add_new' => _x('Add Content Block', 'block', 'custom-post-widget'),
129
+ 'add_new_item' => __('Add New Content Block', 'custom-post-widget'),
130
+ 'edit_item' => __('Edit Content Block', 'custom-post-widget'),
131
+ 'new_item' => __('New Content Block', 'custom-post-widget'),
132
+ 'view_item' => __('View Content Block', 'custom-post-widget'),
133
+ 'search_items' => __('Search Content Blocks', 'custom-post-widget'),
134
+ 'not_found' => __('No Content Blocks Found', 'custom-post-widget'),
135
+ 'not_found_in_trash' => __('No Content Blocks found in Trash', 'custom-post-widget'),
136
+ 'parent_item_colon' => ''
137
+ );
138
+ $options = array(
139
+ 'labels' => $labels,
140
+ 'public' => false,
141
+ 'publicly_queryable' => false,
142
+ 'exclude_from_search' => true,
143
+ 'show_ui' => true,
144
+ 'query_var' => true,
145
+ 'rewrite' => true,
146
+ 'capability_type' => 'post',
147
+ 'hierarchical' => false,
148
+ 'menu_position' => null,
149
+ 'supports' => array('title','editor','revisions','thumbnail','author')
150
+ );
151
+ register_post_type('content_block',$options);
152
+ }
153
+
154
+ // Add custom styles to admin screen and menu
155
+ add_action('admin_head', 'content_block_header');
156
+
157
+ function content_block_header() {
158
+ global $post_type; ?>
159
+ <style type="text/css">
160
+ <!--
161
+ <?php if (($post_type == 'content_block')) : ?>
162
+ #icon-edit { background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL; ?>images/contentblock-32.png') no-repeat 0 0 !important;}
163
+ #minor-publishing-actions { display:none; /* Hide the Save Draft and Preview buttons */}
164
+ <?php endif; ?>
165
+ #adminmenu #menu-posts-content_block div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center -32px;}
166
+ #adminmenu #menu-posts-content_block:hover div.wp-menu-image,#adminmenu #menu-posts-content_block.wp-has-current-submenu div.wp-menu-image{background:transparent url('<?php echo CUSTOM_POST_WIDGET_URL;?>images/contentblock.png') no-repeat center 0px;}
167
+ -->
168
+ </style>
169
+ <?php
170
+ }
171
+
172
+ add_filter('post_updated_messages', 'content_block_messages');
173
+
174
+ function content_block_messages( $messages ) {
175
+ $messages['content_block'] = array(
176
+ 0 => '',
177
+ 1 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
178
+ 2 => __('Custom field updated.', 'custom-post-widget'),
179
+ 3 => __('Custom field deleted.', 'custom-post-widget'),
180
+ 4 => __('Content Block updated.', 'custom-post-widget'),
181
+ 5 => isset($_GET['revision']) ? sprintf( __('Content Block restored to revision from %s', 'custom-post-widget'), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
182
+ 6 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block published. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block published.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
183
+ 7 => __('Block saved.', 'custom-post-widget'),
184
+ 8 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block submitted. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block submitted.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
185
+ 9 => sprintf( __('Content Block scheduled for: <strong>%1$s</strong>.', 'custom-post-widget'), date_i18n( __( 'M j, Y @ G:i' , 'custom-post-widget'), strtotime(isset($post->post_date) ? $post->post_date : null) ), esc_url( 'widgets.php' ) ),
186
+ 10 => current_user_can( 'edit_theme_options' ) ? sprintf( __('Content Block draft updated. <a href="%s">Manage Widgets</a>', 'custom-post-widget'), esc_url( 'widgets.php' ) ) : sprintf( __('Content Block draft updated.', 'custom-post-widget'), esc_url( 'widgets.php' ) ),
187
+ );
188
+ return $messages;
189
+ }
190
+
191
+ // Add the ability to display the content block in a reqular post using a shortcode
192
+ function custom_post_widget_shortcode($atts) {
193
+ extract(shortcode_atts(array(
194
+ 'id' => '',
195
+ 'class' => 'content_block'
196
+ ), $atts));
197
+
198
+ $content = "";
199
+
200
+ if($id != "") {
201
+ $args = array(
202
+ 'post__in' => array($id),
203
+ 'post_type' => 'content_block',
204
+ );
205
+
206
+ $content_post = get_posts($args);
207
+
208
+ foreach( $content_post as $post ) :
209
+ $content .= '<div class="'. esc_attr($class) .'">';
210
+ $content .= apply_filters('the_content', $post->post_content);
211
+ $content .= '</div>';
212
+ endforeach;
213
+ }
214
+
215
+ return $content;
216
+ }
217
+ add_shortcode('content_block', 'custom_post_widget_shortcode');
218
+
219
+ // Add button above editor if not editing content_block
220
+ function add_content_block_icon($initcontext) {
221
+ return $initcontext.
222
+ '<a id="add_content_block" style="text-decoration:none;" class="thickbox" title="' . __("Add Content Block", 'custom-post-widget') . '" href="' . CUSTOM_POST_WIDGET_URL . 'popup.php?type=add_content_block_popup&amp;TB_inline=true&amp;inlineId=content_block_form">
223
+ <img onclick="return false;" alt="' . __("Add Content Block", 'custom-post-widget') . '" src="' . CUSTOM_POST_WIDGET_URL . 'images/contentblock-13.png">
224
+ </a>';
225
+ }
226
+ // Only add content_block icon above posts and pages
227
+ function check_post_type_and_remove_media_buttons() {
228
+ global $current_screen;
229
+ if( 'content_block' != $current_screen->post_type ) add_filter('media_buttons_context', 'add_content_block_icon' );
230
+ }
231
+ add_action('admin_head','check_post_type_and_remove_media_buttons');
232
+
233
+ require_once( CUSTOM_POST_WIDGET_DIR . '/popup.php' );
234
+
235
+ if(!defined( 'CUSTOM_POST_WIDGET_CURRENT_PAGE' ))
236
+ define( 'CUSTOM_POST_WIDGET_CURRENT_PAGE', basename($_SERVER['PHP_SELF']) );
237
+ if(in_array(CUSTOM_POST_WIDGET_CURRENT_PAGE, array('post.php', 'page.php', 'page-new.php', 'post-new.php'))) {
238
+ add_action('admin_footer', 'add_content_block_popup');
239
+ }
240
+ ?>
tags/1.9.8/readme.txt ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ === Custom Post Widget ===
2
+ Contributors: vanderwijk
3
+ Author URI: http://www.vanderwijk.com/
4
+ Donate link: http://www.vanderwijk.com/wordpress/support/
5
+ Tags: custom-post, widget, sidebar, content block, content, block, custom, post, shortcode
6
+ Requires at least: 2.9.2
7
+ Tested up to: 3.4.1
8
+ Stable tag: 1.9.5
9
+ License: GPLv2 or later
10
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
+
12
+ This plugin enables you to display the content of a custom post type called Content Block in a sidebar widget.
13
+
14
+ == Description ==
15
+
16
+ The Custom Post Widget allows you to display the contents of a specific custom post in a widget.
17
+
18
+ Even though you could use the text widget that comes with the default WordPress install, this plugin has some clear benefits:
19
+
20
+ * If you are using the standard WordPress text widgets to display content on various areas of your template, this content can only be edited by users with administrator access. If you would like editors to modify the widget content, you can use this plugin to provide them access to the custom posts that provide the content for the widget areas.
21
+ * The Custom Post Widget plugin enables users to use the WYSIWYG editor for editing the content and adding images.
22
+
23
+ This plugin creates a 'content_block' custom post type. You can choose to either display the title on the page or use it to describe the contents and widget position of the content block. Note that these content blocks can only be displayed in the context of the page. I have added 'public' => false to the custom post type which means that it is not accessible outside the page context.
24
+
25
+ To add content to a widget, drag it to the required position in the sidebar and select the title of the custom post in the widget configuration.
26
+
27
+ This plugin is ready for localization and Dutch, French, German, Polish and Russian language files are included.
28
+
29
+ You can find more information about this plugin and a screencast video which shows the plugin in action on the [plugin homepage](http://www.vanderwijk.com/wordpress/wordpress-custom-post-widget/).
30
+
31
+ == Screenshots ==
32
+
33
+ 1. After activating the plugin a new post type called 'Content Blocks' is added. You can also see the little icon above the WYSIWYG editor that allows you to insert the content block using the shortcode.
34
+ 2. The widget has a select box to choose the content block. Click on the 'Edit Content Block' link to edit the selected Content Block custom post.
35
+
36
+ == Installation ==
37
+
38
+ 1. First you will have to upload the plugin to the `/wp-content/plugins/` folder.
39
+ 2. Then activate the plugin in the plugin panel.
40
+ You will see that a new custom post type has been added called Content Block.
41
+ 3. Type some content for the widget. You can choose to either use the title to describe the of the content on the page, or to display it. Check 'Show Post Title' to display the title on the page.
42
+ 4. Go to 'Appearance' > 'Widgets' and drag the Content Block widget to the required position in the sidebar.
43
+ 5. Select a Content Block from the drop-down list.
44
+ 6. Check the 'Show Post Title' checkbox if you would like to display the title of your Content Block
45
+ 7. If you are experiencing issues with content being added automatically to your posts (Social media sharing buttons for instance), check the 'Do not apply content filters' checkbox. Use this with caution!
46
+ 8. Click save.
47
+
48
+ == Frequently Asked Questions ==
49
+
50
+ = Why can't I use the default text-widget? =
51
+
52
+ Of course you can always use the default text widget, but if you prefer to use the WYSIWYG editor or if you have multiple editors and you don't want to give them administrator rights, it is recommended to use this plugin.
53
+
54
+ = How can I show the content bock on a specific page? =
55
+
56
+ It is recommended to install the Widget Logic plugin, this will give you complete flexibility on widget placement.
57
+
58
+ = How can I display the featured image in the widget? =
59
+
60
+ This plugin has built-in support for the featured image functionality on the edit screen. But to display the image you will have to add the following code to your functions.php:
61
+
62
+ `function InsertFeaturedImage($content) {
63
+ global $post;
64
+ $original_content = $content;
65
+ if (current_theme_supports('post-thumbnails')) {
66
+ if ('content_block' == get_post_type()) {
67
+ $content = the_post_thumbnail('medium');
68
+ $content .= $original_content;
69
+ }
70
+ }
71
+ return $content;
72
+ }
73
+ add_filter('the_content', 'InsertFeaturedImage');`
74
+
75
+ = My social sharing plugin adds buttons to all the Custom Post Widget areas =
76
+
77
+ If your social media sharing plugin adds buttons to the widget areas you could check the 'Do not apply content filters' checkbox. Note that when this is done, WordPress will also stop adding paragraph tags to your text, so use this setting with caution. It is much better to ask the developer of the social media sharing buttons plugin to correctly use the content filters (see http://pippinsplugins.com/playing-nice-with-the-content-filter/).
78
+
79
+
80
+ == Changelog ==
81
+
82
+ = 1.9.8 =
83
+ Fix for error when using shortcode with the WPML plugin
84
+
85
+ = 1.9.7 =
86
+ Added featured image support and now using query_posts instead of get_post
87
+
88
+ = 1.9.6 =
89
+ Fixed debug notices when dragging a new content block to the widget areas and removed the add content block shortcode from the content block editing screen.
90
+
91
+ = 1.9.5 =
92
+ Added the option to disable apply_filters on the content to prevent issues with misbehaving plugins. I would have rather not added this, but it appears many plugin developers do not know how to properly use filters (see http://pippinsplugins.com/playing-nice-with-the-content-filter/).
93
+
94
+ = 1.9.4 =
95
+ Corrected a minor bug regarding translation strings.
96
+
97
+ = 1.9.3 =
98
+ Minor bugfix and added the French translation which was created by Alexandre Simard (http://brocheafoin.biz/).
99
+
100
+ = 1.9.2 =
101
+ Now includes Polish language files as created by Kuba Skublicki.
102
+
103
+ = 1.9 =
104
+ The content blocks can now be translated using the WPML plugin, thanks to Jonathan Liuti (http://unboxed-logic.com/).
105
+ Thanks to Vitaliy Kaplya (http://www.dasayt.com/) a Russian translation has been added to the plugin.
106
+
107
+ = 1.8.6 =
108
+ Minor bugfix for edit link in widget.
109
+
110
+ = 1.8.5 =
111
+ This release is to fix an issue with the WordPress plugin repository.
112
+
113
+ = 1.8.4 =
114
+ Added edit content block link to the widget editor and changed the 'view content block' message to include a 'manage widgets' link. The 'Draft' and 'Preview' buttons are now hidden via CSS, hopefully this will soon be default WordPress behaviour (see related ticket: http://core.trac.wordpress.org/ticket/18956).
115
+ Thanks to Julian Gardner-Hobbs (http://www.hobwebs.com/) for requesting this functionality.
116
+
117
+ = 1.8.3 -> rolled-back because of some reported issues with social media icons being added to the widget areas =
118
+ The widget now emulates the $post loop. This means you can now make use of WordPress functionality such as inserting a [gallery]. Thanks to Jari Pennanen for providing the code.
119
+
120
+ = 1.8.2 =
121
+ Updated German translation and various bugfixes.
122
+
123
+ = 1.8 =
124
+ Added a button above to content editor to make it easier to add the shortcode (no need for looking up the id).
125
+
126
+ = 1.7 =
127
+ This release fixes all the debug error messages Yoast discovered when [reviewing this plugin](http://yoast.com/wp-plugin-review/custom-post-widget/). As requested by Tony Allsopp the option of using the shortcode [content_block id= ] to pull in the content of a content block in a page or post has been added.
128
+
129
+ = 1.6 =
130
+ The Custom Post Widget plugin is now using the more efficient get_post instead of query_posts to display the content block on the page. A code example for this change has been graciously provided by Paul de Wouters.
131
+
132
+ = 1.5 =
133
+ Thanks to Caspar Huebinger the plugin now has its own icon and as requested by Stephen James the author field has been added to the Content Block edit screen.
134
+
135
+ = 1.4 =
136
+ The plugin has been translated into Dutch and German. Hat tip: Caspar H&uuml;binger - glueckpress.com
137
+
138
+ = 1.3 =
139
+ Now the title of the content block is displayed in the admin interface to make it easy to manage the widgets.
140
+
141
+ = 1.2.1 =
142
+ The widget title now uses $before_title and $after_title to generate the appropriate tags to display it on the page. Hat tip: Etienne Proust.
143
+
144
+ = 1.2 =
145
+ Added a checkbox in the widget to make it possible to show the custom post title in the widget area
146
+
147
+ = 1.1.1 =
148
+ Added showposts=-1 to the post query to display more than 10 custom posts in the widget configuration select box.
149
+
150
+ = 1.1 =
151
+ Fixed screenshots for plugin directory
152
+
153
+ = 1.0 =
154
+ First release
155
+
156
+
157
+ == Upgrade Notice ==
158
+
159
+ = 1.8 =
160
+ I would appreciate some feedback on the newly introduced shortcode functionality. Is this useful or not? Any issues found? Thanks!
161
+
162
+
tags/1.9.8/screenshot-1.png ADDED
Binary file
tags/1.9.8/screenshot-2.png ADDED
Binary file
tags/1.9/custom-post-widget.php ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Post Widget
4
+ Plugin URI: http://www.vanderwijk.com/services/web-design/wordpress-custom-post-widget/
5
+ Description: Show the content of a custom post of the type 'content_block' in a widget.
6
+ Version: 1.9
7
+ Author: Johan van der Wijk
8
+ Author URI: http://www.vanderwijk.com
9
+ License: GPL2
10
+
11
+ Release notes: Version 1.9 Added WPMU plugin compatibility and Russian translation.
12
+
13
+ Copyright 2011 Johan van der Wijk (email: info@vanderwijk.com)
14
+
15
+ This program is free software; you can redistribute it and/or modify
16
+ it under the terms of the GNU General Public License, version 2, as
17
+ published by the Free Software Foundation.
18
+
19
+ This program is distributed in the hope that it will be useful,
20
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22
+ GNU General Public License for more details.
23
+
24
+ You should have received a copy of the GNU General Public License
25
+ along with this program; if not, write to the Free Software
26
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27
+ */
28
+
29
+ // Set constant path to the custom-post-widget plugin directory.
30
+ define( 'CUSTOM_POST_WIDGET_DIR', plugin_dir_path( __FILE__ ) );
31
+ define( 'CUSTOM_POST_WIDGET_URL', WP_PLUGIN_URL.'/'.str_replace(basename( __FILE__),'',plugin_basename(__FILE__)) );
32
+
33
+ // Launch the plugin.
34
+ add_action( 'plugins_loaded', 'custom_post_widget_plugin_init' );
35
+
36
+ // Load the required files needed for the plugin to run in the proper order and add needed functions to the required hooks.
37
+ function custom_post_widget_plugin_init() {
38
+ //