Example #1
0
 public function getCountryName()
 {
     if ($this->country) {
         return \PVL\Internationalization::getLanguageName($this->country);
     } else {
         return '';
     }
 }
Example #2
0
<?php

return array('method' => 'post', 'enctype' => 'multipart/form-data', 'groups' => array('profile' => array('legend' => 'Profile Information', 'elements' => array('name' => array('text', array('label' => 'Station Name', 'class' => 'half-width', 'required' => true)), 'genre' => array('text', array('label' => 'Station Genre', 'description' => 'Listed underneath the station in the player.')), 'description' => array('textarea', array('label' => 'Station Description', 'class' => 'full-width full-height')), 'country' => array('select', array('label' => 'Country of Broadcast', 'multiOptions' => \PVL\Internationalization::getCountryLookup(), 'default' => '')), 'image_url' => array('image', array('label' => 'Upload New Station Avatar (150x150 PNG)', 'description' => 'To replace the existing icon associated with this station, upload a new one using the file browser below. Icons should be 150x150px in dimension.')), 'banner_url' => array('image', array('label' => 'Upload New Promotional Banner (600x300 PNG)', 'description' => 'This image will be shown in the header rotator when events are promoted. Images should be 600x300.')))), 'contact' => array('legend' => 'Contact Information', 'elements' => array('web_url' => array('text', array('label' => 'Web URL', 'description' => 'Include full address (with http://).', 'class' => 'half-width')), 'contact_email' => array('text', array('label' => 'Contact E-mail Address', 'description' => 'Include to show an e-mail link for the station on the "Contact Us" page.', 'validators' => array('EmailAddress'), 'class' => 'half-width')), 'twitter_url' => array('text', array('label' => 'Twitter URL', 'description' => 'Include full address of the station\'s Twitter account (with http://).', 'class' => 'half-width')), 'facebook_url' => array('text', array('label' => 'Facebook URL', 'description' => 'Optional: This will be included in the "Contact Us" page if provided.', 'class' => 'half-width')), 'tumblr_url' => array('text', array('label' => 'Tumblr URL', 'description' => 'Optional: This will be included in the "Contact Us" page if provided.', 'class' => 'half-width')), 'gcal_url' => array('text', array('label' => 'Google Calendar XML Feed URL', 'description' => 'This URL can be retrieved by visiting Google Calendar, hovering over the station\'s calendar on the left sidebar, clicking the dropdown menu, then "Calendar Settings". From the settings page, click the "XML" link inside the Calendar Address area. Include full address of the feed (ending in /basic or /full) (with http://).', 'class' => 'half-width')), 'irc' => array('text', array('label' => 'IRC Channel Name', 'description' => 'Include hash tag: #channelname')))), 'admin' => array('legend' => 'Administrator Settings', 'elements' => array('category' => array('radio', array('label' => 'Station Category', 'multiOptions' => \Entity\Station::getCategorySelect(), 'required' => true)), 'affiliation' => array('radio', array('label' => 'PVL Affiliation Level', 'multiOptions' => \Entity\Station::getAffiliationSelect())), 'is_active' => array('radio', array('label' => 'Is Active', 'description' => 'Is visible in the PVL network player interface.', 'multiOptions' => array(1 => 'Yes', 0 => 'No'), 'default' => 1)), 'weight' => array('text', array('label' => 'Sort Order', 'description' => 'Lower numbers appear higher on the list of stations.')), 'requests_enabled' => array('radio', array('label' => 'Enable Request System', 'description' => 'Enable the "Submit Request" button under this station.', 'multiOptions' => array(1 => 'Yes', 0 => 'No'), 'default' => 0)), 'requests_ccast_username' => array('text', array('label' => 'Request System CentovaCast Account Name', 'description' => 'Account username in the CentovaCast system, if requests are enabled.', 'class' => 'half-width')), 'requests_external_url' => array('text', array('label' => 'External URL for Third-Party Request System', 'description' => 'If the station is using a non-CentovaCast request system, enter the URL for it below.', 'class' => 'half-width')), 'admin_notes' => array('textarea', array('label' => 'Administration Notes', 'description' => 'These notes are only visible by network administration.', 'class' => 'full-width half-height')), 'station_notes' => array('textarea', array('label' => 'Station Notes', 'description' => 'These notes are visible/editable by station owners.', 'class' => 'full-width half-height')))), 'submit_grp' => array('elements' => array('submit' => array('submit', array('type' => 'submit', 'label' => 'Save Changes', 'helper' => 'formButton', 'class' => 'ui-button'))))));
Example #3
0
<?php

return array('method' => 'post', 'enctype' => 'multipart/form-data', 'groups' => array('about' => array('legend' => 'About Ponyville Live! Syndicated Shows &amp; Podcasts', 'elements' => array('about_text' => array('markup', array('markup' => '
                        <p>We are honored that your show is interested in being syndicated on the Ponyville Live! (or, as we call it, PVL) platform. For over two years, PVL has delivered countless hours of live programming, 24/7 radio stations, video streams, convention coverage, and more to Bronies across the world, along with some of the community\'s finest podcasts and shows, which have seen tens of thousands of extra viewers from our web site, apps and plugins.</p>

                        <p><b>Station Expectations:</b> All shows/podcasts listed on PVL are syndicated on the web site without any requirements for branding or partnership with the PVL network. Some stations listed on PVL work closely with the network to cover conventions and plan large events, but this does not apply to our syndicated shows.</p>

                        <p>Nevertheless, PVL does require some minimum specifications be met before your podcast can be listed on our web site. All shows/podcasts syndicated on PVL are required to:</p>

                        <ul>
                            <li><b>Have a backlog of at least 3-5 episodes before joining.</b> We want to give our visitors a library of previous content that they can review to get a feel for the show and its content, and to prepare them for future episodes. We don\'t want podcasts to be on PVL before their first episode even exists!</li>

                            <li><b>Appropriately flag all age-inappropriate content.</b> Note that content such as adult language and discussion topics is allowed on podcasts hosted by PVL, provided that it is flagged appropriately, either in the name of the podcast (if all episodes are 18+) or in the individual episode title. PVL may remove individual episodes or entire podcasts from its site if it feels that the content presented is too extreme, libelous, or otherwise harmful to our audience.</li>

                            <li><b>Provide a logo graphic and URL for syndication.</b> These are the two basic requirements that we need from all podcasts in order to syndicate them. The first is obvious; each show must have a 150x150 square logo graphic for our site. The second, a syndication URL, can be one of many things: an RSS feed URL (easily acquired by services like Libsyn), a YouTube playlist URL, SoundCloud URL, or other location where your episodes can be pulled automatically by our system.</li>
                        </ul>

                        <p>If you have any questions about this submission process, just contact our leadership at <a href="mailto:pr@ponyvillelive.com">pr@ponyvillelive.com</a>. Thank you again for your submission, and we look forward to working with you and your team!</p>
                    ')))), 'profile' => array('legend' => 'Basic Details', 'elements' => array('name' => array('text', array('label' => 'Name', 'class' => 'half-width', 'required' => true)), 'description' => array('textarea', array('label' => 'Podcast Description', 'description' => 'Tell us about what you do in the pony community, what projects you\'ve worked with, or how you want to contribute in the future.', 'class' => 'full-width half-height')), 'country' => array('select', array('label' => 'Country of Broadcast', 'multiOptions' => \PVL\Internationalization::getCountryLookup(), 'default' => '')), 'web_url' => array('text', array('label' => 'Web Site Address', 'class' => 'half-width', 'filters' => array('WebAddress'))), 'image_url' => array('file', array('label' => 'Avatar (150x150 PNG)', 'description' => 'This is the small image that appears on your profile. Images should be under 150x150px in size. Larger images will automatically be scaled.')), 'banner_url' => array('file', array('label' => 'Promotional Banner (600x300 PNG), Optional', 'description' => 'This image will be shown on Twitter and in our homepage rotator when new episodes are posted. Images should be 600x300.')), 'is_adult' => array('radio', array('label' => 'Contains Adult (18+) Content', 'description' => 'If this podcast contains any content that may be considered "R-rated", or suitable only for adults 18 years or older, please select "Yes" below to indicate this on public pages.', 'multiOptions' => array(0 => 'No', 1 => 'Yes'), 'default' => 0)))), 'social' => array('legend' => 'Social Networking Links', 'description' => '
                Adding links to these services allows us to automatically update our users about your new releases and other social activity.<br>
                All fields are optional. Most of the time, your web address for these services will match the format shown in the field.
            ', 'elements' => array('rss_url' => array('text', array('label' => 'RSS Feed Address', 'class' => 'half-width', 'filters' => array('WebAddress'))), 'twitter_url' => array('text', array('label' => 'Twitter Address', 'class' => 'half-width', 'filters' => array('WebAddress'), 'placeholder' => 'http://www.twitter.com/YourUsername')), 'tumblr_url' => array('text', array('label' => 'Tumblr Address', 'class' => 'half-width', 'filters' => array('WebAddress'), 'placeholder' => 'http://YourUsername.tumblr.com')), 'facebook_url' => array('text', array('label' => 'Facebook Address', 'class' => 'half-width', 'filters' => array('WebAddress'), 'placeholder' => 'http://www.facebook.com/YourUserName')), 'youtube_url' => array('text', array('label' => 'YouTube Address', 'class' => 'half-width', 'filters' => array('WebAddress'), 'placeholder' => 'http://www.youtube.com/YourUsername')), 'soundcloud_url' => array('text', array('label' => 'SoundCloud Address', 'class' => 'half-width', 'filters' => array('WebAddress'), 'placeholder' => 'http://www.soundcloud.com/YourUsername')), 'deviantart_url' => array('text', array('label' => 'DeviantArt Address', 'class' => 'half-width', 'filters' => array('WebAddress'), 'placeholder' => 'http://YourUsername.deviantart.com')), 'livestream_url' => array('text', array('label' => 'LiveStream Address', 'class' => 'half-width', 'filters' => array('WebAddress'), 'placeholder' => 'http://livestream.com/username')))), 'submit_grp' => array('elements' => array('submit' => array('submit', array('type' => 'submit', 'label' => 'Submit Station', 'helper' => 'formButton', 'class' => 'ui-button btn-large'))))));
Example #4
0
<?php

return array('method' => 'post', 'enctype' => 'multipart/form-data', 'groups' => array('profile' => array('legend' => 'Basic Details', 'elements' => array('name' => array('text', array('label' => 'Name', 'class' => 'half-width', 'required' => true)), 'description' => array('textarea', array('label' => 'Podcast Description', 'description' => 'Tell us about what you do in the pony community, what projects you\'ve worked with, or how you want to contribute in the future.', 'class' => 'full-width half-height')), 'country' => array('select', array('label' => 'Country of Broadcast', 'multiOptions' => \PVL\Internationalization::getCountryLookup(), 'default' => '')), 'web_url' => array('text', array('label' => 'Web Site Address', 'class' => 'half-width', 'validators' => array('WebAddress'))), 'contact_email' => array('text', array('label' => 'Contact E-mail Address', 'description' => 'Include to show an e-mail link for the station on the "Contact Us" page.', 'validators' => array('EmailAddress'), 'class' => 'half-width')), 'image_url' => array('image', array('label' => 'Avatar (150x150 PNG)', 'description' => 'This is the small image that appears on your profile. Images should be under 150x150px in size. Larger images will automatically be scaled.')), 'banner_url' => array('image', array('label' => 'Promotional Banner (600x300 PNG)', 'description' => 'This image will be shown in the header rotator when new episodes are posted. Images should be 600x300.')), 'stations' => array('multiCheckbox', array('label' => 'Airs on Station(s)', 'description' => 'Select the station(s) that this podcast broadcasts on.', 'multiOptions' => \Entity\Station::fetchSelect())), 'is_adult' => array('radio', array('label' => 'Contains Adult (18+) Content', 'description' => 'If this podcast contains any content that may be considered "R-rated", or suitable only for adults 18 years or older, please select "Yes" below to indicate this on public pages.', 'multiOptions' => array(0 => 'No', 1 => 'Yes'), 'default' => 0)), 'always_use_banner_url' => array('radio', array('label' => 'Always Use Promotional Banner for New Episode Promotion', 'description' => 'When promoting an individual episode, if PVL is able to pull an individual thumbnail for the video, it will use this for promoting the episode instead of the one you supply above. To force the banner URL above to always be used, select "Yes" here.', 'multiOptions' => array(0 => 'No', 1 => 'Yes'), 'default' => 0)))), 'social' => array('legend' => 'Social Networking Links', 'description' => '
                <b>Note: Updating these links does not automatically update the source of your podcast episodes.</b> To do this, visit the "Syndication Sources" page in the Podcast Center.<br>
                All fields are optional. Most of the time, your web address for these services will match the format shown in the field.
            ', 'elements' => array('rss_url' => array('text', array('label' => 'RSS Feed Address', 'class' => 'half-width', 'validators' => array('WebAddress'))), 'twitter_url' => array('text', array('label' => 'Twitter Address', 'class' => 'half-width', 'validators' => array('WebAddress'), 'placeholder' => 'http://www.twitter.com/YourUsername')), 'tumblr_url' => array('text', array('label' => 'Tumblr Address', 'class' => 'half-width', 'validators' => array('WebAddress'), 'placeholder' => 'http://YourUsername.tumblr.com')), 'facebook_url' => array('text', array('label' => 'Facebook Address', 'class' => 'half-width', 'validators' => array('WebAddress'), 'placeholder' => 'http://www.facebook.com/YourUserName')), 'youtube_url' => array('text', array('label' => 'YouTube Address', 'class' => 'half-width', 'validators' => array('WebAddress'), 'placeholder' => 'http://www.youtube.com/YourUsername')), 'soundcloud_url' => array('text', array('label' => 'SoundCloud Address', 'class' => 'half-width', 'validators' => array('WebAddress'), 'placeholder' => 'http://www.soundcloud.com/YourUsername')), 'deviantart_url' => array('text', array('label' => 'DeviantArt Address', 'class' => 'half-width', 'validators' => array('WebAddress'), 'placeholder' => 'http://YourUsername.deviantart.com')), 'livestream_url' => array('text', array('label' => 'LiveStream Address', 'class' => 'half-width', 'validators' => array('WebAddress'), 'placeholder' => 'http://livestream.com/username')))), 'admin' => array('legend' => 'Administrator Details', 'elements' => array('is_approved' => array('radio', array('label' => 'Is Approved', 'multiOptions' => array(0 => 'No', 1 => 'Yes'), 'default' => 1)))), 'submit_grp' => array('elements' => array('submit' => array('submit', array('type' => 'submit', 'label' => 'Save Changes', 'helper' => 'formButton', 'class' => 'ui-button'))))));