{% extends "polls_base.html" %} {% block addnew %} {{ __("Add New") }} {% endblock addnew %} {% block content %}
{{ wp_nonce_field( 'yop-poll-view-action', 'yop-poll-view-name', false, false ) | raw }}

{% for poll in polls %} {% else %} {% endfor %}
{{ __("Title" ) }} {{ __("Total Votes" ) }} {{ __("Author") }} {{ __("Start Date") }} {{ __("End Date") }}
{% if ( current_user_can( 'delete_own_yop_polls') and poll.poll_author == current_user.ID ) or ( current_user_can( 'delete_yop_polls' ) ) %} {% endif %} {% if ( current_user_can( 'edit_own_yop_polls') and poll.poll_author == current_user.ID ) or ( current_user_can( 'edit_yop_polls' ) ) %} {% endif %} {{ poll.poll_title }} {% if ( current_user_can( 'edit_own_yop_polls') and poll.poll_author == current_user.ID ) or ( current_user_can( 'edit_yop_polls' ) ) %} {% endif %}
{% if ( current_user_can( 'edit_own_yop_polls') and poll.poll_author == current_user.ID ) or ( current_user_can( 'edit_yop_polls' ) ) %} {{ __( "Get Code" ) }} | {%endif%} {% if ( current_user_can( 'edit_own_yop_polls') and poll.poll_author == current_user.ID ) or ( current_user_can( 'edit_yop_polls' ) ) %} {{ __( "Edit" ) }} | {% endif %} {% if ( current_user_can( 'clone_own_yop_polls') and poll.poll_author == current_user.ID ) or ( current_user_can( 'clone_yop_polls' ) ) %} {{ __( "Clone" ) }} | {% endif %} {% if ( current_user_can( 'delete_own_yop_polls') and poll.poll_author == current_user.ID ) or ( current_user_can( 'delete_yop_polls' ) ) %} {{ __("Delete" ) }} | {% endif %} {% if ( current_user_can( 'view_own_yop_polls_results') and poll.poll_author == current_user.ID ) or ( current_user_can( 'view_yop_polls_results' ) ) %} {{ __( "Results" ) }} | {% endif %} {{ __("View votes" ) }} | {% if ( current_user_can( 'reset_own_yop_polls_stats') and poll.poll_author == current_user.ID ) or ( current_user_can( 'reset_yop_polls_stats' ) ) %} {{ __( 'Reset Stats') }} {% endif %}
{{ poll.poll_total_votes }} {{ poll.poll_author }} {{convert_date( poll.poll_start_date,date_format)}} {% if convert_date( poll.poll_end_date, 'd-m-Y H:i:s') == convert_date( "01-01-2038 23:59:59", 'd-m-Y H:i:s') %} No end date {% else %} {{ convert_date( poll.poll_end_date, date_format) }} {% endif %}
{{ __("No polls found!") }}
{{ __("Title" ) }} {{ __("Total Votes" ) }} {{ __('Author') }} {{ __("Start Date") }} {{ __("End Date") }}

{{ __( 'Support This Plugin')}}

{% endblock content %}