summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/template-social.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/extension/internal/template-social.cpp')
-rw-r--r--src/extension/internal/template-social.cpp81
1 files changed, 81 insertions, 0 deletions
diff --git a/src/extension/internal/template-social.cpp b/src/extension/internal/template-social.cpp
new file mode 100644
index 0000000..7d24ec4
--- /dev/null
+++ b/src/extension/internal/template-social.cpp
@@ -0,0 +1,81 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Contain internal sizes of paper which can be used in various
+ * functions to make and size pages.
+ *
+ * Authors:
+ * Martin Owens <doctormo@geek-2.com>
+ *
+ * Copyright (C) 2022 Authors
+ *
+ * Released under GNU GPL v2+, read the file 'COPYING' for more information.
+ */
+
+#include "template-social.h"
+
+#include "clear-n_.h"
+
+namespace Inkscape {
+namespace Extension {
+namespace Internal {
+
+void TemplateSocial::init()
+{
+ // clang-format off
+ Inkscape::Extension::build_from_mem(
+ "<inkscape-extension xmlns=\"" INKSCAPE_EXTENSION_URI "\">"
+ "<id>org.inkscape.template.social</id>"
+ "<name>" N_("Social Sizes") "</name>"
+ "<description>" N_("Document formats for social media") "</description>"
+ "<category>" NC_("TemplateCategory", "Social") "</category>"
+
+ "<param name='unit' gui-text='" N_("Unit") "' type='string'>px</param>"
+ "<param name='width' gui-text='" N_("Width") "' type='float' min='1.0' max='100000.0'>100.0</param>"
+ "<param name='height' gui-text='" N_("Height") "' type='float' min='1.0' max='100000.0'>100.0</param>"
+
+ "<template icon='social_landscape' unit='px' priority='-30' visibility='icon,search'>"
+
+"<preset name='" N_("Facebook cover photo") "' label='820 × 462 px' height='462' width='820'/>"
+"<preset name='" N_("Facebook event image") "' label='1920 × 1080 px' height='1080' width='1920'/>"
+"<preset name='" N_("Facebook image post") "' label='1200 × 630 px' height='630' width='1200'/>"
+"<preset name='" N_("Facebook link image") "' label='1200 × 630 px' height='630' width='1200'/>"
+"<preset name='" N_("Facebook profile picture") "' label='180 × 180 px' height='180' width='180' icon='social_square'/>"
+"<preset name='" N_("Facebook video") "' label='1280 × 720 px' height='720' width='1280'/>"
+"<preset name='" N_("Instagram landscape") "' label='1080 × 608 px' height='608' width='1080'/>"
+"<preset name='" N_("Instagram portrait") "' label='1080 × 1350 px' height='1350' width='1080' icon='social_portrait'/>"
+"<preset name='" N_("Instagram square") "' label='1080 × 1080 px' height='1080' width='1080' icon='social_square'/>"
+"<preset name='" N_("LinkedIn business banner image") "' label='646 × 220 px' height='220' width='646'/>"
+"<preset name='" N_("LinkedIn company logo") "' label='300 × 300 px' height='300' width='300' icon='social_square'/>"
+"<preset name='" N_("LinkedIn cover photo") "' label='1536 × 768 px' height='768' width='1536'/>"
+"<preset name='" N_("LinkedIn dynamic ad") "' label='100 × 100 px' height='100' width='100' icon='social_square'/>"
+"<preset name='" N_("LinkedIn hero image") "' label='1128 × 376 px' height='376' width='1128'/>"
+"<preset name='" N_("LinkedIn sponsored content image") "' label='1200 × 627 px' height='627' width='1200'/>"
+"<preset name='" N_("Snapchat advertisement") "' label='1080 × 1920 px' height='1920' width='1080' icon='social_portrait'/>"
+"<preset name='" N_("Twitter card image") "' label='1200 × 628 px' height='628' width='1200'/>"
+"<preset name='" N_("Twitter header") "' label='1500 × 500 px' height='500' width='1500'/>"
+"<preset name='" N_("Twitter post image") "' label='1024 × 512 px' height='512' width='1024'/>"
+"<preset name='" N_("Twitter profile picture") "' label='400 × 400 px' height='400' width='400' icon='social_square'/>"
+"<preset name='" N_("Twitter video landscape") "' label='1280 × 720 px' height='720' width='1280'/>"
+"<preset name='" N_("Twitter video portrait") "' label='720 × 1280 px' height='1280' width='720' icon='social_portrait'/>"
+"<preset name='" N_("Twitter video square") "' label='720 × 720 px' height='720' width='720' icon='social_square'/>"
+
+ "</template>"
+ "</inkscape-extension>",
+ new TemplateSocial());
+ // clang-format on
+}
+
+} // namespace Internal
+} // namespace Extension
+} // namespace Inkscape
+
+/*
+ Local Variables:
+ mode:c++
+ c-file-style:"stroustrup"
+ c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
+ indent-tabs-mode:nil
+ fill-column:99
+ End:
+*/
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :