Browse code

Turn language into function

Philip I. Thomas authored on 18/10/2012 at 04:35:14
Showing 1 changed files
... ...
@@ -187,16 +187,10 @@ position("Case Western Reserve University","Cleveland, OH","Organic chemistry le
187 187
       </div>
188 188
     </div> <!-- end row -->
189 189
 
190
-	<div class="row">
191
-	    <div class="span3 offset3">
192
-		Python
193
-		</div>
194
-		<div class="span3">
195
-	      <div class="progress">
196
-	        <div class="bar" style="width: 60%;"></div>
197
-	      </div>
198
-	    </div>
199
-      
190
+<?php
191
+iprogram('Python','60');
192
+
193
+?>
200 194
       
201 195
       </section>
202 196
       
... ...
@@ -263,4 +257,20 @@ function position($company,$city,$job,$dates,$blob) {
263 263
 			}	
264 264
 			
265 265
 }
266
+
267
+function iprogram($language,$percent) {
268
+	echo '
269
+	<div class="row">
270
+	    <div class="span4 offset2">
271
+		<h4>'.$language.'</h4>
272
+		</div>
273
+		<div class="span4">
274
+	      <div class="progress">
275
+	        <div class="bar" style="width: '.$percent.'%;"></div>
276
+	      </div>
277
+	    </div>
278
+	</div>
279
+	';
280
+	
281
+}
266 282
 ?>
267 283
\ No newline at end of file