-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Individual classes specific to each provider
- Loading branch information
Showing
3 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
class OpenPeek_Kaboompics extends OpenPeek_Kimonolabs { | ||
|
||
protected function map_fields( $content ) { | ||
|
||
$clean = array(); | ||
|
||
foreach ( $content as $key => $image ) { | ||
|
||
$current = array(); | ||
$current['name'] = $image['name']['text']; | ||
$current['source'] = $image['name']['href']; | ||
$current['link'] = $image['img']; | ||
$current['tags'] = explode( '#', trim( str_replace( 'TAGS:', '', $image['tags'] ) ) ); | ||
|
||
array_push( $clean, $current ); | ||
|
||
} | ||
|
||
return $clean; | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
class OpenPeek_LittleVisuals extends OpenPeek_Kimonolabs { | ||
|
||
protected function map_fields( $content ) { | ||
|
||
$clean = array(); | ||
|
||
foreach ( $content as $key => $image ) { | ||
|
||
$current = array(); | ||
$current['name'] = ''; | ||
$current['source'] = $image['image']['href']; | ||
$current['link'] = $image['image']['src']; | ||
$current['tags'] = explode( "\n", $image['tags'] ); | ||
|
||
array_push( $clean, $current ); | ||
|
||
} | ||
|
||
return $clean; | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
class OpenPeek_Picjumbo extends OpenPeek_Kimonolabs { | ||
|
||
protected function map_fields( $content ) { | ||
|
||
$clean = array(); | ||
|
||
foreach ( $content as $key => $image ) { | ||
|
||
$current = array(); | ||
$current['name'] = $image['name']; | ||
$current['source'] = $image['link']; | ||
$current['link'] = $image['img']; | ||
|
||
array_push( $clean, $current ); | ||
|
||
} | ||
|
||
return $clean; | ||
|
||
} | ||
|
||
} |