Merge lp:~edb/quam-plures/new_sample_photos into lp:quam-plures
- new_sample_photos
- Merge into trunk
Proposed by
EdB
Status: | Merged |
---|---|
Merged at revision: | 7652 |
Proposed branch: | lp:~edb/quam-plures/new_sample_photos |
Merge into: | lp:quam-plures |
Diff against target: |
202 lines (+82/-62) 2 files modified
qp_install/_functions_create.php (+81/-61) qp_install/_functions_install.php (+1/-1) |
To merge this branch: | bzr merge lp:~edb/quam-plures/new_sample_photos |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Quam Plures Core Team | Pending | ||
Review via email: mp+117251@code.launchpad.net |
Commit message
Description of the change
http://
New public domain photos for the sample photoblog
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'media/blogs/id_2' |
2 | === added file 'media/blogs/id_2/index.html' |
3 | === added directory 'media/blogs/id_3' |
4 | === added file 'media/blogs/id_3/index.html' |
5 | === added directory 'media/blogs/id_4' |
6 | === added file 'media/blogs/id_4/artists-paint-pots-2.jpg' |
7 | Binary files media/blogs/id_4/artists-paint-pots-2.jpg 1970-01-01 00:00:00 +0000 and media/blogs/id_4/artists-paint-pots-2.jpg 2012-08-02 15:49:21 +0000 differ |
8 | === added file 'media/blogs/id_4/biscuit-basin.jpg' |
9 | Binary files media/blogs/id_4/biscuit-basin.jpg 1970-01-01 00:00:00 +0000 and media/blogs/id_4/biscuit-basin.jpg 2012-08-02 15:49:21 +0000 differ |
10 | === added file 'media/blogs/id_4/emerald-pool-in-yellowstone.jpg' |
11 | Binary files media/blogs/id_4/emerald-pool-in-yellowstone.jpg 1970-01-01 00:00:00 +0000 and media/blogs/id_4/emerald-pool-in-yellowstone.jpg 2012-08-02 15:49:21 +0000 differ |
12 | === added file 'media/blogs/id_4/index.html' |
13 | === added file 'media/blogs/id_4/mammoth-hot-springs.jpg' |
14 | Binary files media/blogs/id_4/mammoth-hot-springs.jpg 1970-01-01 00:00:00 +0000 and media/blogs/id_4/mammoth-hot-springs.jpg 2012-08-02 15:49:21 +0000 differ |
15 | === added file 'media/blogs/id_4/morning-glory-pool.jpg' |
16 | Binary files media/blogs/id_4/morning-glory-pool.jpg 1970-01-01 00:00:00 +0000 and media/blogs/id_4/morning-glory-pool.jpg 2012-08-02 15:49:21 +0000 differ |
17 | === removed file 'media/users/id_1/samplephoto1.jpg' |
18 | Binary files media/users/id_1/samplephoto1.jpg 2010-10-31 11:47:52 +0000 and media/users/id_1/samplephoto1.jpg 1970-01-01 00:00:00 +0000 differ |
19 | === removed file 'media/users/id_1/samplephoto2.jpg' |
20 | Binary files media/users/id_1/samplephoto2.jpg 2010-10-31 11:47:52 +0000 and media/users/id_1/samplephoto2.jpg 1970-01-01 00:00:00 +0000 differ |
21 | === removed file 'media/users/id_1/samplephoto3.jpg' |
22 | Binary files media/users/id_1/samplephoto3.jpg 2010-10-31 11:47:52 +0000 and media/users/id_1/samplephoto3.jpg 1970-01-01 00:00:00 +0000 differ |
23 | === removed file 'media/users/id_1/samplephoto4.jpg' |
24 | Binary files media/users/id_1/samplephoto4.jpg 2010-10-31 11:47:52 +0000 and media/users/id_1/samplephoto4.jpg 1970-01-01 00:00:00 +0000 differ |
25 | === removed file 'media/users/id_1/samplephoto5.jpg' |
26 | Binary files media/users/id_1/samplephoto5.jpg 2010-10-31 11:47:52 +0000 and media/users/id_1/samplephoto5.jpg 1970-01-01 00:00:00 +0000 differ |
27 | === modified file 'qp_install/_functions_create.php' |
28 | --- qp_install/_functions_create.php 2012-07-24 09:39:41 +0000 |
29 | +++ qp_install/_functions_create.php 2012-08-02 15:49:21 +0000 |
30 | @@ -528,7 +528,7 @@ |
31 | $cat_linkblog_b2evo = cat_create( $app_name, 'NULL', $blog_linkblog_ID ); |
32 | $cat_linkblog_contrib = cat_create( 'Contributors', 'NULL', $blog_linkblog_ID ); |
33 | // Create categories for photoblog |
34 | - $cat_photo_album = cat_create( 'Owen Michael', 'NULL', $blog_photoblog_ID ); |
35 | + $cat_yellowstone = cat_create( 'Yellowstone', 'NULL', $blog_photoblog_ID ); |
36 | task_end(); |
37 | |
38 | echo T_('Creating sample posts and comments').' ... '; |
39 | @@ -591,71 +591,91 @@ |
40 | // Insert a post into blog #4: |
41 | $now = date('Y-m-d H:i:s',installer_timestamp()); |
42 | $edited_Item = new Item(); |
43 | - $edited_Item->insert( 1, T_('Owen'), '', |
44 | - $now, $cat_photo_album, array(), 'published','en-US' ); |
45 | - |
46 | - // attach an image to the item |
47 | - $edit_File = new File( 'user', 1, 'samplephoto1.jpg' ); |
48 | - $edit_File->link_to_Item( $edited_Item ); |
49 | - // add meta data for this image (only once per image!) |
50 | - $query = "UPDATE T_files |
51 | - SET file_title = 'May 30, 2009', file_alt = 'May 30, 2009', file_desc = 'Just learning to sit at almost four months.' |
52 | - WHERE file_ID = {$edit_File->ID}"; |
53 | - $DB->query( $query ); |
54 | - |
55 | - |
56 | - // Insert a post into blog #4: |
57 | - $now = date('Y-m-d H:i:s',installer_timestamp()); |
58 | - $edited_Item = new Item(); |
59 | - $edited_Item->insert( 1, T_('Owen'), 'This photo has some text like a normal blog post might.', |
60 | - $now, $cat_photo_album, array(), 'published','en-US' ); |
61 | - |
62 | - // attach an image to the item |
63 | - $edit_File = new File( 'user', 1, 'samplephoto2.jpg' ); |
64 | - $edit_File->link_to_Item( $edited_Item ); |
65 | - // add meta data for this image (only once per image!) |
66 | - $query = "UPDATE T_files |
67 | - SET file_title = 'September 3, 2009', file_alt = 'September 3, 2009', file_desc = 'Seven months old in new jammies.' |
68 | - WHERE file_ID = {$edit_File->ID}"; |
69 | - $DB->query( $query ); |
70 | - |
71 | - |
72 | - // Insert a post into blog #4: |
73 | - $now = date('Y-m-d H:i:s',installer_timestamp()); |
74 | - $edited_Item = new Item(); |
75 | - $edited_Item->insert( 1, T_('October 18, 2010'), 'This post simulates providing a "title" when uploading the image then immediately making a post directly from file manager. The "title" of the image became the title of the post. (This text would have been added by editing the post after automatically creating it.)', |
76 | - $now, $cat_photo_album, array(), 'published','en-US' ); |
77 | - |
78 | - // attach an image to the item |
79 | - $edit_File = new File( 'user', 1, 'samplephoto3.jpg' ); |
80 | - $edit_File->link_to_Item( $edited_Item ); |
81 | - // add meta data for this image (only once per image!) |
82 | - $query = "UPDATE T_files |
83 | - SET file_title = 'October 18, 2010', file_alt = 'October 18, 2010', file_desc = 'First Halloween costume--our little chicken.' |
84 | - WHERE file_ID = {$edit_File->ID}"; |
85 | - $DB->query( $query ); |
86 | - |
87 | - |
88 | - // Insert a post into blog #4: |
89 | - $now = date('Y-m-d H:i:s',installer_timestamp()); |
90 | - $edited_Item = new Item(); |
91 | - $edited_Item->insert( 1, T_('2 pics in one post'), 'This post shows how you can attach more than one image to a post. By the way all Owen pics courtesy of <a href="http://www.hudson2001.com/blogs/" title="A daily diary of the mostly mundane, sometimes surprising, and often opinionated">his Mom, Jen</a> :)', |
92 | - $now, $cat_photo_album, array(), 'published','en-US' ); |
93 | - |
94 | - // attach an image to the item |
95 | - $edit_File = new File( 'user', 1, 'samplephoto4.jpg' ); |
96 | - $edit_File->link_to_Item( $edited_Item ); |
97 | - // add meta data for this image (only once per image!) |
98 | - $query = "UPDATE T_files |
99 | - SET file_title = 'January 14, 2010', file_alt = 'January 14, 2010', file_desc = 'My favorite picture ever (11.5 months).' |
100 | + $edited_Item->insert( 1, T_('artists-paint-pots-2'), 'This shows the simplest attachment possible: the file name became the file\'s title, alt text, description, and post title.', |
101 | + $now, $cat_yellowstone, array(), 'published','en-US' ); |
102 | + // attach an image to the item |
103 | + $edit_File = new File( 'collection', 4, 'artists-paint-pots-2.jpg' ); |
104 | + $edit_File->link_to_Item( $edited_Item ); |
105 | + // add meta data for this image (only once per image!) |
106 | + $query = "UPDATE T_files |
107 | + SET file_title = 'artists-paint-pots-2', file_alt = 'artists-paint-pots-2', file_desc = 'artists-paint-pots-2' |
108 | + WHERE file_ID = {$edit_File->ID}"; |
109 | + $DB->query( $query ); |
110 | + |
111 | + // Insert a post into blog #4: |
112 | + $now = date('Y-m-d H:i:s',installer_timestamp()); |
113 | + $edited_Item = new Item(); |
114 | + $edited_Item->insert( 1, T_('Photo of Biscuit Basin'), 'This shows a customized "file title" field, which became the alt text and description and item title.', |
115 | + $now, $cat_yellowstone, array(), 'published','en-US' ); |
116 | + // attach an image to the item |
117 | + $edit_File = new File( 'collection', 4, 'biscuit-basin.jpg' ); |
118 | + $edit_File->link_to_Item( $edited_Item ); |
119 | + // add meta data for this image (only once per image!) |
120 | + $query = "UPDATE T_files |
121 | + SET file_title = 'Photo of Biscuit Basin', file_alt = 'Photo of Biscuit Basin', file_desc = 'Photo of Biscuit Basin' |
122 | + WHERE file_ID = {$edit_File->ID}"; |
123 | + $DB->query( $query ); |
124 | + |
125 | + // Insert a post into blog #4: |
126 | + $now = date('Y-m-d H:i:s',installer_timestamp()); |
127 | + $edited_Item = new Item(); |
128 | + $edited_Item->insert( 1, T_('Emerald Pool, Yellowstone NP'), 'This image has all three attributes set to unique values, then this post was created with a unique title and content, then the image was attached to the post.', |
129 | + $now, $cat_yellowstone, array(), 'published','en-US' ); |
130 | + // attach an image to the item |
131 | + $edit_File = new File( 'collection', 4, 'emerald-pool-in-yellowstone.jpg' ); |
132 | + $edit_File->link_to_Item( $edited_Item ); |
133 | + // add meta data for this image (only once per image!) |
134 | + $query = "UPDATE T_files |
135 | + SET file_title = 'Emerald Pool, Yellowstone', file_alt = 'Photo of Emerald Pool in Yellowstone', file_desc = 'This is the \"description/caption\" field for the file name \"emerald-pool-in-yellowstone.jpg\"' |
136 | + WHERE file_ID = {$edit_File->ID}"; |
137 | + $DB->query( $query ); |
138 | + |
139 | + // Insert a post into blog #4: |
140 | + $now = date( 'Y-m-d H:i:s', installer_timestamp() ); |
141 | + $edited_Item = new Item(); |
142 | + $edited_Item->insert( 1, T_('Mammoth Hot Springs'), '', |
143 | + $now, $cat_yellowstone, array(), 'published','en-US' ); |
144 | + // attach an image to the item |
145 | + $edit_File = new File( 'collection', 4, 'mammoth-hot-springs.jpg' ); |
146 | + $edit_File->link_to_Item( $edited_Item ); |
147 | + // add meta data for this image (only once per image!) |
148 | + $query = "UPDATE T_files |
149 | + SET file_title = 'Mammoth Hot Springs', file_alt = 'Mammoth Hot Springs', file_desc = 'Free Stock Photo of Mammoth Hot Springs - Yellowstone - Travel, from public-domain-photos.com' |
150 | + WHERE file_ID = {$edit_File->ID}"; |
151 | + $DB->query( $query ); |
152 | + |
153 | + // Insert a post into blog #4: |
154 | + $now = date( 'Y-m-d H:i:s', installer_timestamp() ); |
155 | + $edited_Item = new Item(); |
156 | + $edited_Item->insert( 1, T_('Morning Glory Pool'), 'This photo has some text like a normal blog post might.', |
157 | + $now, $cat_yellowstone, array(), 'published','en-US' ); |
158 | + // attach an image to the item |
159 | + $edit_File = new File( 'collection', 4, 'morning-glory-pool.jpg' ); |
160 | + $edit_File->link_to_Item( $edited_Item ); |
161 | + // add meta data for this image (only once per image!) |
162 | + $query = "UPDATE T_files |
163 | + SET file_title = 'Morning Glory Pool', file_alt = 'Morning Glory Pool', file_desc = 'Free Stock Photo of Morning Glory Pool - Yellowstone - Travel, from public-domain-photos.com' |
164 | + WHERE file_ID = {$edit_File->ID}"; |
165 | + $DB->query( $query ); |
166 | + |
167 | + // Insert a post into blog #4: |
168 | + $now = date('Y-m-d H:i:s',installer_timestamp()); |
169 | + $edited_Item = new Item(); |
170 | + $edited_Item->insert( 1, T_('2 pics in one post'), 'This post shows how you can attach more than one image to a post. All of the Yellowstone photos came from <a href="http://www.public-domain-photos.com/travel/yellowstone">Public-Domain-Photos</a>.', $now, $cat_yellowstone, array(), 'published','en-US' ); |
171 | + // attach an image to the item |
172 | + $edit_File = new File( 'collection', 4, 'mammoth-hot-springs.jpg' ); |
173 | + $edit_File->link_to_Item( $edited_Item ); |
174 | + // add meta data for this image (only once per image!) |
175 | + $query = "UPDATE T_files |
176 | + SET file_title = 'Mammoth Hot Springs', file_alt = 'Mammoth Hot Springs', file_desc = 'Mammoth Hot Springs.' |
177 | WHERE file_ID = {$edit_File->ID}"; |
178 | $DB->query( $query ); |
179 | // attach another image to the item |
180 | - $edit_File = new File( 'user', 1, 'samplephoto5.jpg' ); |
181 | + $edit_File = new File( 'collection', 4, 'morning-glory-pool.jpg' ); |
182 | $edit_File->link_to_Item( $edited_Item ); |
183 | // add meta data for this image (only once per image!) |
184 | - $query = "UPDATE T_files |
185 | - SET file_title = 'July 10, 2010', file_alt = 'July 10, 2010', file_desc = 'At grandpa\'s house on vacation (15 months).' |
186 | + $query = "UPDATE T_files |
187 | + SET file_title = 'Morning Glory Pool', file_alt = 'Morning Glory Pool', file_desc = 'Morning Glory Pool.' |
188 | WHERE file_ID = {$edit_File->ID}"; |
189 | $DB->query( $query ); |
190 | |
191 | |
192 | === modified file 'qp_install/_functions_install.php' |
193 | --- qp_install/_functions_install.php 2012-07-24 09:39:41 +0000 |
194 | +++ qp_install/_functions_install.php 2012-08-02 15:49:21 +0000 |
195 | @@ -622,7 +622,7 @@ |
196 | WHERE blog_ID < 4' ); |
197 | |
198 | $DB->query( 'INSERT INTO T_widget( wi_coll_ID, wi_sco_name, wi_order, wi_type, wi_code, wi_params ) |
199 | - SELECT blog_ID, "Sidebar 2", 4, "widget", "free_html", \'a:5:{s:5:"title";s:9:"Sidebar 2";s:7:"content";s:162:"This is the "Sidebar 2" container. You can place any widget you like in here. In the evo toolbar at the top of this page, select "Customize", then "Blog Widgets".";s:11:"widget_name";s:9:"Free HTML";s:16:"widget_css_class";s:0:"";s:9:"widget_ID";s:0:"";}\' |
200 | + SELECT blog_ID, "Sidebar 2", 4, "widget", "free_html", \'a:5:{s:5:"title";s:9:"Sidebar 2";s:7:"content";s:162:"This is the "Sidebar 2" container. You can place any widget you like in here. In the gray navbar at the top of this page, select "Customize", then "Blog Widgets".";s:11:"widget_name";s:9:"Free HTML";s:16:"widget_css_class";s:0:"";s:9:"widget_ID";s:0:"";}\' |
201 | FROM T_blogs |
202 | WHERE blog_ID < 4' ); |
203 |