|
|
@ -14,13 +14,19 @@ |
|
|
|
{% csrf_token %} |
|
|
|
{% csrf_token %} |
|
|
|
{% bootstrap_form new_article_form %} |
|
|
|
{% bootstrap_form new_article_form %} |
|
|
|
{% buttons %} |
|
|
|
{% buttons %} |
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
|
|
|
|
<div class="col"> |
|
|
|
<button |
|
|
|
<button |
|
|
|
class="btn btn-primary" |
|
|
|
class="btn btn-primary" |
|
|
|
type="submit" |
|
|
|
type="submit" |
|
|
|
> |
|
|
|
> |
|
|
|
Продвинуть |
|
|
|
Продвинуть |
|
|
|
</button> |
|
|
|
</button> |
|
|
|
<div id="vkShare"></div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="vkShare" class="col"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
{% endbuttons %} |
|
|
|
{% endbuttons %} |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -36,8 +42,8 @@ |
|
|
|
url: articleLink |
|
|
|
url: articleLink |
|
|
|
} |
|
|
|
} |
|
|
|
const buttonType = { |
|
|
|
const buttonType = { |
|
|
|
type: "link", |
|
|
|
type: "custom", |
|
|
|
text: 'Посмотреть' |
|
|
|
text: '<img src="https://vk.com/images/share_32_2x.png" width="32" height="32" alt="share icon" />' |
|
|
|
} |
|
|
|
} |
|
|
|
document.getElementById('vkShare').innerHTML = VK.Share.button(gen, buttonType) |
|
|
|
document.getElementById('vkShare').innerHTML = VK.Share.button(gen, buttonType) |
|
|
|
} |
|
|
|
} |
|
|
|